| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921 |
- var EA = Object.defineProperty;
- var AA = (e, t, n) =>
- t in e
- ? EA(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
- : (e[t] = n);
- var Td = (e, t, n) => (AA(e, typeof t != 'symbol' ? t + '' : t, n), n);
- (function () {
- const t = document.createElement('link').relList;
- if (t && t.supports && t.supports('modulepreload')) return;
- for (const o of document.querySelectorAll('link[rel="modulepreload"]')) r(o);
- new MutationObserver(o => {
- for (const i of o)
- if (i.type === 'childList')
- for (const a of i.addedNodes)
- a.tagName === 'LINK' && a.rel === 'modulepreload' && r(a);
- }).observe(document, { childList: !0, subtree: !0 });
- function n(o) {
- const i = {};
- return (
- o.integrity && (i.integrity = o.integrity),
- o.referrerPolicy && (i.referrerPolicy = o.referrerPolicy),
- o.crossOrigin === 'use-credentials'
- ? (i.credentials = 'include')
- : o.crossOrigin === 'anonymous'
- ? (i.credentials = 'omit')
- : (i.credentials = 'same-origin'),
- i
- );
- }
- function r(o) {
- if (o.ep) return;
- o.ep = !0;
- const i = n(o);
- fetch(o.href, i);
- }
- })();
- function R0(e, t) {
- const n = Object.create(null),
- r = e.split(',');
- for (let o = 0; o < r.length; o++) n[r[o]] = !0;
- return t ? o => !!n[o.toLowerCase()] : o => !!n[o];
- }
- const Zn = {},
- wc = [],
- ui = () => {},
- MA = () => !1,
- IA = /^on[^a-z]/,
- up = e => IA.test(e),
- P0 = e => e.startsWith('onUpdate:'),
- gr = Object.assign,
- k0 = (e, t) => {
- const n = e.indexOf(t);
- n > -1 && e.splice(n, 1);
- },
- DA = Object.prototype.hasOwnProperty,
- Sn = (e, t) => DA.call(e, t),
- Gt = Array.isArray,
- qd = e => fp(e) === '[object Map]',
- FA = e => fp(e) === '[object Set]',
- tn = e => typeof e == 'function',
- _r = e => typeof e == 'string',
- T0 = e => typeof e == 'symbol',
- rr = e => e !== null && typeof e == 'object',
- __ = e => rr(e) && tn(e.then) && tn(e.catch),
- BA = Object.prototype.toString,
- fp = e => BA.call(e),
- LA = e => fp(e).slice(8, -1),
- NA = e => fp(e) === '[object Object]',
- $0 = e => _r(e) && e !== 'NaN' && e[0] !== '-' && '' + parseInt(e, 10) === e,
- Bh = R0(
- ',key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted'
- ),
- hp = e => {
- const t = Object.create(null);
- return n => t[n] || (t[n] = e(n));
- },
- HA = /-(\w)/g,
- Ui = hp(e => e.replace(HA, (t, n) => (n ? n.toUpperCase() : ''))),
- jA = /\B([A-Z])/g,
- Uc = hp(e => e.replace(jA, '-$1').toLowerCase()),
- vp = hp(e => e.charAt(0).toUpperCase() + e.slice(1)),
- em = hp(e => (e ? `on${vp(e)}` : '')),
- fu = (e, t) => !Object.is(e, t),
- tm = (e, t) => {
- for (let n = 0; n < e.length; n++) e[n](t);
- },
- Gh = (e, t, n) => {
- Object.defineProperty(e, t, { configurable: !0, enumerable: !1, value: n });
- },
- WA = e => {
- const t = parseFloat(e);
- return isNaN(t) ? e : t;
- },
- UA = e => {
- const t = _r(e) ? Number(e) : NaN;
- return isNaN(t) ? e : t;
- };
- let fw;
- const ub = () =>
- fw ||
- (fw =
- typeof globalThis < 'u'
- ? globalThis
- : typeof self < 'u'
- ? self
- : typeof window < 'u'
- ? window
- : typeof global < 'u'
- ? global
- : {});
- function pp(e) {
- if (Gt(e)) {
- const t = {};
- for (let n = 0; n < e.length; n++) {
- const r = e[n],
- o = _r(r) ? YA(r) : pp(r);
- if (o) for (const i in o) t[i] = o[i];
- }
- return t;
- } else {
- if (_r(e)) return e;
- if (rr(e)) return e;
- }
- }
- const VA = /;(?![^(]*\))/g,
- KA = /:([^]+)/,
- qA = /\/\*[^]*?\*\//g;
- function YA(e) {
- const t = {};
- return (
- e
- .replace(qA, '')
- .split(VA)
- .forEach(n => {
- if (n) {
- const r = n.split(KA);
- r.length > 1 && (t[r[0].trim()] = r[1].trim());
- }
- }),
- t
- );
- }
- function O0(e) {
- let t = '';
- if (_r(e)) t = e;
- else if (Gt(e))
- for (let n = 0; n < e.length; n++) {
- const r = O0(e[n]);
- r && (t += r + ' ');
- }
- else if (rr(e)) for (const n in e) e[n] && (t += n + ' ');
- return t.trim();
- }
- const GA =
- 'itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly',
- XA = R0(GA);
- function R_(e) {
- return !!e || e === '';
- }
- let Oo;
- class P_ {
- constructor(t = !1) {
- (this.detached = t),
- (this._active = !0),
- (this.effects = []),
- (this.cleanups = []),
- (this.parent = Oo),
- !t && Oo && (this.index = (Oo.scopes || (Oo.scopes = [])).push(this) - 1);
- }
- get active() {
- return this._active;
- }
- run(t) {
- if (this._active) {
- const n = Oo;
- try {
- return (Oo = this), t();
- } finally {
- Oo = n;
- }
- }
- }
- on() {
- Oo = this;
- }
- off() {
- Oo = this.parent;
- }
- stop(t) {
- if (this._active) {
- let n, r;
- for (n = 0, r = this.effects.length; n < r; n++) this.effects[n].stop();
- for (n = 0, r = this.cleanups.length; n < r; n++) this.cleanups[n]();
- if (this.scopes)
- for (n = 0, r = this.scopes.length; n < r; n++) this.scopes[n].stop(!0);
- if (!this.detached && this.parent && !t) {
- const o = this.parent.scopes.pop();
- o &&
- o !== this &&
- ((this.parent.scopes[this.index] = o), (o.index = this.index));
- }
- (this.parent = void 0), (this._active = !1);
- }
- }
- }
- function k_(e) {
- return new P_(e);
- }
- function ZA(e, t = Oo) {
- t && t.active && t.effects.push(e);
- }
- function T_() {
- return Oo;
- }
- function QA(e) {
- Oo && Oo.cleanups.push(e);
- }
- const z0 = e => {
- const t = new Set(e);
- return (t.w = 0), (t.n = 0), t;
- },
- $_ = e => (e.w & dl) > 0,
- O_ = e => (e.n & dl) > 0,
- JA = ({ deps: e }) => {
- if (e.length) for (let t = 0; t < e.length; t++) e[t].w |= dl;
- },
- e6 = e => {
- const { deps: t } = e;
- if (t.length) {
- let n = 0;
- for (let r = 0; r < t.length; r++) {
- const o = t[r];
- $_(o) && !O_(o) ? o.delete(e) : (t[n++] = o),
- (o.w &= ~dl),
- (o.n &= ~dl);
- }
- t.length = n;
- }
- },
- Xh = new WeakMap();
- let Ld = 0,
- dl = 1;
- const fb = 30;
- let ci;
- const hs = Symbol(''),
- hb = Symbol('');
- class E0 {
- constructor(t, n = null, r) {
- (this.fn = t),
- (this.scheduler = n),
- (this.active = !0),
- (this.deps = []),
- (this.parent = void 0),
- ZA(this, r);
- }
- run() {
- if (!this.active) return this.fn();
- let t = ci,
- n = il;
- for (; t; ) {
- if (t === this) return;
- t = t.parent;
- }
- try {
- return (
- (this.parent = ci),
- (ci = this),
- (il = !0),
- (dl = 1 << ++Ld),
- Ld <= fb ? JA(this) : hw(this),
- this.fn()
- );
- } finally {
- Ld <= fb && e6(this),
- (dl = 1 << --Ld),
- (ci = this.parent),
- (il = n),
- (this.parent = void 0),
- this.deferStop && this.stop();
- }
- }
- stop() {
- ci === this
- ? (this.deferStop = !0)
- : this.active &&
- (hw(this), this.onStop && this.onStop(), (this.active = !1));
- }
- }
- function hw(e) {
- const { deps: t } = e;
- if (t.length) {
- for (let n = 0; n < t.length; n++) t[n].delete(e);
- t.length = 0;
- }
- }
- let il = !0;
- const z_ = [];
- function Vc() {
- z_.push(il), (il = !1);
- }
- function Kc() {
- const e = z_.pop();
- il = e === void 0 ? !0 : e;
- }
- function wo(e, t, n) {
- if (il && ci) {
- let r = Xh.get(e);
- r || Xh.set(e, (r = new Map()));
- let o = r.get(n);
- o || r.set(n, (o = z0())), E_(o);
- }
- }
- function E_(e, t) {
- let n = !1;
- Ld <= fb ? O_(e) || ((e.n |= dl), (n = !$_(e))) : (n = !e.has(ci)),
- n && (e.add(ci), ci.deps.push(e));
- }
- function ya(e, t, n, r, o, i) {
- const a = Xh.get(e);
- if (!a) return;
- let s = [];
- if (t === 'clear') s = [...a.values()];
- else if (n === 'length' && Gt(e)) {
- const c = Number(r);
- a.forEach((d, f) => {
- (f === 'length' || f >= c) && s.push(d);
- });
- } else
- switch ((n !== void 0 && s.push(a.get(n)), t)) {
- case 'add':
- Gt(e)
- ? $0(n) && s.push(a.get('length'))
- : (s.push(a.get(hs)), qd(e) && s.push(a.get(hb)));
- break;
- case 'delete':
- Gt(e) || (s.push(a.get(hs)), qd(e) && s.push(a.get(hb)));
- break;
- case 'set':
- qd(e) && s.push(a.get(hs));
- break;
- }
- if (s.length === 1) s[0] && vb(s[0]);
- else {
- const c = [];
- for (const d of s) d && c.push(...d);
- vb(z0(c));
- }
- }
- function vb(e, t) {
- const n = Gt(e) ? e : [...e];
- for (const r of n) r.computed && vw(r);
- for (const r of n) r.computed || vw(r);
- }
- function vw(e, t) {
- (e !== ci || e.allowRecurse) && (e.scheduler ? e.scheduler() : e.run());
- }
- function t6(e, t) {
- var n;
- return (n = Xh.get(e)) == null ? void 0 : n.get(t);
- }
- const n6 = R0('__proto__,__v_isRef,__isVue'),
- A_ = new Set(
- Object.getOwnPropertyNames(Symbol)
- .filter(e => e !== 'arguments' && e !== 'caller')
- .map(e => Symbol[e])
- .filter(T0)
- ),
- r6 = A0(),
- o6 = A0(!1, !0),
- i6 = A0(!0),
- pw = a6();
- function a6() {
- const e = {};
- return (
- ['includes', 'indexOf', 'lastIndexOf'].forEach(t => {
- e[t] = function (...n) {
- const r = xn(this);
- for (let i = 0, a = this.length; i < a; i++) wo(r, 'get', i + '');
- const o = r[t](...n);
- return o === -1 || o === !1 ? r[t](...n.map(xn)) : o;
- };
- }),
- ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(t => {
- e[t] = function (...n) {
- Vc();
- const r = xn(this)[t].apply(this, n);
- return Kc(), r;
- };
- }),
- e
- );
- }
- function l6(e) {
- const t = xn(this);
- return wo(t, 'has', e), t.hasOwnProperty(e);
- }
- function A0(e = !1, t = !1) {
- return function (r, o, i) {
- if (o === '__v_isReactive') return !e;
- if (o === '__v_isReadonly') return e;
- if (o === '__v_isShallow') return t;
- if (o === '__v_raw' && i === (e ? (t ? S6 : B_) : t ? F_ : D_).get(r))
- return r;
- const a = Gt(r);
- if (!e) {
- if (a && Sn(pw, o)) return Reflect.get(pw, o, i);
- if (o === 'hasOwnProperty') return l6;
- }
- const s = Reflect.get(r, o, i);
- return (T0(o) ? A_.has(o) : n6(o)) || (e || wo(r, 'get', o), t)
- ? s
- : ar(s)
- ? a && $0(o)
- ? s
- : s.value
- : rr(s)
- ? e
- ? Vi(s)
- : Qi(s)
- : s;
- };
- }
- const s6 = M_(),
- c6 = M_(!0);
- function M_(e = !1) {
- return function (n, r, o, i) {
- let a = n[r];
- if (kc(a) && ar(a) && !ar(o)) return !1;
- if (
- !e &&
- (!Zh(o) && !kc(o) && ((a = xn(a)), (o = xn(o))),
- !Gt(n) && ar(a) && !ar(o))
- )
- return (a.value = o), !0;
- const s = Gt(n) && $0(r) ? Number(r) < n.length : Sn(n, r),
- c = Reflect.set(n, r, o, i);
- return (
- n === xn(i) && (s ? fu(o, a) && ya(n, 'set', r, o) : ya(n, 'add', r, o)),
- c
- );
- };
- }
- function d6(e, t) {
- const n = Sn(e, t);
- e[t];
- const r = Reflect.deleteProperty(e, t);
- return r && n && ya(e, 'delete', t, void 0), r;
- }
- function u6(e, t) {
- const n = Reflect.has(e, t);
- return (!T0(t) || !A_.has(t)) && wo(e, 'has', t), n;
- }
- function f6(e) {
- return wo(e, 'iterate', Gt(e) ? 'length' : hs), Reflect.ownKeys(e);
- }
- const I_ = { get: r6, set: s6, deleteProperty: d6, has: u6, ownKeys: f6 },
- h6 = {
- get: i6,
- set(e, t) {
- return !0;
- },
- deleteProperty(e, t) {
- return !0;
- }
- },
- v6 = gr({}, I_, { get: o6, set: c6 }),
- M0 = e => e,
- gp = e => Reflect.getPrototypeOf(e);
- function oh(e, t, n = !1, r = !1) {
- e = e.__v_raw;
- const o = xn(e),
- i = xn(t);
- n || (t !== i && wo(o, 'get', t), wo(o, 'get', i));
- const { has: a } = gp(o),
- s = r ? M0 : n ? F0 : hu;
- if (a.call(o, t)) return s(e.get(t));
- if (a.call(o, i)) return s(e.get(i));
- e !== o && e.get(t);
- }
- function ih(e, t = !1) {
- const n = this.__v_raw,
- r = xn(n),
- o = xn(e);
- return (
- t || (e !== o && wo(r, 'has', e), wo(r, 'has', o)),
- e === o ? n.has(e) : n.has(e) || n.has(o)
- );
- }
- function ah(e, t = !1) {
- return (
- (e = e.__v_raw), !t && wo(xn(e), 'iterate', hs), Reflect.get(e, 'size', e)
- );
- }
- function gw(e) {
- e = xn(e);
- const t = xn(this);
- return gp(t).has.call(t, e) || (t.add(e), ya(t, 'add', e, e)), this;
- }
- function mw(e, t) {
- t = xn(t);
- const n = xn(this),
- { has: r, get: o } = gp(n);
- let i = r.call(n, e);
- i || ((e = xn(e)), (i = r.call(n, e)));
- const a = o.call(n, e);
- return (
- n.set(e, t), i ? fu(t, a) && ya(n, 'set', e, t) : ya(n, 'add', e, t), this
- );
- }
- function bw(e) {
- const t = xn(this),
- { has: n, get: r } = gp(t);
- let o = n.call(t, e);
- o || ((e = xn(e)), (o = n.call(t, e))), r && r.call(t, e);
- const i = t.delete(e);
- return o && ya(t, 'delete', e, void 0), i;
- }
- function yw() {
- const e = xn(this),
- t = e.size !== 0,
- n = e.clear();
- return t && ya(e, 'clear', void 0, void 0), n;
- }
- function lh(e, t) {
- return function (r, o) {
- const i = this,
- a = i.__v_raw,
- s = xn(a),
- c = t ? M0 : e ? F0 : hu;
- return (
- !e && wo(s, 'iterate', hs), a.forEach((d, f) => r.call(o, c(d), c(f), i))
- );
- };
- }
- function sh(e, t, n) {
- return function (...r) {
- const o = this.__v_raw,
- i = xn(o),
- a = qd(i),
- s = e === 'entries' || (e === Symbol.iterator && a),
- c = e === 'keys' && a,
- d = o[e](...r),
- f = n ? M0 : t ? F0 : hu;
- return (
- !t && wo(i, 'iterate', c ? hb : hs),
- {
- next() {
- const { value: v, done: p } = d.next();
- return p
- ? { value: v, done: p }
- : { value: s ? [f(v[0]), f(v[1])] : f(v), done: p };
- },
- [Symbol.iterator]() {
- return this;
- }
- }
- );
- };
- }
- function Va(e) {
- return function (...t) {
- return e === 'delete' ? !1 : this;
- };
- }
- function p6() {
- const e = {
- get(i) {
- return oh(this, i);
- },
- get size() {
- return ah(this);
- },
- has: ih,
- add: gw,
- set: mw,
- delete: bw,
- clear: yw,
- forEach: lh(!1, !1)
- },
- t = {
- get(i) {
- return oh(this, i, !1, !0);
- },
- get size() {
- return ah(this);
- },
- has: ih,
- add: gw,
- set: mw,
- delete: bw,
- clear: yw,
- forEach: lh(!1, !0)
- },
- n = {
- get(i) {
- return oh(this, i, !0);
- },
- get size() {
- return ah(this, !0);
- },
- has(i) {
- return ih.call(this, i, !0);
- },
- add: Va('add'),
- set: Va('set'),
- delete: Va('delete'),
- clear: Va('clear'),
- forEach: lh(!0, !1)
- },
- r = {
- get(i) {
- return oh(this, i, !0, !0);
- },
- get size() {
- return ah(this, !0);
- },
- has(i) {
- return ih.call(this, i, !0);
- },
- add: Va('add'),
- set: Va('set'),
- delete: Va('delete'),
- clear: Va('clear'),
- forEach: lh(!0, !0)
- };
- return (
- ['keys', 'values', 'entries', Symbol.iterator].forEach(i => {
- (e[i] = sh(i, !1, !1)),
- (n[i] = sh(i, !0, !1)),
- (t[i] = sh(i, !1, !0)),
- (r[i] = sh(i, !0, !0));
- }),
- [e, n, t, r]
- );
- }
- const [g6, m6, b6, y6] = p6();
- function I0(e, t) {
- const n = t ? (e ? y6 : b6) : e ? m6 : g6;
- return (r, o, i) =>
- o === '__v_isReactive'
- ? !e
- : o === '__v_isReadonly'
- ? e
- : o === '__v_raw'
- ? r
- : Reflect.get(Sn(n, o) && o in r ? n : r, o, i);
- }
- const x6 = { get: I0(!1, !1) },
- w6 = { get: I0(!1, !0) },
- C6 = { get: I0(!0, !1) },
- D_ = new WeakMap(),
- F_ = new WeakMap(),
- B_ = new WeakMap(),
- S6 = new WeakMap();
- function _6(e) {
- switch (e) {
- case 'Object':
- case 'Array':
- return 1;
- case 'Map':
- case 'Set':
- case 'WeakMap':
- case 'WeakSet':
- return 2;
- default:
- return 0;
- }
- }
- function R6(e) {
- return e.__v_skip || !Object.isExtensible(e) ? 0 : _6(LA(e));
- }
- function Qi(e) {
- return kc(e) ? e : D0(e, !1, I_, x6, D_);
- }
- function P6(e) {
- return D0(e, !1, v6, w6, F_);
- }
- function Vi(e) {
- return D0(e, !0, h6, C6, B_);
- }
- function D0(e, t, n, r, o) {
- if (!rr(e) || (e.__v_raw && !(t && e.__v_isReactive))) return e;
- const i = o.get(e);
- if (i) return i;
- const a = R6(e);
- if (a === 0) return e;
- const s = new Proxy(e, a === 2 ? r : n);
- return o.set(e, s), s;
- }
- function al(e) {
- return kc(e) ? al(e.__v_raw) : !!(e && e.__v_isReactive);
- }
- function kc(e) {
- return !!(e && e.__v_isReadonly);
- }
- function Zh(e) {
- return !!(e && e.__v_isShallow);
- }
- function L_(e) {
- return al(e) || kc(e);
- }
- function xn(e) {
- const t = e && e.__v_raw;
- return t ? xn(t) : e;
- }
- function Tc(e) {
- return Gh(e, '__v_skip', !0), e;
- }
- const hu = e => (rr(e) ? Qi(e) : e),
- F0 = e => (rr(e) ? Vi(e) : e);
- function N_(e) {
- il && ci && ((e = xn(e)), E_(e.dep || (e.dep = z0())));
- }
- function H_(e, t) {
- e = xn(e);
- const n = e.dep;
- n && vb(n);
- }
- function ar(e) {
- return !!(e && e.__v_isRef === !0);
- }
- function Z(e) {
- return j_(e, !1);
- }
- function k6(e) {
- return j_(e, !0);
- }
- function j_(e, t) {
- return ar(e) ? e : new T6(e, t);
- }
- class T6 {
- constructor(t, n) {
- (this.__v_isShallow = n),
- (this.dep = void 0),
- (this.__v_isRef = !0),
- (this._rawValue = n ? t : xn(t)),
- (this._value = n ? t : hu(t));
- }
- get value() {
- return N_(this), this._value;
- }
- set value(t) {
- const n = this.__v_isShallow || Zh(t) || kc(t);
- (t = n ? t : xn(t)),
- fu(t, this._rawValue) &&
- ((this._rawValue = t), (this._value = n ? t : hu(t)), H_(this));
- }
- }
- function ll(e) {
- return ar(e) ? e.value : e;
- }
- const $6 = {
- get: (e, t, n) => ll(Reflect.get(e, t, n)),
- set: (e, t, n, r) => {
- const o = e[t];
- return ar(o) && !ar(n) ? ((o.value = n), !0) : Reflect.set(e, t, n, r);
- }
- };
- function W_(e) {
- return al(e) ? e : new Proxy(e, $6);
- }
- function O6(e) {
- const t = Gt(e) ? new Array(e.length) : {};
- for (const n in e) t[n] = U_(e, n);
- return t;
- }
- class z6 {
- constructor(t, n, r) {
- (this._object = t),
- (this._key = n),
- (this._defaultValue = r),
- (this.__v_isRef = !0);
- }
- get value() {
- const t = this._object[this._key];
- return t === void 0 ? this._defaultValue : t;
- }
- set value(t) {
- this._object[this._key] = t;
- }
- get dep() {
- return t6(xn(this._object), this._key);
- }
- }
- class E6 {
- constructor(t) {
- (this._getter = t), (this.__v_isRef = !0), (this.__v_isReadonly = !0);
- }
- get value() {
- return this._getter();
- }
- }
- function Ie(e, t, n) {
- return ar(e)
- ? e
- : tn(e)
- ? new E6(e)
- : rr(e) && arguments.length > 1
- ? U_(e, t, n)
- : Z(e);
- }
- function U_(e, t, n) {
- const r = e[t];
- return ar(r) ? r : new z6(e, t, n);
- }
- class A6 {
- constructor(t, n, r, o) {
- (this._setter = n),
- (this.dep = void 0),
- (this.__v_isRef = !0),
- (this.__v_isReadonly = !1),
- (this._dirty = !0),
- (this.effect = new E0(t, () => {
- this._dirty || ((this._dirty = !0), H_(this));
- })),
- (this.effect.computed = this),
- (this.effect.active = this._cacheable = !o),
- (this.__v_isReadonly = r);
- }
- get value() {
- const t = xn(this);
- return (
- N_(t),
- (t._dirty || !t._cacheable) &&
- ((t._dirty = !1), (t._value = t.effect.run())),
- t._value
- );
- }
- set value(t) {
- this._setter(t);
- }
- }
- function M6(e, t, n = !1) {
- let r, o;
- const i = tn(e);
- return (
- i ? ((r = e), (o = ui)) : ((r = e.get), (o = e.set)),
- new A6(r, o, i || !o, n)
- );
- }
- function sl(e, t, n, r) {
- let o;
- try {
- o = r ? e(...r) : e();
- } catch (i) {
- mp(i, t, n);
- }
- return o;
- }
- function Zo(e, t, n, r) {
- if (tn(e)) {
- const i = sl(e, t, n, r);
- return (
- i &&
- __(i) &&
- i.catch(a => {
- mp(a, t, n);
- }),
- i
- );
- }
- const o = [];
- for (let i = 0; i < e.length; i++) o.push(Zo(e[i], t, n, r));
- return o;
- }
- function mp(e, t, n, r = !0) {
- const o = t ? t.vnode : null;
- if (t) {
- let i = t.parent;
- const a = t.proxy,
- s = n;
- for (; i; ) {
- const d = i.ec;
- if (d) {
- for (let f = 0; f < d.length; f++) if (d[f](e, a, s) === !1) return;
- }
- i = i.parent;
- }
- const c = t.appContext.config.errorHandler;
- if (c) {
- sl(c, null, 10, [e, a, s]);
- return;
- }
- }
- I6(e, n, o, r);
- }
- function I6(e, t, n, r = !0) {
- console.error(e);
- }
- let vu = !1,
- pb = !1;
- const Kr = [];
- let Ii = 0;
- const Cc = [];
- let pa = null,
- rs = 0;
- const V_ = Promise.resolve();
- let B0 = null;
- function mn(e) {
- const t = B0 || V_;
- return e ? t.then(this ? e.bind(this) : e) : t;
- }
- function D6(e) {
- let t = Ii + 1,
- n = Kr.length;
- for (; t < n; ) {
- const r = (t + n) >>> 1;
- pu(Kr[r]) < e ? (t = r + 1) : (n = r);
- }
- return t;
- }
- function L0(e) {
- (!Kr.length || !Kr.includes(e, vu && e.allowRecurse ? Ii + 1 : Ii)) &&
- (e.id == null ? Kr.push(e) : Kr.splice(D6(e.id), 0, e), K_());
- }
- function K_() {
- !vu && !pb && ((pb = !0), (B0 = V_.then(Y_)));
- }
- function F6(e) {
- const t = Kr.indexOf(e);
- t > Ii && Kr.splice(t, 1);
- }
- function B6(e) {
- Gt(e)
- ? Cc.push(...e)
- : (!pa || !pa.includes(e, e.allowRecurse ? rs + 1 : rs)) && Cc.push(e),
- K_();
- }
- function xw(e, t = vu ? Ii + 1 : 0) {
- for (; t < Kr.length; t++) {
- const n = Kr[t];
- n && n.pre && (Kr.splice(t, 1), t--, n());
- }
- }
- function q_(e) {
- if (Cc.length) {
- const t = [...new Set(Cc)];
- if (((Cc.length = 0), pa)) {
- pa.push(...t);
- return;
- }
- for (pa = t, pa.sort((n, r) => pu(n) - pu(r)), rs = 0; rs < pa.length; rs++)
- pa[rs]();
- (pa = null), (rs = 0);
- }
- }
- const pu = e => (e.id == null ? 1 / 0 : e.id),
- L6 = (e, t) => {
- const n = pu(e) - pu(t);
- if (n === 0) {
- if (e.pre && !t.pre) return -1;
- if (t.pre && !e.pre) return 1;
- }
- return n;
- };
- function Y_(e) {
- (pb = !1), (vu = !0), Kr.sort(L6);
- const t = ui;
- try {
- for (Ii = 0; Ii < Kr.length; Ii++) {
- const n = Kr[Ii];
- n && n.active !== !1 && sl(n, null, 14);
- }
- } finally {
- (Ii = 0),
- (Kr.length = 0),
- q_(),
- (vu = !1),
- (B0 = null),
- (Kr.length || Cc.length) && Y_();
- }
- }
- function N6(e, t, ...n) {
- if (e.isUnmounted) return;
- const r = e.vnode.props || Zn;
- let o = n;
- const i = t.startsWith('update:'),
- a = i && t.slice(7);
- if (a && a in r) {
- const f = `${a === 'modelValue' ? 'model' : a}Modifiers`,
- { number: v, trim: p } = r[f] || Zn;
- p && (o = n.map(m => (_r(m) ? m.trim() : m))), v && (o = n.map(WA));
- }
- let s,
- c = r[(s = em(t))] || r[(s = em(Ui(t)))];
- !c && i && (c = r[(s = em(Uc(t)))]), c && Zo(c, e, 6, o);
- const d = r[s + 'Once'];
- if (d) {
- if (!e.emitted) e.emitted = {};
- else if (e.emitted[s]) return;
- (e.emitted[s] = !0), Zo(d, e, 6, o);
- }
- }
- function G_(e, t, n = !1) {
- const r = t.emitsCache,
- o = r.get(e);
- if (o !== void 0) return o;
- const i = e.emits;
- let a = {},
- s = !1;
- if (!tn(e)) {
- const c = d => {
- const f = G_(d, t, !0);
- f && ((s = !0), gr(a, f));
- };
- !n && t.mixins.length && t.mixins.forEach(c),
- e.extends && c(e.extends),
- e.mixins && e.mixins.forEach(c);
- }
- return !i && !s
- ? (rr(e) && r.set(e, null), null)
- : (Gt(i) ? i.forEach(c => (a[c] = null)) : gr(a, i),
- rr(e) && r.set(e, a),
- a);
- }
- function bp(e, t) {
- return !e || !up(t)
- ? !1
- : ((t = t.slice(2).replace(/Once$/, '')),
- Sn(e, t[0].toLowerCase() + t.slice(1)) || Sn(e, Uc(t)) || Sn(e, t));
- }
- let zr = null,
- X_ = null;
- function Qh(e) {
- const t = zr;
- return (zr = e), (X_ = (e && e.type.__scopeId) || null), t;
- }
- function H6(e, t = zr, n) {
- if (!t || e._n) return e;
- const r = (...o) => {
- r._d && Aw(-1);
- const i = Qh(t);
- let a;
- try {
- a = e(...o);
- } finally {
- Qh(i), r._d && Aw(1);
- }
- return a;
- };
- return (r._n = !0), (r._c = !0), (r._d = !0), r;
- }
- function nm(e) {
- const {
- type: t,
- vnode: n,
- proxy: r,
- withProxy: o,
- props: i,
- propsOptions: [a],
- slots: s,
- attrs: c,
- emit: d,
- render: f,
- renderCache: v,
- data: p,
- setupState: m,
- ctx: g,
- inheritAttrs: w
- } = e;
- let x, y;
- const C = Qh(e);
- try {
- if (n.shapeFlag & 4) {
- const S = o || r;
- (x = Ei(f.call(S, S, v, i, m, p, g))), (y = c);
- } else {
- const S = t;
- (x = Ei(
- S.length > 1 ? S(i, { attrs: c, slots: s, emit: d }) : S(i, null)
- )),
- (y = t.props ? c : j6(c));
- }
- } catch (S) {
- (Zd.length = 0), mp(S, e, 1), (x = hr(Eo));
- }
- let R = x;
- if (y && w !== !1) {
- const S = Object.keys(y),
- { shapeFlag: _ } = R;
- S.length && _ & 7 && (a && S.some(P0) && (y = W6(y, a)), (R = Ao(R, y)));
- }
- return (
- n.dirs && ((R = Ao(R)), (R.dirs = R.dirs ? R.dirs.concat(n.dirs) : n.dirs)),
- n.transition && (R.transition = n.transition),
- (x = R),
- Qh(C),
- x
- );
- }
- const j6 = e => {
- let t;
- for (const n in e)
- (n === 'class' || n === 'style' || up(n)) && ((t || (t = {}))[n] = e[n]);
- return t;
- },
- W6 = (e, t) => {
- const n = {};
- for (const r in e) (!P0(r) || !(r.slice(9) in t)) && (n[r] = e[r]);
- return n;
- };
- function U6(e, t, n) {
- const { props: r, children: o, component: i } = e,
- { props: a, children: s, patchFlag: c } = t,
- d = i.emitsOptions;
- if (t.dirs || t.transition) return !0;
- if (n && c >= 0) {
- if (c & 1024) return !0;
- if (c & 16) return r ? ww(r, a, d) : !!a;
- if (c & 8) {
- const f = t.dynamicProps;
- for (let v = 0; v < f.length; v++) {
- const p = f[v];
- if (a[p] !== r[p] && !bp(d, p)) return !0;
- }
- }
- } else
- return (o || s) && (!s || !s.$stable)
- ? !0
- : r === a
- ? !1
- : r
- ? a
- ? ww(r, a, d)
- : !0
- : !!a;
- return !1;
- }
- function ww(e, t, n) {
- const r = Object.keys(t);
- if (r.length !== Object.keys(e).length) return !0;
- for (let o = 0; o < r.length; o++) {
- const i = r[o];
- if (t[i] !== e[i] && !bp(n, i)) return !0;
- }
- return !1;
- }
- function V6({ vnode: e, parent: t }, n) {
- for (; t && t.subTree === e; ) ((e = t.vnode).el = n), (t = t.parent);
- }
- const K6 = e => e.__isSuspense;
- function q6(e, t) {
- t && t.pendingBranch
- ? Gt(e)
- ? t.effects.push(...e)
- : t.effects.push(e)
- : B6(e);
- }
- function Bn(e, t) {
- return N0(e, null, t);
- }
- const ch = {};
- function $t(e, t, n) {
- return N0(e, t, n);
- }
- function N0(
- e,
- t,
- { immediate: n, deep: r, flush: o, onTrack: i, onTrigger: a } = Zn
- ) {
- var s;
- const c = T_() === ((s = Sr) == null ? void 0 : s.scope) ? Sr : null;
- let d,
- f = !1,
- v = !1;
- if (
- (ar(e)
- ? ((d = () => e.value), (f = Zh(e)))
- : al(e)
- ? ((d = () => e), (r = !0))
- : Gt(e)
- ? ((v = !0),
- (f = e.some(S => al(S) || Zh(S))),
- (d = () =>
- e.map(S => {
- if (ar(S)) return S.value;
- if (al(S)) return ss(S);
- if (tn(S)) return sl(S, c, 2);
- })))
- : tn(e)
- ? t
- ? (d = () => sl(e, c, 2))
- : (d = () => {
- if (!(c && c.isUnmounted)) return p && p(), Zo(e, c, 3, [m]);
- })
- : (d = ui),
- t && r)
- ) {
- const S = d;
- d = () => ss(S());
- }
- let p,
- m = S => {
- p = C.onStop = () => {
- sl(S, c, 4);
- };
- },
- g;
- if (Cu)
- if (
- ((m = ui),
- t ? n && Zo(t, c, 3, [d(), v ? [] : void 0, m]) : d(),
- o === 'sync')
- ) {
- const S = NM();
- g = S.__watcherHandles || (S.__watcherHandles = []);
- } else return ui;
- let w = v ? new Array(e.length).fill(ch) : ch;
- const x = () => {
- if (C.active)
- if (t) {
- const S = C.run();
- (r || f || (v ? S.some((_, P) => fu(_, w[P])) : fu(S, w))) &&
- (p && p(),
- Zo(t, c, 3, [S, w === ch ? void 0 : v && w[0] === ch ? [] : w, m]),
- (w = S));
- } else C.run();
- };
- x.allowRecurse = !!t;
- let y;
- o === 'sync'
- ? (y = x)
- : o === 'post'
- ? (y = () => mo(x, c && c.suspense))
- : ((x.pre = !0), c && (x.id = c.uid), (y = () => L0(x)));
- const C = new E0(d, y);
- t
- ? n
- ? x()
- : (w = C.run())
- : o === 'post'
- ? mo(C.run.bind(C), c && c.suspense)
- : C.run();
- const R = () => {
- C.stop(), c && c.scope && k0(c.scope.effects, C);
- };
- return g && g.push(R), R;
- }
- function Y6(e, t, n) {
- const r = this.proxy,
- o = _r(e) ? (e.includes('.') ? Z_(r, e) : () => r[e]) : e.bind(r, r);
- let i;
- tn(t) ? (i = t) : ((i = t.handler), (n = t));
- const a = Sr;
- $c(this);
- const s = N0(o, i.bind(r), n);
- return a ? $c(a) : vs(), s;
- }
- function Z_(e, t) {
- const n = t.split('.');
- return () => {
- let r = e;
- for (let o = 0; o < n.length && r; o++) r = r[n[o]];
- return r;
- };
- }
- function ss(e, t) {
- if (!rr(e) || e.__v_skip || ((t = t || new Set()), t.has(e))) return e;
- if ((t.add(e), ar(e))) ss(e.value, t);
- else if (Gt(e)) for (let n = 0; n < e.length; n++) ss(e[n], t);
- else if (FA(e) || qd(e))
- e.forEach(n => {
- ss(n, t);
- });
- else if (NA(e)) for (const n in e) ss(e[n], t);
- return e;
- }
- function Er(e, t) {
- const n = zr;
- if (n === null) return e;
- const r = Sp(n) || n.proxy,
- o = e.dirs || (e.dirs = []);
- for (let i = 0; i < t.length; i++) {
- let [a, s, c, d = Zn] = t[i];
- a &&
- (tn(a) && (a = { mounted: a, updated: a }),
- a.deep && ss(s),
- o.push({
- dir: a,
- instance: r,
- value: s,
- oldValue: void 0,
- arg: c,
- modifiers: d
- }));
- }
- return e;
- }
- function ql(e, t, n, r) {
- const o = e.dirs,
- i = t && t.dirs;
- for (let a = 0; a < o.length; a++) {
- const s = o[a];
- i && (s.oldValue = i[a].value);
- let c = s.dir[r];
- c && (Vc(), Zo(c, n, 8, [e.el, s, e, t]), Kc());
- }
- }
- function Q_() {
- const e = {
- isMounted: !1,
- isLeaving: !1,
- isUnmounting: !1,
- leavingVNodes: new Map()
- };
- return (
- Hn(() => {
- e.isMounted = !0;
- }),
- qn(() => {
- e.isUnmounting = !0;
- }),
- e
- );
- }
- const qo = [Function, Array],
- J_ = {
- mode: String,
- appear: Boolean,
- persisted: Boolean,
- onBeforeEnter: qo,
- onEnter: qo,
- onAfterEnter: qo,
- onEnterCancelled: qo,
- onBeforeLeave: qo,
- onLeave: qo,
- onAfterLeave: qo,
- onLeaveCancelled: qo,
- onBeforeAppear: qo,
- onAppear: qo,
- onAfterAppear: qo,
- onAppearCancelled: qo
- },
- G6 = {
- name: 'BaseTransition',
- props: J_,
- setup(e, { slots: t }) {
- const n = Ra(),
- r = Q_();
- let o;
- return () => {
- const i = t.default && H0(t.default(), !0);
- if (!i || !i.length) return;
- let a = i[0];
- if (i.length > 1) {
- for (const w of i)
- if (w.type !== Eo) {
- a = w;
- break;
- }
- }
- const s = xn(e),
- { mode: c } = s;
- if (r.isLeaving) return rm(a);
- const d = Cw(a);
- if (!d) return rm(a);
- const f = gu(d, s, r, n);
- mu(d, f);
- const v = n.subTree,
- p = v && Cw(v);
- let m = !1;
- const { getTransitionKey: g } = d.type;
- if (g) {
- const w = g();
- o === void 0 ? (o = w) : w !== o && ((o = w), (m = !0));
- }
- if (p && p.type !== Eo && (!os(d, p) || m)) {
- const w = gu(p, s, r, n);
- if ((mu(p, w), c === 'out-in'))
- return (
- (r.isLeaving = !0),
- (w.afterLeave = () => {
- (r.isLeaving = !1), n.update.active !== !1 && n.update();
- }),
- rm(a)
- );
- c === 'in-out' &&
- d.type !== Eo &&
- (w.delayLeave = (x, y, C) => {
- const R = eR(r, p);
- (R[String(p.key)] = p),
- (x._leaveCb = () => {
- y(), (x._leaveCb = void 0), delete f.delayedLeave;
- }),
- (f.delayedLeave = C);
- });
- }
- return a;
- };
- }
- },
- X6 = G6;
- function eR(e, t) {
- const { leavingVNodes: n } = e;
- let r = n.get(t.type);
- return r || ((r = Object.create(null)), n.set(t.type, r)), r;
- }
- function gu(e, t, n, r) {
- const {
- appear: o,
- mode: i,
- persisted: a = !1,
- onBeforeEnter: s,
- onEnter: c,
- onAfterEnter: d,
- onEnterCancelled: f,
- onBeforeLeave: v,
- onLeave: p,
- onAfterLeave: m,
- onLeaveCancelled: g,
- onBeforeAppear: w,
- onAppear: x,
- onAfterAppear: y,
- onAppearCancelled: C
- } = t,
- R = String(e.key),
- S = eR(n, e),
- _ = (E, z) => {
- E && Zo(E, r, 9, z);
- },
- P = (E, z) => {
- const k = z[1];
- _(E, z),
- Gt(E) ? E.every(M => M.length <= 1) && k() : E.length <= 1 && k();
- },
- T = {
- mode: i,
- persisted: a,
- beforeEnter(E) {
- let z = s;
- if (!n.isMounted)
- if (o) z = w || s;
- else return;
- E._leaveCb && E._leaveCb(!0);
- const k = S[R];
- k && os(e, k) && k.el._leaveCb && k.el._leaveCb(), _(z, [E]);
- },
- enter(E) {
- let z = c,
- k = d,
- M = f;
- if (!n.isMounted)
- if (o) (z = x || c), (k = y || d), (M = C || f);
- else return;
- let A = !1;
- const D = (E._enterCb = L => {
- A ||
- ((A = !0),
- L ? _(M, [E]) : _(k, [E]),
- T.delayedLeave && T.delayedLeave(),
- (E._enterCb = void 0));
- });
- z ? P(z, [E, D]) : D();
- },
- leave(E, z) {
- const k = String(e.key);
- if ((E._enterCb && E._enterCb(!0), n.isUnmounting)) return z();
- _(v, [E]);
- let M = !1;
- const A = (E._leaveCb = D => {
- M ||
- ((M = !0),
- z(),
- D ? _(g, [E]) : _(m, [E]),
- (E._leaveCb = void 0),
- S[k] === e && delete S[k]);
- });
- (S[k] = e), p ? P(p, [E, A]) : A();
- },
- clone(E) {
- return gu(E, t, n, r);
- }
- };
- return T;
- }
- function rm(e) {
- if (yp(e)) return (e = Ao(e)), (e.children = null), e;
- }
- function Cw(e) {
- return yp(e) ? (e.children ? e.children[0] : void 0) : e;
- }
- function mu(e, t) {
- e.shapeFlag & 6 && e.component
- ? mu(e.component.subTree, t)
- : e.shapeFlag & 128
- ? ((e.ssContent.transition = t.clone(e.ssContent)),
- (e.ssFallback.transition = t.clone(e.ssFallback)))
- : (e.transition = t);
- }
- function H0(e, t = !1, n) {
- let r = [],
- o = 0;
- for (let i = 0; i < e.length; i++) {
- let a = e[i];
- const s = n == null ? a.key : String(n) + String(a.key != null ? a.key : i);
- a.type === on
- ? (a.patchFlag & 128 && o++, (r = r.concat(H0(a.children, t, s))))
- : (t || a.type !== Eo) && r.push(s != null ? Ao(a, { key: s }) : a);
- }
- if (o > 1) for (let i = 0; i < r.length; i++) r[i].patchFlag = -2;
- return r;
- }
- function ke(e, t) {
- return tn(e) ? (() => gr({ name: e.name }, t, { setup: e }))() : e;
- }
- const Yd = e => !!e.type.__asyncLoader,
- yp = e => e.type.__isKeepAlive;
- function xp(e, t) {
- tR(e, 'a', t);
- }
- function qc(e, t) {
- tR(e, 'da', t);
- }
- function tR(e, t, n = Sr) {
- const r =
- e.__wdc ||
- (e.__wdc = () => {
- let o = n;
- for (; o; ) {
- if (o.isDeactivated) return;
- o = o.parent;
- }
- return e();
- });
- if ((wp(t, r, n), n)) {
- let o = n.parent;
- for (; o && o.parent; )
- yp(o.parent.vnode) && Z6(r, t, n, o), (o = o.parent);
- }
- }
- function Z6(e, t, n, r) {
- const o = wp(t, e, r, !0);
- Nu(() => {
- k0(r[t], o);
- }, n);
- }
- function wp(e, t, n = Sr, r = !1) {
- if (n) {
- const o = n[e] || (n[e] = []),
- i =
- t.__weh ||
- (t.__weh = (...a) => {
- if (n.isUnmounted) return;
- Vc(), $c(n);
- const s = Zo(t, n, e, a);
- return vs(), Kc(), s;
- });
- return r ? o.unshift(i) : o.push(i), i;
- }
- }
- const _a =
- e =>
- (t, n = Sr) =>
- (!Cu || e === 'sp') && wp(e, (...r) => t(...r), n),
- yl = _a('bm'),
- Hn = _a('m'),
- Q6 = _a('bu'),
- nR = _a('u'),
- qn = _a('bum'),
- Nu = _a('um'),
- J6 = _a('sp'),
- eM = _a('rtg'),
- tM = _a('rtc');
- function nM(e, t = Sr) {
- wp('ec', e, t);
- }
- const rR = 'components';
- function rle(e, t) {
- return oM(rR, e, !0, t) || e;
- }
- const rM = Symbol.for('v-ndc');
- function oM(e, t, n = !0, r = !1) {
- const o = zr || Sr;
- if (o) {
- const i = o.type;
- if (e === rR) {
- const s = FM(i, !1);
- if (s && (s === t || s === Ui(t) || s === vp(Ui(t)))) return i;
- }
- const a = Sw(o[e] || i[e], t) || Sw(o.appContext[e], t);
- return !a && r ? i : a;
- }
- }
- function Sw(e, t) {
- return e && (e[t] || e[Ui(t)] || e[vp(Ui(t))]);
- }
- function j0(e, t, n = {}, r, o) {
- if (zr.isCE || (zr.parent && Yd(zr.parent) && zr.parent.isCE))
- return t !== 'default' && (n.name = t), hr('slot', n, r && r());
- let i = e[t];
- i && i._c && (i._d = !1), RM();
- const a = i && oR(i(n)),
- s = kM(
- on,
- { key: n.key || (a && a.key) || `_${t}` },
- a || (r ? r() : []),
- a && e._ === 1 ? 64 : -2
- );
- return (
- !o && s.scopeId && (s.slotScopeIds = [s.scopeId + '-s']),
- i && i._c && (i._d = !0),
- s
- );
- }
- function oR(e) {
- return e.some(t =>
- xu(t) ? !(t.type === Eo || (t.type === on && !oR(t.children))) : !0
- )
- ? e
- : null;
- }
- const gb = e => (e ? (gR(e) ? Sp(e) || e.proxy : gb(e.parent)) : null),
- Gd = gr(Object.create(null), {
- $: e => e,
- $el: e => e.vnode.el,
- $data: e => e.data,
- $props: e => e.props,
- $attrs: e => e.attrs,
- $slots: e => e.slots,
- $refs: e => e.refs,
- $parent: e => gb(e.parent),
- $root: e => gb(e.root),
- $emit: e => e.emit,
- $options: e => W0(e),
- $forceUpdate: e => e.f || (e.f = () => L0(e.update)),
- $nextTick: e => e.n || (e.n = mn.bind(e.proxy)),
- $watch: e => Y6.bind(e)
- }),
- om = (e, t) => e !== Zn && !e.__isScriptSetup && Sn(e, t),
- iM = {
- get({ _: e }, t) {
- const {
- ctx: n,
- setupState: r,
- data: o,
- props: i,
- accessCache: a,
- type: s,
- appContext: c
- } = e;
- let d;
- if (t[0] !== '$') {
- const m = a[t];
- if (m !== void 0)
- switch (m) {
- case 1:
- return r[t];
- case 2:
- return o[t];
- case 4:
- return n[t];
- case 3:
- return i[t];
- }
- else {
- if (om(r, t)) return (a[t] = 1), r[t];
- if (o !== Zn && Sn(o, t)) return (a[t] = 2), o[t];
- if ((d = e.propsOptions[0]) && Sn(d, t)) return (a[t] = 3), i[t];
- if (n !== Zn && Sn(n, t)) return (a[t] = 4), n[t];
- mb && (a[t] = 0);
- }
- }
- const f = Gd[t];
- let v, p;
- if (f) return t === '$attrs' && wo(e, 'get', t), f(e);
- if ((v = s.__cssModules) && (v = v[t])) return v;
- if (n !== Zn && Sn(n, t)) return (a[t] = 4), n[t];
- if (((p = c.config.globalProperties), Sn(p, t))) return p[t];
- },
- set({ _: e }, t, n) {
- const { data: r, setupState: o, ctx: i } = e;
- return om(o, t)
- ? ((o[t] = n), !0)
- : r !== Zn && Sn(r, t)
- ? ((r[t] = n), !0)
- : Sn(e.props, t) || (t[0] === '$' && t.slice(1) in e)
- ? !1
- : ((i[t] = n), !0);
- },
- has(
- {
- _: {
- data: e,
- setupState: t,
- accessCache: n,
- ctx: r,
- appContext: o,
- propsOptions: i
- }
- },
- a
- ) {
- let s;
- return (
- !!n[a] ||
- (e !== Zn && Sn(e, a)) ||
- om(t, a) ||
- ((s = i[0]) && Sn(s, a)) ||
- Sn(r, a) ||
- Sn(Gd, a) ||
- Sn(o.config.globalProperties, a)
- );
- },
- defineProperty(e, t, n) {
- return (
- n.get != null
- ? (e._.accessCache[t] = 0)
- : Sn(n, 'value') && this.set(e, t, n.value, null),
- Reflect.defineProperty(e, t, n)
- );
- }
- };
- function _w(e) {
- return Gt(e) ? e.reduce((t, n) => ((t[n] = null), t), {}) : e;
- }
- let mb = !0;
- function aM(e) {
- const t = W0(e),
- n = e.proxy,
- r = e.ctx;
- (mb = !1), t.beforeCreate && Rw(t.beforeCreate, e, 'bc');
- const {
- data: o,
- computed: i,
- methods: a,
- watch: s,
- provide: c,
- inject: d,
- created: f,
- beforeMount: v,
- mounted: p,
- beforeUpdate: m,
- updated: g,
- activated: w,
- deactivated: x,
- beforeDestroy: y,
- beforeUnmount: C,
- destroyed: R,
- unmounted: S,
- render: _,
- renderTracked: P,
- renderTriggered: T,
- errorCaptured: E,
- serverPrefetch: z,
- expose: k,
- inheritAttrs: M,
- components: A,
- directives: D,
- filters: L
- } = t;
- if ((d && lM(d, r, null), a))
- for (const q in a) {
- const X = a[q];
- tn(X) && (r[q] = X.bind(n));
- }
- if (o) {
- const q = o.call(n, n);
- rr(q) && (e.data = Qi(q));
- }
- if (((mb = !0), i))
- for (const q in i) {
- const X = i[q],
- te = tn(X) ? X.bind(n, n) : tn(X.get) ? X.get.bind(n, n) : ui,
- G = !tn(X) && tn(X.set) ? X.set.bind(n) : ui,
- Q = I({ get: te, set: G });
- Object.defineProperty(r, q, {
- enumerable: !0,
- configurable: !0,
- get: () => Q.value,
- set: re => (Q.value = re)
- });
- }
- if (s) for (const q in s) iR(s[q], r, n, q);
- if (c) {
- const q = tn(c) ? c.call(n) : c;
- Reflect.ownKeys(q).forEach(X => {
- Rt(X, q[X]);
- });
- }
- f && Rw(f, e, 'c');
- function B(q, X) {
- Gt(X) ? X.forEach(te => q(te.bind(n))) : X && q(X.bind(n));
- }
- if (
- (B(yl, v),
- B(Hn, p),
- B(Q6, m),
- B(nR, g),
- B(xp, w),
- B(qc, x),
- B(nM, E),
- B(tM, P),
- B(eM, T),
- B(qn, C),
- B(Nu, S),
- B(J6, z),
- Gt(k))
- )
- if (k.length) {
- const q = e.exposed || (e.exposed = {});
- k.forEach(X => {
- Object.defineProperty(q, X, {
- get: () => n[X],
- set: te => (n[X] = te)
- });
- });
- } else e.exposed || (e.exposed = {});
- _ && e.render === ui && (e.render = _),
- M != null && (e.inheritAttrs = M),
- A && (e.components = A),
- D && (e.directives = D);
- }
- function lM(e, t, n = ui) {
- Gt(e) && (e = bb(e));
- for (const r in e) {
- const o = e[r];
- let i;
- rr(o)
- ? 'default' in o
- ? (i = Ze(o.from || r, o.default, !0))
- : (i = Ze(o.from || r))
- : (i = Ze(o)),
- ar(i)
- ? Object.defineProperty(t, r, {
- enumerable: !0,
- configurable: !0,
- get: () => i.value,
- set: a => (i.value = a)
- })
- : (t[r] = i);
- }
- }
- function Rw(e, t, n) {
- Zo(Gt(e) ? e.map(r => r.bind(t.proxy)) : e.bind(t.proxy), t, n);
- }
- function iR(e, t, n, r) {
- const o = r.includes('.') ? Z_(n, r) : () => n[r];
- if (_r(e)) {
- const i = t[e];
- tn(i) && $t(o, i);
- } else if (tn(e)) $t(o, e.bind(n));
- else if (rr(e))
- if (Gt(e)) e.forEach(i => iR(i, t, n, r));
- else {
- const i = tn(e.handler) ? e.handler.bind(n) : t[e.handler];
- tn(i) && $t(o, i, e);
- }
- }
- function W0(e) {
- const t = e.type,
- { mixins: n, extends: r } = t,
- {
- mixins: o,
- optionsCache: i,
- config: { optionMergeStrategies: a }
- } = e.appContext,
- s = i.get(t);
- let c;
- return (
- s
- ? (c = s)
- : !o.length && !n && !r
- ? (c = t)
- : ((c = {}), o.length && o.forEach(d => Jh(c, d, a, !0)), Jh(c, t, a)),
- rr(t) && i.set(t, c),
- c
- );
- }
- function Jh(e, t, n, r = !1) {
- const { mixins: o, extends: i } = t;
- i && Jh(e, i, n, !0), o && o.forEach(a => Jh(e, a, n, !0));
- for (const a in t)
- if (!(r && a === 'expose')) {
- const s = sM[a] || (n && n[a]);
- e[a] = s ? s(e[a], t[a]) : t[a];
- }
- return e;
- }
- const sM = {
- data: Pw,
- props: kw,
- emits: kw,
- methods: Nd,
- computed: Nd,
- beforeCreate: ro,
- created: ro,
- beforeMount: ro,
- mounted: ro,
- beforeUpdate: ro,
- updated: ro,
- beforeDestroy: ro,
- beforeUnmount: ro,
- destroyed: ro,
- unmounted: ro,
- activated: ro,
- deactivated: ro,
- errorCaptured: ro,
- serverPrefetch: ro,
- components: Nd,
- directives: Nd,
- watch: dM,
- provide: Pw,
- inject: cM
- };
- function Pw(e, t) {
- return t
- ? e
- ? function () {
- return gr(
- tn(e) ? e.call(this, this) : e,
- tn(t) ? t.call(this, this) : t
- );
- }
- : t
- : e;
- }
- function cM(e, t) {
- return Nd(bb(e), bb(t));
- }
- function bb(e) {
- if (Gt(e)) {
- const t = {};
- for (let n = 0; n < e.length; n++) t[e[n]] = e[n];
- return t;
- }
- return e;
- }
- function ro(e, t) {
- return e ? [...new Set([].concat(e, t))] : t;
- }
- function Nd(e, t) {
- return e ? gr(Object.create(null), e, t) : t;
- }
- function kw(e, t) {
- return e
- ? Gt(e) && Gt(t)
- ? [...new Set([...e, ...t])]
- : gr(Object.create(null), _w(e), _w(t ?? {}))
- : t;
- }
- function dM(e, t) {
- if (!e) return t;
- if (!t) return e;
- const n = gr(Object.create(null), e);
- for (const r in t) n[r] = ro(e[r], t[r]);
- return n;
- }
- function aR() {
- return {
- app: null,
- config: {
- isNativeTag: MA,
- performance: !1,
- globalProperties: {},
- optionMergeStrategies: {},
- errorHandler: void 0,
- warnHandler: void 0,
- compilerOptions: {}
- },
- mixins: [],
- components: {},
- directives: {},
- provides: Object.create(null),
- optionsCache: new WeakMap(),
- propsCache: new WeakMap(),
- emitsCache: new WeakMap()
- };
- }
- let uM = 0;
- function fM(e, t) {
- return function (r, o = null) {
- tn(r) || (r = gr({}, r)), o != null && !rr(o) && (o = null);
- const i = aR(),
- a = new Set();
- let s = !1;
- const c = (i.app = {
- _uid: uM++,
- _component: r,
- _props: o,
- _container: null,
- _context: i,
- _instance: null,
- version: HM,
- get config() {
- return i.config;
- },
- set config(d) {},
- use(d, ...f) {
- return (
- a.has(d) ||
- (d && tn(d.install)
- ? (a.add(d), d.install(c, ...f))
- : tn(d) && (a.add(d), d(c, ...f))),
- c
- );
- },
- mixin(d) {
- return i.mixins.includes(d) || i.mixins.push(d), c;
- },
- component(d, f) {
- return f ? ((i.components[d] = f), c) : i.components[d];
- },
- directive(d, f) {
- return f ? ((i.directives[d] = f), c) : i.directives[d];
- },
- mount(d, f, v) {
- if (!s) {
- const p = hr(r, o);
- return (
- (p.appContext = i),
- f && t ? t(p, d) : e(p, d, v),
- (s = !0),
- (c._container = d),
- (d.__vue_app__ = c),
- Sp(p.component) || p.component.proxy
- );
- }
- },
- unmount() {
- s && (e(null, c._container), delete c._container.__vue_app__);
- },
- provide(d, f) {
- return (i.provides[d] = f), c;
- },
- runWithContext(d) {
- bu = c;
- try {
- return d();
- } finally {
- bu = null;
- }
- }
- });
- return c;
- };
- }
- let bu = null;
- function Rt(e, t) {
- if (Sr) {
- let n = Sr.provides;
- const r = Sr.parent && Sr.parent.provides;
- r === n && (n = Sr.provides = Object.create(r)), (n[e] = t);
- }
- }
- function Ze(e, t, n = !1) {
- const r = Sr || zr;
- if (r || bu) {
- const o = r
- ? r.parent == null
- ? r.vnode.appContext && r.vnode.appContext.provides
- : r.parent.provides
- : bu._context.provides;
- if (o && e in o) return o[e];
- if (arguments.length > 1) return n && tn(t) ? t.call(r && r.proxy) : t;
- }
- }
- function hM() {
- return !!(Sr || zr || bu);
- }
- function vM(e, t, n, r = !1) {
- const o = {},
- i = {};
- Gh(i, Cp, 1), (e.propsDefaults = Object.create(null)), lR(e, t, o, i);
- for (const a in e.propsOptions[0]) a in o || (o[a] = void 0);
- n ? (e.props = r ? o : P6(o)) : e.type.props ? (e.props = o) : (e.props = i),
- (e.attrs = i);
- }
- function pM(e, t, n, r) {
- const {
- props: o,
- attrs: i,
- vnode: { patchFlag: a }
- } = e,
- s = xn(o),
- [c] = e.propsOptions;
- let d = !1;
- if ((r || a > 0) && !(a & 16)) {
- if (a & 8) {
- const f = e.vnode.dynamicProps;
- for (let v = 0; v < f.length; v++) {
- let p = f[v];
- if (bp(e.emitsOptions, p)) continue;
- const m = t[p];
- if (c)
- if (Sn(i, p)) m !== i[p] && ((i[p] = m), (d = !0));
- else {
- const g = Ui(p);
- o[g] = yb(c, s, g, m, e, !1);
- }
- else m !== i[p] && ((i[p] = m), (d = !0));
- }
- }
- } else {
- lR(e, t, o, i) && (d = !0);
- let f;
- for (const v in s)
- (!t || (!Sn(t, v) && ((f = Uc(v)) === v || !Sn(t, f)))) &&
- (c
- ? n &&
- (n[v] !== void 0 || n[f] !== void 0) &&
- (o[v] = yb(c, s, v, void 0, e, !0))
- : delete o[v]);
- if (i !== s)
- for (const v in i) (!t || !Sn(t, v)) && (delete i[v], (d = !0));
- }
- d && ya(e, 'set', '$attrs');
- }
- function lR(e, t, n, r) {
- const [o, i] = e.propsOptions;
- let a = !1,
- s;
- if (t)
- for (let c in t) {
- if (Bh(c)) continue;
- const d = t[c];
- let f;
- o && Sn(o, (f = Ui(c)))
- ? !i || !i.includes(f)
- ? (n[f] = d)
- : ((s || (s = {}))[f] = d)
- : bp(e.emitsOptions, c) ||
- ((!(c in r) || d !== r[c]) && ((r[c] = d), (a = !0)));
- }
- if (i) {
- const c = xn(n),
- d = s || Zn;
- for (let f = 0; f < i.length; f++) {
- const v = i[f];
- n[v] = yb(o, c, v, d[v], e, !Sn(d, v));
- }
- }
- return a;
- }
- function yb(e, t, n, r, o, i) {
- const a = e[n];
- if (a != null) {
- const s = Sn(a, 'default');
- if (s && r === void 0) {
- const c = a.default;
- if (a.type !== Function && !a.skipFactory && tn(c)) {
- const { propsDefaults: d } = o;
- n in d ? (r = d[n]) : ($c(o), (r = d[n] = c.call(null, t)), vs());
- } else r = c;
- }
- a[0] &&
- (i && !s ? (r = !1) : a[1] && (r === '' || r === Uc(n)) && (r = !0));
- }
- return r;
- }
- function sR(e, t, n = !1) {
- const r = t.propsCache,
- o = r.get(e);
- if (o) return o;
- const i = e.props,
- a = {},
- s = [];
- let c = !1;
- if (!tn(e)) {
- const f = v => {
- c = !0;
- const [p, m] = sR(v, t, !0);
- gr(a, p), m && s.push(...m);
- };
- !n && t.mixins.length && t.mixins.forEach(f),
- e.extends && f(e.extends),
- e.mixins && e.mixins.forEach(f);
- }
- if (!i && !c) return rr(e) && r.set(e, wc), wc;
- if (Gt(i))
- for (let f = 0; f < i.length; f++) {
- const v = Ui(i[f]);
- Tw(v) && (a[v] = Zn);
- }
- else if (i)
- for (const f in i) {
- const v = Ui(f);
- if (Tw(v)) {
- const p = i[f],
- m = (a[v] = Gt(p) || tn(p) ? { type: p } : gr({}, p));
- if (m) {
- const g = zw(Boolean, m.type),
- w = zw(String, m.type);
- (m[0] = g > -1),
- (m[1] = w < 0 || g < w),
- (g > -1 || Sn(m, 'default')) && s.push(v);
- }
- }
- }
- const d = [a, s];
- return rr(e) && r.set(e, d), d;
- }
- function Tw(e) {
- return e[0] !== '$';
- }
- function $w(e) {
- const t = e && e.toString().match(/^\s*(function|class) (\w+)/);
- return t ? t[2] : e === null ? 'null' : '';
- }
- function Ow(e, t) {
- return $w(e) === $w(t);
- }
- function zw(e, t) {
- return Gt(t) ? t.findIndex(n => Ow(n, e)) : tn(t) && Ow(t, e) ? 0 : -1;
- }
- const cR = e => e[0] === '_' || e === '$stable',
- U0 = e => (Gt(e) ? e.map(Ei) : [Ei(e)]),
- gM = (e, t, n) => {
- if (t._n) return t;
- const r = H6((...o) => U0(t(...o)), n);
- return (r._c = !1), r;
- },
- dR = (e, t, n) => {
- const r = e._ctx;
- for (const o in e) {
- if (cR(o)) continue;
- const i = e[o];
- if (tn(i)) t[o] = gM(o, i, r);
- else if (i != null) {
- const a = U0(i);
- t[o] = () => a;
- }
- }
- },
- uR = (e, t) => {
- const n = U0(t);
- e.slots.default = () => n;
- },
- mM = (e, t) => {
- if (e.vnode.shapeFlag & 32) {
- const n = t._;
- n ? ((e.slots = xn(t)), Gh(t, '_', n)) : dR(t, (e.slots = {}));
- } else (e.slots = {}), t && uR(e, t);
- Gh(e.slots, Cp, 1);
- },
- bM = (e, t, n) => {
- const { vnode: r, slots: o } = e;
- let i = !0,
- a = Zn;
- if (r.shapeFlag & 32) {
- const s = t._;
- s
- ? n && s === 1
- ? (i = !1)
- : (gr(o, t), !n && s === 1 && delete o._)
- : ((i = !t.$stable), dR(t, o)),
- (a = t);
- } else t && (uR(e, t), (a = { default: 1 }));
- if (i) for (const s in o) !cR(s) && !(s in a) && delete o[s];
- };
- function xb(e, t, n, r, o = !1) {
- if (Gt(e)) {
- e.forEach((p, m) => xb(p, t && (Gt(t) ? t[m] : t), n, r, o));
- return;
- }
- if (Yd(r) && !o) return;
- const i = r.shapeFlag & 4 ? Sp(r.component) || r.component.proxy : r.el,
- a = o ? null : i,
- { i: s, r: c } = e,
- d = t && t.r,
- f = s.refs === Zn ? (s.refs = {}) : s.refs,
- v = s.setupState;
- if (
- (d != null &&
- d !== c &&
- (_r(d)
- ? ((f[d] = null), Sn(v, d) && (v[d] = null))
- : ar(d) && (d.value = null)),
- tn(c))
- )
- sl(c, s, 12, [a, f]);
- else {
- const p = _r(c),
- m = ar(c);
- if (p || m) {
- const g = () => {
- if (e.f) {
- const w = p ? (Sn(v, c) ? v[c] : f[c]) : c.value;
- o
- ? Gt(w) && k0(w, i)
- : Gt(w)
- ? w.includes(i) || w.push(i)
- : p
- ? ((f[c] = [i]), Sn(v, c) && (v[c] = f[c]))
- : ((c.value = [i]), e.k && (f[e.k] = c.value));
- } else
- p
- ? ((f[c] = a), Sn(v, c) && (v[c] = a))
- : m && ((c.value = a), e.k && (f[e.k] = a));
- };
- a ? ((g.id = -1), mo(g, n)) : g();
- }
- }
- }
- const mo = q6;
- function yM(e) {
- return xM(e);
- }
- function xM(e, t) {
- const n = ub();
- n.__VUE__ = !0;
- const {
- insert: r,
- remove: o,
- patchProp: i,
- createElement: a,
- createText: s,
- createComment: c,
- setText: d,
- setElementText: f,
- parentNode: v,
- nextSibling: p,
- setScopeId: m = ui,
- insertStaticContent: g
- } = e,
- w = (
- j,
- ee,
- ne,
- fe = null,
- ie = null,
- W = null,
- ae = !1,
- he = null,
- _e = !!ee.dynamicChildren
- ) => {
- if (j === ee) return;
- j && !os(j, ee) && ((fe = ve(j)), re(j, ie, W, !0), (j = null)),
- ee.patchFlag === -2 && ((_e = !1), (ee.dynamicChildren = null));
- const { type: le, ref: Re, shapeFlag: Ne } = ee;
- switch (le) {
- case ju:
- x(j, ee, ne, fe);
- break;
- case Eo:
- y(j, ee, ne, fe);
- break;
- case im:
- j == null && C(ee, ne, fe, ae);
- break;
- case on:
- A(j, ee, ne, fe, ie, W, ae, he, _e);
- break;
- default:
- Ne & 1
- ? _(j, ee, ne, fe, ie, W, ae, he, _e)
- : Ne & 6
- ? D(j, ee, ne, fe, ie, W, ae, he, _e)
- : (Ne & 64 || Ne & 128) &&
- le.process(j, ee, ne, fe, ie, W, ae, he, _e, Ce);
- }
- Re != null && ie && xb(Re, j && j.ref, W, ee || j, !ee);
- },
- x = (j, ee, ne, fe) => {
- if (j == null) r((ee.el = s(ee.children)), ne, fe);
- else {
- const ie = (ee.el = j.el);
- ee.children !== j.children && d(ie, ee.children);
- }
- },
- y = (j, ee, ne, fe) => {
- j == null ? r((ee.el = c(ee.children || '')), ne, fe) : (ee.el = j.el);
- },
- C = (j, ee, ne, fe) => {
- [j.el, j.anchor] = g(j.children, ee, ne, fe, j.el, j.anchor);
- },
- R = ({ el: j, anchor: ee }, ne, fe) => {
- let ie;
- for (; j && j !== ee; ) (ie = p(j)), r(j, ne, fe), (j = ie);
- r(ee, ne, fe);
- },
- S = ({ el: j, anchor: ee }) => {
- let ne;
- for (; j && j !== ee; ) (ne = p(j)), o(j), (j = ne);
- o(ee);
- },
- _ = (j, ee, ne, fe, ie, W, ae, he, _e) => {
- (ae = ae || ee.type === 'svg'),
- j == null
- ? P(ee, ne, fe, ie, W, ae, he, _e)
- : z(j, ee, ie, W, ae, he, _e);
- },
- P = (j, ee, ne, fe, ie, W, ae, he) => {
- let _e, le;
- const {
- type: Re,
- props: Ne,
- shapeFlag: Ge,
- transition: it,
- dirs: dt
- } = j;
- if (
- ((_e = j.el = a(j.type, W, Ne && Ne.is, Ne)),
- Ge & 8
- ? f(_e, j.children)
- : Ge & 16 &&
- E(
- j.children,
- _e,
- null,
- fe,
- ie,
- W && Re !== 'foreignObject',
- ae,
- he
- ),
- dt && ql(j, null, fe, 'created'),
- T(_e, j, j.scopeId, ae, fe),
- Ne)
- ) {
- for (const De in Ne)
- De !== 'value' &&
- !Bh(De) &&
- i(_e, De, null, Ne[De], W, j.children, fe, ie, xe);
- 'value' in Ne && i(_e, 'value', null, Ne.value),
- (le = Ne.onVnodeBeforeMount) && ki(le, fe, j);
- }
- dt && ql(j, null, fe, 'beforeMount');
- const xt = (!ie || (ie && !ie.pendingBranch)) && it && !it.persisted;
- xt && it.beforeEnter(_e),
- r(_e, ee, ne),
- ((le = Ne && Ne.onVnodeMounted) || xt || dt) &&
- mo(() => {
- le && ki(le, fe, j),
- xt && it.enter(_e),
- dt && ql(j, null, fe, 'mounted');
- }, ie);
- },
- T = (j, ee, ne, fe, ie) => {
- if ((ne && m(j, ne), fe)) for (let W = 0; W < fe.length; W++) m(j, fe[W]);
- if (ie) {
- let W = ie.subTree;
- if (ee === W) {
- const ae = ie.vnode;
- T(j, ae, ae.scopeId, ae.slotScopeIds, ie.parent);
- }
- }
- },
- E = (j, ee, ne, fe, ie, W, ae, he, _e = 0) => {
- for (let le = _e; le < j.length; le++) {
- const Re = (j[le] = he ? el(j[le]) : Ei(j[le]));
- w(null, Re, ee, ne, fe, ie, W, ae, he);
- }
- },
- z = (j, ee, ne, fe, ie, W, ae) => {
- const he = (ee.el = j.el);
- let { patchFlag: _e, dynamicChildren: le, dirs: Re } = ee;
- _e |= j.patchFlag & 16;
- const Ne = j.props || Zn,
- Ge = ee.props || Zn;
- let it;
- ne && Yl(ne, !1),
- (it = Ge.onVnodeBeforeUpdate) && ki(it, ne, ee, j),
- Re && ql(ee, j, ne, 'beforeUpdate'),
- ne && Yl(ne, !0);
- const dt = ie && ee.type !== 'foreignObject';
- if (
- (le
- ? k(j.dynamicChildren, le, he, ne, fe, dt, W)
- : ae || X(j, ee, he, null, ne, fe, dt, W, !1),
- _e > 0)
- ) {
- if (_e & 16) M(he, ee, Ne, Ge, ne, fe, ie);
- else if (
- (_e & 2 &&
- Ne.class !== Ge.class &&
- i(he, 'class', null, Ge.class, ie),
- _e & 4 && i(he, 'style', Ne.style, Ge.style, ie),
- _e & 8)
- ) {
- const xt = ee.dynamicProps;
- for (let De = 0; De < xt.length; De++) {
- const ut = xt[De],
- wt = Ne[ut],
- Lt = Ge[ut];
- (Lt !== wt || ut === 'value') &&
- i(he, ut, wt, Lt, ie, j.children, ne, fe, xe);
- }
- }
- _e & 1 && j.children !== ee.children && f(he, ee.children);
- } else !ae && le == null && M(he, ee, Ne, Ge, ne, fe, ie);
- ((it = Ge.onVnodeUpdated) || Re) &&
- mo(() => {
- it && ki(it, ne, ee, j), Re && ql(ee, j, ne, 'updated');
- }, fe);
- },
- k = (j, ee, ne, fe, ie, W, ae) => {
- for (let he = 0; he < ee.length; he++) {
- const _e = j[he],
- le = ee[he],
- Re =
- _e.el && (_e.type === on || !os(_e, le) || _e.shapeFlag & 70)
- ? v(_e.el)
- : ne;
- w(_e, le, Re, null, fe, ie, W, ae, !0);
- }
- },
- M = (j, ee, ne, fe, ie, W, ae) => {
- if (ne !== fe) {
- if (ne !== Zn)
- for (const he in ne)
- !Bh(he) &&
- !(he in fe) &&
- i(j, he, ne[he], null, ae, ee.children, ie, W, xe);
- for (const he in fe) {
- if (Bh(he)) continue;
- const _e = fe[he],
- le = ne[he];
- _e !== le &&
- he !== 'value' &&
- i(j, he, le, _e, ae, ee.children, ie, W, xe);
- }
- 'value' in fe && i(j, 'value', ne.value, fe.value);
- }
- },
- A = (j, ee, ne, fe, ie, W, ae, he, _e) => {
- const le = (ee.el = j ? j.el : s('')),
- Re = (ee.anchor = j ? j.anchor : s(''));
- let { patchFlag: Ne, dynamicChildren: Ge, slotScopeIds: it } = ee;
- it && (he = he ? he.concat(it) : it),
- j == null
- ? (r(le, ne, fe),
- r(Re, ne, fe),
- E(ee.children, ne, Re, ie, W, ae, he, _e))
- : Ne > 0 && Ne & 64 && Ge && j.dynamicChildren
- ? (k(j.dynamicChildren, Ge, ne, ie, W, ae, he),
- (ee.key != null || (ie && ee === ie.subTree)) && V0(j, ee, !0))
- : X(j, ee, ne, Re, ie, W, ae, he, _e);
- },
- D = (j, ee, ne, fe, ie, W, ae, he, _e) => {
- (ee.slotScopeIds = he),
- j == null
- ? ee.shapeFlag & 512
- ? ie.ctx.activate(ee, ne, fe, ae, _e)
- : L(ee, ne, fe, ie, W, ae, _e)
- : H(j, ee, _e);
- },
- L = (j, ee, ne, fe, ie, W, ae) => {
- const he = (j.component = EM(j, fe, ie));
- if ((yp(j) && (he.ctx.renderer = Ce), AM(he), he.asyncDep)) {
- if ((ie && ie.registerDep(he, B), !j.el)) {
- const _e = (he.subTree = hr(Eo));
- y(null, _e, ee, ne);
- }
- return;
- }
- B(he, j, ee, ne, ie, W, ae);
- },
- H = (j, ee, ne) => {
- const fe = (ee.component = j.component);
- if (U6(j, ee, ne))
- if (fe.asyncDep && !fe.asyncResolved) {
- q(fe, ee, ne);
- return;
- } else (fe.next = ee), F6(fe.update), fe.update();
- else (ee.el = j.el), (fe.vnode = ee);
- },
- B = (j, ee, ne, fe, ie, W, ae) => {
- const he = () => {
- if (j.isMounted) {
- let { next: Re, bu: Ne, u: Ge, parent: it, vnode: dt } = j,
- xt = Re,
- De;
- Yl(j, !1),
- Re ? ((Re.el = dt.el), q(j, Re, ae)) : (Re = dt),
- Ne && tm(Ne),
- (De = Re.props && Re.props.onVnodeBeforeUpdate) &&
- ki(De, it, Re, dt),
- Yl(j, !0);
- const ut = nm(j),
- wt = j.subTree;
- (j.subTree = ut),
- w(wt, ut, v(wt.el), ve(wt), j, ie, W),
- (Re.el = ut.el),
- xt === null && V6(j, ut.el),
- Ge && mo(Ge, ie),
- (De = Re.props && Re.props.onVnodeUpdated) &&
- mo(() => ki(De, it, Re, dt), ie);
- } else {
- let Re;
- const { el: Ne, props: Ge } = ee,
- { bm: it, m: dt, parent: xt } = j,
- De = Yd(ee);
- if (
- (Yl(j, !1),
- it && tm(it),
- !De && (Re = Ge && Ge.onVnodeBeforeMount) && ki(Re, xt, ee),
- Yl(j, !0),
- Ne && Ae)
- ) {
- const ut = () => {
- (j.subTree = nm(j)), Ae(Ne, j.subTree, j, ie, null);
- };
- De
- ? ee.type.__asyncLoader().then(() => !j.isUnmounted && ut())
- : ut();
- } else {
- const ut = (j.subTree = nm(j));
- w(null, ut, ne, fe, j, ie, W), (ee.el = ut.el);
- }
- if ((dt && mo(dt, ie), !De && (Re = Ge && Ge.onVnodeMounted))) {
- const ut = ee;
- mo(() => ki(Re, xt, ut), ie);
- }
- (ee.shapeFlag & 256 ||
- (xt && Yd(xt.vnode) && xt.vnode.shapeFlag & 256)) &&
- j.a &&
- mo(j.a, ie),
- (j.isMounted = !0),
- (ee = ne = fe = null);
- }
- },
- _e = (j.effect = new E0(he, () => L0(le), j.scope)),
- le = (j.update = () => _e.run());
- (le.id = j.uid), Yl(j, !0), le();
- },
- q = (j, ee, ne) => {
- ee.component = j;
- const fe = j.vnode.props;
- (j.vnode = ee),
- (j.next = null),
- pM(j, ee.props, fe, ne),
- bM(j, ee.children, ne),
- Vc(),
- xw(),
- Kc();
- },
- X = (j, ee, ne, fe, ie, W, ae, he, _e = !1) => {
- const le = j && j.children,
- Re = j ? j.shapeFlag : 0,
- Ne = ee.children,
- { patchFlag: Ge, shapeFlag: it } = ee;
- if (Ge > 0) {
- if (Ge & 128) {
- G(le, Ne, ne, fe, ie, W, ae, he, _e);
- return;
- } else if (Ge & 256) {
- te(le, Ne, ne, fe, ie, W, ae, he, _e);
- return;
- }
- }
- it & 8
- ? (Re & 16 && xe(le, ie, W), Ne !== le && f(ne, Ne))
- : Re & 16
- ? it & 16
- ? G(le, Ne, ne, fe, ie, W, ae, he, _e)
- : xe(le, ie, W, !0)
- : (Re & 8 && f(ne, ''), it & 16 && E(Ne, ne, fe, ie, W, ae, he, _e));
- },
- te = (j, ee, ne, fe, ie, W, ae, he, _e) => {
- (j = j || wc), (ee = ee || wc);
- const le = j.length,
- Re = ee.length,
- Ne = Math.min(le, Re);
- let Ge;
- for (Ge = 0; Ge < Ne; Ge++) {
- const it = (ee[Ge] = _e ? el(ee[Ge]) : Ei(ee[Ge]));
- w(j[Ge], it, ne, null, ie, W, ae, he, _e);
- }
- le > Re ? xe(j, ie, W, !0, !1, Ne) : E(ee, ne, fe, ie, W, ae, he, _e, Ne);
- },
- G = (j, ee, ne, fe, ie, W, ae, he, _e) => {
- let le = 0;
- const Re = ee.length;
- let Ne = j.length - 1,
- Ge = Re - 1;
- for (; le <= Ne && le <= Ge; ) {
- const it = j[le],
- dt = (ee[le] = _e ? el(ee[le]) : Ei(ee[le]));
- if (os(it, dt)) w(it, dt, ne, null, ie, W, ae, he, _e);
- else break;
- le++;
- }
- for (; le <= Ne && le <= Ge; ) {
- const it = j[Ne],
- dt = (ee[Ge] = _e ? el(ee[Ge]) : Ei(ee[Ge]));
- if (os(it, dt)) w(it, dt, ne, null, ie, W, ae, he, _e);
- else break;
- Ne--, Ge--;
- }
- if (le > Ne) {
- if (le <= Ge) {
- const it = Ge + 1,
- dt = it < Re ? ee[it].el : fe;
- for (; le <= Ge; )
- w(
- null,
- (ee[le] = _e ? el(ee[le]) : Ei(ee[le])),
- ne,
- dt,
- ie,
- W,
- ae,
- he,
- _e
- ),
- le++;
- }
- } else if (le > Ge) for (; le <= Ne; ) re(j[le], ie, W, !0), le++;
- else {
- const it = le,
- dt = le,
- xt = new Map();
- for (le = dt; le <= Ge; le++) {
- const Qe = (ee[le] = _e ? el(ee[le]) : Ei(ee[le]));
- Qe.key != null && xt.set(Qe.key, le);
- }
- let De,
- ut = 0;
- const wt = Ge - dt + 1;
- let Lt = !1,
- ot = 0;
- const ct = new Array(wt);
- for (le = 0; le < wt; le++) ct[le] = 0;
- for (le = it; le <= Ne; le++) {
- const Qe = j[le];
- if (ut >= wt) {
- re(Qe, ie, W, !0);
- continue;
- }
- let oe;
- if (Qe.key != null) oe = xt.get(Qe.key);
- else
- for (De = dt; De <= Ge; De++)
- if (ct[De - dt] === 0 && os(Qe, ee[De])) {
- oe = De;
- break;
- }
- oe === void 0
- ? re(Qe, ie, W, !0)
- : ((ct[oe - dt] = le + 1),
- oe >= ot ? (ot = oe) : (Lt = !0),
- w(Qe, ee[oe], ne, null, ie, W, ae, he, _e),
- ut++);
- }
- const Xe = Lt ? wM(ct) : wc;
- for (De = Xe.length - 1, le = wt - 1; le >= 0; le--) {
- const Qe = dt + le,
- oe = ee[Qe],
- ze = Qe + 1 < Re ? ee[Qe + 1].el : fe;
- ct[le] === 0
- ? w(null, oe, ne, ze, ie, W, ae, he, _e)
- : Lt && (De < 0 || le !== Xe[De] ? Q(oe, ne, ze, 2) : De--);
- }
- }
- },
- Q = (j, ee, ne, fe, ie = null) => {
- const {
- el: W,
- type: ae,
- transition: he,
- children: _e,
- shapeFlag: le
- } = j;
- if (le & 6) {
- Q(j.component.subTree, ee, ne, fe);
- return;
- }
- if (le & 128) {
- j.suspense.move(ee, ne, fe);
- return;
- }
- if (le & 64) {
- ae.move(j, ee, ne, Ce);
- return;
- }
- if (ae === on) {
- r(W, ee, ne);
- for (let Ne = 0; Ne < _e.length; Ne++) Q(_e[Ne], ee, ne, fe);
- r(j.anchor, ee, ne);
- return;
- }
- if (ae === im) {
- R(j, ee, ne);
- return;
- }
- if (fe !== 2 && le & 1 && he)
- if (fe === 0)
- he.beforeEnter(W), r(W, ee, ne), mo(() => he.enter(W), ie);
- else {
- const { leave: Ne, delayLeave: Ge, afterLeave: it } = he,
- dt = () => r(W, ee, ne),
- xt = () => {
- Ne(W, () => {
- dt(), it && it();
- });
- };
- Ge ? Ge(W, dt, xt) : xt();
- }
- else r(W, ee, ne);
- },
- re = (j, ee, ne, fe = !1, ie = !1) => {
- const {
- type: W,
- props: ae,
- ref: he,
- children: _e,
- dynamicChildren: le,
- shapeFlag: Re,
- patchFlag: Ne,
- dirs: Ge
- } = j;
- if ((he != null && xb(he, null, ne, j, !0), Re & 256)) {
- ee.ctx.deactivate(j);
- return;
- }
- const it = Re & 1 && Ge,
- dt = !Yd(j);
- let xt;
- if ((dt && (xt = ae && ae.onVnodeBeforeUnmount) && ki(xt, ee, j), Re & 6))
- ce(j.component, ne, fe);
- else {
- if (Re & 128) {
- j.suspense.unmount(ne, fe);
- return;
- }
- it && ql(j, null, ee, 'beforeUnmount'),
- Re & 64
- ? j.type.remove(j, ee, ne, ie, Ce, fe)
- : le && (W !== on || (Ne > 0 && Ne & 64))
- ? xe(le, ee, ne, !1, !0)
- : ((W === on && Ne & 384) || (!ie && Re & 16)) && xe(_e, ee, ne),
- fe && se(j);
- }
- ((dt && (xt = ae && ae.onVnodeUnmounted)) || it) &&
- mo(() => {
- xt && ki(xt, ee, j), it && ql(j, null, ee, 'unmounted');
- }, ne);
- },
- se = j => {
- const { type: ee, el: ne, anchor: fe, transition: ie } = j;
- if (ee === on) {
- pe(ne, fe);
- return;
- }
- if (ee === im) {
- S(j);
- return;
- }
- const W = () => {
- o(ne), ie && !ie.persisted && ie.afterLeave && ie.afterLeave();
- };
- if (j.shapeFlag & 1 && ie && !ie.persisted) {
- const { leave: ae, delayLeave: he } = ie,
- _e = () => ae(ne, W);
- he ? he(j.el, W, _e) : _e();
- } else W();
- },
- pe = (j, ee) => {
- let ne;
- for (; j !== ee; ) (ne = p(j)), o(j), (j = ne);
- o(ee);
- },
- ce = (j, ee, ne) => {
- const { bum: fe, scope: ie, update: W, subTree: ae, um: he } = j;
- fe && tm(fe),
- ie.stop(),
- W && ((W.active = !1), re(ae, j, ee, ne)),
- he && mo(he, ee),
- mo(() => {
- j.isUnmounted = !0;
- }, ee),
- ee &&
- ee.pendingBranch &&
- !ee.isUnmounted &&
- j.asyncDep &&
- !j.asyncResolved &&
- j.suspenseId === ee.pendingId &&
- (ee.deps--, ee.deps === 0 && ee.resolve());
- },
- xe = (j, ee, ne, fe = !1, ie = !1, W = 0) => {
- for (let ae = W; ae < j.length; ae++) re(j[ae], ee, ne, fe, ie);
- },
- ve = j =>
- j.shapeFlag & 6
- ? ve(j.component.subTree)
- : j.shapeFlag & 128
- ? j.suspense.next()
- : p(j.anchor || j.el),
- be = (j, ee, ne) => {
- j == null
- ? ee._vnode && re(ee._vnode, null, null, !0)
- : w(ee._vnode || null, j, ee, null, null, null, ne),
- xw(),
- q_(),
- (ee._vnode = j);
- },
- Ce = {
- p: w,
- um: re,
- m: Q,
- r: se,
- mt: L,
- mc: E,
- pc: X,
- pbc: k,
- n: ve,
- o: e
- };
- let ge, Ae;
- return (
- t && ([ge, Ae] = t(Ce)), { render: be, hydrate: ge, createApp: fM(be, ge) }
- );
- }
- function Yl({ effect: e, update: t }, n) {
- e.allowRecurse = t.allowRecurse = n;
- }
- function V0(e, t, n = !1) {
- const r = e.children,
- o = t.children;
- if (Gt(r) && Gt(o))
- for (let i = 0; i < r.length; i++) {
- const a = r[i];
- let s = o[i];
- s.shapeFlag & 1 &&
- !s.dynamicChildren &&
- ((s.patchFlag <= 0 || s.patchFlag === 32) &&
- ((s = o[i] = el(o[i])), (s.el = a.el)),
- n || V0(a, s)),
- s.type === ju && (s.el = a.el);
- }
- }
- function wM(e) {
- const t = e.slice(),
- n = [0];
- let r, o, i, a, s;
- const c = e.length;
- for (r = 0; r < c; r++) {
- const d = e[r];
- if (d !== 0) {
- if (((o = n[n.length - 1]), e[o] < d)) {
- (t[r] = o), n.push(r);
- continue;
- }
- for (i = 0, a = n.length - 1; i < a; )
- (s = (i + a) >> 1), e[n[s]] < d ? (i = s + 1) : (a = s);
- d < e[n[i]] && (i > 0 && (t[r] = n[i - 1]), (n[i] = r));
- }
- }
- for (i = n.length, a = n[i - 1]; i-- > 0; ) (n[i] = a), (a = t[a]);
- return n;
- }
- const CM = e => e.__isTeleport,
- Xd = e => e && (e.disabled || e.disabled === ''),
- Ew = e => typeof SVGElement < 'u' && e instanceof SVGElement,
- wb = (e, t) => {
- const n = e && e.to;
- return _r(n) ? (t ? t(n) : null) : n;
- },
- SM = {
- __isTeleport: !0,
- process(e, t, n, r, o, i, a, s, c, d) {
- const {
- mc: f,
- pc: v,
- pbc: p,
- o: { insert: m, querySelector: g, createText: w, createComment: x }
- } = d,
- y = Xd(t.props);
- let { shapeFlag: C, children: R, dynamicChildren: S } = t;
- if (e == null) {
- const _ = (t.el = w('')),
- P = (t.anchor = w(''));
- m(_, n, r), m(P, n, r);
- const T = (t.target = wb(t.props, g)),
- E = (t.targetAnchor = w(''));
- T && (m(E, T), (a = a || Ew(T)));
- const z = (k, M) => {
- C & 16 && f(R, k, M, o, i, a, s, c);
- };
- y ? z(n, P) : T && z(T, E);
- } else {
- t.el = e.el;
- const _ = (t.anchor = e.anchor),
- P = (t.target = e.target),
- T = (t.targetAnchor = e.targetAnchor),
- E = Xd(e.props),
- z = E ? n : P,
- k = E ? _ : T;
- if (
- ((a = a || Ew(P)),
- S
- ? (p(e.dynamicChildren, S, z, o, i, a, s), V0(e, t, !0))
- : c || v(e, t, z, k, o, i, a, s, !1),
- y)
- )
- E || dh(t, n, _, d, 1);
- else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
- const M = (t.target = wb(t.props, g));
- M && dh(t, M, null, d, 0);
- } else E && dh(t, P, T, d, 1);
- }
- fR(t);
- },
- remove(e, t, n, r, { um: o, o: { remove: i } }, a) {
- const {
- shapeFlag: s,
- children: c,
- anchor: d,
- targetAnchor: f,
- target: v,
- props: p
- } = e;
- if ((v && i(f), (a || !Xd(p)) && (i(d), s & 16)))
- for (let m = 0; m < c.length; m++) {
- const g = c[m];
- o(g, t, n, !0, !!g.dynamicChildren);
- }
- },
- move: dh,
- hydrate: _M
- };
- function dh(e, t, n, { o: { insert: r }, m: o }, i = 2) {
- i === 0 && r(e.targetAnchor, t, n);
- const { el: a, anchor: s, shapeFlag: c, children: d, props: f } = e,
- v = i === 2;
- if ((v && r(a, t, n), (!v || Xd(f)) && c & 16))
- for (let p = 0; p < d.length; p++) o(d[p], t, n, 2);
- v && r(s, t, n);
- }
- function _M(
- e,
- t,
- n,
- r,
- o,
- i,
- { o: { nextSibling: a, parentNode: s, querySelector: c } },
- d
- ) {
- const f = (t.target = wb(t.props, c));
- if (f) {
- const v = f._lpa || f.firstChild;
- if (t.shapeFlag & 16)
- if (Xd(t.props))
- (t.anchor = d(a(e), t, s(e), n, r, o, i)), (t.targetAnchor = v);
- else {
- t.anchor = a(e);
- let p = v;
- for (; p; )
- if (
- ((p = a(p)), p && p.nodeType === 8 && p.data === 'teleport anchor')
- ) {
- (t.targetAnchor = p),
- (f._lpa = t.targetAnchor && a(t.targetAnchor));
- break;
- }
- d(v, t, f, n, r, o, i);
- }
- fR(t);
- }
- return t.anchor && a(t.anchor);
- }
- const Hu = SM;
- function fR(e) {
- const t = e.ctx;
- if (t && t.ut) {
- let n = e.children[0].el;
- for (; n !== e.targetAnchor; )
- n.nodeType === 1 && n.setAttribute('data-v-owner', t.uid),
- (n = n.nextSibling);
- t.ut();
- }
- }
- const on = Symbol.for('v-fgt'),
- ju = Symbol.for('v-txt'),
- Eo = Symbol.for('v-cmt'),
- im = Symbol.for('v-stc'),
- Zd = [];
- let di = null;
- function RM(e = !1) {
- Zd.push((di = e ? null : []));
- }
- function PM() {
- Zd.pop(), (di = Zd[Zd.length - 1] || null);
- }
- let yu = 1;
- function Aw(e) {
- yu += e;
- }
- function hR(e) {
- return (
- (e.dynamicChildren = yu > 0 ? di || wc : null),
- PM(),
- yu > 0 && di && di.push(e),
- e
- );
- }
- function ole(e, t, n, r, o, i) {
- return hR(pR(e, t, n, r, o, i, !0));
- }
- function kM(e, t, n, r, o) {
- return hR(hr(e, t, n, r, o, !0));
- }
- function xu(e) {
- return e ? e.__v_isVNode === !0 : !1;
- }
- function os(e, t) {
- return e.type === t.type && e.key === t.key;
- }
- const Cp = '__vInternal',
- vR = ({ key: e }) => e ?? null,
- Lh = ({ ref: e, ref_key: t, ref_for: n }) => (
- typeof e == 'number' && (e = '' + e),
- e != null
- ? _r(e) || ar(e) || tn(e)
- ? { i: zr, r: e, k: t, f: !!n }
- : e
- : null
- );
- function pR(
- e,
- t = null,
- n = null,
- r = 0,
- o = null,
- i = e === on ? 0 : 1,
- a = !1,
- s = !1
- ) {
- const c = {
- __v_isVNode: !0,
- __v_skip: !0,
- type: e,
- props: t,
- key: t && vR(t),
- ref: t && Lh(t),
- scopeId: X_,
- slotScopeIds: null,
- children: n,
- component: null,
- suspense: null,
- ssContent: null,
- ssFallback: null,
- dirs: null,
- transition: null,
- el: null,
- anchor: null,
- target: null,
- targetAnchor: null,
- staticCount: 0,
- shapeFlag: i,
- patchFlag: r,
- dynamicProps: o,
- dynamicChildren: null,
- appContext: null,
- ctx: zr
- };
- return (
- s
- ? (K0(c, n), i & 128 && e.normalize(c))
- : n && (c.shapeFlag |= _r(n) ? 8 : 16),
- yu > 0 &&
- !a &&
- di &&
- (c.patchFlag > 0 || i & 6) &&
- c.patchFlag !== 32 &&
- di.push(c),
- c
- );
- }
- const hr = TM;
- function TM(e, t = null, n = null, r = 0, o = null, i = !1) {
- if (((!e || e === rM) && (e = Eo), xu(e))) {
- const s = Ao(e, t, !0);
- return (
- n && K0(s, n),
- yu > 0 &&
- !i &&
- di &&
- (s.shapeFlag & 6 ? (di[di.indexOf(e)] = s) : di.push(s)),
- (s.patchFlag |= -2),
- s
- );
- }
- if ((BM(e) && (e = e.__vccOpts), t)) {
- t = $M(t);
- let { class: s, style: c } = t;
- s && !_r(s) && (t.class = O0(s)),
- rr(c) && (L_(c) && !Gt(c) && (c = gr({}, c)), (t.style = pp(c)));
- }
- const a = _r(e) ? 1 : K6(e) ? 128 : CM(e) ? 64 : rr(e) ? 4 : tn(e) ? 2 : 0;
- return pR(e, t, n, r, o, a, i, !0);
- }
- function $M(e) {
- return e ? (L_(e) || Cp in e ? gr({}, e) : e) : null;
- }
- function Ao(e, t, n = !1) {
- const { props: r, ref: o, patchFlag: i, children: a } = e,
- s = t ? qr(r || {}, t) : r;
- return {
- __v_isVNode: !0,
- __v_skip: !0,
- type: e.type,
- props: s,
- key: s && vR(s),
- ref:
- t && t.ref
- ? n && o
- ? Gt(o)
- ? o.concat(Lh(t))
- : [o, Lh(t)]
- : Lh(t)
- : o,
- scopeId: e.scopeId,
- slotScopeIds: e.slotScopeIds,
- children: a,
- target: e.target,
- targetAnchor: e.targetAnchor,
- staticCount: e.staticCount,
- shapeFlag: e.shapeFlag,
- patchFlag: t && e.type !== on ? (i === -1 ? 16 : i | 16) : i,
- dynamicProps: e.dynamicProps,
- dynamicChildren: e.dynamicChildren,
- appContext: e.appContext,
- dirs: e.dirs,
- transition: e.transition,
- component: e.component,
- suspense: e.suspense,
- ssContent: e.ssContent && Ao(e.ssContent),
- ssFallback: e.ssFallback && Ao(e.ssFallback),
- el: e.el,
- anchor: e.anchor,
- ctx: e.ctx,
- ce: e.ce
- };
- }
- function wu(e = ' ', t = 0) {
- return hr(ju, null, e, t);
- }
- function Ei(e) {
- return e == null || typeof e == 'boolean'
- ? hr(Eo)
- : Gt(e)
- ? hr(on, null, e.slice())
- : typeof e == 'object'
- ? el(e)
- : hr(ju, null, String(e));
- }
- function el(e) {
- return (e.el === null && e.patchFlag !== -1) || e.memo ? e : Ao(e);
- }
- function K0(e, t) {
- let n = 0;
- const { shapeFlag: r } = e;
- if (t == null) t = null;
- else if (Gt(t)) n = 16;
- else if (typeof t == 'object')
- if (r & 65) {
- const o = t.default;
- o && (o._c && (o._d = !1), K0(e, o()), o._c && (o._d = !0));
- return;
- } else {
- n = 32;
- const o = t._;
- !o && !(Cp in t)
- ? (t._ctx = zr)
- : o === 3 &&
- zr &&
- (zr.slots._ === 1 ? (t._ = 1) : ((t._ = 2), (e.patchFlag |= 1024)));
- }
- else
- tn(t)
- ? ((t = { default: t, _ctx: zr }), (n = 32))
- : ((t = String(t)), r & 64 ? ((n = 16), (t = [wu(t)])) : (n = 8));
- (e.children = t), (e.shapeFlag |= n);
- }
- function qr(...e) {
- const t = {};
- for (let n = 0; n < e.length; n++) {
- const r = e[n];
- for (const o in r)
- if (o === 'class')
- t.class !== r.class && (t.class = O0([t.class, r.class]));
- else if (o === 'style') t.style = pp([t.style, r.style]);
- else if (up(o)) {
- const i = t[o],
- a = r[o];
- a &&
- i !== a &&
- !(Gt(i) && i.includes(a)) &&
- (t[o] = i ? [].concat(i, a) : a);
- } else o !== '' && (t[o] = r[o]);
- }
- return t;
- }
- function ki(e, t, n, r = null) {
- Zo(e, t, 7, [n, r]);
- }
- const OM = aR();
- let zM = 0;
- function EM(e, t, n) {
- const r = e.type,
- o = (t ? t.appContext : e.appContext) || OM,
- i = {
- uid: zM++,
- vnode: e,
- type: r,
- parent: t,
- appContext: o,
- root: null,
- next: null,
- subTree: null,
- effect: null,
- update: null,
- scope: new P_(!0),
- render: null,
- proxy: null,
- exposed: null,
- exposeProxy: null,
- withProxy: null,
- provides: t ? t.provides : Object.create(o.provides),
- accessCache: null,
- renderCache: [],
- components: null,
- directives: null,
- propsOptions: sR(r, o),
- emitsOptions: G_(r, o),
- emit: null,
- emitted: null,
- propsDefaults: Zn,
- inheritAttrs: r.inheritAttrs,
- ctx: Zn,
- data: Zn,
- props: Zn,
- attrs: Zn,
- slots: Zn,
- refs: Zn,
- setupState: Zn,
- setupContext: null,
- attrsProxy: null,
- slotsProxy: null,
- suspense: n,
- suspenseId: n ? n.pendingId : 0,
- asyncDep: null,
- asyncResolved: !1,
- isMounted: !1,
- isUnmounted: !1,
- isDeactivated: !1,
- bc: null,
- c: null,
- bm: null,
- m: null,
- bu: null,
- u: null,
- um: null,
- bum: null,
- da: null,
- a: null,
- rtg: null,
- rtc: null,
- ec: null,
- sp: null
- };
- return (
- (i.ctx = { _: i }),
- (i.root = t ? t.root : i),
- (i.emit = N6.bind(null, i)),
- e.ce && e.ce(i),
- i
- );
- }
- let Sr = null;
- const Ra = () => Sr || zr;
- let q0,
- oc,
- Mw = '__VUE_INSTANCE_SETTERS__';
- (oc = ub()[Mw]) || (oc = ub()[Mw] = []),
- oc.push(e => (Sr = e)),
- (q0 = e => {
- oc.length > 1 ? oc.forEach(t => t(e)) : oc[0](e);
- });
- const $c = e => {
- q0(e), e.scope.on();
- },
- vs = () => {
- Sr && Sr.scope.off(), q0(null);
- };
- function gR(e) {
- return e.vnode.shapeFlag & 4;
- }
- let Cu = !1;
- function AM(e, t = !1) {
- Cu = t;
- const { props: n, children: r } = e.vnode,
- o = gR(e);
- vM(e, n, o, t), mM(e, r);
- const i = o ? MM(e, t) : void 0;
- return (Cu = !1), i;
- }
- function MM(e, t) {
- const n = e.type;
- (e.accessCache = Object.create(null)), (e.proxy = Tc(new Proxy(e.ctx, iM)));
- const { setup: r } = n;
- if (r) {
- const o = (e.setupContext = r.length > 1 ? DM(e) : null);
- $c(e), Vc();
- const i = sl(r, e, 0, [e.props, o]);
- if ((Kc(), vs(), __(i))) {
- if ((i.then(vs, vs), t))
- return i
- .then(a => {
- Iw(e, a, t);
- })
- .catch(a => {
- mp(a, e, 0);
- });
- e.asyncDep = i;
- } else Iw(e, i, t);
- } else mR(e, t);
- }
- function Iw(e, t, n) {
- tn(t)
- ? e.type.__ssrInlineRender
- ? (e.ssrRender = t)
- : (e.render = t)
- : rr(t) && (e.setupState = W_(t)),
- mR(e, n);
- }
- let Dw;
- function mR(e, t, n) {
- const r = e.type;
- if (!e.render) {
- if (!t && Dw && !r.render) {
- const o = r.template || W0(e).template;
- if (o) {
- const { isCustomElement: i, compilerOptions: a } = e.appContext.config,
- { delimiters: s, compilerOptions: c } = r,
- d = gr(gr({ isCustomElement: i, delimiters: s }, a), c);
- r.render = Dw(o, d);
- }
- }
- e.render = r.render || ui;
- }
- $c(e), Vc(), aM(e), Kc(), vs();
- }
- function IM(e) {
- return (
- e.attrsProxy ||
- (e.attrsProxy = new Proxy(e.attrs, {
- get(t, n) {
- return wo(e, 'get', '$attrs'), t[n];
- }
- }))
- );
- }
- function DM(e) {
- const t = n => {
- e.exposed = n || {};
- };
- return {
- get attrs() {
- return IM(e);
- },
- slots: e.slots,
- emit: e.emit,
- expose: t
- };
- }
- function Sp(e) {
- if (e.exposed)
- return (
- e.exposeProxy ||
- (e.exposeProxy = new Proxy(W_(Tc(e.exposed)), {
- get(t, n) {
- if (n in t) return t[n];
- if (n in Gd) return Gd[n](e);
- },
- has(t, n) {
- return n in t || n in Gd;
- }
- }))
- );
- }
- function FM(e, t = !0) {
- return tn(e) ? e.displayName || e.name : e.name || (t && e.__name);
- }
- function BM(e) {
- return tn(e) && '__vccOpts' in e;
- }
- const I = (e, t) => M6(e, t, Cu);
- function h(e, t, n) {
- const r = arguments.length;
- return r === 2
- ? rr(t) && !Gt(t)
- ? xu(t)
- ? hr(e, null, [t])
- : hr(e, t)
- : hr(e, null, t)
- : (r > 3
- ? (n = Array.prototype.slice.call(arguments, 2))
- : r === 3 && xu(n) && (n = [n]),
- hr(e, t, n));
- }
- const LM = Symbol.for('v-scx'),
- NM = () => Ze(LM),
- HM = '3.3.4',
- jM = 'http://www.w3.org/2000/svg',
- is = typeof document < 'u' ? document : null,
- Fw = is && is.createElement('template'),
- WM = {
- insert: (e, t, n) => {
- t.insertBefore(e, n || null);
- },
- remove: e => {
- const t = e.parentNode;
- t && t.removeChild(e);
- },
- createElement: (e, t, n, r) => {
- const o = t
- ? is.createElementNS(jM, e)
- : is.createElement(e, n ? { is: n } : void 0);
- return (
- e === 'select' &&
- r &&
- r.multiple != null &&
- o.setAttribute('multiple', r.multiple),
- o
- );
- },
- createText: e => is.createTextNode(e),
- createComment: e => is.createComment(e),
- setText: (e, t) => {
- e.nodeValue = t;
- },
- setElementText: (e, t) => {
- e.textContent = t;
- },
- parentNode: e => e.parentNode,
- nextSibling: e => e.nextSibling,
- querySelector: e => is.querySelector(e),
- setScopeId(e, t) {
- e.setAttribute(t, '');
- },
- insertStaticContent(e, t, n, r, o, i) {
- const a = n ? n.previousSibling : t.lastChild;
- if (o && (o === i || o.nextSibling))
- for (
- ;
- t.insertBefore(o.cloneNode(!0), n),
- !(o === i || !(o = o.nextSibling));
- );
- else {
- Fw.innerHTML = r ? `<svg>${e}</svg>` : e;
- const s = Fw.content;
- if (r) {
- const c = s.firstChild;
- for (; c.firstChild; ) s.appendChild(c.firstChild);
- s.removeChild(c);
- }
- t.insertBefore(s, n);
- }
- return [
- a ? a.nextSibling : t.firstChild,
- n ? n.previousSibling : t.lastChild
- ];
- }
- };
- function UM(e, t, n) {
- const r = e._vtc;
- r && (t = (t ? [t, ...r] : [...r]).join(' ')),
- t == null
- ? e.removeAttribute('class')
- : n
- ? e.setAttribute('class', t)
- : (e.className = t);
- }
- function VM(e, t, n) {
- const r = e.style,
- o = _r(n);
- if (n && !o) {
- if (t && !_r(t)) for (const i in t) n[i] == null && Cb(r, i, '');
- for (const i in n) Cb(r, i, n[i]);
- } else {
- const i = r.display;
- o ? t !== n && (r.cssText = n) : t && e.removeAttribute('style'),
- '_vod' in e && (r.display = i);
- }
- }
- const Bw = /\s*!important$/;
- function Cb(e, t, n) {
- if (Gt(n)) n.forEach(r => Cb(e, t, r));
- else if ((n == null && (n = ''), t.startsWith('--'))) e.setProperty(t, n);
- else {
- const r = KM(e, t);
- Bw.test(n)
- ? e.setProperty(Uc(r), n.replace(Bw, ''), 'important')
- : (e[r] = n);
- }
- }
- const Lw = ['Webkit', 'Moz', 'ms'],
- am = {};
- function KM(e, t) {
- const n = am[t];
- if (n) return n;
- let r = Ui(t);
- if (r !== 'filter' && r in e) return (am[t] = r);
- r = vp(r);
- for (let o = 0; o < Lw.length; o++) {
- const i = Lw[o] + r;
- if (i in e) return (am[t] = i);
- }
- return t;
- }
- const Nw = 'http://www.w3.org/1999/xlink';
- function qM(e, t, n, r, o) {
- if (r && t.startsWith('xlink:'))
- n == null
- ? e.removeAttributeNS(Nw, t.slice(6, t.length))
- : e.setAttributeNS(Nw, t, n);
- else {
- const i = XA(t);
- n == null || (i && !R_(n))
- ? e.removeAttribute(t)
- : e.setAttribute(t, i ? '' : n);
- }
- }
- function YM(e, t, n, r, o, i, a) {
- if (t === 'innerHTML' || t === 'textContent') {
- r && a(r, o, i), (e[t] = n ?? '');
- return;
- }
- const s = e.tagName;
- if (t === 'value' && s !== 'PROGRESS' && !s.includes('-')) {
- e._value = n;
- const d = s === 'OPTION' ? e.getAttribute('value') : e.value,
- f = n ?? '';
- d !== f && (e.value = f), n == null && e.removeAttribute(t);
- return;
- }
- let c = !1;
- if (n === '' || n == null) {
- const d = typeof e[t];
- d === 'boolean'
- ? (n = R_(n))
- : n == null && d === 'string'
- ? ((n = ''), (c = !0))
- : d === 'number' && ((n = 0), (c = !0));
- }
- try {
- e[t] = n;
- } catch {}
- c && e.removeAttribute(t);
- }
- function GM(e, t, n, r) {
- e.addEventListener(t, n, r);
- }
- function XM(e, t, n, r) {
- e.removeEventListener(t, n, r);
- }
- function ZM(e, t, n, r, o = null) {
- const i = e._vei || (e._vei = {}),
- a = i[t];
- if (r && a) a.value = r;
- else {
- const [s, c] = QM(t);
- if (r) {
- const d = (i[t] = tI(r, o));
- GM(e, s, d, c);
- } else a && (XM(e, s, a, c), (i[t] = void 0));
- }
- }
- const Hw = /(?:Once|Passive|Capture)$/;
- function QM(e) {
- let t;
- if (Hw.test(e)) {
- t = {};
- let r;
- for (; (r = e.match(Hw)); )
- (e = e.slice(0, e.length - r[0].length)), (t[r[0].toLowerCase()] = !0);
- }
- return [e[2] === ':' ? e.slice(3) : Uc(e.slice(2)), t];
- }
- let lm = 0;
- const JM = Promise.resolve(),
- eI = () => lm || (JM.then(() => (lm = 0)), (lm = Date.now()));
- function tI(e, t) {
- const n = r => {
- if (!r._vts) r._vts = Date.now();
- else if (r._vts <= n.attached) return;
- Zo(nI(r, n.value), t, 5, [r]);
- };
- return (n.value = e), (n.attached = eI()), n;
- }
- function nI(e, t) {
- if (Gt(t)) {
- const n = e.stopImmediatePropagation;
- return (
- (e.stopImmediatePropagation = () => {
- n.call(e), (e._stopped = !0);
- }),
- t.map(r => o => !o._stopped && r && r(o))
- );
- } else return t;
- }
- const jw = /^on[a-z]/,
- rI = (e, t, n, r, o = !1, i, a, s, c) => {
- t === 'class'
- ? UM(e, r, o)
- : t === 'style'
- ? VM(e, n, r)
- : up(t)
- ? P0(t) || ZM(e, t, n, r, a)
- : (
- t[0] === '.'
- ? ((t = t.slice(1)), !0)
- : t[0] === '^'
- ? ((t = t.slice(1)), !1)
- : oI(e, t, r, o)
- )
- ? YM(e, t, r, i, a, s, c)
- : (t === 'true-value'
- ? (e._trueValue = r)
- : t === 'false-value' && (e._falseValue = r),
- qM(e, t, r, o));
- };
- function oI(e, t, n, r) {
- return r
- ? !!(
- t === 'innerHTML' ||
- t === 'textContent' ||
- (t in e && jw.test(t) && tn(n))
- )
- : t === 'spellcheck' ||
- t === 'draggable' ||
- t === 'translate' ||
- t === 'form' ||
- (t === 'list' && e.tagName === 'INPUT') ||
- (t === 'type' && e.tagName === 'TEXTAREA') ||
- (jw.test(t) && _r(n))
- ? !1
- : t in e;
- }
- const Ka = 'transition',
- $d = 'animation',
- Kn = (e, { slots: t }) => h(X6, yR(e), t);
- Kn.displayName = 'Transition';
- const bR = {
- name: String,
- type: String,
- css: { type: Boolean, default: !0 },
- duration: [String, Number, Object],
- enterFromClass: String,
- enterActiveClass: String,
- enterToClass: String,
- appearFromClass: String,
- appearActiveClass: String,
- appearToClass: String,
- leaveFromClass: String,
- leaveActiveClass: String,
- leaveToClass: String
- },
- iI = (Kn.props = gr({}, J_, bR)),
- Gl = (e, t = []) => {
- Gt(e) ? e.forEach(n => n(...t)) : e && e(...t);
- },
- Ww = e => (e ? (Gt(e) ? e.some(t => t.length > 1) : e.length > 1) : !1);
- function yR(e) {
- const t = {};
- for (const A in e) A in bR || (t[A] = e[A]);
- if (e.css === !1) return t;
- const {
- name: n = 'v',
- type: r,
- duration: o,
- enterFromClass: i = `${n}-enter-from`,
- enterActiveClass: a = `${n}-enter-active`,
- enterToClass: s = `${n}-enter-to`,
- appearFromClass: c = i,
- appearActiveClass: d = a,
- appearToClass: f = s,
- leaveFromClass: v = `${n}-leave-from`,
- leaveActiveClass: p = `${n}-leave-active`,
- leaveToClass: m = `${n}-leave-to`
- } = e,
- g = aI(o),
- w = g && g[0],
- x = g && g[1],
- {
- onBeforeEnter: y,
- onEnter: C,
- onEnterCancelled: R,
- onLeave: S,
- onLeaveCancelled: _,
- onBeforeAppear: P = y,
- onAppear: T = C,
- onAppearCancelled: E = R
- } = t,
- z = (A, D, L) => {
- Za(A, D ? f : s), Za(A, D ? d : a), L && L();
- },
- k = (A, D) => {
- (A._isLeaving = !1), Za(A, v), Za(A, m), Za(A, p), D && D();
- },
- M = A => (D, L) => {
- const H = A ? T : C,
- B = () => z(D, A, L);
- Gl(H, [D, B]),
- Uw(() => {
- Za(D, A ? c : i), va(D, A ? f : s), Ww(H) || Vw(D, r, w, B);
- });
- };
- return gr(t, {
- onBeforeEnter(A) {
- Gl(y, [A]), va(A, i), va(A, a);
- },
- onBeforeAppear(A) {
- Gl(P, [A]), va(A, c), va(A, d);
- },
- onEnter: M(!1),
- onAppear: M(!0),
- onLeave(A, D) {
- A._isLeaving = !0;
- const L = () => k(A, D);
- va(A, v),
- wR(),
- va(A, p),
- Uw(() => {
- A._isLeaving && (Za(A, v), va(A, m), Ww(S) || Vw(A, r, x, L));
- }),
- Gl(S, [A, L]);
- },
- onEnterCancelled(A) {
- z(A, !1), Gl(R, [A]);
- },
- onAppearCancelled(A) {
- z(A, !0), Gl(E, [A]);
- },
- onLeaveCancelled(A) {
- k(A), Gl(_, [A]);
- }
- });
- }
- function aI(e) {
- if (e == null) return null;
- if (rr(e)) return [sm(e.enter), sm(e.leave)];
- {
- const t = sm(e);
- return [t, t];
- }
- }
- function sm(e) {
- return UA(e);
- }
- function va(e, t) {
- t.split(/\s+/).forEach(n => n && e.classList.add(n)),
- (e._vtc || (e._vtc = new Set())).add(t);
- }
- function Za(e, t) {
- t.split(/\s+/).forEach(r => r && e.classList.remove(r));
- const { _vtc: n } = e;
- n && (n.delete(t), n.size || (e._vtc = void 0));
- }
- function Uw(e) {
- requestAnimationFrame(() => {
- requestAnimationFrame(e);
- });
- }
- let lI = 0;
- function Vw(e, t, n, r) {
- const o = (e._endId = ++lI),
- i = () => {
- o === e._endId && r();
- };
- if (n) return setTimeout(i, n);
- const { type: a, timeout: s, propCount: c } = xR(e, t);
- if (!a) return r();
- const d = a + 'end';
- let f = 0;
- const v = () => {
- e.removeEventListener(d, p), i();
- },
- p = m => {
- m.target === e && ++f >= c && v();
- };
- setTimeout(() => {
- f < c && v();
- }, s + 1),
- e.addEventListener(d, p);
- }
- function xR(e, t) {
- const n = window.getComputedStyle(e),
- r = g => (n[g] || '').split(', '),
- o = r(`${Ka}Delay`),
- i = r(`${Ka}Duration`),
- a = Kw(o, i),
- s = r(`${$d}Delay`),
- c = r(`${$d}Duration`),
- d = Kw(s, c);
- let f = null,
- v = 0,
- p = 0;
- t === Ka
- ? a > 0 && ((f = Ka), (v = a), (p = i.length))
- : t === $d
- ? d > 0 && ((f = $d), (v = d), (p = c.length))
- : ((v = Math.max(a, d)),
- (f = v > 0 ? (a > d ? Ka : $d) : null),
- (p = f ? (f === Ka ? i.length : c.length) : 0));
- const m =
- f === Ka && /\b(transform|all)(,|$)/.test(r(`${Ka}Property`).toString());
- return { type: f, timeout: v, propCount: p, hasTransform: m };
- }
- function Kw(e, t) {
- for (; e.length < t.length; ) e = e.concat(e);
- return Math.max(...t.map((n, r) => qw(n) + qw(e[r])));
- }
- function qw(e) {
- return Number(e.slice(0, -1).replace(',', '.')) * 1e3;
- }
- function wR() {
- return document.body.offsetHeight;
- }
- const CR = new WeakMap(),
- SR = new WeakMap(),
- _R = {
- name: 'TransitionGroup',
- props: gr({}, iI, { tag: String, moveClass: String }),
- setup(e, { slots: t }) {
- const n = Ra(),
- r = Q_();
- let o, i;
- return (
- nR(() => {
- if (!o.length) return;
- const a = e.moveClass || `${e.name || 'v'}-move`;
- if (!fI(o[0].el, n.vnode.el, a)) return;
- o.forEach(cI), o.forEach(dI);
- const s = o.filter(uI);
- wR(),
- s.forEach(c => {
- const d = c.el,
- f = d.style;
- va(d, a),
- (f.transform = f.webkitTransform = f.transitionDuration = '');
- const v = (d._moveCb = p => {
- (p && p.target !== d) ||
- ((!p || /transform$/.test(p.propertyName)) &&
- (d.removeEventListener('transitionend', v),
- (d._moveCb = null),
- Za(d, a)));
- });
- d.addEventListener('transitionend', v);
- });
- }),
- () => {
- const a = xn(e),
- s = yR(a);
- let c = a.tag || on;
- (o = i), (i = t.default ? H0(t.default()) : []);
- for (let d = 0; d < i.length; d++) {
- const f = i[d];
- f.key != null && mu(f, gu(f, s, r, n));
- }
- if (o)
- for (let d = 0; d < o.length; d++) {
- const f = o[d];
- mu(f, gu(f, s, r, n)), CR.set(f, f.el.getBoundingClientRect());
- }
- return hr(c, null, i);
- }
- );
- }
- },
- sI = e => delete e.mode;
- _R.props;
- const Y0 = _R;
- function cI(e) {
- const t = e.el;
- t._moveCb && t._moveCb(), t._enterCb && t._enterCb();
- }
- function dI(e) {
- SR.set(e, e.el.getBoundingClientRect());
- }
- function uI(e) {
- const t = CR.get(e),
- n = SR.get(e),
- r = t.left - n.left,
- o = t.top - n.top;
- if (r || o) {
- const i = e.el.style;
- return (
- (i.transform = i.webkitTransform = `translate(${r}px,${o}px)`),
- (i.transitionDuration = '0s'),
- e
- );
- }
- }
- function fI(e, t, n) {
- const r = e.cloneNode();
- e._vtc &&
- e._vtc.forEach(a => {
- a.split(/\s+/).forEach(s => s && r.classList.remove(s));
- }),
- n.split(/\s+/).forEach(a => a && r.classList.add(a)),
- (r.style.display = 'none');
- const o = t.nodeType === 1 ? t : t.parentNode;
- o.appendChild(r);
- const { hasTransform: i } = xR(r);
- return o.removeChild(r), i;
- }
- const vi = {
- beforeMount(e, { value: t }, { transition: n }) {
- (e._vod = e.style.display === 'none' ? '' : e.style.display),
- n && t ? n.beforeEnter(e) : Od(e, t);
- },
- mounted(e, { value: t }, { transition: n }) {
- n && t && n.enter(e);
- },
- updated(e, { value: t, oldValue: n }, { transition: r }) {
- !t != !n &&
- (r
- ? t
- ? (r.beforeEnter(e), Od(e, !0), r.enter(e))
- : r.leave(e, () => {
- Od(e, !1);
- })
- : Od(e, t));
- },
- beforeUnmount(e, { value: t }) {
- Od(e, t);
- }
- };
- function Od(e, t) {
- e.style.display = t ? e._vod : 'none';
- }
- const hI = gr({ patchProp: rI }, WM);
- let Yw;
- function vI() {
- return Yw || (Yw = yM(hI));
- }
- const RR = (...e) => {
- const t = vI().createApp(...e),
- { mount: n } = t;
- return (
- (t.mount = r => {
- const o = pI(r);
- if (!o) return;
- const i = t._component;
- !tn(i) && !i.render && !i.template && (i.template = o.innerHTML),
- (o.innerHTML = '');
- const a = n(o, !1, o instanceof SVGElement);
- return (
- o instanceof Element &&
- (o.removeAttribute('v-cloak'), o.setAttribute('data-v-app', '')),
- a
- );
- }),
- t
- );
- };
- function pI(e) {
- return _r(e) ? document.querySelector(e) : e;
- }
- let ev = [];
- const PR = new WeakMap();
- function gI() {
- ev.forEach(e => e(...PR.get(e))), (ev = []);
- }
- function Oc(e, ...t) {
- PR.set(e, t),
- !ev.includes(e) && ev.push(e) === 1 && requestAnimationFrame(gI);
- }
- function mI(e) {
- return e.nodeType === 9 ? null : e.parentNode;
- }
- function kR(e) {
- if (e === null) return null;
- const t = mI(e);
- if (t === null) return null;
- if (t.nodeType === 9) return document.documentElement;
- if (t.nodeType === 1) {
- const { overflow: n, overflowX: r, overflowY: o } = getComputedStyle(t);
- if (/(auto|scroll|overlay)/.test(n + o + r)) return t;
- }
- return kR(t);
- }
- function bI(e) {
- return typeof e == 'string'
- ? document.querySelector(e)
- : typeof e == 'function'
- ? e()
- : e;
- }
- function Mo(e, t) {
- let { target: n } = e;
- for (; n; ) {
- if (n.dataset && n.dataset[t] !== void 0) return !0;
- n = n.parentElement;
- }
- return !1;
- }
- function xa(e) {
- return e.composedPath()[0] || null;
- }
- function yI(e) {
- if (typeof e == 'number') return { '': e.toString() };
- const t = {};
- return (
- e.split(/ +/).forEach(n => {
- if (n === '') return;
- const [r, o] = n.split(':');
- o === void 0 ? (t[''] = r) : (t[r] = o);
- }),
- t
- );
- }
- function zd(e, t) {
- var n;
- if (e == null) return;
- const r = yI(e);
- if (t === void 0) return r[''];
- if (typeof t == 'string')
- return (n = r[t]) !== null && n !== void 0 ? n : r[''];
- if (Array.isArray(t)) {
- for (let o = t.length - 1; o >= 0; --o) {
- const i = t[o];
- if (i in r) return r[i];
- }
- return r[''];
- } else {
- let o,
- i = -1;
- return (
- Object.keys(r).forEach(a => {
- const s = Number(a);
- !Number.isNaN(s) && t >= s && s >= i && ((i = s), (o = r[a]));
- }),
- o
- );
- }
- }
- function Lr(e) {
- return typeof e == 'string'
- ? e.endsWith('px')
- ? Number(e.slice(0, e.length - 2))
- : Number(e)
- : e;
- }
- function lr(e) {
- if (e != null)
- return typeof e == 'number' ? `${e}px` : e.endsWith('px') ? e : `${e}px`;
- }
- function Go(e, t) {
- const n = e.trim().split(/\s+/g),
- r = { top: n[0] };
- switch (n.length) {
- case 1:
- (r.right = n[0]), (r.bottom = n[0]), (r.left = n[0]);
- break;
- case 2:
- (r.right = n[1]), (r.left = n[1]), (r.bottom = n[0]);
- break;
- case 3:
- (r.right = n[1]), (r.bottom = n[2]), (r.left = n[1]);
- break;
- case 4:
- (r.right = n[1]), (r.bottom = n[2]), (r.left = n[3]);
- break;
- default:
- throw new Error('[seemly/getMargin]:' + e + ' is not a valid value.');
- }
- return t === void 0 ? r : r[t];
- }
- function xI(e, t) {
- const [n, r] = e.split(' ');
- return t ? (t === 'row' ? n : r) : { row: n, col: r || n };
- }
- const Gw = {
- black: '#000',
- silver: '#C0C0C0',
- gray: '#808080',
- white: '#FFF',
- maroon: '#800000',
- red: '#F00',
- purple: '#800080',
- fuchsia: '#F0F',
- green: '#008000',
- lime: '#0F0',
- olive: '#808000',
- yellow: '#FF0',
- navy: '#000080',
- blue: '#00F',
- teal: '#008080',
- aqua: '#0FF',
- transparent: '#0000'
- },
- Yc = '^\\s*',
- Gc = '\\s*$',
- cs = '\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*',
- ds = '([0-9A-Fa-f])',
- us = '([0-9A-Fa-f]{2})',
- wI = new RegExp(`${Yc}rgb\\s*\\(${cs},${cs},${cs}\\)${Gc}`),
- CI = new RegExp(`${Yc}rgba\\s*\\(${cs},${cs},${cs},${cs}\\)${Gc}`),
- SI = new RegExp(`${Yc}#${ds}${ds}${ds}${Gc}`),
- _I = new RegExp(`${Yc}#${us}${us}${us}${Gc}`),
- RI = new RegExp(`${Yc}#${ds}${ds}${ds}${ds}${Gc}`),
- PI = new RegExp(`${Yc}#${us}${us}${us}${us}${Gc}`);
- function go(e) {
- return parseInt(e, 16);
- }
- function ul(e) {
- try {
- let t;
- if ((t = _I.exec(e))) return [go(t[1]), go(t[2]), go(t[3]), 1];
- if ((t = wI.exec(e))) return [Ur(t[1]), Ur(t[5]), Ur(t[9]), 1];
- if ((t = CI.exec(e))) return [Ur(t[1]), Ur(t[5]), Ur(t[9]), Qd(t[13])];
- if ((t = SI.exec(e)))
- return [go(t[1] + t[1]), go(t[2] + t[2]), go(t[3] + t[3]), 1];
- if ((t = PI.exec(e)))
- return [go(t[1]), go(t[2]), go(t[3]), Qd(go(t[4]) / 255)];
- if ((t = RI.exec(e)))
- return [
- go(t[1] + t[1]),
- go(t[2] + t[2]),
- go(t[3] + t[3]),
- Qd(go(t[4] + t[4]) / 255)
- ];
- if (e in Gw) return ul(Gw[e]);
- throw new Error(`[seemly/rgba]: Invalid color value ${e}.`);
- } catch (t) {
- throw t;
- }
- }
- function kI(e) {
- return e > 1 ? 1 : e < 0 ? 0 : e;
- }
- function Sb(e, t, n, r) {
- return `rgba(${Ur(e)}, ${Ur(t)}, ${Ur(n)}, ${kI(r)})`;
- }
- function cm(e, t, n, r, o) {
- return Ur((e * t * (1 - r) + n * r) / o);
- }
- function Et(e, t) {
- Array.isArray(e) || (e = ul(e)), Array.isArray(t) || (t = ul(t));
- const n = e[3],
- r = t[3],
- o = Qd(n + r - n * r);
- return Sb(
- cm(e[0], n, t[0], r, o),
- cm(e[1], n, t[1], r, o),
- cm(e[2], n, t[2], r, o),
- o
- );
- }
- function zt(e, t) {
- const [n, r, o, i = 1] = Array.isArray(e) ? e : ul(e);
- return t.alpha ? Sb(n, r, o, t.alpha) : Sb(n, r, o, i);
- }
- function uh(e, t) {
- const [n, r, o, i = 1] = Array.isArray(e) ? e : ul(e),
- { lightness: a = 1, alpha: s = 1 } = t;
- return TI([n * a, r * a, o * a, i * s]);
- }
- function Qd(e) {
- const t = Math.round(Number(e) * 100) / 100;
- return t > 1 ? 1 : t < 0 ? 0 : t;
- }
- function Ur(e) {
- const t = Math.round(Number(e));
- return t > 255 ? 255 : t < 0 ? 0 : t;
- }
- function TI(e) {
- const [t, n, r] = e;
- return 3 in e
- ? `rgba(${Ur(t)}, ${Ur(n)}, ${Ur(r)}, ${Qd(e[3])})`
- : `rgba(${Ur(t)}, ${Ur(n)}, ${Ur(r)}, 1)`;
- }
- function pi(e = 8) {
- return Math.random()
- .toString(16)
- .slice(2, 2 + e);
- }
- function TR(e, t) {
- const n = [];
- for (let r = 0; r < e; ++r) n.push(t);
- return n;
- }
- function Wu(e, t = 'default', n = []) {
- const o = e.$slots[t];
- return o === void 0 ? n : o();
- }
- function Xw(e, t = 'default', n = []) {
- const { children: r } = e;
- if (r !== null && typeof r == 'object' && !Array.isArray(r)) {
- const o = r[t];
- if (typeof o == 'function') return o();
- }
- return n;
- }
- function fi(e, t = [], n) {
- const r = {};
- return (
- t.forEach(o => {
- r[o] = e[o];
- }),
- Object.assign(r, n)
- );
- }
- function Xc(e, t = [], n) {
- const r = {};
- return (
- Object.getOwnPropertyNames(e).forEach(i => {
- t.includes(i) || (r[i] = e[i]);
- }),
- Object.assign(r, n)
- );
- }
- function hi(e, t = !0, n = []) {
- return (
- e.forEach(r => {
- if (r !== null) {
- if (typeof r != 'object') {
- (typeof r == 'string' || typeof r == 'number') &&
- n.push(wu(String(r)));
- return;
- }
- if (Array.isArray(r)) {
- hi(r, t, n);
- return;
- }
- if (r.type === on) {
- if (r.children === null) return;
- Array.isArray(r.children) && hi(r.children, t, n);
- } else r.type !== Eo && n.push(r);
- }
- }),
- n
- );
- }
- function Me(e, ...t) {
- if (Array.isArray(e)) e.forEach(n => Me(n, ...t));
- else return e(...t);
- }
- function Ki(e) {
- return Object.keys(e);
- }
- const _n = (e, ...t) =>
- typeof e == 'function'
- ? e(...t)
- : typeof e == 'string'
- ? wu(e)
- : typeof e == 'number'
- ? wu(String(e))
- : null;
- function Io(e, t) {
- console.error(`[naive/${e}]: ${t}`);
- }
- function io(e, t) {
- throw new Error(`[naive/${e}]: ${t}`);
- }
- function Zw(e) {
- switch (e) {
- case 'tiny':
- return 'mini';
- case 'small':
- return 'tiny';
- case 'medium':
- return 'small';
- case 'large':
- return 'medium';
- case 'huge':
- return 'large';
- }
- throw Error(`${e} has no smaller size.`);
- }
- function $R(e) {
- switch (typeof e) {
- case 'string':
- return e || void 0;
- case 'number':
- return String(e);
- default:
- return;
- }
- }
- function _b(e, t = 'default', n = void 0) {
- const r = e[t];
- if (!r) return Io('getFirstSlotVNode', `slot[${t}] is empty`), null;
- const o = hi(r(n));
- return o.length === 1
- ? o[0]
- : (Io('getFirstSlotVNode', `slot[${t}] should have exactly one child`),
- null);
- }
- function OR(e) {
- return typeof e == 'string' ? `s-${e}` : `n-${e}`;
- }
- function zR(e) {
- return t => {
- t ? (e.value = t.$el) : (e.value = null);
- };
- }
- function Uu(e) {
- return e.some(t =>
- xu(t) ? !(t.type === Eo || (t.type === on && !Uu(t.children))) : !0
- )
- ? e
- : null;
- }
- function Kt(e, t) {
- return (e && Uu(e())) || t();
- }
- function $I(e, t, n) {
- return (e && Uu(e(t))) || n(t);
- }
- function cn(e, t) {
- const n = e && Uu(e());
- return t(n || null);
- }
- function ps(e) {
- return !(e && Uu(e()));
- }
- function Jd(e) {
- const t = e.filter(n => n !== void 0);
- if (t.length !== 0)
- return t.length === 1
- ? t[0]
- : n => {
- e.forEach(r => {
- r && r(n);
- });
- };
- }
- function OI(e) {
- var t;
- const n =
- (t = e.dirs) === null || t === void 0
- ? void 0
- : t.find(({ dir: r }) => r === vi);
- return !!(n && n.value === !1);
- }
- const Rb = ke({
- render() {
- var e, t;
- return (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e);
- }
- }),
- zI = /^(\d|\.)+$/,
- Qw = /(\d|\.)+/;
- function vn(e, { c: t = 1, offset: n = 0, attachPx: r = !0 } = {}) {
- if (typeof e == 'number') {
- const o = (e + n) * t;
- return o === 0 ? '0' : `${o}px`;
- } else if (typeof e == 'string')
- if (zI.test(e)) {
- const o = (Number(e) + n) * t;
- return r ? (o === 0 ? '0' : `${o}px`) : `${o}`;
- } else {
- const o = Qw.exec(e);
- return o ? e.replace(Qw, String((Number(o[0]) + n) * t)) : e;
- }
- return e;
- }
- function zc(e) {
- return e.replace(/#|\(|\)|,|\s/g, '_');
- }
- function EI(e) {
- let t = 0;
- for (let n = 0; n < e.length; ++n) e[n] === '&' && ++t;
- return t;
- }
- const ER = /\s*,(?![^(]*\))\s*/g,
- AI = /\s+/g;
- function MI(e, t) {
- const n = [];
- return (
- t.split(ER).forEach(r => {
- let o = EI(r);
- if (o) {
- if (o === 1) {
- e.forEach(a => {
- n.push(r.replace('&', a));
- });
- return;
- }
- } else {
- e.forEach(a => {
- n.push((a && a + ' ') + r);
- });
- return;
- }
- let i = [r];
- for (; o--; ) {
- const a = [];
- i.forEach(s => {
- e.forEach(c => {
- a.push(s.replace('&', c));
- });
- }),
- (i = a);
- }
- i.forEach(a => n.push(a));
- }),
- n
- );
- }
- function II(e, t) {
- const n = [];
- return (
- t.split(ER).forEach(r => {
- e.forEach(o => {
- n.push((o && o + ' ') + r);
- });
- }),
- n
- );
- }
- function DI(e) {
- let t = [''];
- return (
- e.forEach(n => {
- (n = n && n.trim()),
- n && (n.includes('&') ? (t = MI(t, n)) : (t = II(t, n)));
- }),
- t.join(', ').replace(AI, ' ')
- );
- }
- function Jw(e) {
- if (!e) return;
- const t = e.parentElement;
- t && t.removeChild(e);
- }
- function _p(e) {
- return document.querySelector(`style[cssr-id="${e}"]`);
- }
- function FI(e) {
- const t = document.createElement('style');
- return t.setAttribute('cssr-id', e), t;
- }
- function fh(e) {
- return e ? /^\s*@(s|m)/.test(e) : !1;
- }
- const BI = /[A-Z]/g;
- function AR(e) {
- return e.replace(BI, t => '-' + t.toLowerCase());
- }
- function LI(e, t = ' ') {
- return typeof e == 'object' && e !== null
- ? ` {
- ` +
- Object.entries(e).map(n => t + ` ${AR(n[0])}: ${n[1]};`).join(`
- `) +
- `
- ` +
- t +
- '}'
- : `: ${e};`;
- }
- function NI(e, t, n) {
- return typeof e == 'function' ? e({ context: t.context, props: n }) : e;
- }
- function eC(e, t, n, r) {
- if (!t) return '';
- const o = NI(t, n, r);
- if (!o) return '';
- if (typeof o == 'string')
- return `${e} {
- ${o}
- }`;
- const i = Object.keys(o);
- if (i.length === 0)
- return n.config.keepEmptyBlock
- ? e +
- ` {
- }`
- : '';
- const a = e ? [e + ' {'] : [];
- return (
- i.forEach(s => {
- const c = o[s];
- if (s === 'raw') {
- a.push(
- `
- ` +
- c +
- `
- `
- );
- return;
- }
- (s = AR(s)), c != null && a.push(` ${s}${LI(c)}`);
- }),
- e && a.push('}'),
- a.join(`
- `)
- );
- }
- function Pb(e, t, n) {
- e &&
- e.forEach(r => {
- if (Array.isArray(r)) Pb(r, t, n);
- else if (typeof r == 'function') {
- const o = r(t);
- Array.isArray(o) ? Pb(o, t, n) : o && n(o);
- } else r && n(r);
- });
- }
- function MR(e, t, n, r, o, i) {
- const a = e.$;
- let s = '';
- if (!a || typeof a == 'string') fh(a) ? (s = a) : t.push(a);
- else if (typeof a == 'function') {
- const f = a({ context: r.context, props: o });
- fh(f) ? (s = f) : t.push(f);
- } else if ((a.before && a.before(r.context), !a.$ || typeof a.$ == 'string'))
- fh(a.$) ? (s = a.$) : t.push(a.$);
- else if (a.$) {
- const f = a.$({ context: r.context, props: o });
- fh(f) ? (s = f) : t.push(f);
- }
- const c = DI(t),
- d = eC(c, e.props, r, o);
- s
- ? (n.push(`${s} {`),
- i &&
- d &&
- i.insertRule(`${s} {
- ${d}
- }
- `))
- : (i && d && i.insertRule(d), !i && d.length && n.push(d)),
- e.children &&
- Pb(e.children, { context: r.context, props: o }, f => {
- if (typeof f == 'string') {
- const v = eC(c, { raw: f }, r, o);
- i ? i.insertRule(v) : n.push(v);
- } else MR(f, t, n, r, o, i);
- }),
- t.pop(),
- s && n.push('}'),
- a && a.after && a.after(r.context);
- }
- function IR(e, t, n, r = !1) {
- const o = [];
- return (
- MR(e, [], o, t, n, r ? e.instance.__styleSheet : void 0),
- r
- ? ''
- : o.join(`
- `)
- );
- }
- function Su(e) {
- for (var t = 0, n, r = 0, o = e.length; o >= 4; ++r, o -= 4)
- (n =
- (e.charCodeAt(r) & 255) |
- ((e.charCodeAt(++r) & 255) << 8) |
- ((e.charCodeAt(++r) & 255) << 16) |
- ((e.charCodeAt(++r) & 255) << 24)),
- (n = (n & 65535) * 1540483477 + (((n >>> 16) * 59797) << 16)),
- (n ^= n >>> 24),
- (t =
- ((n & 65535) * 1540483477 + (((n >>> 16) * 59797) << 16)) ^
- ((t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)));
- switch (o) {
- case 3:
- t ^= (e.charCodeAt(r + 2) & 255) << 16;
- case 2:
- t ^= (e.charCodeAt(r + 1) & 255) << 8;
- case 1:
- (t ^= e.charCodeAt(r) & 255),
- (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16));
- }
- return (
- (t ^= t >>> 13),
- (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)),
- ((t ^ (t >>> 15)) >>> 0).toString(36)
- );
- }
- typeof window < 'u' && (window.__cssrContext = {});
- function HI(e, t, n) {
- const { els: r } = t;
- if (n === void 0) r.forEach(Jw), (t.els = []);
- else {
- const o = _p(n);
- o && r.includes(o) && (Jw(o), (t.els = r.filter(i => i !== o)));
- }
- }
- function tC(e, t) {
- e.push(t);
- }
- function jI(e, t, n, r, o, i, a, s, c) {
- if (i && !c) {
- if (n === void 0) {
- console.error('[css-render/mount]: `id` is required in `silent` mode.');
- return;
- }
- const p = window.__cssrContext;
- p[n] || ((p[n] = !0), IR(t, e, r, i));
- return;
- }
- let d;
- if ((n === void 0 && ((d = t.render(r)), (n = Su(d))), c)) {
- c.adapter(n, d ?? t.render(r));
- return;
- }
- const f = _p(n);
- if (f !== null && !a) return f;
- const v = f ?? FI(n);
- if ((d === void 0 && (d = t.render(r)), (v.textContent = d), f !== null))
- return f;
- if (s) {
- const p = document.head.querySelector(`meta[name="${s}"]`);
- if (p) return document.head.insertBefore(v, p), tC(t.els, v), v;
- }
- return (
- o
- ? document.head.insertBefore(
- v,
- document.head.querySelector('style, link')
- )
- : document.head.appendChild(v),
- tC(t.els, v),
- v
- );
- }
- function WI(e) {
- return IR(this, this.instance, e);
- }
- function UI(e = {}) {
- const {
- id: t,
- ssr: n,
- props: r,
- head: o = !1,
- silent: i = !1,
- force: a = !1,
- anchorMetaName: s
- } = e;
- return jI(this.instance, this, t, r, o, i, a, s, n);
- }
- function VI(e = {}) {
- const { id: t } = e;
- HI(this.instance, this, t);
- }
- const hh = function (e, t, n, r) {
- return {
- instance: e,
- $: t,
- props: n,
- children: r,
- els: [],
- render: WI,
- mount: UI,
- unmount: VI
- };
- },
- KI = function (e, t, n, r) {
- return Array.isArray(t)
- ? hh(e, { $: null }, null, t)
- : Array.isArray(n)
- ? hh(e, t, null, n)
- : Array.isArray(r)
- ? hh(e, t, n, r)
- : hh(e, t, n, null);
- };
- function DR(e = {}) {
- let t = null;
- const n = {
- c: (...r) => KI(n, ...r),
- use: (r, ...o) => r.install(n, ...o),
- find: _p,
- context: {},
- config: e,
- get __styleSheet() {
- if (!t) {
- const r = document.createElement('style');
- return (
- document.head.appendChild(r),
- (t = document.styleSheets[document.styleSheets.length - 1]),
- t
- );
- }
- return t;
- }
- };
- return n;
- }
- function qI(e, t) {
- if (e === void 0) return !1;
- if (t) {
- const {
- context: { ids: n }
- } = t;
- return n.has(e);
- }
- return _p(e) !== null;
- }
- function YI(e) {
- let t = '.',
- n = '__',
- r = '--',
- o;
- if (e) {
- let g = e.blockPrefix;
- g && (t = g),
- (g = e.elementPrefix),
- g && (n = g),
- (g = e.modifierPrefix),
- g && (r = g);
- }
- const i = {
- install(g) {
- o = g.c;
- const w = g.context;
- (w.bem = {}), (w.bem.b = null), (w.bem.els = null);
- }
- };
- function a(g) {
- let w, x;
- return {
- before(y) {
- (w = y.bem.b), (x = y.bem.els), (y.bem.els = null);
- },
- after(y) {
- (y.bem.b = w), (y.bem.els = x);
- },
- $({ context: y, props: C }) {
- return (
- (g = typeof g == 'string' ? g : g({ context: y, props: C })),
- (y.bem.b = g),
- `${(C == null ? void 0 : C.bPrefix) || t}${y.bem.b}`
- );
- }
- };
- }
- function s(g) {
- let w;
- return {
- before(x) {
- w = x.bem.els;
- },
- after(x) {
- x.bem.els = w;
- },
- $({ context: x, props: y }) {
- return (
- (g = typeof g == 'string' ? g : g({ context: x, props: y })),
- (x.bem.els = g.split(',').map(C => C.trim())),
- x.bem.els
- .map(
- C => `${(y == null ? void 0 : y.bPrefix) || t}${x.bem.b}${n}${C}`
- )
- .join(', ')
- );
- }
- };
- }
- function c(g) {
- return {
- $({ context: w, props: x }) {
- g = typeof g == 'string' ? g : g({ context: w, props: x });
- const y = g.split(',').map(S => S.trim());
- function C(S) {
- return y
- .map(
- _ =>
- `&${(x == null ? void 0 : x.bPrefix) || t}${w.bem.b}${
- S !== void 0 ? `${n}${S}` : ''
- }${r}${_}`
- )
- .join(', ');
- }
- const R = w.bem.els;
- return R !== null ? C(R[0]) : C();
- }
- };
- }
- function d(g) {
- return {
- $({ context: w, props: x }) {
- g = typeof g == 'string' ? g : g({ context: w, props: x });
- const y = w.bem.els;
- return `&:not(${(x == null ? void 0 : x.bPrefix) || t}${w.bem.b}${
- y !== null && y.length > 0 ? `${n}${y[0]}` : ''
- }${r}${g})`;
- }
- };
- }
- return (
- Object.assign(i, {
- cB: (...g) => o(a(g[0]), g[1], g[2]),
- cE: (...g) => o(s(g[0]), g[1], g[2]),
- cM: (...g) => o(c(g[0]), g[1], g[2]),
- cNotM: (...g) => o(d(g[0]), g[1], g[2])
- }),
- i
- );
- }
- function Ee(e, t) {
- return e + (t === 'default' ? '' : t.replace(/^[a-z]/, n => n.toUpperCase()));
- }
- Ee('abc', 'def');
- const GI = 'n',
- _u = `.${GI}-`,
- XI = '__',
- ZI = '--',
- FR = DR(),
- BR = YI({ blockPrefix: _u, elementPrefix: XI, modifierPrefix: ZI });
- FR.use(BR);
- const { c: F, find: ile } = FR,
- { cB: O, cE: V, cM: U, cNotM: jt } = BR;
- function xl(e) {
- return F(
- ({ props: { bPrefix: t } }) => `${t || _u}modal, ${t || _u}drawer`,
- [e]
- );
- }
- function Ps(e) {
- return F(({ props: { bPrefix: t } }) => `${t || _u}popover`, [e]);
- }
- function LR(e) {
- return F(({ props: { bPrefix: t } }) => `&${t || _u}modal`, e);
- }
- const QI = (...e) => F('>', [O(...e)]);
- let dm;
- function JI() {
- return (
- dm === void 0 &&
- (dm =
- navigator.userAgent.includes('Node.js') ||
- navigator.userAgent.includes('jsdom')),
- dm
- );
- }
- const Fo = typeof document < 'u' && typeof window < 'u',
- NR = new WeakSet();
- function Ru(e) {
- NR.add(e);
- }
- function HR(e) {
- return !NR.has(e);
- }
- function eD(e, t, n) {
- var r;
- const o = Ze(e, null);
- if (o === null) return;
- const i = (r = Ra()) === null || r === void 0 ? void 0 : r.proxy;
- $t(n, a),
- a(n.value),
- qn(() => {
- a(void 0, n.value);
- });
- function a(d, f) {
- const v = o[t];
- f !== void 0 && s(v, f), d !== void 0 && c(v, d);
- }
- function s(d, f) {
- d[f] || (d[f] = []),
- d[f].splice(
- d[f].findIndex(v => v === i),
- 1
- );
- }
- function c(d, f) {
- d[f] || (d[f] = []), ~d[f].findIndex(v => v === i) || d[f].push(i);
- }
- }
- function tD(e, t, n) {
- if (!t) return e;
- const r = Z(e.value);
- let o = null;
- return (
- $t(e, i => {
- o !== null && window.clearTimeout(o),
- i === !0
- ? n && !n.value
- ? (r.value = !0)
- : (o = window.setTimeout(() => {
- r.value = !0;
- }, t))
- : (r.value = !1);
- }),
- r
- );
- }
- function nD(e) {
- const t = Z(!!e.value);
- if (t.value) return Vi(t);
- const n = $t(e, r => {
- r && ((t.value = !0), n());
- });
- return Vi(t);
- }
- function kt(e) {
- const t = I(e),
- n = Z(t.value);
- return (
- $t(t, r => {
- n.value = r;
- }),
- typeof e == 'function'
- ? n
- : {
- __v_isRef: !0,
- get value() {
- return n.value;
- },
- set value(r) {
- e.set(r);
- }
- }
- );
- }
- function G0() {
- return Ra() !== null;
- }
- const Rp = typeof window < 'u';
- let Sc, eu;
- const rD = () => {
- var e, t;
- (Sc = Rp
- ? (t = (e = document) === null || e === void 0 ? void 0 : e.fonts) ===
- null || t === void 0
- ? void 0
- : t.ready
- : void 0),
- (eu = !1),
- Sc !== void 0
- ? Sc.then(() => {
- eu = !0;
- })
- : (eu = !0);
- };
- rD();
- function jR(e) {
- if (eu) return;
- let t = !1;
- Hn(() => {
- eu ||
- Sc == null ||
- Sc.then(() => {
- t || e();
- });
- }),
- qn(() => {
- t = !0;
- });
- }
- function Nh(e) {
- return e.composedPath()[0];
- }
- const oD = { mousemoveoutside: new WeakMap(), clickoutside: new WeakMap() };
- function iD(e, t, n) {
- if (e === 'mousemoveoutside') {
- const r = o => {
- t.contains(Nh(o)) || n(o);
- };
- return { mousemove: r, touchstart: r };
- } else if (e === 'clickoutside') {
- let r = !1;
- const o = a => {
- r = !t.contains(Nh(a));
- },
- i = a => {
- r && (t.contains(Nh(a)) || n(a));
- };
- return { mousedown: o, mouseup: i, touchstart: o, touchend: i };
- }
- return (
- console.error(
- `[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`
- ),
- {}
- );
- }
- function WR(e, t, n) {
- const r = oD[e];
- let o = r.get(t);
- o === void 0 && r.set(t, (o = new WeakMap()));
- let i = o.get(n);
- return i === void 0 && o.set(n, (i = iD(e, t, n))), i;
- }
- function aD(e, t, n, r) {
- if (e === 'mousemoveoutside' || e === 'clickoutside') {
- const o = WR(e, t, n);
- return (
- Object.keys(o).forEach(i => {
- Tn(i, document, o[i], r);
- }),
- !0
- );
- }
- return !1;
- }
- function lD(e, t, n, r) {
- if (e === 'mousemoveoutside' || e === 'clickoutside') {
- const o = WR(e, t, n);
- return (
- Object.keys(o).forEach(i => {
- pn(i, document, o[i], r);
- }),
- !0
- );
- }
- return !1;
- }
- function sD() {
- if (typeof window > 'u') return { on: () => {}, off: () => {} };
- const e = new WeakMap(),
- t = new WeakMap();
- function n() {
- e.set(this, !0);
- }
- function r() {
- e.set(this, !0), t.set(this, !0);
- }
- function o(T, E, z) {
- const k = T[E];
- return (
- (T[E] = function () {
- return z.apply(T, arguments), k.apply(T, arguments);
- }),
- T
- );
- }
- function i(T, E) {
- T[E] = Event.prototype[E];
- }
- const a = new WeakMap(),
- s = Object.getOwnPropertyDescriptor(Event.prototype, 'currentTarget');
- function c() {
- var T;
- return (T = a.get(this)) !== null && T !== void 0 ? T : null;
- }
- function d(T, E) {
- s !== void 0 &&
- Object.defineProperty(T, 'currentTarget', {
- configurable: !0,
- enumerable: !0,
- get: E ?? s.get
- });
- }
- const f = { bubble: {}, capture: {} },
- v = {};
- function p() {
- const T = function (E) {
- const { type: z, eventPhase: k, bubbles: M } = E,
- A = Nh(E);
- if (k === 2) return;
- const D = k === 1 ? 'capture' : 'bubble';
- let L = A;
- const H = [];
- for (; L === null && (L = window), H.push(L), L !== window; )
- L = L.parentNode || null;
- const B = f.capture[z],
- q = f.bubble[z];
- if (
- (o(E, 'stopPropagation', n),
- o(E, 'stopImmediatePropagation', r),
- d(E, c),
- D === 'capture')
- ) {
- if (B === void 0) return;
- for (let X = H.length - 1; X >= 0 && !e.has(E); --X) {
- const te = H[X],
- G = B.get(te);
- if (G !== void 0) {
- a.set(E, te);
- for (const Q of G) {
- if (t.has(E)) break;
- Q(E);
- }
- }
- if (X === 0 && !M && q !== void 0) {
- const Q = q.get(te);
- if (Q !== void 0)
- for (const re of Q) {
- if (t.has(E)) break;
- re(E);
- }
- }
- }
- } else if (D === 'bubble') {
- if (q === void 0) return;
- for (let X = 0; X < H.length && !e.has(E); ++X) {
- const te = H[X],
- G = q.get(te);
- if (G !== void 0) {
- a.set(E, te);
- for (const Q of G) {
- if (t.has(E)) break;
- Q(E);
- }
- }
- }
- }
- i(E, 'stopPropagation'), i(E, 'stopImmediatePropagation'), d(E);
- };
- return (T.displayName = 'evtdUnifiedHandler'), T;
- }
- function m() {
- const T = function (E) {
- const { type: z, eventPhase: k } = E;
- if (k !== 2) return;
- const M = v[z];
- M !== void 0 && M.forEach(A => A(E));
- };
- return (T.displayName = 'evtdUnifiedWindowEventHandler'), T;
- }
- const g = p(),
- w = m();
- function x(T, E) {
- const z = f[T];
- return (
- z[E] === void 0 &&
- ((z[E] = new Map()), window.addEventListener(E, g, T === 'capture')),
- z[E]
- );
- }
- function y(T) {
- return (
- v[T] === void 0 && ((v[T] = new Set()), window.addEventListener(T, w)),
- v[T]
- );
- }
- function C(T, E) {
- let z = T.get(E);
- return z === void 0 && T.set(E, (z = new Set())), z;
- }
- function R(T, E, z, k) {
- const M = f[E][z];
- if (M !== void 0) {
- const A = M.get(T);
- if (A !== void 0 && A.has(k)) return !0;
- }
- return !1;
- }
- function S(T, E) {
- const z = v[T];
- return !!(z !== void 0 && z.has(E));
- }
- function _(T, E, z, k) {
- let M;
- if (
- (typeof k == 'object' && k.once === !0
- ? (M = B => {
- P(T, E, M, k), z(B);
- })
- : (M = z),
- aD(T, E, M, k))
- )
- return;
- const D =
- k === !0 || (typeof k == 'object' && k.capture === !0)
- ? 'capture'
- : 'bubble',
- L = x(D, T),
- H = C(L, E);
- if ((H.has(M) || H.add(M), E === window)) {
- const B = y(T);
- B.has(M) || B.add(M);
- }
- }
- function P(T, E, z, k) {
- if (lD(T, E, z, k)) return;
- const A = k === !0 || (typeof k == 'object' && k.capture === !0),
- D = A ? 'capture' : 'bubble',
- L = x(D, T),
- H = C(L, E);
- if (E === window && !R(E, A ? 'bubble' : 'capture', T, z) && S(T, z)) {
- const q = v[T];
- q.delete(z),
- q.size === 0 && (window.removeEventListener(T, w), (v[T] = void 0));
- }
- H.has(z) && H.delete(z),
- H.size === 0 && L.delete(E),
- L.size === 0 &&
- (window.removeEventListener(T, g, D === 'capture'), (f[D][T] = void 0));
- }
- return { on: _, off: P };
- }
- const { on: Tn, off: pn } = sD(),
- Hd = Z(null);
- function nC(e) {
- if (e.clientX > 0 || e.clientY > 0) Hd.value = { x: e.clientX, y: e.clientY };
- else {
- const { target: t } = e;
- if (t instanceof Element) {
- const {
- left: n,
- top: r,
- width: o,
- height: i
- } = t.getBoundingClientRect();
- n > 0 || r > 0
- ? (Hd.value = { x: n + o / 2, y: r + i / 2 })
- : (Hd.value = { x: 0, y: 0 });
- } else Hd.value = null;
- }
- }
- let vh = 0,
- rC = !0;
- function UR() {
- if (!Rp) return Vi(Z(null));
- vh === 0 && Tn('click', document, nC, !0);
- const e = () => {
- vh += 1;
- };
- return (
- rC && (rC = G0())
- ? (yl(e),
- qn(() => {
- (vh -= 1), vh === 0 && pn('click', document, nC, !0);
- }))
- : e(),
- Vi(Hd)
- );
- }
- const cD = Z(void 0);
- let ph = 0;
- function oC() {
- cD.value = Date.now();
- }
- let iC = !0;
- function VR(e) {
- if (!Rp) return Vi(Z(!1));
- const t = Z(!1);
- let n = null;
- function r() {
- n !== null && window.clearTimeout(n);
- }
- function o() {
- r(),
- (t.value = !0),
- (n = window.setTimeout(() => {
- t.value = !1;
- }, e));
- }
- ph === 0 && Tn('click', window, oC, !0);
- const i = () => {
- (ph += 1), Tn('click', window, o, !0);
- };
- return (
- iC && (iC = G0())
- ? (yl(i),
- qn(() => {
- (ph -= 1),
- ph === 0 && pn('click', window, oC, !0),
- pn('click', window, o, !0),
- r();
- }))
- : i(),
- Vi(t)
- );
- }
- function En(e, t) {
- return (
- $t(e, n => {
- n !== void 0 && (t.value = n);
- }),
- I(() => (e.value === void 0 ? t.value : e.value))
- );
- }
- function yi() {
- const e = Z(!1);
- return (
- Hn(() => {
- e.value = !0;
- }),
- Vi(e)
- );
- }
- function xs(e, t) {
- return I(() => {
- for (const n of t) if (e[n] !== void 0) return e[n];
- return e[t[t.length - 1]];
- });
- }
- const dD =
- (typeof window > 'u'
- ? !1
- : /iPad|iPhone|iPod/.test(navigator.platform) ||
- (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) &&
- !window.MSStream;
- function uD() {
- return dD;
- }
- const fD = { xs: 0, s: 640, m: 1024, l: 1280, xl: 1536, '2xl': 1920 };
- function hD(e) {
- return `(min-width: ${e}px)`;
- }
- const Ed = {};
- function vD(e = fD) {
- if (!Rp) return I(() => []);
- if (typeof window.matchMedia != 'function') return I(() => []);
- const t = Z({}),
- n = Object.keys(e),
- r = (o, i) => {
- o.matches ? (t.value[i] = !0) : (t.value[i] = !1);
- };
- return (
- n.forEach(o => {
- const i = e[o];
- let a, s;
- Ed[i] === void 0
- ? ((a = window.matchMedia(hD(i))),
- a.addEventListener
- ? a.addEventListener('change', c => {
- s.forEach(d => {
- d(c, o);
- });
- })
- : a.addListener &&
- a.addListener(c => {
- s.forEach(d => {
- d(c, o);
- });
- }),
- (s = new Set()),
- (Ed[i] = { mql: a, cbs: s }))
- : ((a = Ed[i].mql), (s = Ed[i].cbs)),
- s.add(r),
- a.matches &&
- s.forEach(c => {
- c(a, o);
- });
- }),
- qn(() => {
- n.forEach(o => {
- const { cbs: i } = Ed[e[o]];
- i.has(r) && i.delete(r);
- });
- }),
- I(() => {
- const { value: o } = t;
- return n.filter(i => o[i]);
- })
- );
- }
- function X0(e = {}, t) {
- const n = Qi({ ctrl: !1, command: !1, win: !1, shift: !1, tab: !1 }),
- { keydown: r, keyup: o } = e,
- i = c => {
- switch (c.key) {
- case 'Control':
- n.ctrl = !0;
- break;
- case 'Meta':
- (n.command = !0), (n.win = !0);
- break;
- case 'Shift':
- n.shift = !0;
- break;
- case 'Tab':
- n.tab = !0;
- break;
- }
- r !== void 0 &&
- Object.keys(r).forEach(d => {
- if (d !== c.key) return;
- const f = r[d];
- if (typeof f == 'function') f(c);
- else {
- const { stop: v = !1, prevent: p = !1 } = f;
- v && c.stopPropagation(), p && c.preventDefault(), f.handler(c);
- }
- });
- },
- a = c => {
- switch (c.key) {
- case 'Control':
- n.ctrl = !1;
- break;
- case 'Meta':
- (n.command = !1), (n.win = !1);
- break;
- case 'Shift':
- n.shift = !1;
- break;
- case 'Tab':
- n.tab = !1;
- break;
- }
- o !== void 0 &&
- Object.keys(o).forEach(d => {
- if (d !== c.key) return;
- const f = o[d];
- if (typeof f == 'function') f(c);
- else {
- const { stop: v = !1, prevent: p = !1 } = f;
- v && c.stopPropagation(), p && c.preventDefault(), f.handler(c);
- }
- });
- },
- s = () => {
- (t === void 0 || t.value) &&
- (Tn('keydown', document, i), Tn('keyup', document, a)),
- t !== void 0 &&
- $t(t, c => {
- c
- ? (Tn('keydown', document, i), Tn('keyup', document, a))
- : (pn('keydown', document, i), pn('keyup', document, a));
- });
- };
- return (
- G0()
- ? (yl(s),
- qn(() => {
- (t === void 0 || t.value) &&
- (pn('keydown', document, i), pn('keyup', document, a));
- }))
- : s(),
- Vi(n)
- );
- }
- const Z0 = 'n-internal-select-menu',
- KR = 'n-internal-select-menu-body',
- Vu = 'n-modal-body',
- qR = 'n-modal',
- Ku = 'n-drawer-body',
- Q0 = 'n-drawer',
- Zc = 'n-popover-body',
- YR = '__disabled__';
- function Yr(e) {
- const t = Ze(Vu, null),
- n = Ze(Ku, null),
- r = Ze(Zc, null),
- o = Ze(KR, null),
- i = Z();
- if (typeof document < 'u') {
- i.value = document.fullscreenElement;
- const a = () => {
- i.value = document.fullscreenElement;
- };
- Hn(() => {
- Tn('fullscreenchange', document, a);
- }),
- qn(() => {
- pn('fullscreenchange', document, a);
- });
- }
- return kt(() => {
- var a;
- const { to: s } = e;
- return s !== void 0
- ? s === !1
- ? YR
- : s === !0
- ? i.value || 'body'
- : s
- : t != null && t.value
- ? (a = t.value.$el) !== null && a !== void 0
- ? a
- : t.value
- : n != null && n.value
- ? n.value
- : r != null && r.value
- ? r.value
- : o != null && o.value
- ? o.value
- : s ?? (i.value || 'body');
- });
- }
- Yr.tdkey = YR;
- Yr.propTo = { type: [String, Object, Boolean], default: void 0 };
- let aC = !1;
- function pD() {
- if (
- Fo &&
- window.CSS &&
- !aC &&
- ((aC = !0), 'registerProperty' in (window == null ? void 0 : window.CSS))
- )
- try {
- CSS.registerProperty({
- name: '--n-color-start',
- syntax: '<color>',
- inherits: !1,
- initialValue: '#0000'
- }),
- CSS.registerProperty({
- name: '--n-color-end',
- syntax: '<color>',
- inherits: !1,
- initialValue: '#0000'
- });
- } catch {}
- }
- function kb(e, t, n = 'default') {
- const r = t[n];
- if (r === void 0) throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);
- return r();
- }
- function Tb(e, t = !0, n = []) {
- return (
- e.forEach(r => {
- if (r !== null) {
- if (typeof r != 'object') {
- (typeof r == 'string' || typeof r == 'number') &&
- n.push(wu(String(r)));
- return;
- }
- if (Array.isArray(r)) {
- Tb(r, t, n);
- return;
- }
- if (r.type === on) {
- if (r.children === null) return;
- Array.isArray(r.children) && Tb(r.children, t, n);
- } else r.type !== Eo && n.push(r);
- }
- }),
- n
- );
- }
- function lC(e, t, n = 'default') {
- const r = t[n];
- if (r === void 0) throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);
- const o = Tb(r());
- if (o.length === 1) return o[0];
- throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`);
- }
- let qa = null;
- function GR() {
- if (
- qa === null &&
- ((qa = document.getElementById('v-binder-view-measurer')), qa === null)
- ) {
- (qa = document.createElement('div')), (qa.id = 'v-binder-view-measurer');
- const { style: e } = qa;
- (e.position = 'fixed'),
- (e.left = '0'),
- (e.right = '0'),
- (e.top = '0'),
- (e.bottom = '0'),
- (e.pointerEvents = 'none'),
- (e.visibility = 'hidden'),
- document.body.appendChild(qa);
- }
- return qa.getBoundingClientRect();
- }
- function gD(e, t) {
- const n = GR();
- return {
- top: t,
- left: e,
- height: 0,
- width: 0,
- right: n.width - e,
- bottom: n.height - t
- };
- }
- function um(e) {
- const t = e.getBoundingClientRect(),
- n = GR();
- return {
- left: t.left - n.left,
- top: t.top - n.top,
- bottom: n.height + n.top - t.bottom,
- right: n.width + n.left - t.right,
- width: t.width,
- height: t.height
- };
- }
- function mD(e) {
- return e.nodeType === 9 ? null : e.parentNode;
- }
- function XR(e) {
- if (e === null) return null;
- const t = mD(e);
- if (t === null) return null;
- if (t.nodeType === 9) return document;
- if (t.nodeType === 1) {
- const { overflow: n, overflowX: r, overflowY: o } = getComputedStyle(t);
- if (/(auto|scroll|overlay)/.test(n + o + r)) return t;
- }
- return XR(t);
- }
- const bD = ke({
- name: 'Binder',
- props: {
- syncTargetWithParent: Boolean,
- syncTarget: { type: Boolean, default: !0 }
- },
- setup(e) {
- var t;
- Rt('VBinder', (t = Ra()) === null || t === void 0 ? void 0 : t.proxy);
- const n = Ze('VBinder', null),
- r = Z(null),
- o = y => {
- (r.value = y), n && e.syncTargetWithParent && n.setTargetRef(y);
- };
- let i = [];
- const a = () => {
- let y = r.value;
- for (; (y = XR(y)), y !== null; ) i.push(y);
- for (const C of i) Tn('scroll', C, v, !0);
- },
- s = () => {
- for (const y of i) pn('scroll', y, v, !0);
- i = [];
- },
- c = new Set(),
- d = y => {
- c.size === 0 && a(), c.has(y) || c.add(y);
- },
- f = y => {
- c.has(y) && c.delete(y), c.size === 0 && s();
- },
- v = () => {
- Oc(p);
- },
- p = () => {
- c.forEach(y => y());
- },
- m = new Set(),
- g = y => {
- m.size === 0 && Tn('resize', window, x), m.has(y) || m.add(y);
- },
- w = y => {
- m.has(y) && m.delete(y), m.size === 0 && pn('resize', window, x);
- },
- x = () => {
- m.forEach(y => y());
- };
- return (
- qn(() => {
- pn('resize', window, x), s();
- }),
- {
- targetRef: r,
- setTargetRef: o,
- addScrollListener: d,
- removeScrollListener: f,
- addResizeListener: g,
- removeResizeListener: w
- }
- );
- },
- render() {
- return kb('binder', this.$slots);
- }
- }),
- Qc = bD,
- Jc = ke({
- name: 'Target',
- setup() {
- const { setTargetRef: e, syncTarget: t } = Ze('VBinder');
- return { syncTarget: t, setTargetDirective: { mounted: e, updated: e } };
- },
- render() {
- const { syncTarget: e, setTargetDirective: t } = this;
- return e
- ? Er(lC('follower', this.$slots), [[t]])
- : lC('follower', this.$slots);
- }
- }),
- ic = '@@mmoContext',
- yD = {
- mounted(e, { value: t }) {
- (e[ic] = { handler: void 0 }),
- typeof t == 'function' &&
- ((e[ic].handler = t), Tn('mousemoveoutside', e, t));
- },
- updated(e, { value: t }) {
- const n = e[ic];
- typeof t == 'function'
- ? n.handler
- ? n.handler !== t &&
- (pn('mousemoveoutside', e, n.handler),
- (n.handler = t),
- Tn('mousemoveoutside', e, t))
- : ((e[ic].handler = t), Tn('mousemoveoutside', e, t))
- : n.handler &&
- (pn('mousemoveoutside', e, n.handler), (n.handler = void 0));
- },
- unmounted(e) {
- const { handler: t } = e[ic];
- t && pn('mousemoveoutside', e, t), (e[ic].handler = void 0);
- }
- },
- xD = yD,
- ac = '@@coContext',
- wD = {
- mounted(e, { value: t, modifiers: n }) {
- (e[ac] = { handler: void 0 }),
- typeof t == 'function' &&
- ((e[ac].handler = t),
- Tn('clickoutside', e, t, { capture: n.capture }));
- },
- updated(e, { value: t, modifiers: n }) {
- const r = e[ac];
- typeof t == 'function'
- ? r.handler
- ? r.handler !== t &&
- (pn('clickoutside', e, r.handler, { capture: n.capture }),
- (r.handler = t),
- Tn('clickoutside', e, t, { capture: n.capture }))
- : ((e[ac].handler = t),
- Tn('clickoutside', e, t, { capture: n.capture }))
- : r.handler &&
- (pn('clickoutside', e, r.handler, { capture: n.capture }),
- (r.handler = void 0));
- },
- unmounted(e, { modifiers: t }) {
- const { handler: n } = e[ac];
- n && pn('clickoutside', e, n, { capture: t.capture }),
- (e[ac].handler = void 0);
- }
- },
- wa = wD;
- function CD(e, t) {
- console.error(`[vdirs/${e}]: ${t}`);
- }
- class SD {
- constructor() {
- (this.elementZIndex = new Map()), (this.nextZIndex = 2e3);
- }
- get elementCount() {
- return this.elementZIndex.size;
- }
- ensureZIndex(t, n) {
- const { elementZIndex: r } = this;
- if (n !== void 0) {
- (t.style.zIndex = `${n}`), r.delete(t);
- return;
- }
- const { nextZIndex: o } = this;
- (r.has(t) && r.get(t) + 1 === this.nextZIndex) ||
- ((t.style.zIndex = `${o}`),
- r.set(t, o),
- (this.nextZIndex = o + 1),
- this.squashState());
- }
- unregister(t, n) {
- const { elementZIndex: r } = this;
- r.has(t)
- ? r.delete(t)
- : n === void 0 &&
- CD(
- 'z-index-manager/unregister-element',
- 'Element not found when unregistering.'
- ),
- this.squashState();
- }
- squashState() {
- const { elementCount: t } = this;
- t || (this.nextZIndex = 2e3),
- this.nextZIndex - t > 2500 && this.rearrange();
- }
- rearrange() {
- const t = Array.from(this.elementZIndex.entries());
- t.sort((n, r) => n[1] - r[1]),
- (this.nextZIndex = 2e3),
- t.forEach(n => {
- const r = n[0],
- o = this.nextZIndex++;
- `${o}` !== r.style.zIndex && (r.style.zIndex = `${o}`);
- });
- }
- }
- const fm = new SD(),
- lc = '@@ziContext',
- _D = {
- mounted(e, t) {
- const { value: n = {} } = t,
- { zIndex: r, enabled: o } = n;
- (e[lc] = { enabled: !!o, initialized: !1 }),
- o && (fm.ensureZIndex(e, r), (e[lc].initialized = !0));
- },
- updated(e, t) {
- const { value: n = {} } = t,
- { zIndex: r, enabled: o } = n,
- i = e[lc].enabled;
- o && !i && (fm.ensureZIndex(e, r), (e[lc].initialized = !0)),
- (e[lc].enabled = !!o);
- },
- unmounted(e, t) {
- if (!e[lc].initialized) return;
- const { value: n = {} } = t,
- { zIndex: r } = n;
- fm.unregister(e, r);
- }
- },
- qu = _D,
- ZR = Symbol('@css-render/vue3-ssr');
- function RD(e, t) {
- return `<style cssr-id="${e}">
- ${t}
- </style>`;
- }
- function PD(e, t) {
- const n = Ze(ZR, null);
- if (n === null) {
- console.error('[css-render/vue3-ssr]: no ssr context found.');
- return;
- }
- const { styles: r, ids: o } = n;
- o.has(e) || (r !== null && (o.add(e), r.push(RD(e, t))));
- }
- const kD = typeof document < 'u';
- function wl() {
- if (kD) return;
- const e = Ze(ZR, null);
- if (e !== null) return { adapter: PD, context: e };
- }
- function sC(e, t) {
- console.error(`[vueuc/${e}]: ${t}`);
- }
- const { c: Hi } = DR(),
- Pp = 'vueuc-style';
- function cC(e) {
- return e & -e;
- }
- class TD {
- constructor(t, n) {
- (this.l = t), (this.min = n);
- const r = new Array(t + 1);
- for (let o = 0; o < t + 1; ++o) r[o] = 0;
- this.ft = r;
- }
- add(t, n) {
- if (n === 0) return;
- const { l: r, ft: o } = this;
- for (t += 1; t <= r; ) (o[t] += n), (t += cC(t));
- }
- get(t) {
- return this.sum(t + 1) - this.sum(t);
- }
- sum(t) {
- if ((t === void 0 && (t = this.l), t <= 0)) return 0;
- const { ft: n, min: r, l: o } = this;
- if (t > o) throw new Error('[FinweckTree.sum]: `i` is larger than length.');
- let i = t * r;
- for (; t > 0; ) (i += n[t]), (t -= cC(t));
- return i;
- }
- getBound(t) {
- let n = 0,
- r = this.l;
- for (; r > n; ) {
- const o = Math.floor((n + r) / 2),
- i = this.sum(o);
- if (i > t) {
- r = o;
- continue;
- } else if (i < t) {
- if (n === o) return this.sum(n + 1) <= t ? n + 1 : o;
- n = o;
- } else return o;
- }
- return n;
- }
- }
- function dC(e) {
- return typeof e == 'string' ? document.querySelector(e) : e();
- }
- const Yu = ke({
- name: 'LazyTeleport',
- props: {
- to: { type: [String, Object], default: void 0 },
- disabled: Boolean,
- show: { type: Boolean, required: !0 }
- },
- setup(e) {
- return {
- showTeleport: nD(Ie(e, 'show')),
- mergedTo: I(() => {
- const { to: t } = e;
- return t ?? 'body';
- })
- };
- },
- render() {
- return this.showTeleport
- ? this.disabled
- ? kb('lazy-teleport', this.$slots)
- : h(
- Hu,
- { disabled: this.disabled, to: this.mergedTo },
- kb('lazy-teleport', this.$slots)
- )
- : null;
- }
- }),
- gh = { top: 'bottom', bottom: 'top', left: 'right', right: 'left' },
- uC = { start: 'end', center: 'center', end: 'start' },
- hm = { top: 'height', bottom: 'height', left: 'width', right: 'width' },
- $D = {
- 'bottom-start': 'top left',
- bottom: 'top center',
- 'bottom-end': 'top right',
- 'top-start': 'bottom left',
- top: 'bottom center',
- 'top-end': 'bottom right',
- 'right-start': 'top left',
- right: 'center left',
- 'right-end': 'bottom left',
- 'left-start': 'top right',
- left: 'center right',
- 'left-end': 'bottom right'
- },
- OD = {
- 'bottom-start': 'bottom left',
- bottom: 'bottom center',
- 'bottom-end': 'bottom right',
- 'top-start': 'top left',
- top: 'top center',
- 'top-end': 'top right',
- 'right-start': 'top right',
- right: 'center right',
- 'right-end': 'bottom right',
- 'left-start': 'top left',
- left: 'center left',
- 'left-end': 'bottom left'
- },
- zD = {
- 'bottom-start': 'right',
- 'bottom-end': 'left',
- 'top-start': 'right',
- 'top-end': 'left',
- 'right-start': 'bottom',
- 'right-end': 'top',
- 'left-start': 'bottom',
- 'left-end': 'top'
- },
- fC = { top: !0, bottom: !1, left: !0, right: !1 },
- hC = { top: 'end', bottom: 'start', left: 'end', right: 'start' };
- function ED(e, t, n, r, o, i) {
- if (!o || i) return { placement: e, top: 0, left: 0 };
- const [a, s] = e.split('-');
- let c = s ?? 'center',
- d = { top: 0, left: 0 };
- const f = (m, g, w) => {
- let x = 0,
- y = 0;
- const C = n[m] - t[g] - t[m];
- return (
- C > 0 && r && (w ? (y = fC[g] ? C : -C) : (x = fC[g] ? C : -C)),
- { left: x, top: y }
- );
- },
- v = a === 'left' || a === 'right';
- if (c !== 'center') {
- const m = zD[e],
- g = gh[m],
- w = hm[m];
- if (n[w] > t[w]) {
- if (t[m] + t[w] < n[w]) {
- const x = (n[w] - t[w]) / 2;
- t[m] < x || t[g] < x
- ? t[m] < t[g]
- ? ((c = uC[s]), (d = f(w, g, v)))
- : (d = f(w, m, v))
- : (c = 'center');
- }
- } else n[w] < t[w] && t[g] < 0 && t[m] > t[g] && (c = uC[s]);
- } else {
- const m = a === 'bottom' || a === 'top' ? 'left' : 'top',
- g = gh[m],
- w = hm[m],
- x = (n[w] - t[w]) / 2;
- (t[m] < x || t[g] < x) &&
- (t[m] > t[g]
- ? ((c = hC[m]), (d = f(w, m, v)))
- : ((c = hC[g]), (d = f(w, g, v))));
- }
- let p = a;
- return (
- t[a] < n[hm[a]] && t[a] < t[gh[a]] && (p = gh[a]),
- { placement: c !== 'center' ? `${p}-${c}` : p, left: d.left, top: d.top }
- );
- }
- function AD(e, t) {
- return t ? OD[e] : $D[e];
- }
- function MD(e, t, n, r, o, i) {
- if (i)
- switch (e) {
- case 'bottom-start':
- return {
- top: `${Math.round(n.top - t.top + n.height)}px`,
- left: `${Math.round(n.left - t.left)}px`,
- transform: 'translateY(-100%)'
- };
- case 'bottom-end':
- return {
- top: `${Math.round(n.top - t.top + n.height)}px`,
- left: `${Math.round(n.left - t.left + n.width)}px`,
- transform: 'translateX(-100%) translateY(-100%)'
- };
- case 'top-start':
- return {
- top: `${Math.round(n.top - t.top)}px`,
- left: `${Math.round(n.left - t.left)}px`,
- transform: ''
- };
- case 'top-end':
- return {
- top: `${Math.round(n.top - t.top)}px`,
- left: `${Math.round(n.left - t.left + n.width)}px`,
- transform: 'translateX(-100%)'
- };
- case 'right-start':
- return {
- top: `${Math.round(n.top - t.top)}px`,
- left: `${Math.round(n.left - t.left + n.width)}px`,
- transform: 'translateX(-100%)'
- };
- case 'right-end':
- return {
- top: `${Math.round(n.top - t.top + n.height)}px`,
- left: `${Math.round(n.left - t.left + n.width)}px`,
- transform: 'translateX(-100%) translateY(-100%)'
- };
- case 'left-start':
- return {
- top: `${Math.round(n.top - t.top)}px`,
- left: `${Math.round(n.left - t.left)}px`,
- transform: ''
- };
- case 'left-end':
- return {
- top: `${Math.round(n.top - t.top + n.height)}px`,
- left: `${Math.round(n.left - t.left)}px`,
- transform: 'translateY(-100%)'
- };
- case 'top':
- return {
- top: `${Math.round(n.top - t.top)}px`,
- left: `${Math.round(n.left - t.left + n.width / 2)}px`,
- transform: 'translateX(-50%)'
- };
- case 'right':
- return {
- top: `${Math.round(n.top - t.top + n.height / 2)}px`,
- left: `${Math.round(n.left - t.left + n.width)}px`,
- transform: 'translateX(-100%) translateY(-50%)'
- };
- case 'left':
- return {
- top: `${Math.round(n.top - t.top + n.height / 2)}px`,
- left: `${Math.round(n.left - t.left)}px`,
- transform: 'translateY(-50%)'
- };
- case 'bottom':
- default:
- return {
- top: `${Math.round(n.top - t.top + n.height)}px`,
- left: `${Math.round(n.left - t.left + n.width / 2)}px`,
- transform: 'translateX(-50%) translateY(-100%)'
- };
- }
- switch (e) {
- case 'bottom-start':
- return {
- top: `${Math.round(n.top - t.top + n.height + r)}px`,
- left: `${Math.round(n.left - t.left + o)}px`,
- transform: ''
- };
- case 'bottom-end':
- return {
- top: `${Math.round(n.top - t.top + n.height + r)}px`,
- left: `${Math.round(n.left - t.left + n.width + o)}px`,
- transform: 'translateX(-100%)'
- };
- case 'top-start':
- return {
- top: `${Math.round(n.top - t.top + r)}px`,
- left: `${Math.round(n.left - t.left + o)}px`,
- transform: 'translateY(-100%)'
- };
- case 'top-end':
- return {
- top: `${Math.round(n.top - t.top + r)}px`,
- left: `${Math.round(n.left - t.left + n.width + o)}px`,
- transform: 'translateX(-100%) translateY(-100%)'
- };
- case 'right-start':
- return {
- top: `${Math.round(n.top - t.top + r)}px`,
- left: `${Math.round(n.left - t.left + n.width + o)}px`,
- transform: ''
- };
- case 'right-end':
- return {
- top: `${Math.round(n.top - t.top + n.height + r)}px`,
- left: `${Math.round(n.left - t.left + n.width + o)}px`,
- transform: 'translateY(-100%)'
- };
- case 'left-start':
- return {
- top: `${Math.round(n.top - t.top + r)}px`,
- left: `${Math.round(n.left - t.left + o)}px`,
- transform: 'translateX(-100%)'
- };
- case 'left-end':
- return {
- top: `${Math.round(n.top - t.top + n.height + r)}px`,
- left: `${Math.round(n.left - t.left + o)}px`,
- transform: 'translateX(-100%) translateY(-100%)'
- };
- case 'top':
- return {
- top: `${Math.round(n.top - t.top + r)}px`,
- left: `${Math.round(n.left - t.left + n.width / 2 + o)}px`,
- transform: 'translateY(-100%) translateX(-50%)'
- };
- case 'right':
- return {
- top: `${Math.round(n.top - t.top + n.height / 2 + r)}px`,
- left: `${Math.round(n.left - t.left + n.width + o)}px`,
- transform: 'translateY(-50%)'
- };
- case 'left':
- return {
- top: `${Math.round(n.top - t.top + n.height / 2 + r)}px`,
- left: `${Math.round(n.left - t.left + o)}px`,
- transform: 'translateY(-50%) translateX(-100%)'
- };
- case 'bottom':
- default:
- return {
- top: `${Math.round(n.top - t.top + n.height + r)}px`,
- left: `${Math.round(n.left - t.left + n.width / 2 + o)}px`,
- transform: 'translateX(-50%)'
- };
- }
- }
- const ID = Hi([
- Hi('.v-binder-follower-container', {
- position: 'absolute',
- left: '0',
- right: '0',
- top: '0',
- height: '0',
- pointerEvents: 'none',
- zIndex: 'auto'
- }),
- Hi('.v-binder-follower-content', { position: 'absolute', zIndex: 'auto' }, [
- Hi('> *', { pointerEvents: 'all' })
- ])
- ]),
- ed = ke({
- name: 'Follower',
- inheritAttrs: !1,
- props: {
- show: Boolean,
- enabled: { type: Boolean, default: void 0 },
- placement: { type: String, default: 'bottom' },
- syncTrigger: { type: Array, default: ['resize', 'scroll'] },
- to: [String, Object],
- flip: { type: Boolean, default: !0 },
- internalShift: Boolean,
- x: Number,
- y: Number,
- width: String,
- minWidth: String,
- containerClass: String,
- teleportDisabled: Boolean,
- zindexable: { type: Boolean, default: !0 },
- zIndex: Number,
- overlap: Boolean
- },
- setup(e) {
- const t = Ze('VBinder'),
- n = kt(() => (e.enabled !== void 0 ? e.enabled : e.show)),
- r = Z(null),
- o = Z(null),
- i = () => {
- const { syncTrigger: p } = e;
- p.includes('scroll') && t.addScrollListener(c),
- p.includes('resize') && t.addResizeListener(c);
- },
- a = () => {
- t.removeScrollListener(c), t.removeResizeListener(c);
- };
- Hn(() => {
- n.value && (c(), i());
- });
- const s = wl();
- ID.mount({ id: 'vueuc/binder', head: !0, anchorMetaName: Pp, ssr: s }),
- qn(() => {
- a();
- }),
- jR(() => {
- n.value && c();
- });
- const c = () => {
- if (!n.value) return;
- const p = r.value;
- if (p === null) return;
- const m = t.targetRef,
- { x: g, y: w, overlap: x } = e,
- y = g !== void 0 && w !== void 0 ? gD(g, w) : um(m);
- p.style.setProperty('--v-target-width', `${Math.round(y.width)}px`),
- p.style.setProperty('--v-target-height', `${Math.round(y.height)}px`);
- const {
- width: C,
- minWidth: R,
- placement: S,
- internalShift: _,
- flip: P
- } = e;
- p.setAttribute('v-placement', S),
- x ? p.setAttribute('v-overlap', '') : p.removeAttribute('v-overlap');
- const { style: T } = p;
- C === 'target'
- ? (T.width = `${y.width}px`)
- : C !== void 0
- ? (T.width = C)
- : (T.width = ''),
- R === 'target'
- ? (T.minWidth = `${y.width}px`)
- : R !== void 0
- ? (T.minWidth = R)
- : (T.minWidth = '');
- const E = um(p),
- z = um(o.value),
- { left: k, top: M, placement: A } = ED(S, y, E, _, P, x),
- D = AD(A, x),
- { left: L, top: H, transform: B } = MD(A, z, y, M, k, x);
- p.setAttribute('v-placement', A),
- p.style.setProperty('--v-offset-left', `${Math.round(k)}px`),
- p.style.setProperty('--v-offset-top', `${Math.round(M)}px`),
- (p.style.transform = `translateX(${L}) translateY(${H}) ${B}`),
- p.style.setProperty('--v-transform-origin', D),
- (p.style.transformOrigin = D);
- };
- $t(n, p => {
- p ? (i(), d()) : a();
- });
- const d = () => {
- mn()
- .then(c)
- .catch(p => console.error(p));
- };
- [
- 'placement',
- 'x',
- 'y',
- 'internalShift',
- 'flip',
- 'width',
- 'overlap',
- 'minWidth'
- ].forEach(p => {
- $t(Ie(e, p), c);
- }),
- ['teleportDisabled'].forEach(p => {
- $t(Ie(e, p), d);
- }),
- $t(Ie(e, 'syncTrigger'), p => {
- p.includes('resize')
- ? t.addResizeListener(c)
- : t.removeResizeListener(c),
- p.includes('scroll')
- ? t.addScrollListener(c)
- : t.removeScrollListener(c);
- });
- const f = yi(),
- v = kt(() => {
- const { to: p } = e;
- if (p !== void 0) return p;
- f.value;
- });
- return {
- VBinder: t,
- mergedEnabled: n,
- offsetContainerRef: o,
- followerRef: r,
- mergedTo: v,
- syncPosition: c
- };
- },
- render() {
- return h(
- Yu,
- { show: this.show, to: this.mergedTo, disabled: this.teleportDisabled },
- {
- default: () => {
- var e, t;
- const n = h(
- 'div',
- {
- class: ['v-binder-follower-container', this.containerClass],
- ref: 'offsetContainerRef'
- },
- [
- h(
- 'div',
- { class: 'v-binder-follower-content', ref: 'followerRef' },
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e)
- )
- ]
- );
- return this.zindexable
- ? Er(n, [
- [qu, { enabled: this.mergedEnabled, zIndex: this.zIndex }]
- ])
- : n;
- }
- }
- );
- }
- });
- var gs = [],
- DD = function () {
- return gs.some(function (e) {
- return e.activeTargets.length > 0;
- });
- },
- FD = function () {
- return gs.some(function (e) {
- return e.skippedTargets.length > 0;
- });
- },
- vC = 'ResizeObserver loop completed with undelivered notifications.',
- BD = function () {
- var e;
- typeof ErrorEvent == 'function'
- ? (e = new ErrorEvent('error', { message: vC }))
- : ((e = document.createEvent('Event')),
- e.initEvent('error', !1, !1),
- (e.message = vC)),
- window.dispatchEvent(e);
- },
- Pu;
- (function (e) {
- (e.BORDER_BOX = 'border-box'),
- (e.CONTENT_BOX = 'content-box'),
- (e.DEVICE_PIXEL_CONTENT_BOX = 'device-pixel-content-box');
- })(Pu || (Pu = {}));
- var ms = function (e) {
- return Object.freeze(e);
- },
- LD = (function () {
- function e(t, n) {
- (this.inlineSize = t), (this.blockSize = n), ms(this);
- }
- return e;
- })(),
- QR = (function () {
- function e(t, n, r, o) {
- return (
- (this.x = t),
- (this.y = n),
- (this.width = r),
- (this.height = o),
- (this.top = this.y),
- (this.left = this.x),
- (this.bottom = this.top + this.height),
- (this.right = this.left + this.width),
- ms(this)
- );
- }
- return (
- (e.prototype.toJSON = function () {
- var t = this,
- n = t.x,
- r = t.y,
- o = t.top,
- i = t.right,
- a = t.bottom,
- s = t.left,
- c = t.width,
- d = t.height;
- return {
- x: n,
- y: r,
- top: o,
- right: i,
- bottom: a,
- left: s,
- width: c,
- height: d
- };
- }),
- (e.fromRect = function (t) {
- return new e(t.x, t.y, t.width, t.height);
- }),
- e
- );
- })(),
- J0 = function (e) {
- return e instanceof SVGElement && 'getBBox' in e;
- },
- JR = function (e) {
- if (J0(e)) {
- var t = e.getBBox(),
- n = t.width,
- r = t.height;
- return !n && !r;
- }
- var o = e,
- i = o.offsetWidth,
- a = o.offsetHeight;
- return !(i || a || e.getClientRects().length);
- },
- pC = function (e) {
- var t;
- if (e instanceof Element) return !0;
- var n =
- (t = e == null ? void 0 : e.ownerDocument) === null || t === void 0
- ? void 0
- : t.defaultView;
- return !!(n && e instanceof n.Element);
- },
- ND = function (e) {
- switch (e.tagName) {
- case 'INPUT':
- if (e.type !== 'image') break;
- case 'VIDEO':
- case 'SONG':
- case 'EMBED':
- case 'OBJECT':
- case 'CANVAS':
- case 'IFRAME':
- case 'IMG':
- return !0;
- }
- return !1;
- },
- tu = typeof window < 'u' ? window : {},
- mh = new WeakMap(),
- gC = /auto|scroll/,
- HD = /^tb|vertical/,
- jD = /msie|trident/i.test(tu.navigator && tu.navigator.userAgent),
- Ti = function (e) {
- return parseFloat(e || '0');
- },
- _c = function (e, t, n) {
- return (
- e === void 0 && (e = 0),
- t === void 0 && (t = 0),
- n === void 0 && (n = !1),
- new LD((n ? t : e) || 0, (n ? e : t) || 0)
- );
- },
- mC = ms({
- devicePixelContentBoxSize: _c(),
- borderBoxSize: _c(),
- contentBoxSize: _c(),
- contentRect: new QR(0, 0, 0, 0)
- }),
- eP = function (e, t) {
- if ((t === void 0 && (t = !1), mh.has(e) && !t)) return mh.get(e);
- if (JR(e)) return mh.set(e, mC), mC;
- var n = getComputedStyle(e),
- r = J0(e) && e.ownerSVGElement && e.getBBox(),
- o = !jD && n.boxSizing === 'border-box',
- i = HD.test(n.writingMode || ''),
- a = !r && gC.test(n.overflowY || ''),
- s = !r && gC.test(n.overflowX || ''),
- c = r ? 0 : Ti(n.paddingTop),
- d = r ? 0 : Ti(n.paddingRight),
- f = r ? 0 : Ti(n.paddingBottom),
- v = r ? 0 : Ti(n.paddingLeft),
- p = r ? 0 : Ti(n.borderTopWidth),
- m = r ? 0 : Ti(n.borderRightWidth),
- g = r ? 0 : Ti(n.borderBottomWidth),
- w = r ? 0 : Ti(n.borderLeftWidth),
- x = v + d,
- y = c + f,
- C = w + m,
- R = p + g,
- S = s ? e.offsetHeight - R - e.clientHeight : 0,
- _ = a ? e.offsetWidth - C - e.clientWidth : 0,
- P = o ? x + C : 0,
- T = o ? y + R : 0,
- E = r ? r.width : Ti(n.width) - P - _,
- z = r ? r.height : Ti(n.height) - T - S,
- k = E + x + _ + C,
- M = z + y + S + R,
- A = ms({
- devicePixelContentBoxSize: _c(
- Math.round(E * devicePixelRatio),
- Math.round(z * devicePixelRatio),
- i
- ),
- borderBoxSize: _c(k, M, i),
- contentBoxSize: _c(E, z, i),
- contentRect: new QR(v, c, E, z)
- });
- return mh.set(e, A), A;
- },
- tP = function (e, t, n) {
- var r = eP(e, n),
- o = r.borderBoxSize,
- i = r.contentBoxSize,
- a = r.devicePixelContentBoxSize;
- switch (t) {
- case Pu.DEVICE_PIXEL_CONTENT_BOX:
- return a;
- case Pu.BORDER_BOX:
- return o;
- default:
- return i;
- }
- },
- WD = (function () {
- function e(t) {
- var n = eP(t);
- (this.target = t),
- (this.contentRect = n.contentRect),
- (this.borderBoxSize = ms([n.borderBoxSize])),
- (this.contentBoxSize = ms([n.contentBoxSize])),
- (this.devicePixelContentBoxSize = ms([n.devicePixelContentBoxSize]));
- }
- return e;
- })(),
- nP = function (e) {
- if (JR(e)) return 1 / 0;
- for (var t = 0, n = e.parentNode; n; ) (t += 1), (n = n.parentNode);
- return t;
- },
- UD = function () {
- var e = 1 / 0,
- t = [];
- gs.forEach(function (a) {
- if (a.activeTargets.length !== 0) {
- var s = [];
- a.activeTargets.forEach(function (d) {
- var f = new WD(d.target),
- v = nP(d.target);
- s.push(f),
- (d.lastReportedSize = tP(d.target, d.observedBox)),
- v < e && (e = v);
- }),
- t.push(function () {
- a.callback.call(a.observer, s, a.observer);
- }),
- a.activeTargets.splice(0, a.activeTargets.length);
- }
- });
- for (var n = 0, r = t; n < r.length; n++) {
- var o = r[n];
- o();
- }
- return e;
- },
- bC = function (e) {
- gs.forEach(function (n) {
- n.activeTargets.splice(0, n.activeTargets.length),
- n.skippedTargets.splice(0, n.skippedTargets.length),
- n.observationTargets.forEach(function (o) {
- o.isActive() &&
- (nP(o.target) > e
- ? n.activeTargets.push(o)
- : n.skippedTargets.push(o));
- });
- });
- },
- VD = function () {
- var e = 0;
- for (bC(e); DD(); ) (e = UD()), bC(e);
- return FD() && BD(), e > 0;
- },
- vm,
- rP = [],
- KD = function () {
- return rP.splice(0).forEach(function (e) {
- return e();
- });
- },
- qD = function (e) {
- if (!vm) {
- var t = 0,
- n = document.createTextNode(''),
- r = { characterData: !0 };
- new MutationObserver(function () {
- return KD();
- }).observe(n, r),
- (vm = function () {
- n.textContent = ''.concat(t ? t-- : t++);
- });
- }
- rP.push(e), vm();
- },
- YD = function (e) {
- qD(function () {
- requestAnimationFrame(e);
- });
- },
- Hh = 0,
- GD = function () {
- return !!Hh;
- },
- XD = 250,
- ZD = { attributes: !0, characterData: !0, childList: !0, subtree: !0 },
- yC = [
- 'resize',
- 'load',
- 'transitionend',
- 'animationend',
- 'animationstart',
- 'animationiteration',
- 'keyup',
- 'keydown',
- 'mouseup',
- 'mousedown',
- 'mouseover',
- 'mouseout',
- 'blur',
- 'focus'
- ],
- xC = function (e) {
- return e === void 0 && (e = 0), Date.now() + e;
- },
- pm = !1,
- QD = (function () {
- function e() {
- var t = this;
- (this.stopped = !0),
- (this.listener = function () {
- return t.schedule();
- });
- }
- return (
- (e.prototype.run = function (t) {
- var n = this;
- if ((t === void 0 && (t = XD), !pm)) {
- pm = !0;
- var r = xC(t);
- YD(function () {
- var o = !1;
- try {
- o = VD();
- } finally {
- if (((pm = !1), (t = r - xC()), !GD())) return;
- o ? n.run(1e3) : t > 0 ? n.run(t) : n.start();
- }
- });
- }
- }),
- (e.prototype.schedule = function () {
- this.stop(), this.run();
- }),
- (e.prototype.observe = function () {
- var t = this,
- n = function () {
- return t.observer && t.observer.observe(document.body, ZD);
- };
- document.body ? n() : tu.addEventListener('DOMContentLoaded', n);
- }),
- (e.prototype.start = function () {
- var t = this;
- this.stopped &&
- ((this.stopped = !1),
- (this.observer = new MutationObserver(this.listener)),
- this.observe(),
- yC.forEach(function (n) {
- return tu.addEventListener(n, t.listener, !0);
- }));
- }),
- (e.prototype.stop = function () {
- var t = this;
- this.stopped ||
- (this.observer && this.observer.disconnect(),
- yC.forEach(function (n) {
- return tu.removeEventListener(n, t.listener, !0);
- }),
- (this.stopped = !0));
- }),
- e
- );
- })(),
- $b = new QD(),
- wC = function (e) {
- !Hh && e > 0 && $b.start(), (Hh += e), !Hh && $b.stop();
- },
- JD = function (e) {
- return !J0(e) && !ND(e) && getComputedStyle(e).display === 'inline';
- },
- eF = (function () {
- function e(t, n) {
- (this.target = t),
- (this.observedBox = n || Pu.CONTENT_BOX),
- (this.lastReportedSize = { inlineSize: 0, blockSize: 0 });
- }
- return (
- (e.prototype.isActive = function () {
- var t = tP(this.target, this.observedBox, !0);
- return (
- JD(this.target) && (this.lastReportedSize = t),
- this.lastReportedSize.inlineSize !== t.inlineSize ||
- this.lastReportedSize.blockSize !== t.blockSize
- );
- }),
- e
- );
- })(),
- tF = (function () {
- function e(t, n) {
- (this.activeTargets = []),
- (this.skippedTargets = []),
- (this.observationTargets = []),
- (this.observer = t),
- (this.callback = n);
- }
- return e;
- })(),
- bh = new WeakMap(),
- CC = function (e, t) {
- for (var n = 0; n < e.length; n += 1) if (e[n].target === t) return n;
- return -1;
- },
- yh = (function () {
- function e() {}
- return (
- (e.connect = function (t, n) {
- var r = new tF(t, n);
- bh.set(t, r);
- }),
- (e.observe = function (t, n, r) {
- var o = bh.get(t),
- i = o.observationTargets.length === 0;
- CC(o.observationTargets, n) < 0 &&
- (i && gs.push(o),
- o.observationTargets.push(new eF(n, r && r.box)),
- wC(1),
- $b.schedule());
- }),
- (e.unobserve = function (t, n) {
- var r = bh.get(t),
- o = CC(r.observationTargets, n),
- i = r.observationTargets.length === 1;
- o >= 0 &&
- (i && gs.splice(gs.indexOf(r), 1),
- r.observationTargets.splice(o, 1),
- wC(-1));
- }),
- (e.disconnect = function (t) {
- var n = this,
- r = bh.get(t);
- r.observationTargets.slice().forEach(function (o) {
- return n.unobserve(t, o.target);
- }),
- r.activeTargets.splice(0, r.activeTargets.length);
- }),
- e
- );
- })(),
- nF = (function () {
- function e(t) {
- if (arguments.length === 0)
- throw new TypeError(
- "Failed to construct 'ResizeObserver': 1 argument required, but only 0 present."
- );
- if (typeof t != 'function')
- throw new TypeError(
- "Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function."
- );
- yh.connect(this, t);
- }
- return (
- (e.prototype.observe = function (t, n) {
- if (arguments.length === 0)
- throw new TypeError(
- "Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present."
- );
- if (!pC(t))
- throw new TypeError(
- "Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element"
- );
- yh.observe(this, t, n);
- }),
- (e.prototype.unobserve = function (t) {
- if (arguments.length === 0)
- throw new TypeError(
- "Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present."
- );
- if (!pC(t))
- throw new TypeError(
- "Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element"
- );
- yh.unobserve(this, t);
- }),
- (e.prototype.disconnect = function () {
- yh.disconnect(this);
- }),
- (e.toString = function () {
- return 'function ResizeObserver () { [polyfill code] }';
- }),
- e
- );
- })();
- class rF {
- constructor() {
- (this.handleResize = this.handleResize.bind(this)),
- (this.observer = new ((typeof window < 'u' && window.ResizeObserver) ||
- nF)(this.handleResize)),
- (this.elHandlersMap = new Map());
- }
- handleResize(t) {
- for (const n of t) {
- const r = this.elHandlersMap.get(n.target);
- r !== void 0 && r(n);
- }
- }
- registerHandler(t, n) {
- this.elHandlersMap.set(t, n), this.observer.observe(t);
- }
- unregisterHandler(t) {
- this.elHandlersMap.has(t) &&
- (this.elHandlersMap.delete(t), this.observer.unobserve(t));
- }
- }
- const tv = new rF(),
- qi = ke({
- name: 'ResizeObserver',
- props: { onResize: Function },
- setup(e) {
- let t = !1;
- const n = Ra().proxy;
- function r(o) {
- const { onResize: i } = e;
- i !== void 0 && i(o);
- }
- Hn(() => {
- const o = n.$el;
- if (o === void 0) {
- sC('resize-observer', '$el does not exist.');
- return;
- }
- if (
- o.nextElementSibling !== o.nextSibling &&
- o.nodeType === 3 &&
- o.nodeValue !== ''
- ) {
- sC(
- 'resize-observer',
- '$el can not be observed (it may be a text node).'
- );
- return;
- }
- o.nextElementSibling !== null &&
- (tv.registerHandler(o.nextElementSibling, r), (t = !0));
- }),
- qn(() => {
- t && tv.unregisterHandler(n.$el.nextElementSibling);
- });
- },
- render() {
- return j0(this.$slots, 'default');
- }
- });
- let xh;
- function oF() {
- return (
- xh === void 0 &&
- ('matchMedia' in window
- ? (xh = window.matchMedia('(pointer:coarse)').matches)
- : (xh = !1)),
- xh
- );
- }
- let gm;
- function SC() {
- return (
- gm === void 0 && (gm = 'chrome' in window ? window.devicePixelRatio : 1), gm
- );
- }
- const iF = Hi(
- '.v-vl',
- { maxHeight: 'inherit', height: '100%', overflow: 'auto', minWidth: '1px' },
- [
- Hi('&:not(.v-vl--show-scrollbar)', { scrollbarWidth: 'none' }, [
- Hi(
- '&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb',
- { width: 0, height: 0, display: 'none' }
- )
- ])
- ]
- ),
- Ec = ke({
- name: 'VirtualList',
- inheritAttrs: !1,
- props: {
- showScrollbar: { type: Boolean, default: !0 },
- items: { type: Array, default: () => [] },
- itemSize: { type: Number, required: !0 },
- itemResizable: Boolean,
- itemsStyle: [String, Object],
- visibleItemsTag: { type: [String, Object], default: 'div' },
- visibleItemsProps: Object,
- ignoreItemResize: Boolean,
- onScroll: Function,
- onWheel: Function,
- onResize: Function,
- defaultScrollKey: [Number, String],
- defaultScrollIndex: Number,
- keyField: { type: String, default: 'key' },
- paddingTop: { type: [Number, String], default: 0 },
- paddingBottom: { type: [Number, String], default: 0 }
- },
- setup(e) {
- const t = wl();
- iF.mount({
- id: 'vueuc/virtual-list',
- head: !0,
- anchorMetaName: Pp,
- ssr: t
- }),
- Hn(() => {
- const { defaultScrollIndex: M, defaultScrollKey: A } = e;
- M != null ? g({ index: M }) : A != null && g({ key: A });
- });
- let n = !1,
- r = !1;
- xp(() => {
- if (((n = !1), !r)) {
- r = !0;
- return;
- }
- g({ top: v.value, left: f });
- }),
- qc(() => {
- (n = !0), r || (r = !0);
- });
- const o = I(() => {
- const M = new Map(),
- { keyField: A } = e;
- return (
- e.items.forEach((D, L) => {
- M.set(D[A], L);
- }),
- M
- );
- }),
- i = Z(null),
- a = Z(void 0),
- s = new Map(),
- c = I(() => {
- const { items: M, itemSize: A, keyField: D } = e,
- L = new TD(M.length, A);
- return (
- M.forEach((H, B) => {
- const q = H[D],
- X = s.get(q);
- X !== void 0 && L.add(B, X);
- }),
- L
- );
- }),
- d = Z(0);
- let f = 0;
- const v = Z(0),
- p = kt(() =>
- Math.max(c.value.getBound(v.value - Lr(e.paddingTop)) - 1, 0)
- ),
- m = I(() => {
- const { value: M } = a;
- if (M === void 0) return [];
- const { items: A, itemSize: D } = e,
- L = p.value,
- H = Math.min(L + Math.ceil(M / D + 1), A.length - 1),
- B = [];
- for (let q = L; q <= H; ++q) B.push(A[q]);
- return B;
- }),
- g = (M, A) => {
- if (typeof M == 'number') {
- C(M, A, 'auto');
- return;
- }
- const {
- left: D,
- top: L,
- index: H,
- key: B,
- position: q,
- behavior: X,
- debounce: te = !0
- } = M;
- if (D !== void 0 || L !== void 0) C(D, L, X);
- else if (H !== void 0) y(H, X, te);
- else if (B !== void 0) {
- const G = o.value.get(B);
- G !== void 0 && y(G, X, te);
- } else
- q === 'bottom'
- ? C(0, Number.MAX_SAFE_INTEGER, X)
- : q === 'top' && C(0, 0, X);
- };
- let w,
- x = null;
- function y(M, A, D) {
- const { value: L } = c,
- H = L.sum(M) + Lr(e.paddingTop);
- if (!D) i.value.scrollTo({ left: 0, top: H, behavior: A });
- else {
- (w = M),
- x !== null && window.clearTimeout(x),
- (x = window.setTimeout(() => {
- (w = void 0), (x = null);
- }, 16));
- const { scrollTop: B, offsetHeight: q } = i.value;
- if (H > B) {
- const X = L.get(M);
- H + X <= B + q ||
- i.value.scrollTo({ left: 0, top: H + X - q, behavior: A });
- } else i.value.scrollTo({ left: 0, top: H, behavior: A });
- }
- }
- function C(M, A, D) {
- i.value.scrollTo({ left: M, top: A, behavior: D });
- }
- function R(M, A) {
- var D, L, H;
- if (n || e.ignoreItemResize || k(A.target)) return;
- const { value: B } = c,
- q = o.value.get(M),
- X = B.get(q),
- te =
- (H =
- (L =
- (D = A.borderBoxSize) === null || D === void 0
- ? void 0
- : D[0]) === null || L === void 0
- ? void 0
- : L.blockSize) !== null && H !== void 0
- ? H
- : A.contentRect.height;
- if (te === X) return;
- te - e.itemSize === 0 ? s.delete(M) : s.set(M, te - e.itemSize);
- const Q = te - X;
- if (Q === 0) return;
- B.add(q, Q);
- const re = i.value;
- if (re != null) {
- if (w === void 0) {
- const se = B.sum(q);
- re.scrollTop > se && re.scrollBy(0, Q);
- } else if (q < w) re.scrollBy(0, Q);
- else if (q === w) {
- const se = B.sum(q);
- te + se > re.scrollTop + re.offsetHeight && re.scrollBy(0, Q);
- }
- z();
- }
- d.value++;
- }
- const S = !oF();
- let _ = !1;
- function P(M) {
- var A;
- (A = e.onScroll) === null || A === void 0 || A.call(e, M),
- (!S || !_) && z();
- }
- function T(M) {
- var A;
- if (((A = e.onWheel) === null || A === void 0 || A.call(e, M), S)) {
- const D = i.value;
- if (D != null) {
- if (
- M.deltaX === 0 &&
- ((D.scrollTop === 0 && M.deltaY <= 0) ||
- (D.scrollTop + D.offsetHeight >= D.scrollHeight &&
- M.deltaY >= 0))
- )
- return;
- M.preventDefault(),
- (D.scrollTop += M.deltaY / SC()),
- (D.scrollLeft += M.deltaX / SC()),
- z(),
- (_ = !0),
- Oc(() => {
- _ = !1;
- });
- }
- }
- }
- function E(M) {
- if (n || k(M.target) || M.contentRect.height === a.value) return;
- a.value = M.contentRect.height;
- const { onResize: A } = e;
- A !== void 0 && A(M);
- }
- function z() {
- const { value: M } = i;
- M != null && ((v.value = M.scrollTop), (f = M.scrollLeft));
- }
- function k(M) {
- let A = M;
- for (; A !== null; ) {
- if (A.style.display === 'none') return !0;
- A = A.parentElement;
- }
- return !1;
- }
- return {
- listHeight: a,
- listStyle: { overflow: 'auto' },
- keyToIndex: o,
- itemsStyle: I(() => {
- const { itemResizable: M } = e,
- A = lr(c.value.sum());
- return (
- d.value,
- [
- e.itemsStyle,
- {
- boxSizing: 'content-box',
- height: M ? '' : A,
- minHeight: M ? A : '',
- paddingTop: lr(e.paddingTop),
- paddingBottom: lr(e.paddingBottom)
- }
- ]
- );
- }),
- visibleItemsStyle: I(
- () => (
- d.value, { transform: `translateY(${lr(c.value.sum(p.value))})` }
- )
- ),
- viewportItems: m,
- listElRef: i,
- itemsElRef: Z(null),
- scrollTo: g,
- handleListResize: E,
- handleListScroll: P,
- handleListWheel: T,
- handleItemResize: R
- };
- },
- render() {
- const {
- itemResizable: e,
- keyField: t,
- keyToIndex: n,
- visibleItemsTag: r
- } = this;
- return h(
- qi,
- { onResize: this.handleListResize },
- {
- default: () => {
- var o, i;
- return h(
- 'div',
- qr(this.$attrs, {
- class: ['v-vl', this.showScrollbar && 'v-vl--show-scrollbar'],
- onScroll: this.handleListScroll,
- onWheel: this.handleListWheel,
- ref: 'listElRef'
- }),
- [
- this.items.length !== 0
- ? h(
- 'div',
- {
- ref: 'itemsElRef',
- class: 'v-vl-items',
- style: this.itemsStyle
- },
- [
- h(
- r,
- Object.assign(
- {
- class: 'v-vl-visible-items',
- style: this.visibleItemsStyle
- },
- this.visibleItemsProps
- ),
- {
- default: () =>
- this.viewportItems.map(a => {
- const s = a[t],
- c = n.get(s),
- d = this.$slots.default({
- item: a,
- index: c
- })[0];
- return e
- ? h(
- qi,
- {
- key: s,
- onResize: f =>
- this.handleItemResize(s, f)
- },
- { default: () => d }
- )
- : ((d.key = s), d);
- })
- }
- )
- ]
- )
- : (i = (o = this.$slots).empty) === null || i === void 0
- ? void 0
- : i.call(o)
- ]
- );
- }
- }
- );
- }
- }),
- aF = Hi('.v-x-scroll', { overflow: 'auto', scrollbarWidth: 'none' }, [
- Hi('&::-webkit-scrollbar', { width: 0, height: 0 })
- ]),
- lF = ke({
- name: 'XScroll',
- props: { disabled: Boolean, onScroll: Function },
- setup() {
- const e = Z(null);
- function t(o) {
- !(o.currentTarget.offsetWidth < o.currentTarget.scrollWidth) ||
- o.deltaY === 0 ||
- ((o.currentTarget.scrollLeft += o.deltaY + o.deltaX),
- o.preventDefault());
- }
- const n = wl();
- return (
- aF.mount({
- id: 'vueuc/x-scroll',
- head: !0,
- anchorMetaName: Pp,
- ssr: n
- }),
- Object.assign(
- { selfRef: e, handleWheel: t },
- {
- scrollTo(...o) {
- var i;
- (i = e.value) === null || i === void 0 || i.scrollTo(...o);
- }
- }
- )
- );
- },
- render() {
- return h(
- 'div',
- {
- ref: 'selfRef',
- onScroll: this.onScroll,
- onWheel: this.disabled ? void 0 : this.handleWheel,
- class: 'v-x-scroll'
- },
- this.$slots
- );
- }
- }),
- Xl = 'v-hidden',
- sF = Hi('[v-hidden]', { display: 'none!important' }),
- _C = ke({
- name: 'Overflow',
- props: {
- getCounter: Function,
- getTail: Function,
- updateCounter: Function,
- onUpdateOverflow: Function
- },
- setup(e, { slots: t }) {
- const n = Z(null),
- r = Z(null);
- function o() {
- const { value: a } = n,
- { getCounter: s, getTail: c } = e;
- let d;
- if ((s !== void 0 ? (d = s()) : (d = r.value), !a || !d)) return;
- d.hasAttribute(Xl) && d.removeAttribute(Xl);
- const { children: f } = a,
- v = a.offsetWidth,
- p = [],
- m = t.tail ? (c == null ? void 0 : c()) : null;
- let g = m ? m.offsetWidth : 0,
- w = !1;
- const x = a.children.length - (t.tail ? 1 : 0);
- for (let C = 0; C < x - 1; ++C) {
- if (C < 0) continue;
- const R = f[C];
- if (w) {
- R.hasAttribute(Xl) || R.setAttribute(Xl, '');
- continue;
- } else R.hasAttribute(Xl) && R.removeAttribute(Xl);
- const S = R.offsetWidth;
- if (((g += S), (p[C] = S), g > v)) {
- const { updateCounter: _ } = e;
- for (let P = C; P >= 0; --P) {
- const T = x - 1 - P;
- _ !== void 0 ? _(T) : (d.textContent = `${T}`);
- const E = d.offsetWidth;
- if (((g -= p[P]), g + E <= v || P === 0)) {
- (w = !0),
- (C = P - 1),
- m &&
- (C === -1
- ? ((m.style.maxWidth = `${v - E}px`),
- (m.style.boxSizing = 'border-box'))
- : (m.style.maxWidth = ''));
- break;
- }
- }
- }
- }
- const { onUpdateOverflow: y } = e;
- w
- ? y !== void 0 && y(!0)
- : (y !== void 0 && y(!1), d.setAttribute(Xl, ''));
- }
- const i = wl();
- return (
- sF.mount({
- id: 'vueuc/overflow',
- head: !0,
- anchorMetaName: Pp,
- ssr: i
- }),
- Hn(o),
- { selfRef: n, counterRef: r, sync: o }
- );
- },
- render() {
- const { $slots: e } = this;
- return (
- mn(this.sync),
- h('div', { class: 'v-overflow', ref: 'selfRef' }, [
- j0(e, 'default'),
- e.counter
- ? e.counter()
- : h('span', {
- style: { display: 'inline-block' },
- ref: 'counterRef'
- }),
- e.tail ? e.tail() : null
- ])
- );
- }
- });
- function oP(e) {
- return e instanceof HTMLElement;
- }
- function iP(e) {
- for (let t = 0; t < e.childNodes.length; t++) {
- const n = e.childNodes[t];
- if (oP(n) && (lP(n) || iP(n))) return !0;
- }
- return !1;
- }
- function aP(e) {
- for (let t = e.childNodes.length - 1; t >= 0; t--) {
- const n = e.childNodes[t];
- if (oP(n) && (lP(n) || aP(n))) return !0;
- }
- return !1;
- }
- function lP(e) {
- if (!cF(e)) return !1;
- try {
- e.focus({ preventScroll: !0 });
- } catch {}
- return document.activeElement === e;
- }
- function cF(e) {
- if (
- e.tabIndex > 0 ||
- (e.tabIndex === 0 && e.getAttribute('tabIndex') !== null)
- )
- return !0;
- if (e.getAttribute('disabled')) return !1;
- switch (e.nodeName) {
- case 'A':
- return !!e.href && e.rel !== 'ignore';
- case 'INPUT':
- return e.type !== 'hidden' && e.type !== 'file';
- case 'BUTTON':
- case 'SELECT':
- case 'TEXTAREA':
- return !0;
- default:
- return !1;
- }
- }
- let Ad = [];
- const ey = ke({
- name: 'FocusTrap',
- props: {
- disabled: Boolean,
- active: Boolean,
- autoFocus: { type: Boolean, default: !0 },
- onEsc: Function,
- initialFocusTo: String,
- finalFocusTo: String,
- returnFocusOnDeactivated: { type: Boolean, default: !0 }
- },
- setup(e) {
- const t = pi(),
- n = Z(null),
- r = Z(null);
- let o = !1,
- i = !1;
- const a = typeof document > 'u' ? null : document.activeElement;
- function s() {
- return Ad[Ad.length - 1] === t;
- }
- function c(x) {
- var y;
- x.code === 'Escape' &&
- s() &&
- ((y = e.onEsc) === null || y === void 0 || y.call(e, x));
- }
- Hn(() => {
- $t(
- () => e.active,
- x => {
- x
- ? (v(), Tn('keydown', document, c))
- : (pn('keydown', document, c), o && p());
- },
- { immediate: !0 }
- );
- }),
- qn(() => {
- pn('keydown', document, c), o && p();
- });
- function d(x) {
- if (!i && s()) {
- const y = f();
- if (y === null || y.contains(xa(x))) return;
- m('first');
- }
- }
- function f() {
- const x = n.value;
- if (x === null) return null;
- let y = x;
- for (
- ;
- (y = y.nextSibling),
- !(y === null || (y instanceof Element && y.tagName === 'DIV'));
- );
- return y;
- }
- function v() {
- var x;
- if (!e.disabled) {
- if ((Ad.push(t), e.autoFocus)) {
- const { initialFocusTo: y } = e;
- y === void 0
- ? m('first')
- : (x = dC(y)) === null ||
- x === void 0 ||
- x.focus({ preventScroll: !0 });
- }
- (o = !0), document.addEventListener('focus', d, !0);
- }
- }
- function p() {
- var x;
- if (
- e.disabled ||
- (document.removeEventListener('focus', d, !0),
- (Ad = Ad.filter(C => C !== t)),
- s())
- )
- return;
- const { finalFocusTo: y } = e;
- y !== void 0
- ? (x = dC(y)) === null || x === void 0 || x.focus({ preventScroll: !0 })
- : e.returnFocusOnDeactivated &&
- a instanceof HTMLElement &&
- ((i = !0), a.focus({ preventScroll: !0 }), (i = !1));
- }
- function m(x) {
- if (s() && e.active) {
- const y = n.value,
- C = r.value;
- if (y !== null && C !== null) {
- const R = f();
- if (R == null || R === C) {
- (i = !0), y.focus({ preventScroll: !0 }), (i = !1);
- return;
- }
- i = !0;
- const S = x === 'first' ? iP(R) : aP(R);
- (i = !1), S || ((i = !0), y.focus({ preventScroll: !0 }), (i = !1));
- }
- }
- }
- function g(x) {
- if (i) return;
- const y = f();
- y !== null &&
- (x.relatedTarget !== null && y.contains(x.relatedTarget)
- ? m('last')
- : m('first'));
- }
- function w(x) {
- i ||
- (x.relatedTarget !== null && x.relatedTarget === n.value
- ? m('last')
- : m('first'));
- }
- return {
- focusableStartRef: n,
- focusableEndRef: r,
- focusableStyle: 'position: absolute; height: 0; width: 0;',
- handleStartFocus: g,
- handleEndFocus: w
- };
- },
- render() {
- const { default: e } = this.$slots;
- if (e === void 0) return null;
- if (this.disabled) return e();
- const { active: t, focusableStyle: n } = this;
- return h(on, null, [
- h('div', {
- 'aria-hidden': 'true',
- tabindex: t ? '0' : '-1',
- ref: 'focusableStartRef',
- style: n,
- onFocus: this.handleStartFocus
- }),
- e(),
- h('div', {
- 'aria-hidden': 'true',
- style: n,
- ref: 'focusableEndRef',
- tabindex: t ? '0' : '-1',
- onFocus: this.handleEndFocus
- })
- ]);
- }
- });
- function sP(e, t) {
- t &&
- (Hn(() => {
- const { value: n } = e;
- n && tv.registerHandler(n, t);
- }),
- qn(() => {
- const { value: n } = e;
- n && tv.unregisterHandler(n);
- }));
- }
- let sc = 0,
- RC = '',
- PC = '',
- kC = '',
- TC = '';
- const Ob = Z('0px');
- function cP(e) {
- if (typeof document > 'u') return;
- const t = document.documentElement;
- let n,
- r = !1;
- const o = () => {
- (t.style.marginRight = RC),
- (t.style.overflow = PC),
- (t.style.overflowX = kC),
- (t.style.overflowY = TC),
- (Ob.value = '0px');
- };
- Hn(() => {
- n = $t(
- e,
- i => {
- if (i) {
- if (!sc) {
- const a = window.innerWidth - t.offsetWidth;
- a > 0 &&
- ((RC = t.style.marginRight),
- (t.style.marginRight = `${a}px`),
- (Ob.value = `${a}px`)),
- (PC = t.style.overflow),
- (kC = t.style.overflowX),
- (TC = t.style.overflowY),
- (t.style.overflow = 'hidden'),
- (t.style.overflowX = 'hidden'),
- (t.style.overflowY = 'hidden');
- }
- (r = !0), sc++;
- } else sc--, sc || o(), (r = !1);
- },
- { immediate: !0 }
- );
- }),
- qn(() => {
- n == null || n(), r && (sc--, sc || o(), (r = !1));
- });
- }
- const ty = Z(!1),
- $C = () => {
- ty.value = !0;
- },
- OC = () => {
- ty.value = !1;
- };
- let Md = 0;
- const dP = () => (
- Fo &&
- (yl(() => {
- Md ||
- (window.addEventListener('compositionstart', $C),
- window.addEventListener('compositionend', OC)),
- Md++;
- }),
- qn(() => {
- Md <= 1
- ? (window.removeEventListener('compositionstart', $C),
- window.removeEventListener('compositionend', OC),
- (Md = 0))
- : Md--;
- })),
- ty
- );
- function ny(e) {
- const t = { isDeactivated: !1 };
- let n = !1;
- return (
- xp(() => {
- if (((t.isDeactivated = !1), !n)) {
- n = !0;
- return;
- }
- e();
- }),
- qc(() => {
- (t.isDeactivated = !0), n || (n = !0);
- }),
- t
- );
- }
- function zC(e) {
- return e.nodeName === '#document';
- }
- const zb = 'n-form-item';
- function ei(
- e,
- { defaultSize: t = 'medium', mergedSize: n, mergedDisabled: r } = {}
- ) {
- const o = Ze(zb, null);
- Rt(zb, null);
- const i = I(
- n
- ? () => n(o)
- : () => {
- const { size: c } = e;
- if (c) return c;
- if (o) {
- const { mergedSize: d } = o;
- if (d.value !== void 0) return d.value;
- }
- return t;
- }
- ),
- a = I(
- r
- ? () => r(o)
- : () => {
- const { disabled: c } = e;
- return c !== void 0 ? c : o ? o.disabled.value : !1;
- }
- ),
- s = I(() => {
- const { status: c } = e;
- return c || (o == null ? void 0 : o.mergedValidationStatus.value);
- });
- return (
- qn(() => {
- o && o.restoreValidation();
- }),
- {
- mergedSizeRef: i,
- mergedDisabledRef: a,
- mergedStatusRef: s,
- nTriggerFormBlur() {
- o && o.handleContentBlur();
- },
- nTriggerFormChange() {
- o && o.handleContentChange();
- },
- nTriggerFormFocus() {
- o && o.handleContentFocus();
- },
- nTriggerFormInput() {
- o && o.handleContentInput();
- }
- }
- );
- }
- var dF =
- typeof global == 'object' && global && global.Object === Object && global;
- const uP = dF;
- var uF = typeof self == 'object' && self && self.Object === Object && self,
- fF = uP || uF || Function('return this')();
- const xi = fF;
- var hF = xi.Symbol;
- const fl = hF;
- var fP = Object.prototype,
- vF = fP.hasOwnProperty,
- pF = fP.toString,
- Id = fl ? fl.toStringTag : void 0;
- function gF(e) {
- var t = vF.call(e, Id),
- n = e[Id];
- try {
- e[Id] = void 0;
- var r = !0;
- } catch {}
- var o = pF.call(e);
- return r && (t ? (e[Id] = n) : delete e[Id]), o;
- }
- var mF = Object.prototype,
- bF = mF.toString;
- function yF(e) {
- return bF.call(e);
- }
- var xF = '[object Null]',
- wF = '[object Undefined]',
- EC = fl ? fl.toStringTag : void 0;
- function ks(e) {
- return e == null
- ? e === void 0
- ? wF
- : xF
- : EC && EC in Object(e)
- ? gF(e)
- : yF(e);
- }
- function hl(e) {
- return e != null && typeof e == 'object';
- }
- var CF = '[object Symbol]';
- function kp(e) {
- return typeof e == 'symbol' || (hl(e) && ks(e) == CF);
- }
- function hP(e, t) {
- for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
- o[n] = t(e[n], n, e);
- return o;
- }
- var SF = Array.isArray;
- const Qo = SF;
- var _F = 1 / 0,
- AC = fl ? fl.prototype : void 0,
- MC = AC ? AC.toString : void 0;
- function vP(e) {
- if (typeof e == 'string') return e;
- if (Qo(e)) return hP(e, vP) + '';
- if (kp(e)) return MC ? MC.call(e) : '';
- var t = e + '';
- return t == '0' && 1 / e == -_F ? '-0' : t;
- }
- var RF = /\s/;
- function PF(e) {
- for (var t = e.length; t-- && RF.test(e.charAt(t)); );
- return t;
- }
- var kF = /^\s+/;
- function TF(e) {
- return e && e.slice(0, PF(e) + 1).replace(kF, '');
- }
- function Jo(e) {
- var t = typeof e;
- return e != null && (t == 'object' || t == 'function');
- }
- var IC = 0 / 0,
- $F = /^[-+]0x[0-9a-f]+$/i,
- OF = /^0b[01]+$/i,
- zF = /^0o[0-7]+$/i,
- EF = parseInt;
- function DC(e) {
- if (typeof e == 'number') return e;
- if (kp(e)) return IC;
- if (Jo(e)) {
- var t = typeof e.valueOf == 'function' ? e.valueOf() : e;
- e = Jo(t) ? t + '' : t;
- }
- if (typeof e != 'string') return e === 0 ? e : +e;
- e = TF(e);
- var n = OF.test(e);
- return n || zF.test(e) ? EF(e.slice(2), n ? 2 : 8) : $F.test(e) ? IC : +e;
- }
- function ry(e) {
- return e;
- }
- var AF = '[object AsyncFunction]',
- MF = '[object Function]',
- IF = '[object GeneratorFunction]',
- DF = '[object Proxy]';
- function oy(e) {
- if (!Jo(e)) return !1;
- var t = ks(e);
- return t == MF || t == IF || t == AF || t == DF;
- }
- var FF = xi['__core-js_shared__'];
- const mm = FF;
- var FC = (function () {
- var e = /[^.]+$/.exec((mm && mm.keys && mm.keys.IE_PROTO) || '');
- return e ? 'Symbol(src)_1.' + e : '';
- })();
- function BF(e) {
- return !!FC && FC in e;
- }
- var LF = Function.prototype,
- NF = LF.toString;
- function Ts(e) {
- if (e != null) {
- try {
- return NF.call(e);
- } catch {}
- try {
- return e + '';
- } catch {}
- }
- return '';
- }
- var HF = /[\\^$.*+?()[\]{}|]/g,
- jF = /^\[object .+?Constructor\]$/,
- WF = Function.prototype,
- UF = Object.prototype,
- VF = WF.toString,
- KF = UF.hasOwnProperty,
- qF = RegExp(
- '^' +
- VF.call(KF)
- .replace(HF, '\\$&')
- .replace(
- /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
- '$1.*?'
- ) +
- '$'
- );
- function YF(e) {
- if (!Jo(e) || BF(e)) return !1;
- var t = oy(e) ? qF : jF;
- return t.test(Ts(e));
- }
- function GF(e, t) {
- return e == null ? void 0 : e[t];
- }
- function $s(e, t) {
- var n = GF(e, t);
- return YF(n) ? n : void 0;
- }
- var XF = $s(xi, 'WeakMap');
- const Eb = XF;
- var BC = Object.create,
- ZF = (function () {
- function e() {}
- return function (t) {
- if (!Jo(t)) return {};
- if (BC) return BC(t);
- e.prototype = t;
- var n = new e();
- return (e.prototype = void 0), n;
- };
- })();
- const QF = ZF;
- function JF(e, t, n) {
- switch (n.length) {
- case 0:
- return e.call(t);
- case 1:
- return e.call(t, n[0]);
- case 2:
- return e.call(t, n[0], n[1]);
- case 3:
- return e.call(t, n[0], n[1], n[2]);
- }
- return e.apply(t, n);
- }
- function e8(e, t) {
- var n = -1,
- r = e.length;
- for (t || (t = Array(r)); ++n < r; ) t[n] = e[n];
- return t;
- }
- var t8 = 800,
- n8 = 16,
- r8 = Date.now;
- function o8(e) {
- var t = 0,
- n = 0;
- return function () {
- var r = r8(),
- o = n8 - (r - n);
- if (((n = r), o > 0)) {
- if (++t >= t8) return arguments[0];
- } else t = 0;
- return e.apply(void 0, arguments);
- };
- }
- function i8(e) {
- return function () {
- return e;
- };
- }
- var a8 = (function () {
- try {
- var e = $s(Object, 'defineProperty');
- return e({}, '', {}), e;
- } catch {}
- })();
- const nv = a8;
- var l8 = nv
- ? function (e, t) {
- return nv(e, 'toString', {
- configurable: !0,
- enumerable: !1,
- value: i8(t),
- writable: !0
- });
- }
- : ry;
- const s8 = l8;
- var c8 = o8(s8);
- const d8 = c8;
- var u8 = 9007199254740991,
- f8 = /^(?:0|[1-9]\d*)$/;
- function iy(e, t) {
- var n = typeof e;
- return (
- (t = t ?? u8),
- !!t &&
- (n == 'number' || (n != 'symbol' && f8.test(e))) &&
- e > -1 &&
- e % 1 == 0 &&
- e < t
- );
- }
- function ay(e, t, n) {
- t == '__proto__' && nv
- ? nv(e, t, { configurable: !0, enumerable: !0, value: n, writable: !0 })
- : (e[t] = n);
- }
- function Gu(e, t) {
- return e === t || (e !== e && t !== t);
- }
- var h8 = Object.prototype,
- v8 = h8.hasOwnProperty;
- function p8(e, t, n) {
- var r = e[t];
- (!(v8.call(e, t) && Gu(r, n)) || (n === void 0 && !(t in e))) && ay(e, t, n);
- }
- function g8(e, t, n, r) {
- var o = !n;
- n || (n = {});
- for (var i = -1, a = t.length; ++i < a; ) {
- var s = t[i],
- c = r ? r(n[s], e[s], s, n, e) : void 0;
- c === void 0 && (c = e[s]), o ? ay(n, s, c) : p8(n, s, c);
- }
- return n;
- }
- var LC = Math.max;
- function m8(e, t, n) {
- return (
- (t = LC(t === void 0 ? e.length - 1 : t, 0)),
- function () {
- for (
- var r = arguments, o = -1, i = LC(r.length - t, 0), a = Array(i);
- ++o < i;
- )
- a[o] = r[t + o];
- o = -1;
- for (var s = Array(t + 1); ++o < t; ) s[o] = r[o];
- return (s[t] = n(a)), JF(e, this, s);
- }
- );
- }
- function b8(e, t) {
- return d8(m8(e, t, ry), e + '');
- }
- var y8 = 9007199254740991;
- function ly(e) {
- return typeof e == 'number' && e > -1 && e % 1 == 0 && e <= y8;
- }
- function td(e) {
- return e != null && ly(e.length) && !oy(e);
- }
- function x8(e, t, n) {
- if (!Jo(n)) return !1;
- var r = typeof t;
- return (r == 'number' ? td(n) && iy(t, n.length) : r == 'string' && t in n)
- ? Gu(n[t], e)
- : !1;
- }
- function w8(e) {
- return b8(function (t, n) {
- var r = -1,
- o = n.length,
- i = o > 1 ? n[o - 1] : void 0,
- a = o > 2 ? n[2] : void 0;
- for (
- i = e.length > 3 && typeof i == 'function' ? (o--, i) : void 0,
- a && x8(n[0], n[1], a) && ((i = o < 3 ? void 0 : i), (o = 1)),
- t = Object(t);
- ++r < o;
- ) {
- var s = n[r];
- s && e(t, s, r, i);
- }
- return t;
- });
- }
- var C8 = Object.prototype;
- function sy(e) {
- var t = e && e.constructor,
- n = (typeof t == 'function' && t.prototype) || C8;
- return e === n;
- }
- function S8(e, t) {
- for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n);
- return r;
- }
- var _8 = '[object Arguments]';
- function NC(e) {
- return hl(e) && ks(e) == _8;
- }
- var pP = Object.prototype,
- R8 = pP.hasOwnProperty,
- P8 = pP.propertyIsEnumerable,
- k8 = NC(
- (function () {
- return arguments;
- })()
- )
- ? NC
- : function (e) {
- return hl(e) && R8.call(e, 'callee') && !P8.call(e, 'callee');
- };
- const rv = k8;
- function T8() {
- return !1;
- }
- var gP = typeof exports == 'object' && exports && !exports.nodeType && exports,
- HC = gP && typeof module == 'object' && module && !module.nodeType && module,
- $8 = HC && HC.exports === gP,
- jC = $8 ? xi.Buffer : void 0,
- O8 = jC ? jC.isBuffer : void 0,
- z8 = O8 || T8;
- const ov = z8;
- var E8 = '[object Arguments]',
- A8 = '[object Array]',
- M8 = '[object Boolean]',
- I8 = '[object Date]',
- D8 = '[object Error]',
- F8 = '[object Function]',
- B8 = '[object Map]',
- L8 = '[object Number]',
- N8 = '[object Object]',
- H8 = '[object RegExp]',
- j8 = '[object Set]',
- W8 = '[object String]',
- U8 = '[object WeakMap]',
- V8 = '[object ArrayBuffer]',
- K8 = '[object DataView]',
- q8 = '[object Float32Array]',
- Y8 = '[object Float64Array]',
- G8 = '[object Int8Array]',
- X8 = '[object Int16Array]',
- Z8 = '[object Int32Array]',
- Q8 = '[object Uint8Array]',
- J8 = '[object Uint8ClampedArray]',
- eB = '[object Uint16Array]',
- tB = '[object Uint32Array]',
- Gn = {};
- Gn[q8] =
- Gn[Y8] =
- Gn[G8] =
- Gn[X8] =
- Gn[Z8] =
- Gn[Q8] =
- Gn[J8] =
- Gn[eB] =
- Gn[tB] =
- !0;
- Gn[E8] =
- Gn[A8] =
- Gn[V8] =
- Gn[M8] =
- Gn[K8] =
- Gn[I8] =
- Gn[D8] =
- Gn[F8] =
- Gn[B8] =
- Gn[L8] =
- Gn[N8] =
- Gn[H8] =
- Gn[j8] =
- Gn[W8] =
- Gn[U8] =
- !1;
- function nB(e) {
- return hl(e) && ly(e.length) && !!Gn[ks(e)];
- }
- function rB(e) {
- return function (t) {
- return e(t);
- };
- }
- var mP = typeof exports == 'object' && exports && !exports.nodeType && exports,
- nu = mP && typeof module == 'object' && module && !module.nodeType && module,
- oB = nu && nu.exports === mP,
- bm = oB && uP.process,
- iB = (function () {
- try {
- var e = nu && nu.require && nu.require('util').types;
- return e || (bm && bm.binding && bm.binding('util'));
- } catch {}
- })();
- const WC = iB;
- var UC = WC && WC.isTypedArray,
- aB = UC ? rB(UC) : nB;
- const cy = aB;
- var lB = Object.prototype,
- sB = lB.hasOwnProperty;
- function bP(e, t) {
- var n = Qo(e),
- r = !n && rv(e),
- o = !n && !r && ov(e),
- i = !n && !r && !o && cy(e),
- a = n || r || o || i,
- s = a ? S8(e.length, String) : [],
- c = s.length;
- for (var d in e)
- (t || sB.call(e, d)) &&
- !(
- a &&
- (d == 'length' ||
- (o && (d == 'offset' || d == 'parent')) ||
- (i && (d == 'buffer' || d == 'byteLength' || d == 'byteOffset')) ||
- iy(d, c))
- ) &&
- s.push(d);
- return s;
- }
- function yP(e, t) {
- return function (n) {
- return e(t(n));
- };
- }
- var cB = yP(Object.keys, Object);
- const dB = cB;
- var uB = Object.prototype,
- fB = uB.hasOwnProperty;
- function hB(e) {
- if (!sy(e)) return dB(e);
- var t = [];
- for (var n in Object(e)) fB.call(e, n) && n != 'constructor' && t.push(n);
- return t;
- }
- function dy(e) {
- return td(e) ? bP(e) : hB(e);
- }
- function vB(e) {
- var t = [];
- if (e != null) for (var n in Object(e)) t.push(n);
- return t;
- }
- var pB = Object.prototype,
- gB = pB.hasOwnProperty;
- function mB(e) {
- if (!Jo(e)) return vB(e);
- var t = sy(e),
- n = [];
- for (var r in e) (r == 'constructor' && (t || !gB.call(e, r))) || n.push(r);
- return n;
- }
- function xP(e) {
- return td(e) ? bP(e, !0) : mB(e);
- }
- var bB = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- yB = /^\w*$/;
- function uy(e, t) {
- if (Qo(e)) return !1;
- var n = typeof e;
- return n == 'number' || n == 'symbol' || n == 'boolean' || e == null || kp(e)
- ? !0
- : yB.test(e) || !bB.test(e) || (t != null && e in Object(t));
- }
- var xB = $s(Object, 'create');
- const ku = xB;
- function wB() {
- (this.__data__ = ku ? ku(null) : {}), (this.size = 0);
- }
- function CB(e) {
- var t = this.has(e) && delete this.__data__[e];
- return (this.size -= t ? 1 : 0), t;
- }
- var SB = '__lodash_hash_undefined__',
- _B = Object.prototype,
- RB = _B.hasOwnProperty;
- function PB(e) {
- var t = this.__data__;
- if (ku) {
- var n = t[e];
- return n === SB ? void 0 : n;
- }
- return RB.call(t, e) ? t[e] : void 0;
- }
- var kB = Object.prototype,
- TB = kB.hasOwnProperty;
- function $B(e) {
- var t = this.__data__;
- return ku ? t[e] !== void 0 : TB.call(t, e);
- }
- var OB = '__lodash_hash_undefined__';
- function zB(e, t) {
- var n = this.__data__;
- return (
- (this.size += this.has(e) ? 0 : 1),
- (n[e] = ku && t === void 0 ? OB : t),
- this
- );
- }
- function ws(e) {
- var t = -1,
- n = e == null ? 0 : e.length;
- for (this.clear(); ++t < n; ) {
- var r = e[t];
- this.set(r[0], r[1]);
- }
- }
- ws.prototype.clear = wB;
- ws.prototype.delete = CB;
- ws.prototype.get = PB;
- ws.prototype.has = $B;
- ws.prototype.set = zB;
- function EB() {
- (this.__data__ = []), (this.size = 0);
- }
- function Tp(e, t) {
- for (var n = e.length; n--; ) if (Gu(e[n][0], t)) return n;
- return -1;
- }
- var AB = Array.prototype,
- MB = AB.splice;
- function IB(e) {
- var t = this.__data__,
- n = Tp(t, e);
- if (n < 0) return !1;
- var r = t.length - 1;
- return n == r ? t.pop() : MB.call(t, n, 1), --this.size, !0;
- }
- function DB(e) {
- var t = this.__data__,
- n = Tp(t, e);
- return n < 0 ? void 0 : t[n][1];
- }
- function FB(e) {
- return Tp(this.__data__, e) > -1;
- }
- function BB(e, t) {
- var n = this.__data__,
- r = Tp(n, e);
- return r < 0 ? (++this.size, n.push([e, t])) : (n[r][1] = t), this;
- }
- function Pa(e) {
- var t = -1,
- n = e == null ? 0 : e.length;
- for (this.clear(); ++t < n; ) {
- var r = e[t];
- this.set(r[0], r[1]);
- }
- }
- Pa.prototype.clear = EB;
- Pa.prototype.delete = IB;
- Pa.prototype.get = DB;
- Pa.prototype.has = FB;
- Pa.prototype.set = BB;
- var LB = $s(xi, 'Map');
- const Tu = LB;
- function NB() {
- (this.size = 0),
- (this.__data__ = {
- hash: new ws(),
- map: new (Tu || Pa)(),
- string: new ws()
- });
- }
- function HB(e) {
- var t = typeof e;
- return t == 'string' || t == 'number' || t == 'symbol' || t == 'boolean'
- ? e !== '__proto__'
- : e === null;
- }
- function $p(e, t) {
- var n = e.__data__;
- return HB(t) ? n[typeof t == 'string' ? 'string' : 'hash'] : n.map;
- }
- function jB(e) {
- var t = $p(this, e).delete(e);
- return (this.size -= t ? 1 : 0), t;
- }
- function WB(e) {
- return $p(this, e).get(e);
- }
- function UB(e) {
- return $p(this, e).has(e);
- }
- function VB(e, t) {
- var n = $p(this, e),
- r = n.size;
- return n.set(e, t), (this.size += n.size == r ? 0 : 1), this;
- }
- function ka(e) {
- var t = -1,
- n = e == null ? 0 : e.length;
- for (this.clear(); ++t < n; ) {
- var r = e[t];
- this.set(r[0], r[1]);
- }
- }
- ka.prototype.clear = NB;
- ka.prototype.delete = jB;
- ka.prototype.get = WB;
- ka.prototype.has = UB;
- ka.prototype.set = VB;
- var KB = 'Expected a function';
- function fy(e, t) {
- if (typeof e != 'function' || (t != null && typeof t != 'function'))
- throw new TypeError(KB);
- var n = function () {
- var r = arguments,
- o = t ? t.apply(this, r) : r[0],
- i = n.cache;
- if (i.has(o)) return i.get(o);
- var a = e.apply(this, r);
- return (n.cache = i.set(o, a) || i), a;
- };
- return (n.cache = new (fy.Cache || ka)()), n;
- }
- fy.Cache = ka;
- var qB = 500;
- function YB(e) {
- var t = fy(e, function (r) {
- return n.size === qB && n.clear(), r;
- }),
- n = t.cache;
- return t;
- }
- var GB =
- /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
- XB = /\\(\\)?/g,
- ZB = YB(function (e) {
- var t = [];
- return (
- e.charCodeAt(0) === 46 && t.push(''),
- e.replace(GB, function (n, r, o, i) {
- t.push(o ? i.replace(XB, '$1') : r || n);
- }),
- t
- );
- });
- const QB = ZB;
- function Op(e) {
- return e == null ? '' : vP(e);
- }
- function wP(e, t) {
- return Qo(e) ? e : uy(e, t) ? [e] : QB(Op(e));
- }
- var JB = 1 / 0;
- function zp(e) {
- if (typeof e == 'string' || kp(e)) return e;
- var t = e + '';
- return t == '0' && 1 / e == -JB ? '-0' : t;
- }
- function CP(e, t) {
- t = wP(t, e);
- for (var n = 0, r = t.length; e != null && n < r; ) e = e[zp(t[n++])];
- return n && n == r ? e : void 0;
- }
- function $u(e, t, n) {
- var r = e == null ? void 0 : CP(e, t);
- return r === void 0 ? n : r;
- }
- function eL(e, t) {
- for (var n = -1, r = t.length, o = e.length; ++n < r; ) e[o + n] = t[n];
- return e;
- }
- var tL = yP(Object.getPrototypeOf, Object);
- const SP = tL;
- var nL = '[object Object]',
- rL = Function.prototype,
- oL = Object.prototype,
- _P = rL.toString,
- iL = oL.hasOwnProperty,
- aL = _P.call(Object);
- function lL(e) {
- if (!hl(e) || ks(e) != nL) return !1;
- var t = SP(e);
- if (t === null) return !0;
- var n = iL.call(t, 'constructor') && t.constructor;
- return typeof n == 'function' && n instanceof n && _P.call(n) == aL;
- }
- function sL(e, t, n) {
- var r = -1,
- o = e.length;
- t < 0 && (t = -t > o ? 0 : o + t),
- (n = n > o ? o : n),
- n < 0 && (n += o),
- (o = t > n ? 0 : (n - t) >>> 0),
- (t >>>= 0);
- for (var i = Array(o); ++r < o; ) i[r] = e[r + t];
- return i;
- }
- function cL(e, t, n) {
- var r = e.length;
- return (n = n === void 0 ? r : n), !t && n >= r ? e : sL(e, t, n);
- }
- var dL = '\\ud800-\\udfff',
- uL = '\\u0300-\\u036f',
- fL = '\\ufe20-\\ufe2f',
- hL = '\\u20d0-\\u20ff',
- vL = uL + fL + hL,
- pL = '\\ufe0e\\ufe0f',
- gL = '\\u200d',
- mL = RegExp('[' + gL + dL + vL + pL + ']');
- function RP(e) {
- return mL.test(e);
- }
- function bL(e) {
- return e.split('');
- }
- var PP = '\\ud800-\\udfff',
- yL = '\\u0300-\\u036f',
- xL = '\\ufe20-\\ufe2f',
- wL = '\\u20d0-\\u20ff',
- CL = yL + xL + wL,
- SL = '\\ufe0e\\ufe0f',
- _L = '[' + PP + ']',
- Ab = '[' + CL + ']',
- Mb = '\\ud83c[\\udffb-\\udfff]',
- RL = '(?:' + Ab + '|' + Mb + ')',
- kP = '[^' + PP + ']',
- TP = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- $P = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- PL = '\\u200d',
- OP = RL + '?',
- zP = '[' + SL + ']?',
- kL = '(?:' + PL + '(?:' + [kP, TP, $P].join('|') + ')' + zP + OP + ')*',
- TL = zP + OP + kL,
- $L = '(?:' + [kP + Ab + '?', Ab, TP, $P, _L].join('|') + ')',
- OL = RegExp(Mb + '(?=' + Mb + ')|' + $L + TL, 'g');
- function zL(e) {
- return e.match(OL) || [];
- }
- function EL(e) {
- return RP(e) ? zL(e) : bL(e);
- }
- function AL(e) {
- return function (t) {
- t = Op(t);
- var n = RP(t) ? EL(t) : void 0,
- r = n ? n[0] : t.charAt(0),
- o = n ? cL(n, 1).join('') : t.slice(1);
- return r[e]() + o;
- };
- }
- var ML = AL('toUpperCase');
- const IL = ML;
- function DL(e, t, n, r) {
- var o = -1,
- i = e == null ? 0 : e.length;
- for (r && i && (n = e[++o]); ++o < i; ) n = t(n, e[o], o, e);
- return n;
- }
- function FL(e) {
- return function (t) {
- return e == null ? void 0 : e[t];
- };
- }
- var BL = {
- À: 'A',
- Á: 'A',
- Â: 'A',
- Ã: 'A',
- Ä: 'A',
- Å: 'A',
- à: 'a',
- á: 'a',
- â: 'a',
- ã: 'a',
- ä: 'a',
- å: 'a',
- Ç: 'C',
- ç: 'c',
- Ð: 'D',
- ð: 'd',
- È: 'E',
- É: 'E',
- Ê: 'E',
- Ë: 'E',
- è: 'e',
- é: 'e',
- ê: 'e',
- ë: 'e',
- Ì: 'I',
- Í: 'I',
- Î: 'I',
- Ï: 'I',
- ì: 'i',
- í: 'i',
- î: 'i',
- ï: 'i',
- Ñ: 'N',
- ñ: 'n',
- Ò: 'O',
- Ó: 'O',
- Ô: 'O',
- Õ: 'O',
- Ö: 'O',
- Ø: 'O',
- ò: 'o',
- ó: 'o',
- ô: 'o',
- õ: 'o',
- ö: 'o',
- ø: 'o',
- Ù: 'U',
- Ú: 'U',
- Û: 'U',
- Ü: 'U',
- ù: 'u',
- ú: 'u',
- û: 'u',
- ü: 'u',
- Ý: 'Y',
- ý: 'y',
- ÿ: 'y',
- Æ: 'Ae',
- æ: 'ae',
- Þ: 'Th',
- þ: 'th',
- ß: 'ss',
- Ā: 'A',
- Ă: 'A',
- Ą: 'A',
- ā: 'a',
- ă: 'a',
- ą: 'a',
- Ć: 'C',
- Ĉ: 'C',
- Ċ: 'C',
- Č: 'C',
- ć: 'c',
- ĉ: 'c',
- ċ: 'c',
- č: 'c',
- Ď: 'D',
- Đ: 'D',
- ď: 'd',
- đ: 'd',
- Ē: 'E',
- Ĕ: 'E',
- Ė: 'E',
- Ę: 'E',
- Ě: 'E',
- ē: 'e',
- ĕ: 'e',
- ė: 'e',
- ę: 'e',
- ě: 'e',
- Ĝ: 'G',
- Ğ: 'G',
- Ġ: 'G',
- Ģ: 'G',
- ĝ: 'g',
- ğ: 'g',
- ġ: 'g',
- ģ: 'g',
- Ĥ: 'H',
- Ħ: 'H',
- ĥ: 'h',
- ħ: 'h',
- Ĩ: 'I',
- Ī: 'I',
- Ĭ: 'I',
- Į: 'I',
- İ: 'I',
- ĩ: 'i',
- ī: 'i',
- ĭ: 'i',
- į: 'i',
- ı: 'i',
- Ĵ: 'J',
- ĵ: 'j',
- Ķ: 'K',
- ķ: 'k',
- ĸ: 'k',
- Ĺ: 'L',
- Ļ: 'L',
- Ľ: 'L',
- Ŀ: 'L',
- Ł: 'L',
- ĺ: 'l',
- ļ: 'l',
- ľ: 'l',
- ŀ: 'l',
- ł: 'l',
- Ń: 'N',
- Ņ: 'N',
- Ň: 'N',
- Ŋ: 'N',
- ń: 'n',
- ņ: 'n',
- ň: 'n',
- ŋ: 'n',
- Ō: 'O',
- Ŏ: 'O',
- Ő: 'O',
- ō: 'o',
- ŏ: 'o',
- ő: 'o',
- Ŕ: 'R',
- Ŗ: 'R',
- Ř: 'R',
- ŕ: 'r',
- ŗ: 'r',
- ř: 'r',
- Ś: 'S',
- Ŝ: 'S',
- Ş: 'S',
- Š: 'S',
- ś: 's',
- ŝ: 's',
- ş: 's',
- š: 's',
- Ţ: 'T',
- Ť: 'T',
- Ŧ: 'T',
- ţ: 't',
- ť: 't',
- ŧ: 't',
- Ũ: 'U',
- Ū: 'U',
- Ŭ: 'U',
- Ů: 'U',
- Ű: 'U',
- Ų: 'U',
- ũ: 'u',
- ū: 'u',
- ŭ: 'u',
- ů: 'u',
- ű: 'u',
- ų: 'u',
- Ŵ: 'W',
- ŵ: 'w',
- Ŷ: 'Y',
- ŷ: 'y',
- Ÿ: 'Y',
- Ź: 'Z',
- Ż: 'Z',
- Ž: 'Z',
- ź: 'z',
- ż: 'z',
- ž: 'z',
- IJ: 'IJ',
- ij: 'ij',
- Œ: 'Oe',
- œ: 'oe',
- ʼn: "'n",
- ſ: 's'
- },
- LL = FL(BL);
- const NL = LL;
- var HL = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,
- jL = '\\u0300-\\u036f',
- WL = '\\ufe20-\\ufe2f',
- UL = '\\u20d0-\\u20ff',
- VL = jL + WL + UL,
- KL = '[' + VL + ']',
- qL = RegExp(KL, 'g');
- function YL(e) {
- return (e = Op(e)), e && e.replace(HL, NL).replace(qL, '');
- }
- var GL = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
- function XL(e) {
- return e.match(GL) || [];
- }
- var ZL = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
- function QL(e) {
- return ZL.test(e);
- }
- var EP = '\\ud800-\\udfff',
- JL = '\\u0300-\\u036f',
- e7 = '\\ufe20-\\ufe2f',
- t7 = '\\u20d0-\\u20ff',
- n7 = JL + e7 + t7,
- AP = '\\u2700-\\u27bf',
- MP = 'a-z\\xdf-\\xf6\\xf8-\\xff',
- r7 = '\\xac\\xb1\\xd7\\xf7',
- o7 = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
- i7 = '\\u2000-\\u206f',
- a7 =
- ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
- IP = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
- l7 = '\\ufe0e\\ufe0f',
- DP = r7 + o7 + i7 + a7,
- FP = "['’]",
- VC = '[' + DP + ']',
- s7 = '[' + n7 + ']',
- BP = '\\d+',
- c7 = '[' + AP + ']',
- LP = '[' + MP + ']',
- NP = '[^' + EP + DP + BP + AP + MP + IP + ']',
- d7 = '\\ud83c[\\udffb-\\udfff]',
- u7 = '(?:' + s7 + '|' + d7 + ')',
- f7 = '[^' + EP + ']',
- HP = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- jP = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- gc = '[' + IP + ']',
- h7 = '\\u200d',
- KC = '(?:' + LP + '|' + NP + ')',
- v7 = '(?:' + gc + '|' + NP + ')',
- qC = '(?:' + FP + '(?:d|ll|m|re|s|t|ve))?',
- YC = '(?:' + FP + '(?:D|LL|M|RE|S|T|VE))?',
- WP = u7 + '?',
- UP = '[' + l7 + ']?',
- p7 = '(?:' + h7 + '(?:' + [f7, HP, jP].join('|') + ')' + UP + WP + ')*',
- g7 = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
- m7 = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
- b7 = UP + WP + p7,
- y7 = '(?:' + [c7, HP, jP].join('|') + ')' + b7,
- x7 = RegExp(
- [
- gc + '?' + LP + '+' + qC + '(?=' + [VC, gc, '$'].join('|') + ')',
- v7 + '+' + YC + '(?=' + [VC, gc + KC, '$'].join('|') + ')',
- gc + '?' + KC + '+' + qC,
- gc + '+' + YC,
- m7,
- g7,
- BP,
- y7
- ].join('|'),
- 'g'
- );
- function w7(e) {
- return e.match(x7) || [];
- }
- function C7(e, t, n) {
- return (
- (e = Op(e)),
- (t = n ? void 0 : t),
- t === void 0 ? (QL(e) ? w7(e) : XL(e)) : e.match(t) || []
- );
- }
- var S7 = "['’]",
- _7 = RegExp(S7, 'g');
- function R7(e) {
- return function (t) {
- return DL(C7(YL(t).replace(_7, '')), e, '');
- };
- }
- function P7() {
- (this.__data__ = new Pa()), (this.size = 0);
- }
- function k7(e) {
- var t = this.__data__,
- n = t.delete(e);
- return (this.size = t.size), n;
- }
- function T7(e) {
- return this.__data__.get(e);
- }
- function $7(e) {
- return this.__data__.has(e);
- }
- var O7 = 200;
- function z7(e, t) {
- var n = this.__data__;
- if (n instanceof Pa) {
- var r = n.__data__;
- if (!Tu || r.length < O7 - 1)
- return r.push([e, t]), (this.size = ++n.size), this;
- n = this.__data__ = new ka(r);
- }
- return n.set(e, t), (this.size = n.size), this;
- }
- function ji(e) {
- var t = (this.__data__ = new Pa(e));
- this.size = t.size;
- }
- ji.prototype.clear = P7;
- ji.prototype.delete = k7;
- ji.prototype.get = T7;
- ji.prototype.has = $7;
- ji.prototype.set = z7;
- var VP = typeof exports == 'object' && exports && !exports.nodeType && exports,
- GC = VP && typeof module == 'object' && module && !module.nodeType && module,
- E7 = GC && GC.exports === VP,
- XC = E7 ? xi.Buffer : void 0,
- ZC = XC ? XC.allocUnsafe : void 0;
- function A7(e, t) {
- if (t) return e.slice();
- var n = e.length,
- r = ZC ? ZC(n) : new e.constructor(n);
- return e.copy(r), r;
- }
- function M7(e, t) {
- for (var n = -1, r = e == null ? 0 : e.length, o = 0, i = []; ++n < r; ) {
- var a = e[n];
- t(a, n, e) && (i[o++] = a);
- }
- return i;
- }
- function I7() {
- return [];
- }
- var D7 = Object.prototype,
- F7 = D7.propertyIsEnumerable,
- QC = Object.getOwnPropertySymbols,
- B7 = QC
- ? function (e) {
- return e == null
- ? []
- : ((e = Object(e)),
- M7(QC(e), function (t) {
- return F7.call(e, t);
- }));
- }
- : I7;
- const L7 = B7;
- function N7(e, t, n) {
- var r = t(e);
- return Qo(e) ? r : eL(r, n(e));
- }
- function JC(e) {
- return N7(e, dy, L7);
- }
- var H7 = $s(xi, 'DataView');
- const Ib = H7;
- var j7 = $s(xi, 'Promise');
- const Db = j7;
- var W7 = $s(xi, 'Set');
- const Fb = W7;
- var eS = '[object Map]',
- U7 = '[object Object]',
- tS = '[object Promise]',
- nS = '[object Set]',
- rS = '[object WeakMap]',
- oS = '[object DataView]',
- V7 = Ts(Ib),
- K7 = Ts(Tu),
- q7 = Ts(Db),
- Y7 = Ts(Fb),
- G7 = Ts(Eb),
- es = ks;
- ((Ib && es(new Ib(new ArrayBuffer(1))) != oS) ||
- (Tu && es(new Tu()) != eS) ||
- (Db && es(Db.resolve()) != tS) ||
- (Fb && es(new Fb()) != nS) ||
- (Eb && es(new Eb()) != rS)) &&
- (es = function (e) {
- var t = ks(e),
- n = t == U7 ? e.constructor : void 0,
- r = n ? Ts(n) : '';
- if (r)
- switch (r) {
- case V7:
- return oS;
- case K7:
- return eS;
- case q7:
- return tS;
- case Y7:
- return nS;
- case G7:
- return rS;
- }
- return t;
- });
- const iS = es;
- var X7 = xi.Uint8Array;
- const iv = X7;
- function Z7(e) {
- var t = new e.constructor(e.byteLength);
- return new iv(t).set(new iv(e)), t;
- }
- function Q7(e, t) {
- var n = t ? Z7(e.buffer) : e.buffer;
- return new e.constructor(n, e.byteOffset, e.length);
- }
- function J7(e) {
- return typeof e.constructor == 'function' && !sy(e) ? QF(SP(e)) : {};
- }
- var e9 = '__lodash_hash_undefined__';
- function t9(e) {
- return this.__data__.set(e, e9), this;
- }
- function n9(e) {
- return this.__data__.has(e);
- }
- function av(e) {
- var t = -1,
- n = e == null ? 0 : e.length;
- for (this.__data__ = new ka(); ++t < n; ) this.add(e[t]);
- }
- av.prototype.add = av.prototype.push = t9;
- av.prototype.has = n9;
- function r9(e, t) {
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
- if (t(e[n], n, e)) return !0;
- return !1;
- }
- function o9(e, t) {
- return e.has(t);
- }
- var i9 = 1,
- a9 = 2;
- function KP(e, t, n, r, o, i) {
- var a = n & i9,
- s = e.length,
- c = t.length;
- if (s != c && !(a && c > s)) return !1;
- var d = i.get(e),
- f = i.get(t);
- if (d && f) return d == t && f == e;
- var v = -1,
- p = !0,
- m = n & a9 ? new av() : void 0;
- for (i.set(e, t), i.set(t, e); ++v < s; ) {
- var g = e[v],
- w = t[v];
- if (r) var x = a ? r(w, g, v, t, e, i) : r(g, w, v, e, t, i);
- if (x !== void 0) {
- if (x) continue;
- p = !1;
- break;
- }
- if (m) {
- if (
- !r9(t, function (y, C) {
- if (!o9(m, C) && (g === y || o(g, y, n, r, i))) return m.push(C);
- })
- ) {
- p = !1;
- break;
- }
- } else if (!(g === w || o(g, w, n, r, i))) {
- p = !1;
- break;
- }
- }
- return i.delete(e), i.delete(t), p;
- }
- function l9(e) {
- var t = -1,
- n = Array(e.size);
- return (
- e.forEach(function (r, o) {
- n[++t] = [o, r];
- }),
- n
- );
- }
- function s9(e) {
- var t = -1,
- n = Array(e.size);
- return (
- e.forEach(function (r) {
- n[++t] = r;
- }),
- n
- );
- }
- var c9 = 1,
- d9 = 2,
- u9 = '[object Boolean]',
- f9 = '[object Date]',
- h9 = '[object Error]',
- v9 = '[object Map]',
- p9 = '[object Number]',
- g9 = '[object RegExp]',
- m9 = '[object Set]',
- b9 = '[object String]',
- y9 = '[object Symbol]',
- x9 = '[object ArrayBuffer]',
- w9 = '[object DataView]',
- aS = fl ? fl.prototype : void 0,
- ym = aS ? aS.valueOf : void 0;
- function C9(e, t, n, r, o, i, a) {
- switch (n) {
- case w9:
- if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
- return !1;
- (e = e.buffer), (t = t.buffer);
- case x9:
- return !(e.byteLength != t.byteLength || !i(new iv(e), new iv(t)));
- case u9:
- case f9:
- case p9:
- return Gu(+e, +t);
- case h9:
- return e.name == t.name && e.message == t.message;
- case g9:
- case b9:
- return e == t + '';
- case v9:
- var s = l9;
- case m9:
- var c = r & c9;
- if ((s || (s = s9), e.size != t.size && !c)) return !1;
- var d = a.get(e);
- if (d) return d == t;
- (r |= d9), a.set(e, t);
- var f = KP(s(e), s(t), r, o, i, a);
- return a.delete(e), f;
- case y9:
- if (ym) return ym.call(e) == ym.call(t);
- }
- return !1;
- }
- var S9 = 1,
- _9 = Object.prototype,
- R9 = _9.hasOwnProperty;
- function P9(e, t, n, r, o, i) {
- var a = n & S9,
- s = JC(e),
- c = s.length,
- d = JC(t),
- f = d.length;
- if (c != f && !a) return !1;
- for (var v = c; v--; ) {
- var p = s[v];
- if (!(a ? p in t : R9.call(t, p))) return !1;
- }
- var m = i.get(e),
- g = i.get(t);
- if (m && g) return m == t && g == e;
- var w = !0;
- i.set(e, t), i.set(t, e);
- for (var x = a; ++v < c; ) {
- p = s[v];
- var y = e[p],
- C = t[p];
- if (r) var R = a ? r(C, y, p, t, e, i) : r(y, C, p, e, t, i);
- if (!(R === void 0 ? y === C || o(y, C, n, r, i) : R)) {
- w = !1;
- break;
- }
- x || (x = p == 'constructor');
- }
- if (w && !x) {
- var S = e.constructor,
- _ = t.constructor;
- S != _ &&
- 'constructor' in e &&
- 'constructor' in t &&
- !(
- typeof S == 'function' &&
- S instanceof S &&
- typeof _ == 'function' &&
- _ instanceof _
- ) &&
- (w = !1);
- }
- return i.delete(e), i.delete(t), w;
- }
- var k9 = 1,
- lS = '[object Arguments]',
- sS = '[object Array]',
- wh = '[object Object]',
- T9 = Object.prototype,
- cS = T9.hasOwnProperty;
- function $9(e, t, n, r, o, i) {
- var a = Qo(e),
- s = Qo(t),
- c = a ? sS : iS(e),
- d = s ? sS : iS(t);
- (c = c == lS ? wh : c), (d = d == lS ? wh : d);
- var f = c == wh,
- v = d == wh,
- p = c == d;
- if (p && ov(e)) {
- if (!ov(t)) return !1;
- (a = !0), (f = !1);
- }
- if (p && !f)
- return (
- i || (i = new ji()),
- a || cy(e) ? KP(e, t, n, r, o, i) : C9(e, t, c, n, r, o, i)
- );
- if (!(n & k9)) {
- var m = f && cS.call(e, '__wrapped__'),
- g = v && cS.call(t, '__wrapped__');
- if (m || g) {
- var w = m ? e.value() : e,
- x = g ? t.value() : t;
- return i || (i = new ji()), o(w, x, n, r, i);
- }
- }
- return p ? (i || (i = new ji()), P9(e, t, n, r, o, i)) : !1;
- }
- function hy(e, t, n, r, o) {
- return e === t
- ? !0
- : e == null || t == null || (!hl(e) && !hl(t))
- ? e !== e && t !== t
- : $9(e, t, n, r, hy, o);
- }
- var O9 = 1,
- z9 = 2;
- function E9(e, t, n, r) {
- var o = n.length,
- i = o,
- a = !r;
- if (e == null) return !i;
- for (e = Object(e); o--; ) {
- var s = n[o];
- if (a && s[2] ? s[1] !== e[s[0]] : !(s[0] in e)) return !1;
- }
- for (; ++o < i; ) {
- s = n[o];
- var c = s[0],
- d = e[c],
- f = s[1];
- if (a && s[2]) {
- if (d === void 0 && !(c in e)) return !1;
- } else {
- var v = new ji();
- if (r) var p = r(d, f, c, e, t, v);
- if (!(p === void 0 ? hy(f, d, O9 | z9, r, v) : p)) return !1;
- }
- }
- return !0;
- }
- function qP(e) {
- return e === e && !Jo(e);
- }
- function A9(e) {
- for (var t = dy(e), n = t.length; n--; ) {
- var r = t[n],
- o = e[r];
- t[n] = [r, o, qP(o)];
- }
- return t;
- }
- function YP(e, t) {
- return function (n) {
- return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
- };
- }
- function M9(e) {
- var t = A9(e);
- return t.length == 1 && t[0][2]
- ? YP(t[0][0], t[0][1])
- : function (n) {
- return n === e || E9(n, e, t);
- };
- }
- function I9(e, t) {
- return e != null && t in Object(e);
- }
- function D9(e, t, n) {
- t = wP(t, e);
- for (var r = -1, o = t.length, i = !1; ++r < o; ) {
- var a = zp(t[r]);
- if (!(i = e != null && n(e, a))) break;
- e = e[a];
- }
- return i || ++r != o
- ? i
- : ((o = e == null ? 0 : e.length),
- !!o && ly(o) && iy(a, o) && (Qo(e) || rv(e)));
- }
- function F9(e, t) {
- return e != null && D9(e, t, I9);
- }
- var B9 = 1,
- L9 = 2;
- function N9(e, t) {
- return uy(e) && qP(t)
- ? YP(zp(e), t)
- : function (n) {
- var r = $u(n, e);
- return r === void 0 && r === t ? F9(n, e) : hy(t, r, B9 | L9);
- };
- }
- function H9(e) {
- return function (t) {
- return t == null ? void 0 : t[e];
- };
- }
- function j9(e) {
- return function (t) {
- return CP(t, e);
- };
- }
- function W9(e) {
- return uy(e) ? H9(zp(e)) : j9(e);
- }
- function U9(e) {
- return typeof e == 'function'
- ? e
- : e == null
- ? ry
- : typeof e == 'object'
- ? Qo(e)
- ? N9(e[0], e[1])
- : M9(e)
- : W9(e);
- }
- function V9(e) {
- return function (t, n, r) {
- for (var o = -1, i = Object(t), a = r(t), s = a.length; s--; ) {
- var c = a[e ? s : ++o];
- if (n(i[c], c, i) === !1) break;
- }
- return t;
- };
- }
- var K9 = V9();
- const GP = K9;
- function q9(e, t) {
- return e && GP(e, t, dy);
- }
- function Y9(e, t) {
- return function (n, r) {
- if (n == null) return n;
- if (!td(n)) return e(n, r);
- for (
- var o = n.length, i = t ? o : -1, a = Object(n);
- (t ? i-- : ++i < o) && r(a[i], i, a) !== !1;
- );
- return n;
- };
- }
- var G9 = Y9(q9);
- const X9 = G9;
- var Z9 = function () {
- return xi.Date.now();
- };
- const xm = Z9;
- var Q9 = 'Expected a function',
- J9 = Math.max,
- eN = Math.min;
- function tN(e, t, n) {
- var r,
- o,
- i,
- a,
- s,
- c,
- d = 0,
- f = !1,
- v = !1,
- p = !0;
- if (typeof e != 'function') throw new TypeError(Q9);
- (t = DC(t) || 0),
- Jo(n) &&
- ((f = !!n.leading),
- (v = 'maxWait' in n),
- (i = v ? J9(DC(n.maxWait) || 0, t) : i),
- (p = 'trailing' in n ? !!n.trailing : p));
- function m(P) {
- var T = r,
- E = o;
- return (r = o = void 0), (d = P), (a = e.apply(E, T)), a;
- }
- function g(P) {
- return (d = P), (s = setTimeout(y, t)), f ? m(P) : a;
- }
- function w(P) {
- var T = P - c,
- E = P - d,
- z = t - T;
- return v ? eN(z, i - E) : z;
- }
- function x(P) {
- var T = P - c,
- E = P - d;
- return c === void 0 || T >= t || T < 0 || (v && E >= i);
- }
- function y() {
- var P = xm();
- if (x(P)) return C(P);
- s = setTimeout(y, w(P));
- }
- function C(P) {
- return (s = void 0), p && r ? m(P) : ((r = o = void 0), a);
- }
- function R() {
- s !== void 0 && clearTimeout(s), (d = 0), (r = c = o = s = void 0);
- }
- function S() {
- return s === void 0 ? a : C(xm());
- }
- function _() {
- var P = xm(),
- T = x(P);
- if (((r = arguments), (o = this), (c = P), T)) {
- if (s === void 0) return g(c);
- if (v) return clearTimeout(s), (s = setTimeout(y, t)), m(c);
- }
- return s === void 0 && (s = setTimeout(y, t)), a;
- }
- return (_.cancel = R), (_.flush = S), _;
- }
- function Bb(e, t, n) {
- ((n !== void 0 && !Gu(e[t], n)) || (n === void 0 && !(t in e))) &&
- ay(e, t, n);
- }
- function nN(e) {
- return hl(e) && td(e);
- }
- function Lb(e, t) {
- if (!(t === 'constructor' && typeof e[t] == 'function') && t != '__proto__')
- return e[t];
- }
- function rN(e) {
- return g8(e, xP(e));
- }
- function oN(e, t, n, r, o, i, a) {
- var s = Lb(e, n),
- c = Lb(t, n),
- d = a.get(c);
- if (d) {
- Bb(e, n, d);
- return;
- }
- var f = i ? i(s, c, n + '', e, t, a) : void 0,
- v = f === void 0;
- if (v) {
- var p = Qo(c),
- m = !p && ov(c),
- g = !p && !m && cy(c);
- (f = c),
- p || m || g
- ? Qo(s)
- ? (f = s)
- : nN(s)
- ? (f = e8(s))
- : m
- ? ((v = !1), (f = A7(c, !0)))
- : g
- ? ((v = !1), (f = Q7(c, !0)))
- : (f = [])
- : lL(c) || rv(c)
- ? ((f = s), rv(s) ? (f = rN(s)) : (!Jo(s) || oy(s)) && (f = J7(c)))
- : (v = !1);
- }
- v && (a.set(c, f), o(f, c, r, i, a), a.delete(c)), Bb(e, n, f);
- }
- function XP(e, t, n, r, o) {
- e !== t &&
- GP(
- t,
- function (i, a) {
- if ((o || (o = new ji()), Jo(i))) oN(e, t, a, n, XP, r, o);
- else {
- var s = r ? r(Lb(e, a), i, a + '', e, t, o) : void 0;
- s === void 0 && (s = i), Bb(e, a, s);
- }
- },
- xP
- );
- }
- function iN(e, t) {
- var n = -1,
- r = td(e) ? Array(e.length) : [];
- return (
- X9(e, function (o, i, a) {
- r[++n] = t(o, i, a);
- }),
- r
- );
- }
- function aN(e, t) {
- var n = Qo(e) ? hP : iN;
- return n(e, U9(t));
- }
- var lN = R7(function (e, t, n) {
- return e + (n ? '-' : '') + t.toLowerCase();
- });
- const ZP = lN;
- var sN = w8(function (e, t, n) {
- XP(e, t, n);
- });
- const jd = sN;
- var cN = 'Expected a function';
- function wm(e, t, n) {
- var r = !0,
- o = !0;
- if (typeof e != 'function') throw new TypeError(cN);
- return (
- Jo(n) &&
- ((r = 'leading' in n ? !!n.leading : r),
- (o = 'trailing' in n ? !!n.trailing : o)),
- tN(e, t, { leading: r, maxWait: t, trailing: o })
- );
- }
- const Bo = {
- fontFamily:
- 'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
- fontFamilyMono:
- 'v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace',
- fontWeight: '400',
- fontWeightStrong: '500',
- cubicBezierEaseInOut: 'cubic-bezier(.4, 0, .2, 1)',
- cubicBezierEaseOut: 'cubic-bezier(0, 0, .2, 1)',
- cubicBezierEaseIn: 'cubic-bezier(.4, 0, 1, 1)',
- borderRadius: '3px',
- borderRadiusSmall: '2px',
- fontSize: '14px',
- fontSizeMini: '12px',
- fontSizeTiny: '12px',
- fontSizeSmall: '14px',
- fontSizeMedium: '14px',
- fontSizeLarge: '15px',
- fontSizeHuge: '16px',
- lineHeight: '1.6',
- heightMini: '16px',
- heightTiny: '22px',
- heightSmall: '28px',
- heightMedium: '34px',
- heightLarge: '40px',
- heightHuge: '46px'
- },
- { fontSize: dN, fontFamily: uN, lineHeight: fN } = Bo,
- QP = F(
- 'body',
- `
- margin: 0;
- font-size: ${dN};
- font-family: ${uN};
- line-height: ${fN};
- -webkit-text-size-adjust: 100%;
- -webkit-tap-highlight-color: transparent;
- `,
- [
- F(
- 'input',
- `
- font-family: inherit;
- font-size: inherit;
- `
- )
- ]
- ),
- Ca = 'n-config-provider',
- Ac = 'naive-ui-style';
- function Ke(e, t, n, r, o, i) {
- const a = wl(),
- s = Ze(Ca, null);
- if (n) {
- const d = () => {
- const f = i == null ? void 0 : i.value;
- n.mount({
- id: f === void 0 ? t : f + t,
- head: !0,
- props: { bPrefix: f ? `.${f}-` : void 0 },
- anchorMetaName: Ac,
- ssr: a
- }),
- (s != null && s.preflightStyleDisabled) ||
- QP.mount({ id: 'n-global', head: !0, anchorMetaName: Ac, ssr: a });
- };
- a ? d() : yl(d);
- }
- return I(() => {
- var d;
- const {
- theme: { common: f, self: v, peers: p = {} } = {},
- themeOverrides: m = {},
- builtinThemeOverrides: g = {}
- } = o,
- { common: w, peers: x } = m,
- {
- common: y = void 0,
- [e]: { common: C = void 0, self: R = void 0, peers: S = {} } = {}
- } = (s == null ? void 0 : s.mergedThemeRef.value) || {},
- { common: _ = void 0, [e]: P = {} } =
- (s == null ? void 0 : s.mergedThemeOverridesRef.value) || {},
- { common: T, peers: E = {} } = P,
- z = jd({}, f || C || y || r.common, _, T, w),
- k = jd(
- (d = v || R || r.self) === null || d === void 0 ? void 0 : d(z),
- g,
- P,
- m
- );
- return {
- common: z,
- self: k,
- peers: jd({}, r.peers, S, p),
- peerOverrides: jd({}, g.peers, E, x)
- };
- });
- }
- Ke.props = {
- theme: Object,
- themeOverrides: Object,
- builtinThemeOverrides: Object
- };
- const JP = 'n';
- function yt(e = {}, t = { defaultBordered: !0 }) {
- const n = Ze(Ca, null);
- return {
- inlineThemeDisabled: n == null ? void 0 : n.inlineThemeDisabled,
- mergedRtlRef: n == null ? void 0 : n.mergedRtlRef,
- mergedComponentPropsRef: n == null ? void 0 : n.mergedComponentPropsRef,
- mergedBreakpointsRef: n == null ? void 0 : n.mergedBreakpointsRef,
- mergedBorderedRef: I(() => {
- var r, o;
- const { bordered: i } = e;
- return i !== void 0
- ? i
- : (o =
- (r = n == null ? void 0 : n.mergedBorderedRef.value) !== null &&
- r !== void 0
- ? r
- : t.defaultBordered) !== null && o !== void 0
- ? o
- : !0;
- }),
- mergedClsPrefixRef: I(
- () => (n == null ? void 0 : n.mergedClsPrefixRef.value) || JP
- ),
- namespaceRef: I(() => (n == null ? void 0 : n.mergedNamespaceRef.value))
- };
- }
- const hN = {
- name: 'zh-CN',
- global: { undo: '撤销', redo: '重做', confirm: '确认', clear: '清除' },
- Popconfirm: { positiveText: '确认', negativeText: '取消' },
- Cascader: {
- placeholder: '请选择',
- loading: '加载中',
- loadingRequiredMessage: e => `加载全部 ${e} 的子节点后才可选中`
- },
- Time: { dateFormat: 'yyyy-MM-dd', dateTimeFormat: 'yyyy-MM-dd HH:mm:ss' },
- DatePicker: {
- yearFormat: 'yyyy年',
- monthFormat: 'MMM',
- dayFormat: 'eeeeee',
- yearTypeFormat: 'yyyy',
- monthTypeFormat: 'yyyy-MM',
- dateFormat: 'yyyy-MM-dd',
- dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
- quarterFormat: 'yyyy-qqq',
- clear: '清除',
- now: '此刻',
- confirm: '确认',
- selectTime: '选择时间',
- selectDate: '选择日期',
- datePlaceholder: '选择日期',
- datetimePlaceholder: '选择日期时间',
- monthPlaceholder: '选择月份',
- yearPlaceholder: '选择年份',
- quarterPlaceholder: '选择季度',
- startDatePlaceholder: '开始日期',
- endDatePlaceholder: '结束日期',
- startDatetimePlaceholder: '开始日期时间',
- endDatetimePlaceholder: '结束日期时间',
- startMonthPlaceholder: '开始月份',
- endMonthPlaceholder: '结束月份',
- monthBeforeYear: !1,
- firstDayOfWeek: 0,
- today: '今天'
- },
- DataTable: {
- checkTableAll: '选择全部表格数据',
- uncheckTableAll: '取消选择全部表格数据',
- confirm: '确认',
- clear: '重置'
- },
- LegacyTransfer: { sourceTitle: '源项', targetTitle: '目标项' },
- Transfer: {
- selectAll: '全选',
- clearAll: '清除',
- unselectAll: '取消全选',
- total: e => `共 ${e} 项`,
- selected: e => `已选 ${e} 项`
- },
- Empty: { description: '无数据' },
- Select: { placeholder: '请选择' },
- TimePicker: {
- placeholder: '请选择时间',
- positiveText: '确认',
- negativeText: '取消',
- now: '此刻'
- },
- Pagination: { goto: '跳至', selectionSuffix: '页' },
- DynamicTags: { add: '添加' },
- Log: { loading: '加载中' },
- Input: { placeholder: '请输入' },
- InputNumber: { placeholder: '请输入' },
- DynamicInput: { create: '添加' },
- ThemeEditor: {
- title: '主题编辑器',
- clearAllVars: '清除全部变量',
- clearSearch: '清除搜索',
- filterCompName: '过滤组件名',
- filterVarName: '过滤变量名',
- import: '导入',
- export: '导出',
- restore: '恢复默认'
- },
- Image: {
- tipPrevious: '上一张(←)',
- tipNext: '下一张(→)',
- tipCounterclockwise: '向左旋转',
- tipClockwise: '向右旋转',
- tipZoomOut: '缩小',
- tipZoomIn: '放大',
- tipClose: '关闭(Esc)',
- tipOriginalSize: '缩放到原始尺寸'
- }
- },
- vN = hN,
- pN = {
- name: 'en-US',
- global: { undo: 'Undo', redo: 'Redo', confirm: 'Confirm', clear: 'Clear' },
- Popconfirm: { positiveText: 'Confirm', negativeText: 'Cancel' },
- Cascader: {
- placeholder: 'Please Select',
- loading: 'Loading',
- loadingRequiredMessage: e =>
- `Please load all ${e}'s descendants before checking it.`
- },
- Time: { dateFormat: 'yyyy-MM-dd', dateTimeFormat: 'yyyy-MM-dd HH:mm:ss' },
- DatePicker: {
- yearFormat: 'yyyy',
- monthFormat: 'MMM',
- dayFormat: 'eeeeee',
- yearTypeFormat: 'yyyy',
- monthTypeFormat: 'yyyy-MM',
- dateFormat: 'yyyy-MM-dd',
- dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
- quarterFormat: 'yyyy-qqq',
- clear: 'Clear',
- now: 'Now',
- confirm: 'Confirm',
- selectTime: 'Select Time',
- selectDate: 'Select Date',
- datePlaceholder: 'Select Date',
- datetimePlaceholder: 'Select Date and Time',
- monthPlaceholder: 'Select Month',
- yearPlaceholder: 'Select Year',
- quarterPlaceholder: 'Select Quarter',
- startDatePlaceholder: 'Start Date',
- endDatePlaceholder: 'End Date',
- startDatetimePlaceholder: 'Start Date and Time',
- endDatetimePlaceholder: 'End Date and Time',
- startMonthPlaceholder: 'Start Month',
- endMonthPlaceholder: 'End Month',
- monthBeforeYear: !0,
- firstDayOfWeek: 6,
- today: 'Today'
- },
- DataTable: {
- checkTableAll: 'Select all in the table',
- uncheckTableAll: 'Unselect all in the table',
- confirm: 'Confirm',
- clear: 'Clear'
- },
- LegacyTransfer: { sourceTitle: 'Source', targetTitle: 'Target' },
- Transfer: {
- selectAll: 'Select all',
- unselectAll: 'Unselect all',
- clearAll: 'Clear',
- total: e => `Total ${e} items`,
- selected: e => `${e} items selected`
- },
- Empty: { description: 'No Data' },
- Select: { placeholder: 'Please Select' },
- TimePicker: {
- placeholder: 'Select Time',
- positiveText: 'OK',
- negativeText: 'Cancel',
- now: 'Now'
- },
- Pagination: { goto: 'Goto', selectionSuffix: 'page' },
- DynamicTags: { add: 'Add' },
- Log: { loading: 'Loading' },
- Input: { placeholder: 'Please Input' },
- InputNumber: { placeholder: 'Please Input' },
- DynamicInput: { create: 'Create' },
- ThemeEditor: {
- title: 'Theme Editor',
- clearAllVars: 'Clear All Variables',
- clearSearch: 'Clear Search',
- filterCompName: 'Filter Component Name',
- filterVarName: 'Filter Variable Name',
- import: 'Import',
- export: 'Export',
- restore: 'Reset to Default'
- },
- Image: {
- tipPrevious: 'Previous picture (←)',
- tipNext: 'Next picture (→)',
- tipCounterclockwise: 'Counterclockwise',
- tipClockwise: 'Clockwise',
- tipZoomOut: 'Zoom out',
- tipZoomIn: 'Zoom in',
- tipClose: 'Close (Esc)',
- tipOriginalSize: 'Zoom to original size'
- }
- },
- gN = pN;
- var mN = {
- lessThanXSeconds: { one: '不到 1 秒', other: '不到 {{count}} 秒' },
- xSeconds: { one: '1 秒', other: '{{count}} 秒' },
- halfAMinute: '半分钟',
- lessThanXMinutes: { one: '不到 1 分钟', other: '不到 {{count}} 分钟' },
- xMinutes: { one: '1 分钟', other: '{{count}} 分钟' },
- xHours: { one: '1 小时', other: '{{count}} 小时' },
- aboutXHours: { one: '大约 1 小时', other: '大约 {{count}} 小时' },
- xDays: { one: '1 天', other: '{{count}} 天' },
- aboutXWeeks: { one: '大约 1 个星期', other: '大约 {{count}} 个星期' },
- xWeeks: { one: '1 个星期', other: '{{count}} 个星期' },
- aboutXMonths: { one: '大约 1 个月', other: '大约 {{count}} 个月' },
- xMonths: { one: '1 个月', other: '{{count}} 个月' },
- aboutXYears: { one: '大约 1 年', other: '大约 {{count}} 年' },
- xYears: { one: '1 年', other: '{{count}} 年' },
- overXYears: { one: '超过 1 年', other: '超过 {{count}} 年' },
- almostXYears: { one: '将近 1 年', other: '将近 {{count}} 年' }
- },
- bN = function (t, n, r) {
- var o,
- i = mN[t];
- return (
- typeof i == 'string'
- ? (o = i)
- : n === 1
- ? (o = i.one)
- : (o = i.other.replace('{{count}}', String(n))),
- r != null && r.addSuffix
- ? r.comparison && r.comparison > 0
- ? o + '内'
- : o + '前'
- : o
- );
- };
- const yN = bN;
- function Rc(e) {
- return function () {
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
- n = t.width ? String(t.width) : e.defaultWidth,
- r = e.formats[n] || e.formats[e.defaultWidth];
- return r;
- };
- }
- var xN = {
- full: "y'年'M'月'd'日' EEEE",
- long: "y'年'M'月'd'日'",
- medium: 'yyyy-MM-dd',
- short: 'yy-MM-dd'
- },
- wN = {
- full: 'zzzz a h:mm:ss',
- long: 'z a h:mm:ss',
- medium: 'a h:mm:ss',
- short: 'a h:mm'
- },
- CN = {
- full: '{{date}} {{time}}',
- long: '{{date}} {{time}}',
- medium: '{{date}} {{time}}',
- short: '{{date}} {{time}}'
- },
- SN = {
- date: Rc({ formats: xN, defaultWidth: 'full' }),
- time: Rc({ formats: wN, defaultWidth: 'full' }),
- dateTime: Rc({ formats: CN, defaultWidth: 'full' })
- };
- const _N = SN;
- function Bt(e, t) {
- if (t.length < e)
- throw new TypeError(
- e +
- ' argument' +
- (e > 1 ? 's' : '') +
- ' required, but only ' +
- t.length +
- ' present'
- );
- }
- function Yi(e) {
- return (
- (Yi =
- typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
- ? function (t) {
- return typeof t;
- }
- : function (t) {
- return t &&
- typeof Symbol == 'function' &&
- t.constructor === Symbol &&
- t !== Symbol.prototype
- ? 'symbol'
- : typeof t;
- }),
- Yi(e)
- );
- }
- function Xt(e) {
- Bt(1, arguments);
- var t = Object.prototype.toString.call(e);
- return e instanceof Date || (Yi(e) === 'object' && t === '[object Date]')
- ? new Date(e.getTime())
- : typeof e == 'number' || t === '[object Number]'
- ? new Date(e)
- : ((typeof e == 'string' || t === '[object String]') &&
- typeof console < 'u' &&
- (console.warn(
- "Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"
- ),
- console.warn(new Error().stack)),
- new Date(NaN));
- }
- function Ln(e) {
- if (e === null || e === !0 || e === !1) return NaN;
- var t = Number(e);
- return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
- }
- var RN = {};
- function nd() {
- return RN;
- }
- function Sa(e, t) {
- var n, r, o, i, a, s, c, d;
- Bt(1, arguments);
- var f = nd(),
- v = Ln(
- (n =
- (r =
- (o =
- (i = t == null ? void 0 : t.weekStartsOn) !== null && i !== void 0
- ? i
- : t == null ||
- (a = t.locale) === null ||
- a === void 0 ||
- (s = a.options) === null ||
- s === void 0
- ? void 0
- : s.weekStartsOn) !== null && o !== void 0
- ? o
- : f.weekStartsOn) !== null && r !== void 0
- ? r
- : (c = f.locale) === null ||
- c === void 0 ||
- (d = c.options) === null ||
- d === void 0
- ? void 0
- : d.weekStartsOn) !== null && n !== void 0
- ? n
- : 0
- );
- if (!(v >= 0 && v <= 6))
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- var p = Xt(e),
- m = p.getUTCDay(),
- g = (m < v ? 7 : 0) + m - v;
- return p.setUTCDate(p.getUTCDate() - g), p.setUTCHours(0, 0, 0, 0), p;
- }
- function PN(e, t, n) {
- Bt(2, arguments);
- var r = Sa(e, n),
- o = Sa(t, n);
- return r.getTime() === o.getTime();
- }
- function dS(e, t, n) {
- var r = 'eeee p';
- return PN(e, t, n)
- ? r
- : e.getTime() > t.getTime()
- ? "'下个'" + r
- : "'上个'" + r;
- }
- var kN = {
- lastWeek: dS,
- yesterday: "'昨天' p",
- today: "'今天' p",
- tomorrow: "'明天' p",
- nextWeek: dS,
- other: 'PP p'
- },
- TN = function (t, n, r, o) {
- var i = kN[t];
- return typeof i == 'function' ? i(n, r, o) : i;
- };
- const $N = TN;
- function Di(e) {
- return function (t, n) {
- var r = n != null && n.context ? String(n.context) : 'standalone',
- o;
- if (r === 'formatting' && e.formattingValues) {
- var i = e.defaultFormattingWidth || e.defaultWidth,
- a = n != null && n.width ? String(n.width) : i;
- o = e.formattingValues[a] || e.formattingValues[i];
- } else {
- var s = e.defaultWidth,
- c = n != null && n.width ? String(n.width) : e.defaultWidth;
- o = e.values[c] || e.values[s];
- }
- var d = e.argumentCallback ? e.argumentCallback(t) : t;
- return o[d];
- };
- }
- var ON = {
- narrow: ['前', '公元'],
- abbreviated: ['前', '公元'],
- wide: ['公元前', '公元']
- },
- zN = {
- narrow: ['1', '2', '3', '4'],
- abbreviated: ['第一季', '第二季', '第三季', '第四季'],
- wide: ['第一季度', '第二季度', '第三季度', '第四季度']
- },
- EN = {
- narrow: [
- '一',
- '二',
- '三',
- '四',
- '五',
- '六',
- '七',
- '八',
- '九',
- '十',
- '十一',
- '十二'
- ],
- abbreviated: [
- '1月',
- '2月',
- '3月',
- '4月',
- '5月',
- '6月',
- '7月',
- '8月',
- '9月',
- '10月',
- '11月',
- '12月'
- ],
- wide: [
- '一月',
- '二月',
- '三月',
- '四月',
- '五月',
- '六月',
- '七月',
- '八月',
- '九月',
- '十月',
- '十一月',
- '十二月'
- ]
- },
- AN = {
- narrow: ['日', '一', '二', '三', '四', '五', '六'],
- short: ['日', '一', '二', '三', '四', '五', '六'],
- abbreviated: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
- wide: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
- },
- MN = {
- narrow: {
- am: '上',
- pm: '下',
- midnight: '凌晨',
- noon: '午',
- morning: '早',
- afternoon: '下午',
- evening: '晚',
- night: '夜'
- },
- abbreviated: {
- am: '上午',
- pm: '下午',
- midnight: '凌晨',
- noon: '中午',
- morning: '早晨',
- afternoon: '中午',
- evening: '晚上',
- night: '夜间'
- },
- wide: {
- am: '上午',
- pm: '下午',
- midnight: '凌晨',
- noon: '中午',
- morning: '早晨',
- afternoon: '中午',
- evening: '晚上',
- night: '夜间'
- }
- },
- IN = {
- narrow: {
- am: '上',
- pm: '下',
- midnight: '凌晨',
- noon: '午',
- morning: '早',
- afternoon: '下午',
- evening: '晚',
- night: '夜'
- },
- abbreviated: {
- am: '上午',
- pm: '下午',
- midnight: '凌晨',
- noon: '中午',
- morning: '早晨',
- afternoon: '中午',
- evening: '晚上',
- night: '夜间'
- },
- wide: {
- am: '上午',
- pm: '下午',
- midnight: '凌晨',
- noon: '中午',
- morning: '早晨',
- afternoon: '中午',
- evening: '晚上',
- night: '夜间'
- }
- },
- DN = function (t, n) {
- var r = Number(t);
- switch (n == null ? void 0 : n.unit) {
- case 'date':
- return r.toString() + '日';
- case 'hour':
- return r.toString() + '时';
- case 'minute':
- return r.toString() + '分';
- case 'second':
- return r.toString() + '秒';
- default:
- return '第 ' + r.toString();
- }
- },
- FN = {
- ordinalNumber: DN,
- era: Di({ values: ON, defaultWidth: 'wide' }),
- quarter: Di({
- values: zN,
- defaultWidth: 'wide',
- argumentCallback: function (t) {
- return t - 1;
- }
- }),
- month: Di({ values: EN, defaultWidth: 'wide' }),
- day: Di({ values: AN, defaultWidth: 'wide' }),
- dayPeriod: Di({
- values: MN,
- defaultWidth: 'wide',
- formattingValues: IN,
- defaultFormattingWidth: 'wide'
- })
- };
- const BN = FN;
- function Fi(e) {
- return function (t) {
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- r = n.width,
- o = (r && e.matchPatterns[r]) || e.matchPatterns[e.defaultMatchWidth],
- i = t.match(o);
- if (!i) return null;
- var a = i[0],
- s = (r && e.parsePatterns[r]) || e.parsePatterns[e.defaultParseWidth],
- c = Array.isArray(s)
- ? NN(s, function (v) {
- return v.test(a);
- })
- : LN(s, function (v) {
- return v.test(a);
- }),
- d;
- (d = e.valueCallback ? e.valueCallback(c) : c),
- (d = n.valueCallback ? n.valueCallback(d) : d);
- var f = t.slice(a.length);
- return { value: d, rest: f };
- };
- }
- function LN(e, t) {
- for (var n in e) if (e.hasOwnProperty(n) && t(e[n])) return n;
- }
- function NN(e, t) {
- for (var n = 0; n < e.length; n++) if (t(e[n])) return n;
- }
- function ek(e) {
- return function (t) {
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- r = t.match(e.matchPattern);
- if (!r) return null;
- var o = r[0],
- i = t.match(e.parsePattern);
- if (!i) return null;
- var a = e.valueCallback ? e.valueCallback(i[0]) : i[0];
- a = n.valueCallback ? n.valueCallback(a) : a;
- var s = t.slice(o.length);
- return { value: a, rest: s };
- };
- }
- var HN = /^(第\s*)?\d+(日|时|分|秒)?/i,
- jN = /\d+/i,
- WN = { narrow: /^(前)/i, abbreviated: /^(前)/i, wide: /^(公元前|公元)/i },
- UN = { any: [/^(前)/i, /^(公元)/i] },
- VN = {
- narrow: /^[1234]/i,
- abbreviated: /^第[一二三四]刻/i,
- wide: /^第[一二三四]刻钟/i
- },
- KN = { any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i] },
- qN = {
- narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,
- abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,
- wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i
- },
- YN = {
- narrow: [
- /^一/i,
- /^二/i,
- /^三/i,
- /^四/i,
- /^五/i,
- /^六/i,
- /^七/i,
- /^八/i,
- /^九/i,
- /^十(?!(一|二))/i,
- /^十一/i,
- /^十二/i
- ],
- any: [
- /^一|1/i,
- /^二|2/i,
- /^三|3/i,
- /^四|4/i,
- /^五|5/i,
- /^六|6/i,
- /^七|7/i,
- /^八|8/i,
- /^九|9/i,
- /^十(?!(一|二))|10/i,
- /^十一|11/i,
- /^十二|12/i
- ]
- },
- GN = {
- narrow: /^[一二三四五六日]/i,
- short: /^[一二三四五六日]/i,
- abbreviated: /^周[一二三四五六日]/i,
- wide: /^星期[一二三四五六日]/i
- },
- XN = { any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i] },
- ZN = { any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i },
- QN = {
- any: {
- am: /^上午?/i,
- pm: /^下午?/i,
- midnight: /^午夜/i,
- noon: /^[中正]午/i,
- morning: /^早上/i,
- afternoon: /^下午/i,
- evening: /^晚上?/i,
- night: /^凌晨/i
- }
- },
- JN = {
- ordinalNumber: ek({
- matchPattern: HN,
- parsePattern: jN,
- valueCallback: function (t) {
- return parseInt(t, 10);
- }
- }),
- era: Fi({
- matchPatterns: WN,
- defaultMatchWidth: 'wide',
- parsePatterns: UN,
- defaultParseWidth: 'any'
- }),
- quarter: Fi({
- matchPatterns: VN,
- defaultMatchWidth: 'wide',
- parsePatterns: KN,
- defaultParseWidth: 'any',
- valueCallback: function (t) {
- return t + 1;
- }
- }),
- month: Fi({
- matchPatterns: qN,
- defaultMatchWidth: 'wide',
- parsePatterns: YN,
- defaultParseWidth: 'any'
- }),
- day: Fi({
- matchPatterns: GN,
- defaultMatchWidth: 'wide',
- parsePatterns: XN,
- defaultParseWidth: 'any'
- }),
- dayPeriod: Fi({
- matchPatterns: ZN,
- defaultMatchWidth: 'any',
- parsePatterns: QN,
- defaultParseWidth: 'any'
- })
- };
- const eH = JN;
- var tH = {
- code: 'zh-CN',
- formatDistance: yN,
- formatLong: _N,
- formatRelative: $N,
- localize: BN,
- match: eH,
- options: { weekStartsOn: 1, firstWeekContainsDate: 4 }
- };
- const nH = tH,
- rH = { name: 'zh-CN', locale: nH },
- oH = rH;
- var iH = {
- lessThanXSeconds: {
- one: 'less than a second',
- other: 'less than {{count}} seconds'
- },
- xSeconds: { one: '1 second', other: '{{count}} seconds' },
- halfAMinute: 'half a minute',
- lessThanXMinutes: {
- one: 'less than a minute',
- other: 'less than {{count}} minutes'
- },
- xMinutes: { one: '1 minute', other: '{{count}} minutes' },
- aboutXHours: { one: 'about 1 hour', other: 'about {{count}} hours' },
- xHours: { one: '1 hour', other: '{{count}} hours' },
- xDays: { one: '1 day', other: '{{count}} days' },
- aboutXWeeks: { one: 'about 1 week', other: 'about {{count}} weeks' },
- xWeeks: { one: '1 week', other: '{{count}} weeks' },
- aboutXMonths: { one: 'about 1 month', other: 'about {{count}} months' },
- xMonths: { one: '1 month', other: '{{count}} months' },
- aboutXYears: { one: 'about 1 year', other: 'about {{count}} years' },
- xYears: { one: '1 year', other: '{{count}} years' },
- overXYears: { one: 'over 1 year', other: 'over {{count}} years' },
- almostXYears: { one: 'almost 1 year', other: 'almost {{count}} years' }
- },
- aH = function (t, n, r) {
- var o,
- i = iH[t];
- return (
- typeof i == 'string'
- ? (o = i)
- : n === 1
- ? (o = i.one)
- : (o = i.other.replace('{{count}}', n.toString())),
- r != null && r.addSuffix
- ? r.comparison && r.comparison > 0
- ? 'in ' + o
- : o + ' ago'
- : o
- );
- };
- const lH = aH;
- var sH = {
- full: 'EEEE, MMMM do, y',
- long: 'MMMM do, y',
- medium: 'MMM d, y',
- short: 'MM/dd/yyyy'
- },
- cH = {
- full: 'h:mm:ss a zzzz',
- long: 'h:mm:ss a z',
- medium: 'h:mm:ss a',
- short: 'h:mm a'
- },
- dH = {
- full: "{{date}} 'at' {{time}}",
- long: "{{date}} 'at' {{time}}",
- medium: '{{date}}, {{time}}',
- short: '{{date}}, {{time}}'
- },
- uH = {
- date: Rc({ formats: sH, defaultWidth: 'full' }),
- time: Rc({ formats: cH, defaultWidth: 'full' }),
- dateTime: Rc({ formats: dH, defaultWidth: 'full' })
- };
- const fH = uH;
- var hH = {
- lastWeek: "'last' eeee 'at' p",
- yesterday: "'yesterday at' p",
- today: "'today at' p",
- tomorrow: "'tomorrow at' p",
- nextWeek: "eeee 'at' p",
- other: 'P'
- },
- vH = function (t, n, r, o) {
- return hH[t];
- };
- const pH = vH;
- var gH = {
- narrow: ['B', 'A'],
- abbreviated: ['BC', 'AD'],
- wide: ['Before Christ', 'Anno Domini']
- },
- mH = {
- narrow: ['1', '2', '3', '4'],
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
- },
- bH = {
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
- abbreviated: [
- 'Jan',
- 'Feb',
- 'Mar',
- 'Apr',
- 'May',
- 'Jun',
- 'Jul',
- 'Aug',
- 'Sep',
- 'Oct',
- 'Nov',
- 'Dec'
- ],
- wide: [
- 'January',
- 'February',
- 'March',
- 'April',
- 'May',
- 'June',
- 'July',
- 'August',
- 'September',
- 'October',
- 'November',
- 'December'
- ]
- },
- yH = {
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
- short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
- wide: [
- 'Sunday',
- 'Monday',
- 'Tuesday',
- 'Wednesday',
- 'Thursday',
- 'Friday',
- 'Saturday'
- ]
- },
- xH = {
- narrow: {
- am: 'a',
- pm: 'p',
- midnight: 'mi',
- noon: 'n',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- abbreviated: {
- am: 'AM',
- pm: 'PM',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- wide: {
- am: 'a.m.',
- pm: 'p.m.',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- }
- },
- wH = {
- narrow: {
- am: 'a',
- pm: 'p',
- midnight: 'mi',
- noon: 'n',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- },
- abbreviated: {
- am: 'AM',
- pm: 'PM',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- },
- wide: {
- am: 'a.m.',
- pm: 'p.m.',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- }
- },
- CH = function (t, n) {
- var r = Number(t),
- o = r % 100;
- if (o > 20 || o < 10)
- switch (o % 10) {
- case 1:
- return r + 'st';
- case 2:
- return r + 'nd';
- case 3:
- return r + 'rd';
- }
- return r + 'th';
- },
- SH = {
- ordinalNumber: CH,
- era: Di({ values: gH, defaultWidth: 'wide' }),
- quarter: Di({
- values: mH,
- defaultWidth: 'wide',
- argumentCallback: function (t) {
- return t - 1;
- }
- }),
- month: Di({ values: bH, defaultWidth: 'wide' }),
- day: Di({ values: yH, defaultWidth: 'wide' }),
- dayPeriod: Di({
- values: xH,
- defaultWidth: 'wide',
- formattingValues: wH,
- defaultFormattingWidth: 'wide'
- })
- };
- const _H = SH;
- var RH = /^(\d+)(th|st|nd|rd)?/i,
- PH = /\d+/i,
- kH = {
- narrow: /^(b|a)/i,
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
- wide: /^(before christ|before common era|anno domini|common era)/i
- },
- TH = { any: [/^b/i, /^(a|c)/i] },
- $H = {
- narrow: /^[1234]/i,
- abbreviated: /^q[1234]/i,
- wide: /^[1234](th|st|nd|rd)? quarter/i
- },
- OH = { any: [/1/i, /2/i, /3/i, /4/i] },
- zH = {
- narrow: /^[jfmasond]/i,
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
- },
- EH = {
- narrow: [
- /^j/i,
- /^f/i,
- /^m/i,
- /^a/i,
- /^m/i,
- /^j/i,
- /^j/i,
- /^a/i,
- /^s/i,
- /^o/i,
- /^n/i,
- /^d/i
- ],
- any: [
- /^ja/i,
- /^f/i,
- /^mar/i,
- /^ap/i,
- /^may/i,
- /^jun/i,
- /^jul/i,
- /^au/i,
- /^s/i,
- /^o/i,
- /^n/i,
- /^d/i
- ]
- },
- AH = {
- narrow: /^[smtwf]/i,
- short: /^(su|mo|tu|we|th|fr|sa)/i,
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
- },
- MH = {
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
- },
- IH = {
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
- },
- DH = {
- any: {
- am: /^a/i,
- pm: /^p/i,
- midnight: /^mi/i,
- noon: /^no/i,
- morning: /morning/i,
- afternoon: /afternoon/i,
- evening: /evening/i,
- night: /night/i
- }
- },
- FH = {
- ordinalNumber: ek({
- matchPattern: RH,
- parsePattern: PH,
- valueCallback: function (t) {
- return parseInt(t, 10);
- }
- }),
- era: Fi({
- matchPatterns: kH,
- defaultMatchWidth: 'wide',
- parsePatterns: TH,
- defaultParseWidth: 'any'
- }),
- quarter: Fi({
- matchPatterns: $H,
- defaultMatchWidth: 'wide',
- parsePatterns: OH,
- defaultParseWidth: 'any',
- valueCallback: function (t) {
- return t + 1;
- }
- }),
- month: Fi({
- matchPatterns: zH,
- defaultMatchWidth: 'wide',
- parsePatterns: EH,
- defaultParseWidth: 'any'
- }),
- day: Fi({
- matchPatterns: AH,
- defaultMatchWidth: 'wide',
- parsePatterns: MH,
- defaultParseWidth: 'any'
- }),
- dayPeriod: Fi({
- matchPatterns: IH,
- defaultMatchWidth: 'any',
- parsePatterns: DH,
- defaultParseWidth: 'any'
- })
- };
- const BH = FH;
- var LH = {
- code: 'en-US',
- formatDistance: lH,
- formatLong: fH,
- formatRelative: pH,
- localize: _H,
- match: BH,
- options: { weekStartsOn: 0, firstWeekContainsDate: 1 }
- };
- const vy = LH,
- NH = { name: 'en-US', locale: vy },
- HH = NH;
- function Ch(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t);
- return isNaN(r) ? new Date(NaN) : (r && n.setDate(n.getDate() + r), n);
- }
- function Fr(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t);
- if (isNaN(r)) return new Date(NaN);
- if (!r) return n;
- var o = n.getDate(),
- i = new Date(n.getTime());
- i.setMonth(n.getMonth() + r + 1, 0);
- var a = i.getDate();
- return o >= a ? i : (n.setFullYear(i.getFullYear(), i.getMonth(), o), n);
- }
- function jH(e, t) {
- Bt(2, arguments);
- var n = Xt(e).getTime(),
- r = Ln(t);
- return new Date(n + r);
- }
- function tk(e) {
- var t = new Date(
- Date.UTC(
- e.getFullYear(),
- e.getMonth(),
- e.getDate(),
- e.getHours(),
- e.getMinutes(),
- e.getSeconds(),
- e.getMilliseconds()
- )
- );
- return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime();
- }
- function lv(e) {
- Bt(1, arguments);
- var t = Xt(e);
- return t.setHours(0, 0, 0, 0), t;
- }
- function WH(e, t) {
- Bt(2, arguments);
- var n = Ln(t),
- r = n * 3;
- return Fr(e, r);
- }
- function Nb(e, t) {
- Bt(2, arguments);
- var n = Ln(t);
- return Fr(e, n * 12);
- }
- var UH = 6e4,
- VH = 36e5,
- KH = 1e3;
- function qH(e, t) {
- Bt(2, arguments);
- var n = lv(e),
- r = lv(t);
- return n.getTime() === r.getTime();
- }
- function YH(e) {
- return (
- Bt(1, arguments),
- e instanceof Date ||
- (Yi(e) === 'object' &&
- Object.prototype.toString.call(e) === '[object Date]')
- );
- }
- function Xo(e) {
- if ((Bt(1, arguments), !YH(e) && typeof e != 'number')) return !1;
- var t = Xt(e);
- return !isNaN(Number(t));
- }
- function GH(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = Math.floor(t.getMonth() / 3) + 1;
- return n;
- }
- function XH(e) {
- Bt(1, arguments);
- var t = Xt(e);
- return t.setSeconds(0, 0), t;
- }
- function Ou(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getMonth(),
- r = n - (n % 3);
- return t.setMonth(r, 1), t.setHours(0, 0, 0, 0), t;
- }
- function ga(e) {
- Bt(1, arguments);
- var t = Xt(e);
- return t.setDate(1), t.setHours(0, 0, 0, 0), t;
- }
- function py(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = new Date(0);
- return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
- }
- function nk(e, t) {
- Bt(2, arguments);
- var n = Ln(t);
- return jH(e, -n);
- }
- var ZH = 864e5;
- function QH(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getTime();
- t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
- var r = t.getTime(),
- o = n - r;
- return Math.floor(o / ZH) + 1;
- }
- function Mc(e) {
- Bt(1, arguments);
- var t = 1,
- n = Xt(e),
- r = n.getUTCDay(),
- o = (r < t ? 7 : 0) + r - t;
- return n.setUTCDate(n.getUTCDate() - o), n.setUTCHours(0, 0, 0, 0), n;
- }
- function rk(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getUTCFullYear(),
- r = new Date(0);
- r.setUTCFullYear(n + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
- var o = Mc(r),
- i = new Date(0);
- i.setUTCFullYear(n, 0, 4), i.setUTCHours(0, 0, 0, 0);
- var a = Mc(i);
- return t.getTime() >= o.getTime()
- ? n + 1
- : t.getTime() >= a.getTime()
- ? n
- : n - 1;
- }
- function JH(e) {
- Bt(1, arguments);
- var t = rk(e),
- n = new Date(0);
- n.setUTCFullYear(t, 0, 4), n.setUTCHours(0, 0, 0, 0);
- var r = Mc(n);
- return r;
- }
- var ej = 6048e5;
- function ok(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = Mc(t).getTime() - JH(t).getTime();
- return Math.round(n / ej) + 1;
- }
- function gy(e, t) {
- var n, r, o, i, a, s, c, d;
- Bt(1, arguments);
- var f = Xt(e),
- v = f.getUTCFullYear(),
- p = nd(),
- m = Ln(
- (n =
- (r =
- (o =
- (i = t == null ? void 0 : t.firstWeekContainsDate) !== null &&
- i !== void 0
- ? i
- : t == null ||
- (a = t.locale) === null ||
- a === void 0 ||
- (s = a.options) === null ||
- s === void 0
- ? void 0
- : s.firstWeekContainsDate) !== null && o !== void 0
- ? o
- : p.firstWeekContainsDate) !== null && r !== void 0
- ? r
- : (c = p.locale) === null ||
- c === void 0 ||
- (d = c.options) === null ||
- d === void 0
- ? void 0
- : d.firstWeekContainsDate) !== null && n !== void 0
- ? n
- : 1
- );
- if (!(m >= 1 && m <= 7))
- throw new RangeError(
- 'firstWeekContainsDate must be between 1 and 7 inclusively'
- );
- var g = new Date(0);
- g.setUTCFullYear(v + 1, 0, m), g.setUTCHours(0, 0, 0, 0);
- var w = Sa(g, t),
- x = new Date(0);
- x.setUTCFullYear(v, 0, m), x.setUTCHours(0, 0, 0, 0);
- var y = Sa(x, t);
- return f.getTime() >= w.getTime()
- ? v + 1
- : f.getTime() >= y.getTime()
- ? v
- : v - 1;
- }
- function tj(e, t) {
- var n, r, o, i, a, s, c, d;
- Bt(1, arguments);
- var f = nd(),
- v = Ln(
- (n =
- (r =
- (o =
- (i = t == null ? void 0 : t.firstWeekContainsDate) !== null &&
- i !== void 0
- ? i
- : t == null ||
- (a = t.locale) === null ||
- a === void 0 ||
- (s = a.options) === null ||
- s === void 0
- ? void 0
- : s.firstWeekContainsDate) !== null && o !== void 0
- ? o
- : f.firstWeekContainsDate) !== null && r !== void 0
- ? r
- : (c = f.locale) === null ||
- c === void 0 ||
- (d = c.options) === null ||
- d === void 0
- ? void 0
- : d.firstWeekContainsDate) !== null && n !== void 0
- ? n
- : 1
- ),
- p = gy(e, t),
- m = new Date(0);
- m.setUTCFullYear(p, 0, v), m.setUTCHours(0, 0, 0, 0);
- var g = Sa(m, t);
- return g;
- }
- var nj = 6048e5;
- function ik(e, t) {
- Bt(1, arguments);
- var n = Xt(e),
- r = Sa(n, t).getTime() - tj(n, t).getTime();
- return Math.round(r / nj) + 1;
- }
- function Dn(e, t) {
- for (var n = e < 0 ? '-' : '', r = Math.abs(e).toString(); r.length < t; )
- r = '0' + r;
- return n + r;
- }
- var rj = {
- y: function (t, n) {
- var r = t.getUTCFullYear(),
- o = r > 0 ? r : 1 - r;
- return Dn(n === 'yy' ? o % 100 : o, n.length);
- },
- M: function (t, n) {
- var r = t.getUTCMonth();
- return n === 'M' ? String(r + 1) : Dn(r + 1, 2);
- },
- d: function (t, n) {
- return Dn(t.getUTCDate(), n.length);
- },
- a: function (t, n) {
- var r = t.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
- switch (n) {
- case 'a':
- case 'aa':
- return r.toUpperCase();
- case 'aaa':
- return r;
- case 'aaaaa':
- return r[0];
- case 'aaaa':
- default:
- return r === 'am' ? 'a.m.' : 'p.m.';
- }
- },
- h: function (t, n) {
- return Dn(t.getUTCHours() % 12 || 12, n.length);
- },
- H: function (t, n) {
- return Dn(t.getUTCHours(), n.length);
- },
- m: function (t, n) {
- return Dn(t.getUTCMinutes(), n.length);
- },
- s: function (t, n) {
- return Dn(t.getUTCSeconds(), n.length);
- },
- S: function (t, n) {
- var r = n.length,
- o = t.getUTCMilliseconds(),
- i = Math.floor(o * Math.pow(10, r - 3));
- return Dn(i, n.length);
- }
- };
- const Ya = rj;
- var cc = {
- am: 'am',
- pm: 'pm',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- oj = {
- G: function (t, n, r) {
- var o = t.getUTCFullYear() > 0 ? 1 : 0;
- switch (n) {
- case 'G':
- case 'GG':
- case 'GGG':
- return r.era(o, { width: 'abbreviated' });
- case 'GGGGG':
- return r.era(o, { width: 'narrow' });
- case 'GGGG':
- default:
- return r.era(o, { width: 'wide' });
- }
- },
- y: function (t, n, r) {
- if (n === 'yo') {
- var o = t.getUTCFullYear(),
- i = o > 0 ? o : 1 - o;
- return r.ordinalNumber(i, { unit: 'year' });
- }
- return Ya.y(t, n);
- },
- Y: function (t, n, r, o) {
- var i = gy(t, o),
- a = i > 0 ? i : 1 - i;
- if (n === 'YY') {
- var s = a % 100;
- return Dn(s, 2);
- }
- return n === 'Yo'
- ? r.ordinalNumber(a, { unit: 'year' })
- : Dn(a, n.length);
- },
- R: function (t, n) {
- var r = rk(t);
- return Dn(r, n.length);
- },
- u: function (t, n) {
- var r = t.getUTCFullYear();
- return Dn(r, n.length);
- },
- Q: function (t, n, r) {
- var o = Math.ceil((t.getUTCMonth() + 1) / 3);
- switch (n) {
- case 'Q':
- return String(o);
- case 'QQ':
- return Dn(o, 2);
- case 'Qo':
- return r.ordinalNumber(o, { unit: 'quarter' });
- case 'QQQ':
- return r.quarter(o, { width: 'abbreviated', context: 'formatting' });
- case 'QQQQQ':
- return r.quarter(o, { width: 'narrow', context: 'formatting' });
- case 'QQQQ':
- default:
- return r.quarter(o, { width: 'wide', context: 'formatting' });
- }
- },
- q: function (t, n, r) {
- var o = Math.ceil((t.getUTCMonth() + 1) / 3);
- switch (n) {
- case 'q':
- return String(o);
- case 'qq':
- return Dn(o, 2);
- case 'qo':
- return r.ordinalNumber(o, { unit: 'quarter' });
- case 'qqq':
- return r.quarter(o, { width: 'abbreviated', context: 'standalone' });
- case 'qqqqq':
- return r.quarter(o, { width: 'narrow', context: 'standalone' });
- case 'qqqq':
- default:
- return r.quarter(o, { width: 'wide', context: 'standalone' });
- }
- },
- M: function (t, n, r) {
- var o = t.getUTCMonth();
- switch (n) {
- case 'M':
- case 'MM':
- return Ya.M(t, n);
- case 'Mo':
- return r.ordinalNumber(o + 1, { unit: 'month' });
- case 'MMM':
- return r.month(o, { width: 'abbreviated', context: 'formatting' });
- case 'MMMMM':
- return r.month(o, { width: 'narrow', context: 'formatting' });
- case 'MMMM':
- default:
- return r.month(o, { width: 'wide', context: 'formatting' });
- }
- },
- L: function (t, n, r) {
- var o = t.getUTCMonth();
- switch (n) {
- case 'L':
- return String(o + 1);
- case 'LL':
- return Dn(o + 1, 2);
- case 'Lo':
- return r.ordinalNumber(o + 1, { unit: 'month' });
- case 'LLL':
- return r.month(o, { width: 'abbreviated', context: 'standalone' });
- case 'LLLLL':
- return r.month(o, { width: 'narrow', context: 'standalone' });
- case 'LLLL':
- default:
- return r.month(o, { width: 'wide', context: 'standalone' });
- }
- },
- w: function (t, n, r, o) {
- var i = ik(t, o);
- return n === 'wo'
- ? r.ordinalNumber(i, { unit: 'week' })
- : Dn(i, n.length);
- },
- I: function (t, n, r) {
- var o = ok(t);
- return n === 'Io'
- ? r.ordinalNumber(o, { unit: 'week' })
- : Dn(o, n.length);
- },
- d: function (t, n, r) {
- return n === 'do'
- ? r.ordinalNumber(t.getUTCDate(), { unit: 'date' })
- : Ya.d(t, n);
- },
- D: function (t, n, r) {
- var o = QH(t);
- return n === 'Do'
- ? r.ordinalNumber(o, { unit: 'dayOfYear' })
- : Dn(o, n.length);
- },
- E: function (t, n, r) {
- var o = t.getUTCDay();
- switch (n) {
- case 'E':
- case 'EE':
- case 'EEE':
- return r.day(o, { width: 'abbreviated', context: 'formatting' });
- case 'EEEEE':
- return r.day(o, { width: 'narrow', context: 'formatting' });
- case 'EEEEEE':
- return r.day(o, { width: 'short', context: 'formatting' });
- case 'EEEE':
- default:
- return r.day(o, { width: 'wide', context: 'formatting' });
- }
- },
- e: function (t, n, r, o) {
- var i = t.getUTCDay(),
- a = (i - o.weekStartsOn + 8) % 7 || 7;
- switch (n) {
- case 'e':
- return String(a);
- case 'ee':
- return Dn(a, 2);
- case 'eo':
- return r.ordinalNumber(a, { unit: 'day' });
- case 'eee':
- return r.day(i, { width: 'abbreviated', context: 'formatting' });
- case 'eeeee':
- return r.day(i, { width: 'narrow', context: 'formatting' });
- case 'eeeeee':
- return r.day(i, { width: 'short', context: 'formatting' });
- case 'eeee':
- default:
- return r.day(i, { width: 'wide', context: 'formatting' });
- }
- },
- c: function (t, n, r, o) {
- var i = t.getUTCDay(),
- a = (i - o.weekStartsOn + 8) % 7 || 7;
- switch (n) {
- case 'c':
- return String(a);
- case 'cc':
- return Dn(a, n.length);
- case 'co':
- return r.ordinalNumber(a, { unit: 'day' });
- case 'ccc':
- return r.day(i, { width: 'abbreviated', context: 'standalone' });
- case 'ccccc':
- return r.day(i, { width: 'narrow', context: 'standalone' });
- case 'cccccc':
- return r.day(i, { width: 'short', context: 'standalone' });
- case 'cccc':
- default:
- return r.day(i, { width: 'wide', context: 'standalone' });
- }
- },
- i: function (t, n, r) {
- var o = t.getUTCDay(),
- i = o === 0 ? 7 : o;
- switch (n) {
- case 'i':
- return String(i);
- case 'ii':
- return Dn(i, n.length);
- case 'io':
- return r.ordinalNumber(i, { unit: 'day' });
- case 'iii':
- return r.day(o, { width: 'abbreviated', context: 'formatting' });
- case 'iiiii':
- return r.day(o, { width: 'narrow', context: 'formatting' });
- case 'iiiiii':
- return r.day(o, { width: 'short', context: 'formatting' });
- case 'iiii':
- default:
- return r.day(o, { width: 'wide', context: 'formatting' });
- }
- },
- a: function (t, n, r) {
- var o = t.getUTCHours(),
- i = o / 12 >= 1 ? 'pm' : 'am';
- switch (n) {
- case 'a':
- case 'aa':
- return r.dayPeriod(i, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'aaa':
- return r
- .dayPeriod(i, { width: 'abbreviated', context: 'formatting' })
- .toLowerCase();
- case 'aaaaa':
- return r.dayPeriod(i, { width: 'narrow', context: 'formatting' });
- case 'aaaa':
- default:
- return r.dayPeriod(i, { width: 'wide', context: 'formatting' });
- }
- },
- b: function (t, n, r) {
- var o = t.getUTCHours(),
- i;
- switch (
- (o === 12
- ? (i = cc.noon)
- : o === 0
- ? (i = cc.midnight)
- : (i = o / 12 >= 1 ? 'pm' : 'am'),
- n)
- ) {
- case 'b':
- case 'bb':
- return r.dayPeriod(i, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'bbb':
- return r
- .dayPeriod(i, { width: 'abbreviated', context: 'formatting' })
- .toLowerCase();
- case 'bbbbb':
- return r.dayPeriod(i, { width: 'narrow', context: 'formatting' });
- case 'bbbb':
- default:
- return r.dayPeriod(i, { width: 'wide', context: 'formatting' });
- }
- },
- B: function (t, n, r) {
- var o = t.getUTCHours(),
- i;
- switch (
- (o >= 17
- ? (i = cc.evening)
- : o >= 12
- ? (i = cc.afternoon)
- : o >= 4
- ? (i = cc.morning)
- : (i = cc.night),
- n)
- ) {
- case 'B':
- case 'BB':
- case 'BBB':
- return r.dayPeriod(i, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'BBBBB':
- return r.dayPeriod(i, { width: 'narrow', context: 'formatting' });
- case 'BBBB':
- default:
- return r.dayPeriod(i, { width: 'wide', context: 'formatting' });
- }
- },
- h: function (t, n, r) {
- if (n === 'ho') {
- var o = t.getUTCHours() % 12;
- return o === 0 && (o = 12), r.ordinalNumber(o, { unit: 'hour' });
- }
- return Ya.h(t, n);
- },
- H: function (t, n, r) {
- return n === 'Ho'
- ? r.ordinalNumber(t.getUTCHours(), { unit: 'hour' })
- : Ya.H(t, n);
- },
- K: function (t, n, r) {
- var o = t.getUTCHours() % 12;
- return n === 'Ko'
- ? r.ordinalNumber(o, { unit: 'hour' })
- : Dn(o, n.length);
- },
- k: function (t, n, r) {
- var o = t.getUTCHours();
- return (
- o === 0 && (o = 24),
- n === 'ko' ? r.ordinalNumber(o, { unit: 'hour' }) : Dn(o, n.length)
- );
- },
- m: function (t, n, r) {
- return n === 'mo'
- ? r.ordinalNumber(t.getUTCMinutes(), { unit: 'minute' })
- : Ya.m(t, n);
- },
- s: function (t, n, r) {
- return n === 'so'
- ? r.ordinalNumber(t.getUTCSeconds(), { unit: 'second' })
- : Ya.s(t, n);
- },
- S: function (t, n) {
- return Ya.S(t, n);
- },
- X: function (t, n, r, o) {
- var i = o._originalDate || t,
- a = i.getTimezoneOffset();
- if (a === 0) return 'Z';
- switch (n) {
- case 'X':
- return fS(a);
- case 'XXXX':
- case 'XX':
- return ts(a);
- case 'XXXXX':
- case 'XXX':
- default:
- return ts(a, ':');
- }
- },
- x: function (t, n, r, o) {
- var i = o._originalDate || t,
- a = i.getTimezoneOffset();
- switch (n) {
- case 'x':
- return fS(a);
- case 'xxxx':
- case 'xx':
- return ts(a);
- case 'xxxxx':
- case 'xxx':
- default:
- return ts(a, ':');
- }
- },
- O: function (t, n, r, o) {
- var i = o._originalDate || t,
- a = i.getTimezoneOffset();
- switch (n) {
- case 'O':
- case 'OO':
- case 'OOO':
- return 'GMT' + uS(a, ':');
- case 'OOOO':
- default:
- return 'GMT' + ts(a, ':');
- }
- },
- z: function (t, n, r, o) {
- var i = o._originalDate || t,
- a = i.getTimezoneOffset();
- switch (n) {
- case 'z':
- case 'zz':
- case 'zzz':
- return 'GMT' + uS(a, ':');
- case 'zzzz':
- default:
- return 'GMT' + ts(a, ':');
- }
- },
- t: function (t, n, r, o) {
- var i = o._originalDate || t,
- a = Math.floor(i.getTime() / 1e3);
- return Dn(a, n.length);
- },
- T: function (t, n, r, o) {
- var i = o._originalDate || t,
- a = i.getTime();
- return Dn(a, n.length);
- }
- };
- function uS(e, t) {
- var n = e > 0 ? '-' : '+',
- r = Math.abs(e),
- o = Math.floor(r / 60),
- i = r % 60;
- if (i === 0) return n + String(o);
- var a = t || '';
- return n + String(o) + a + Dn(i, 2);
- }
- function fS(e, t) {
- if (e % 60 === 0) {
- var n = e > 0 ? '-' : '+';
- return n + Dn(Math.abs(e) / 60, 2);
- }
- return ts(e, t);
- }
- function ts(e, t) {
- var n = t || '',
- r = e > 0 ? '-' : '+',
- o = Math.abs(e),
- i = Dn(Math.floor(o / 60), 2),
- a = Dn(o % 60, 2);
- return r + i + n + a;
- }
- const ij = oj;
- var hS = function (t, n) {
- switch (t) {
- case 'P':
- return n.date({ width: 'short' });
- case 'PP':
- return n.date({ width: 'medium' });
- case 'PPP':
- return n.date({ width: 'long' });
- case 'PPPP':
- default:
- return n.date({ width: 'full' });
- }
- },
- ak = function (t, n) {
- switch (t) {
- case 'p':
- return n.time({ width: 'short' });
- case 'pp':
- return n.time({ width: 'medium' });
- case 'ppp':
- return n.time({ width: 'long' });
- case 'pppp':
- default:
- return n.time({ width: 'full' });
- }
- },
- aj = function (t, n) {
- var r = t.match(/(P+)(p+)?/) || [],
- o = r[1],
- i = r[2];
- if (!i) return hS(t, n);
- var a;
- switch (o) {
- case 'P':
- a = n.dateTime({ width: 'short' });
- break;
- case 'PP':
- a = n.dateTime({ width: 'medium' });
- break;
- case 'PPP':
- a = n.dateTime({ width: 'long' });
- break;
- case 'PPPP':
- default:
- a = n.dateTime({ width: 'full' });
- break;
- }
- return a.replace('{{date}}', hS(o, n)).replace('{{time}}', ak(i, n));
- },
- lj = { p: ak, P: aj };
- const Hb = lj;
- var sj = ['D', 'DD'],
- cj = ['YY', 'YYYY'];
- function lk(e) {
- return sj.indexOf(e) !== -1;
- }
- function sk(e) {
- return cj.indexOf(e) !== -1;
- }
- function sv(e, t, n) {
- if (e === 'YYYY')
- throw new RangeError(
- 'Use `yyyy` instead of `YYYY` (in `'
- .concat(t, '`) for formatting years to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- if (e === 'YY')
- throw new RangeError(
- 'Use `yy` instead of `YY` (in `'
- .concat(t, '`) for formatting years to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- if (e === 'D')
- throw new RangeError(
- 'Use `d` instead of `D` (in `'
- .concat(t, '`) for formatting days of the month to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- if (e === 'DD')
- throw new RangeError(
- 'Use `dd` instead of `DD` (in `'
- .concat(t, '`) for formatting days of the month to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- }
- var dj = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,
- uj = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
- fj = /^'([^]*?)'?$/,
- hj = /''/g,
- vj = /[a-zA-Z]/;
- function Xn(e, t, n) {
- var r, o, i, a, s, c, d, f, v, p, m, g, w, x, y, C, R, S;
- Bt(2, arguments);
- var _ = String(t),
- P = nd(),
- T =
- (r =
- (o = n == null ? void 0 : n.locale) !== null && o !== void 0
- ? o
- : P.locale) !== null && r !== void 0
- ? r
- : vy,
- E = Ln(
- (i =
- (a =
- (s =
- (c = n == null ? void 0 : n.firstWeekContainsDate) !== null &&
- c !== void 0
- ? c
- : n == null ||
- (d = n.locale) === null ||
- d === void 0 ||
- (f = d.options) === null ||
- f === void 0
- ? void 0
- : f.firstWeekContainsDate) !== null && s !== void 0
- ? s
- : P.firstWeekContainsDate) !== null && a !== void 0
- ? a
- : (v = P.locale) === null ||
- v === void 0 ||
- (p = v.options) === null ||
- p === void 0
- ? void 0
- : p.firstWeekContainsDate) !== null && i !== void 0
- ? i
- : 1
- );
- if (!(E >= 1 && E <= 7))
- throw new RangeError(
- 'firstWeekContainsDate must be between 1 and 7 inclusively'
- );
- var z = Ln(
- (m =
- (g =
- (w =
- (x = n == null ? void 0 : n.weekStartsOn) !== null && x !== void 0
- ? x
- : n == null ||
- (y = n.locale) === null ||
- y === void 0 ||
- (C = y.options) === null ||
- C === void 0
- ? void 0
- : C.weekStartsOn) !== null && w !== void 0
- ? w
- : P.weekStartsOn) !== null && g !== void 0
- ? g
- : (R = P.locale) === null ||
- R === void 0 ||
- (S = R.options) === null ||
- S === void 0
- ? void 0
- : S.weekStartsOn) !== null && m !== void 0
- ? m
- : 0
- );
- if (!(z >= 0 && z <= 6))
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- if (!T.localize)
- throw new RangeError('locale must contain localize property');
- if (!T.formatLong)
- throw new RangeError('locale must contain formatLong property');
- var k = Xt(e);
- if (!Xo(k)) throw new RangeError('Invalid time value');
- var M = tk(k),
- A = nk(k, M),
- D = {
- firstWeekContainsDate: E,
- weekStartsOn: z,
- locale: T,
- _originalDate: k
- },
- L = _.match(uj)
- .map(function (H) {
- var B = H[0];
- if (B === 'p' || B === 'P') {
- var q = Hb[B];
- return q(H, T.formatLong);
- }
- return H;
- })
- .join('')
- .match(dj)
- .map(function (H) {
- if (H === "''") return "'";
- var B = H[0];
- if (B === "'") return pj(H);
- var q = ij[B];
- if (q)
- return (
- !(n != null && n.useAdditionalWeekYearTokens) &&
- sk(H) &&
- sv(H, t, String(e)),
- !(n != null && n.useAdditionalDayOfYearTokens) &&
- lk(H) &&
- sv(H, t, String(e)),
- q(A, H, T.localize, D)
- );
- if (B.match(vj))
- throw new RangeError(
- 'Format string contains an unescaped latin alphabet character `' +
- B +
- '`'
- );
- return H;
- })
- .join('');
- return L;
- }
- function pj(e) {
- var t = e.match(fj);
- return t ? t[1].replace(hj, "'") : e;
- }
- function gj(e, t) {
- if (e == null)
- throw new TypeError(
- 'assign requires that input parameter not be null or undefined'
- );
- for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
- return e;
- }
- function li(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getDate();
- return n;
- }
- function mj(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getDay();
- return n;
- }
- function bj(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getFullYear(),
- r = t.getMonth(),
- o = new Date(0);
- return o.setFullYear(n, r + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
- }
- function rl(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getHours();
- return n;
- }
- function cv(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getMinutes();
- return n;
- }
- function Yn(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getMonth();
- return n;
- }
- function dv(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getSeconds();
- return n;
- }
- function ht(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getTime();
- return n;
- }
- function er(e) {
- return Bt(1, arguments), Xt(e).getFullYear();
- }
- function vS(e, t) {
- (t == null || t > e.length) && (t = e.length);
- for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
- return r;
- }
- function yj(e, t) {
- if (e) {
- if (typeof e == 'string') return vS(e, t);
- var n = Object.prototype.toString.call(e).slice(8, -1);
- if (
- (n === 'Object' && e.constructor && (n = e.constructor.name),
- n === 'Map' || n === 'Set')
- )
- return Array.from(e);
- if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return vS(e, t);
- }
- }
- function pS(e, t) {
- var n = (typeof Symbol < 'u' && e[Symbol.iterator]) || e['@@iterator'];
- if (!n) {
- if (
- Array.isArray(e) ||
- (n = yj(e)) ||
- (t && e && typeof e.length == 'number')
- ) {
- n && (e = n);
- var r = 0,
- o = function () {};
- return {
- s: o,
- n: function () {
- return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
- },
- e: function (d) {
- throw d;
- },
- f: o
- };
- }
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
- }
- var i = !0,
- a = !1,
- s;
- return {
- s: function () {
- n = n.call(e);
- },
- n: function () {
- var d = n.next();
- return (i = d.done), d;
- },
- e: function (d) {
- (a = !0), (s = d);
- },
- f: function () {
- try {
- !i && n.return != null && n.return();
- } finally {
- if (a) throw s;
- }
- }
- };
- }
- function _t(e) {
- if (e === void 0)
- throw new ReferenceError(
- "this hasn't been initialised - super() hasn't been called"
- );
- return e;
- }
- function jb(e, t) {
- return (
- (jb = Object.setPrototypeOf
- ? Object.setPrototypeOf.bind()
- : function (r, o) {
- return (r.__proto__ = o), r;
- }),
- jb(e, t)
- );
- }
- function Rn(e, t) {
- if (typeof t != 'function' && t !== null)
- throw new TypeError('Super expression must either be null or a function');
- (e.prototype = Object.create(t && t.prototype, {
- constructor: { value: e, writable: !0, configurable: !0 }
- })),
- Object.defineProperty(e, 'prototype', { writable: !1 }),
- t && jb(e, t);
- }
- function uv(e) {
- return (
- (uv = Object.setPrototypeOf
- ? Object.getPrototypeOf.bind()
- : function (n) {
- return n.__proto__ || Object.getPrototypeOf(n);
- }),
- uv(e)
- );
- }
- function xj() {
- if (typeof Reflect > 'u' || !Reflect.construct || Reflect.construct.sham)
- return !1;
- if (typeof Proxy == 'function') return !0;
- try {
- return (
- Boolean.prototype.valueOf.call(
- Reflect.construct(Boolean, [], function () {})
- ),
- !0
- );
- } catch {
- return !1;
- }
- }
- function wj(e, t) {
- if (t && (Yi(t) === 'object' || typeof t == 'function')) return t;
- if (t !== void 0)
- throw new TypeError(
- 'Derived constructors may only return object or undefined'
- );
- return _t(e);
- }
- function Pn(e) {
- var t = xj();
- return function () {
- var r = uv(e),
- o;
- if (t) {
- var i = uv(this).constructor;
- o = Reflect.construct(r, arguments, i);
- } else o = r.apply(this, arguments);
- return wj(this, o);
- };
- }
- function wn(e, t) {
- if (!(e instanceof t))
- throw new TypeError('Cannot call a class as a function');
- }
- function Cj(e, t) {
- if (Yi(e) !== 'object' || e === null) return e;
- var n = e[Symbol.toPrimitive];
- if (n !== void 0) {
- var r = n.call(e, t || 'default');
- if (Yi(r) !== 'object') return r;
- throw new TypeError('@@toPrimitive must return a primitive value.');
- }
- return (t === 'string' ? String : Number)(e);
- }
- function ck(e) {
- var t = Cj(e, 'string');
- return Yi(t) === 'symbol' ? t : String(t);
- }
- function gS(e, t) {
- for (var n = 0; n < t.length; n++) {
- var r = t[n];
- (r.enumerable = r.enumerable || !1),
- (r.configurable = !0),
- 'value' in r && (r.writable = !0),
- Object.defineProperty(e, ck(r.key), r);
- }
- }
- function Cn(e, t, n) {
- return (
- t && gS(e.prototype, t),
- n && gS(e, n),
- Object.defineProperty(e, 'prototype', { writable: !1 }),
- e
- );
- }
- function bt(e, t, n) {
- return (
- (t = ck(t)),
- t in e
- ? Object.defineProperty(e, t, {
- value: n,
- enumerable: !0,
- configurable: !0,
- writable: !0
- })
- : (e[t] = n),
- e
- );
- }
- var Sj = 10,
- dk = (function () {
- function e() {
- wn(this, e), bt(this, 'priority', void 0), bt(this, 'subPriority', 0);
- }
- return (
- Cn(e, [
- {
- key: 'validate',
- value: function (n, r) {
- return !0;
- }
- }
- ]),
- e
- );
- })(),
- _j = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n(r, o, i, a, s) {
- var c;
- return (
- wn(this, n),
- (c = t.call(this)),
- (c.value = r),
- (c.validateValue = o),
- (c.setValue = i),
- (c.priority = a),
- s && (c.subPriority = s),
- c
- );
- }
- return (
- Cn(n, [
- {
- key: 'validate',
- value: function (o, i) {
- return this.validateValue(o, this.value, i);
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return this.setValue(o, i, this.value, a);
- }
- }
- ]),
- n
- );
- })(dk),
- Rj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', Sj),
- bt(_t(r), 'subPriority', -1),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'set',
- value: function (o, i) {
- if (i.timestampIsSet) return o;
- var a = new Date(0);
- return (
- a.setFullYear(
- o.getUTCFullYear(),
- o.getUTCMonth(),
- o.getUTCDate()
- ),
- a.setHours(
- o.getUTCHours(),
- o.getUTCMinutes(),
- o.getUTCSeconds(),
- o.getUTCMilliseconds()
- ),
- a
- );
- }
- }
- ]),
- n
- );
- })(dk),
- An = (function () {
- function e() {
- wn(this, e),
- bt(this, 'incompatibleTokens', void 0),
- bt(this, 'priority', void 0),
- bt(this, 'subPriority', void 0);
- }
- return (
- Cn(e, [
- {
- key: 'run',
- value: function (n, r, o, i) {
- var a = this.parse(n, r, o, i);
- return a
- ? {
- setter: new _j(
- a.value,
- this.validate,
- this.set,
- this.priority,
- this.subPriority
- ),
- rest: a.rest
- }
- : null;
- }
- },
- {
- key: 'validate',
- value: function (n, r, o) {
- return !0;
- }
- }
- ]),
- e
- );
- })(),
- Pj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 140),
- bt(_t(r), 'incompatibleTokens', ['R', 'u', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'G':
- case 'GG':
- case 'GGG':
- return (
- a.era(o, { width: 'abbreviated' }) ||
- a.era(o, { width: 'narrow' })
- );
- case 'GGGGG':
- return a.era(o, { width: 'narrow' });
- case 'GGGG':
- default:
- return (
- a.era(o, { width: 'wide' }) ||
- a.era(o, { width: 'abbreviated' }) ||
- a.era(o, { width: 'narrow' })
- );
- }
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return (
- (i.era = a),
- o.setUTCFullYear(a, 0, 1),
- o.setUTCHours(0, 0, 0, 0),
- o
- );
- }
- }
- ]),
- n
- );
- })(An),
- vr = {
- month: /^(1[0-2]|0?\d)/,
- date: /^(3[0-1]|[0-2]?\d)/,
- dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
- week: /^(5[0-3]|[0-4]?\d)/,
- hour23h: /^(2[0-3]|[0-1]?\d)/,
- hour24h: /^(2[0-4]|[0-1]?\d)/,
- hour11h: /^(1[0-1]|0?\d)/,
- hour12h: /^(1[0-2]|0?\d)/,
- minute: /^[0-5]?\d/,
- second: /^[0-5]?\d/,
- singleDigit: /^\d/,
- twoDigits: /^\d{1,2}/,
- threeDigits: /^\d{1,3}/,
- fourDigits: /^\d{1,4}/,
- anyDigitsSigned: /^-?\d+/,
- singleDigitSigned: /^-?\d/,
- twoDigitsSigned: /^-?\d{1,2}/,
- threeDigitsSigned: /^-?\d{1,3}/,
- fourDigitsSigned: /^-?\d{1,4}/
- },
- Bi = {
- basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
- basic: /^([+-])(\d{2})(\d{2})|Z/,
- basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
- extended: /^([+-])(\d{2}):(\d{2})|Z/,
- extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
- };
- function pr(e, t) {
- return e && { value: t(e.value), rest: e.rest };
- }
- function tr(e, t) {
- var n = t.match(e);
- return n ? { value: parseInt(n[0], 10), rest: t.slice(n[0].length) } : null;
- }
- function Li(e, t) {
- var n = t.match(e);
- if (!n) return null;
- if (n[0] === 'Z') return { value: 0, rest: t.slice(1) };
- var r = n[1] === '+' ? 1 : -1,
- o = n[2] ? parseInt(n[2], 10) : 0,
- i = n[3] ? parseInt(n[3], 10) : 0,
- a = n[5] ? parseInt(n[5], 10) : 0;
- return { value: r * (o * VH + i * UH + a * KH), rest: t.slice(n[0].length) };
- }
- function uk(e) {
- return tr(vr.anyDigitsSigned, e);
- }
- function sr(e, t) {
- switch (e) {
- case 1:
- return tr(vr.singleDigit, t);
- case 2:
- return tr(vr.twoDigits, t);
- case 3:
- return tr(vr.threeDigits, t);
- case 4:
- return tr(vr.fourDigits, t);
- default:
- return tr(new RegExp('^\\d{1,' + e + '}'), t);
- }
- }
- function fv(e, t) {
- switch (e) {
- case 1:
- return tr(vr.singleDigitSigned, t);
- case 2:
- return tr(vr.twoDigitsSigned, t);
- case 3:
- return tr(vr.threeDigitsSigned, t);
- case 4:
- return tr(vr.fourDigitsSigned, t);
- default:
- return tr(new RegExp('^-?\\d{1,' + e + '}'), t);
- }
- }
- function my(e) {
- switch (e) {
- case 'morning':
- return 4;
- case 'evening':
- return 17;
- case 'pm':
- case 'noon':
- case 'afternoon':
- return 12;
- case 'am':
- case 'midnight':
- case 'night':
- default:
- return 0;
- }
- }
- function fk(e, t) {
- var n = t > 0,
- r = n ? t : 1 - t,
- o;
- if (r <= 50) o = e || 100;
- else {
- var i = r + 50,
- a = Math.floor(i / 100) * 100,
- s = e >= i % 100;
- o = e + a - (s ? 100 : 0);
- }
- return n ? o : 1 - o;
- }
- function hk(e) {
- return e % 400 === 0 || (e % 4 === 0 && e % 100 !== 0);
- }
- var kj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 130),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'u',
- 'w',
- 'I',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- var s = function (d) {
- return { year: d, isTwoDigitYear: i === 'yy' };
- };
- switch (i) {
- case 'y':
- return pr(sr(4, o), s);
- case 'yo':
- return pr(a.ordinalNumber(o, { unit: 'year' }), s);
- default:
- return pr(sr(i.length, o), s);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i.isTwoDigitYear || i.year > 0;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- var s = o.getUTCFullYear();
- if (a.isTwoDigitYear) {
- var c = fk(a.year, s);
- return o.setUTCFullYear(c, 0, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- var d = !('era' in i) || i.era === 1 ? a.year : 1 - a.year;
- return o.setUTCFullYear(d, 0, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- Tj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 130),
- bt(_t(r), 'incompatibleTokens', [
- 'y',
- 'R',
- 'u',
- 'Q',
- 'q',
- 'M',
- 'L',
- 'I',
- 'd',
- 'D',
- 'i',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- var s = function (d) {
- return { year: d, isTwoDigitYear: i === 'YY' };
- };
- switch (i) {
- case 'Y':
- return pr(sr(4, o), s);
- case 'Yo':
- return pr(a.ordinalNumber(o, { unit: 'year' }), s);
- default:
- return pr(sr(i.length, o), s);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i.isTwoDigitYear || i.year > 0;
- }
- },
- {
- key: 'set',
- value: function (o, i, a, s) {
- var c = gy(o, s);
- if (a.isTwoDigitYear) {
- var d = fk(a.year, c);
- return (
- o.setUTCFullYear(d, 0, s.firstWeekContainsDate),
- o.setUTCHours(0, 0, 0, 0),
- Sa(o, s)
- );
- }
- var f = !('era' in i) || i.era === 1 ? a.year : 1 - a.year;
- return (
- o.setUTCFullYear(f, 0, s.firstWeekContainsDate),
- o.setUTCHours(0, 0, 0, 0),
- Sa(o, s)
- );
- }
- }
- ]),
- n
- );
- })(An),
- $j = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 130),
- bt(_t(r), 'incompatibleTokens', [
- 'G',
- 'y',
- 'Y',
- 'u',
- 'Q',
- 'q',
- 'M',
- 'L',
- 'w',
- 'd',
- 'D',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i) {
- return fv(i === 'R' ? 4 : i.length, o);
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- var s = new Date(0);
- return s.setUTCFullYear(a, 0, 4), s.setUTCHours(0, 0, 0, 0), Mc(s);
- }
- }
- ]),
- n
- );
- })(An),
- Oj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 130),
- bt(_t(r), 'incompatibleTokens', [
- 'G',
- 'y',
- 'Y',
- 'R',
- 'w',
- 'I',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i) {
- return fv(i === 'u' ? 4 : i.length, o);
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCFullYear(a, 0, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- zj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 120),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'q',
- 'M',
- 'L',
- 'w',
- 'I',
- 'd',
- 'D',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'Q':
- case 'QQ':
- return sr(i.length, o);
- case 'Qo':
- return a.ordinalNumber(o, { unit: 'quarter' });
- case 'QQQ':
- return (
- a.quarter(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) || a.quarter(o, { width: 'narrow', context: 'formatting' })
- );
- case 'QQQQQ':
- return a.quarter(o, { width: 'narrow', context: 'formatting' });
- case 'QQQQ':
- default:
- return (
- a.quarter(o, { width: 'wide', context: 'formatting' }) ||
- a.quarter(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.quarter(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 4;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMonth((a - 1) * 3, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- Ej = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 120),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'Q',
- 'M',
- 'L',
- 'w',
- 'I',
- 'd',
- 'D',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'q':
- case 'qq':
- return sr(i.length, o);
- case 'qo':
- return a.ordinalNumber(o, { unit: 'quarter' });
- case 'qqq':
- return (
- a.quarter(o, {
- width: 'abbreviated',
- context: 'standalone'
- }) || a.quarter(o, { width: 'narrow', context: 'standalone' })
- );
- case 'qqqqq':
- return a.quarter(o, { width: 'narrow', context: 'standalone' });
- case 'qqqq':
- default:
- return (
- a.quarter(o, { width: 'wide', context: 'standalone' }) ||
- a.quarter(o, {
- width: 'abbreviated',
- context: 'standalone'
- }) ||
- a.quarter(o, { width: 'narrow', context: 'standalone' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 4;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMonth((a - 1) * 3, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- Aj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'q',
- 'Q',
- 'L',
- 'w',
- 'I',
- 'D',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- bt(_t(r), 'priority', 110),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- var s = function (d) {
- return d - 1;
- };
- switch (i) {
- case 'M':
- return pr(tr(vr.month, o), s);
- case 'MM':
- return pr(sr(2, o), s);
- case 'Mo':
- return pr(a.ordinalNumber(o, { unit: 'month' }), s);
- case 'MMM':
- return (
- a.month(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.month(o, { width: 'narrow', context: 'formatting' })
- );
- case 'MMMMM':
- return a.month(o, { width: 'narrow', context: 'formatting' });
- case 'MMMM':
- default:
- return (
- a.month(o, { width: 'wide', context: 'formatting' }) ||
- a.month(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.month(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 11;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMonth(a, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- Mj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 110),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'q',
- 'Q',
- 'M',
- 'w',
- 'I',
- 'D',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- var s = function (d) {
- return d - 1;
- };
- switch (i) {
- case 'L':
- return pr(tr(vr.month, o), s);
- case 'LL':
- return pr(sr(2, o), s);
- case 'Lo':
- return pr(a.ordinalNumber(o, { unit: 'month' }), s);
- case 'LLL':
- return (
- a.month(o, { width: 'abbreviated', context: 'standalone' }) ||
- a.month(o, { width: 'narrow', context: 'standalone' })
- );
- case 'LLLLL':
- return a.month(o, { width: 'narrow', context: 'standalone' });
- case 'LLLL':
- default:
- return (
- a.month(o, { width: 'wide', context: 'standalone' }) ||
- a.month(o, { width: 'abbreviated', context: 'standalone' }) ||
- a.month(o, { width: 'narrow', context: 'standalone' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 11;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMonth(a, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An);
- function Ij(e, t, n) {
- Bt(2, arguments);
- var r = Xt(e),
- o = Ln(t),
- i = ik(r, n) - o;
- return r.setUTCDate(r.getUTCDate() - i * 7), r;
- }
- var Dj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 100),
- bt(_t(r), 'incompatibleTokens', [
- 'y',
- 'R',
- 'u',
- 'q',
- 'Q',
- 'M',
- 'L',
- 'I',
- 'd',
- 'D',
- 'i',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'w':
- return tr(vr.week, o);
- case 'wo':
- return a.ordinalNumber(o, { unit: 'week' });
- default:
- return sr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 53;
- }
- },
- {
- key: 'set',
- value: function (o, i, a, s) {
- return Sa(Ij(o, a, s), s);
- }
- }
- ]),
- n
- );
- })(An);
- function Fj(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t),
- o = ok(n) - r;
- return n.setUTCDate(n.getUTCDate() - o * 7), n;
- }
- var Bj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 100),
- bt(_t(r), 'incompatibleTokens', [
- 'y',
- 'Y',
- 'u',
- 'q',
- 'Q',
- 'M',
- 'L',
- 'w',
- 'd',
- 'D',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'I':
- return tr(vr.week, o);
- case 'Io':
- return a.ordinalNumber(o, { unit: 'week' });
- default:
- return sr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 53;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return Mc(Fj(o, a));
- }
- }
- ]),
- n
- );
- })(An),
- Lj = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
- Nj = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
- Hj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 90),
- bt(_t(r), 'subPriority', 1),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'q',
- 'Q',
- 'w',
- 'I',
- 'D',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'd':
- return tr(vr.date, o);
- case 'do':
- return a.ordinalNumber(o, { unit: 'date' });
- default:
- return sr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- var a = o.getUTCFullYear(),
- s = hk(a),
- c = o.getUTCMonth();
- return s ? i >= 1 && i <= Nj[c] : i >= 1 && i <= Lj[c];
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCDate(a), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- jj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 90),
- bt(_t(r), 'subpriority', 1),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'q',
- 'Q',
- 'M',
- 'L',
- 'w',
- 'I',
- 'd',
- 'E',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'D':
- case 'DD':
- return tr(vr.dayOfYear, o);
- case 'Do':
- return a.ordinalNumber(o, { unit: 'date' });
- default:
- return sr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- var a = o.getUTCFullYear(),
- s = hk(a);
- return s ? i >= 1 && i <= 366 : i >= 1 && i <= 365;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMonth(0, a), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An);
- function by(e, t, n) {
- var r, o, i, a, s, c, d, f;
- Bt(2, arguments);
- var v = nd(),
- p = Ln(
- (r =
- (o =
- (i =
- (a = n == null ? void 0 : n.weekStartsOn) !== null && a !== void 0
- ? a
- : n == null ||
- (s = n.locale) === null ||
- s === void 0 ||
- (c = s.options) === null ||
- c === void 0
- ? void 0
- : c.weekStartsOn) !== null && i !== void 0
- ? i
- : v.weekStartsOn) !== null && o !== void 0
- ? o
- : (d = v.locale) === null ||
- d === void 0 ||
- (f = d.options) === null ||
- f === void 0
- ? void 0
- : f.weekStartsOn) !== null && r !== void 0
- ? r
- : 0
- );
- if (!(p >= 0 && p <= 6))
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- var m = Xt(e),
- g = Ln(t),
- w = m.getUTCDay(),
- x = g % 7,
- y = (x + 7) % 7,
- C = (y < p ? 7 : 0) + g - w;
- return m.setUTCDate(m.getUTCDate() + C), m;
- }
- var Wj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 90),
- bt(_t(r), 'incompatibleTokens', ['D', 'i', 'e', 'c', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'E':
- case 'EE':
- case 'EEE':
- return (
- a.day(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' })
- );
- case 'EEEEE':
- return a.day(o, { width: 'narrow', context: 'formatting' });
- case 'EEEEEE':
- return (
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' })
- );
- case 'EEEE':
- default:
- return (
- a.day(o, { width: 'wide', context: 'formatting' }) ||
- a.day(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 6;
- }
- },
- {
- key: 'set',
- value: function (o, i, a, s) {
- return (o = by(o, a, s)), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- Uj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 90),
- bt(_t(r), 'incompatibleTokens', [
- 'y',
- 'R',
- 'u',
- 'q',
- 'Q',
- 'M',
- 'L',
- 'I',
- 'd',
- 'D',
- 'E',
- 'i',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a, s) {
- var c = function (f) {
- var v = Math.floor((f - 1) / 7) * 7;
- return ((f + s.weekStartsOn + 6) % 7) + v;
- };
- switch (i) {
- case 'e':
- case 'ee':
- return pr(sr(i.length, o), c);
- case 'eo':
- return pr(a.ordinalNumber(o, { unit: 'day' }), c);
- case 'eee':
- return (
- a.day(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' })
- );
- case 'eeeee':
- return a.day(o, { width: 'narrow', context: 'formatting' });
- case 'eeeeee':
- return (
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' })
- );
- case 'eeee':
- default:
- return (
- a.day(o, { width: 'wide', context: 'formatting' }) ||
- a.day(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 6;
- }
- },
- {
- key: 'set',
- value: function (o, i, a, s) {
- return (o = by(o, a, s)), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- Vj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 90),
- bt(_t(r), 'incompatibleTokens', [
- 'y',
- 'R',
- 'u',
- 'q',
- 'Q',
- 'M',
- 'L',
- 'I',
- 'd',
- 'D',
- 'E',
- 'i',
- 'e',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a, s) {
- var c = function (f) {
- var v = Math.floor((f - 1) / 7) * 7;
- return ((f + s.weekStartsOn + 6) % 7) + v;
- };
- switch (i) {
- case 'c':
- case 'cc':
- return pr(sr(i.length, o), c);
- case 'co':
- return pr(a.ordinalNumber(o, { unit: 'day' }), c);
- case 'ccc':
- return (
- a.day(o, { width: 'abbreviated', context: 'standalone' }) ||
- a.day(o, { width: 'short', context: 'standalone' }) ||
- a.day(o, { width: 'narrow', context: 'standalone' })
- );
- case 'ccccc':
- return a.day(o, { width: 'narrow', context: 'standalone' });
- case 'cccccc':
- return (
- a.day(o, { width: 'short', context: 'standalone' }) ||
- a.day(o, { width: 'narrow', context: 'standalone' })
- );
- case 'cccc':
- default:
- return (
- a.day(o, { width: 'wide', context: 'standalone' }) ||
- a.day(o, { width: 'abbreviated', context: 'standalone' }) ||
- a.day(o, { width: 'short', context: 'standalone' }) ||
- a.day(o, { width: 'narrow', context: 'standalone' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 6;
- }
- },
- {
- key: 'set',
- value: function (o, i, a, s) {
- return (o = by(o, a, s)), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An);
- function Kj(e, t) {
- Bt(2, arguments);
- var n = Ln(t);
- n % 7 === 0 && (n = n - 7);
- var r = 1,
- o = Xt(e),
- i = o.getUTCDay(),
- a = n % 7,
- s = (a + 7) % 7,
- c = (s < r ? 7 : 0) + n - i;
- return o.setUTCDate(o.getUTCDate() + c), o;
- }
- var qj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 90),
- bt(_t(r), 'incompatibleTokens', [
- 'y',
- 'Y',
- 'u',
- 'q',
- 'Q',
- 'M',
- 'L',
- 'w',
- 'd',
- 'D',
- 'E',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- var s = function (d) {
- return d === 0 ? 7 : d;
- };
- switch (i) {
- case 'i':
- case 'ii':
- return sr(i.length, o);
- case 'io':
- return a.ordinalNumber(o, { unit: 'day' });
- case 'iii':
- return pr(
- a.day(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' }),
- s
- );
- case 'iiiii':
- return pr(
- a.day(o, { width: 'narrow', context: 'formatting' }),
- s
- );
- case 'iiiiii':
- return pr(
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' }),
- s
- );
- case 'iiii':
- default:
- return pr(
- a.day(o, { width: 'wide', context: 'formatting' }) ||
- a.day(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' }),
- s
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 7;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return (o = Kj(o, a)), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- Yj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 80),
- bt(_t(r), 'incompatibleTokens', ['b', 'B', 'H', 'k', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'a':
- case 'aa':
- case 'aaa':
- return (
- a.dayPeriod(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.dayPeriod(o, { width: 'narrow', context: 'formatting' })
- );
- case 'aaaaa':
- return a.dayPeriod(o, {
- width: 'narrow',
- context: 'formatting'
- });
- case 'aaaa':
- default:
- return (
- a.dayPeriod(o, { width: 'wide', context: 'formatting' }) ||
- a.dayPeriod(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.dayPeriod(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCHours(my(a), 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- Gj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 80),
- bt(_t(r), 'incompatibleTokens', ['a', 'B', 'H', 'k', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'b':
- case 'bb':
- case 'bbb':
- return (
- a.dayPeriod(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.dayPeriod(o, { width: 'narrow', context: 'formatting' })
- );
- case 'bbbbb':
- return a.dayPeriod(o, {
- width: 'narrow',
- context: 'formatting'
- });
- case 'bbbb':
- default:
- return (
- a.dayPeriod(o, { width: 'wide', context: 'formatting' }) ||
- a.dayPeriod(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.dayPeriod(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCHours(my(a), 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- Xj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 80),
- bt(_t(r), 'incompatibleTokens', ['a', 'b', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'B':
- case 'BB':
- case 'BBB':
- return (
- a.dayPeriod(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.dayPeriod(o, { width: 'narrow', context: 'formatting' })
- );
- case 'BBBBB':
- return a.dayPeriod(o, {
- width: 'narrow',
- context: 'formatting'
- });
- case 'BBBB':
- default:
- return (
- a.dayPeriod(o, { width: 'wide', context: 'formatting' }) ||
- a.dayPeriod(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.dayPeriod(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCHours(my(a), 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- Zj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 70),
- bt(_t(r), 'incompatibleTokens', ['H', 'K', 'k', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'h':
- return tr(vr.hour12h, o);
- case 'ho':
- return a.ordinalNumber(o, { unit: 'hour' });
- default:
- return sr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 12;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- var s = o.getUTCHours() >= 12;
- return (
- s && a < 12
- ? o.setUTCHours(a + 12, 0, 0, 0)
- : !s && a === 12
- ? o.setUTCHours(0, 0, 0, 0)
- : o.setUTCHours(a, 0, 0, 0),
- o
- );
- }
- }
- ]),
- n
- );
- })(An),
- Qj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 70),
- bt(_t(r), 'incompatibleTokens', ['a', 'b', 'h', 'K', 'k', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'H':
- return tr(vr.hour23h, o);
- case 'Ho':
- return a.ordinalNumber(o, { unit: 'hour' });
- default:
- return sr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 23;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCHours(a, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- Jj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 70),
- bt(_t(r), 'incompatibleTokens', ['h', 'H', 'k', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'K':
- return tr(vr.hour11h, o);
- case 'Ko':
- return a.ordinalNumber(o, { unit: 'hour' });
- default:
- return sr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 11;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- var s = o.getUTCHours() >= 12;
- return (
- s && a < 12
- ? o.setUTCHours(a + 12, 0, 0, 0)
- : o.setUTCHours(a, 0, 0, 0),
- o
- );
- }
- }
- ]),
- n
- );
- })(An),
- eW = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 70),
- bt(_t(r), 'incompatibleTokens', ['a', 'b', 'h', 'H', 'K', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'k':
- return tr(vr.hour24h, o);
- case 'ko':
- return a.ordinalNumber(o, { unit: 'hour' });
- default:
- return sr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 24;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- var s = a <= 24 ? a % 24 : a;
- return o.setUTCHours(s, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- tW = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 60),
- bt(_t(r), 'incompatibleTokens', ['t', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'm':
- return tr(vr.minute, o);
- case 'mo':
- return a.ordinalNumber(o, { unit: 'minute' });
- default:
- return sr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 59;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMinutes(a, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- nW = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 50),
- bt(_t(r), 'incompatibleTokens', ['t', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 's':
- return tr(vr.second, o);
- case 'so':
- return a.ordinalNumber(o, { unit: 'second' });
- default:
- return sr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 59;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCSeconds(a, 0), o;
- }
- }
- ]),
- n
- );
- })(An),
- rW = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 30),
- bt(_t(r), 'incompatibleTokens', ['t', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i) {
- var a = function (c) {
- return Math.floor(c * Math.pow(10, -i.length + 3));
- };
- return pr(sr(i.length, o), a);
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMilliseconds(a), o;
- }
- }
- ]),
- n
- );
- })(An),
- oW = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 10),
- bt(_t(r), 'incompatibleTokens', ['t', 'T', 'x']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i) {
- switch (i) {
- case 'X':
- return Li(Bi.basicOptionalMinutes, o);
- case 'XX':
- return Li(Bi.basic, o);
- case 'XXXX':
- return Li(Bi.basicOptionalSeconds, o);
- case 'XXXXX':
- return Li(Bi.extendedOptionalSeconds, o);
- case 'XXX':
- default:
- return Li(Bi.extended, o);
- }
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return i.timestampIsSet ? o : new Date(o.getTime() - a);
- }
- }
- ]),
- n
- );
- })(An),
- iW = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 10),
- bt(_t(r), 'incompatibleTokens', ['t', 'T', 'X']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i) {
- switch (i) {
- case 'x':
- return Li(Bi.basicOptionalMinutes, o);
- case 'xx':
- return Li(Bi.basic, o);
- case 'xxxx':
- return Li(Bi.basicOptionalSeconds, o);
- case 'xxxxx':
- return Li(Bi.extendedOptionalSeconds, o);
- case 'xxx':
- default:
- return Li(Bi.extended, o);
- }
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return i.timestampIsSet ? o : new Date(o.getTime() - a);
- }
- }
- ]),
- n
- );
- })(An),
- aW = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 40),
- bt(_t(r), 'incompatibleTokens', '*'),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o) {
- return uk(o);
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return [new Date(a * 1e3), { timestampIsSet: !0 }];
- }
- }
- ]),
- n
- );
- })(An),
- lW = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 20),
- bt(_t(r), 'incompatibleTokens', '*'),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o) {
- return uk(o);
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return [new Date(a), { timestampIsSet: !0 }];
- }
- }
- ]),
- n
- );
- })(An),
- sW = {
- G: new Pj(),
- y: new kj(),
- Y: new Tj(),
- R: new $j(),
- u: new Oj(),
- Q: new zj(),
- q: new Ej(),
- M: new Aj(),
- L: new Mj(),
- w: new Dj(),
- I: new Bj(),
- d: new Hj(),
- D: new jj(),
- E: new Wj(),
- e: new Uj(),
- c: new Vj(),
- i: new qj(),
- a: new Yj(),
- b: new Gj(),
- B: new Xj(),
- h: new Zj(),
- H: new Qj(),
- K: new Jj(),
- k: new eW(),
- m: new tW(),
- s: new nW(),
- S: new rW(),
- X: new oW(),
- x: new iW(),
- t: new aW(),
- T: new lW()
- },
- cW = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,
- dW = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
- uW = /^'([^]*?)'?$/,
- fW = /''/g,
- hW = /\S/,
- vW = /[a-zA-Z]/;
- function pW(e, t, n, r) {
- var o, i, a, s, c, d, f, v, p, m, g, w, x, y, C, R, S, _;
- Bt(3, arguments);
- var P = String(e),
- T = String(t),
- E = nd(),
- z =
- (o =
- (i = r == null ? void 0 : r.locale) !== null && i !== void 0
- ? i
- : E.locale) !== null && o !== void 0
- ? o
- : vy;
- if (!z.match) throw new RangeError('locale must contain match property');
- var k = Ln(
- (a =
- (s =
- (c =
- (d = r == null ? void 0 : r.firstWeekContainsDate) !== null &&
- d !== void 0
- ? d
- : r == null ||
- (f = r.locale) === null ||
- f === void 0 ||
- (v = f.options) === null ||
- v === void 0
- ? void 0
- : v.firstWeekContainsDate) !== null && c !== void 0
- ? c
- : E.firstWeekContainsDate) !== null && s !== void 0
- ? s
- : (p = E.locale) === null ||
- p === void 0 ||
- (m = p.options) === null ||
- m === void 0
- ? void 0
- : m.firstWeekContainsDate) !== null && a !== void 0
- ? a
- : 1
- );
- if (!(k >= 1 && k <= 7))
- throw new RangeError(
- 'firstWeekContainsDate must be between 1 and 7 inclusively'
- );
- var M = Ln(
- (g =
- (w =
- (x =
- (y = r == null ? void 0 : r.weekStartsOn) !== null && y !== void 0
- ? y
- : r == null ||
- (C = r.locale) === null ||
- C === void 0 ||
- (R = C.options) === null ||
- R === void 0
- ? void 0
- : R.weekStartsOn) !== null && x !== void 0
- ? x
- : E.weekStartsOn) !== null && w !== void 0
- ? w
- : (S = E.locale) === null ||
- S === void 0 ||
- (_ = S.options) === null ||
- _ === void 0
- ? void 0
- : _.weekStartsOn) !== null && g !== void 0
- ? g
- : 0
- );
- if (!(M >= 0 && M <= 6))
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- if (T === '') return P === '' ? Xt(n) : new Date(NaN);
- var A = { firstWeekContainsDate: k, weekStartsOn: M, locale: z },
- D = [new Rj()],
- L = T.match(dW)
- .map(function (be) {
- var Ce = be[0];
- if (Ce in Hb) {
- var ge = Hb[Ce];
- return ge(be, z.formatLong);
- }
- return be;
- })
- .join('')
- .match(cW),
- H = [],
- B = pS(L),
- q;
- try {
- var X = function () {
- var Ce = q.value;
- !(r != null && r.useAdditionalWeekYearTokens) && sk(Ce) && sv(Ce, T, e),
- !(r != null && r.useAdditionalDayOfYearTokens) &&
- lk(Ce) &&
- sv(Ce, T, e);
- var ge = Ce[0],
- Ae = sW[ge];
- if (Ae) {
- var j = Ae.incompatibleTokens;
- if (Array.isArray(j)) {
- var ee = H.find(function (fe) {
- return j.includes(fe.token) || fe.token === ge;
- });
- if (ee)
- throw new RangeError(
- "The format string mustn't contain `"
- .concat(ee.fullToken, '` and `')
- .concat(Ce, '` at the same time')
- );
- } else if (Ae.incompatibleTokens === '*' && H.length > 0)
- throw new RangeError(
- "The format string mustn't contain `".concat(
- Ce,
- '` and any other token at the same time'
- )
- );
- H.push({ token: ge, fullToken: Ce });
- var ne = Ae.run(P, Ce, z.match, A);
- if (!ne) return { v: new Date(NaN) };
- D.push(ne.setter), (P = ne.rest);
- } else {
- if (ge.match(vW))
- throw new RangeError(
- 'Format string contains an unescaped latin alphabet character `' +
- ge +
- '`'
- );
- if (
- (Ce === "''" ? (Ce = "'") : ge === "'" && (Ce = gW(Ce)),
- P.indexOf(Ce) === 0)
- )
- P = P.slice(Ce.length);
- else return { v: new Date(NaN) };
- }
- };
- for (B.s(); !(q = B.n()).done; ) {
- var te = X();
- if (Yi(te) === 'object') return te.v;
- }
- } catch (be) {
- B.e(be);
- } finally {
- B.f();
- }
- if (P.length > 0 && hW.test(P)) return new Date(NaN);
- var G = D.map(function (be) {
- return be.priority;
- })
- .sort(function (be, Ce) {
- return Ce - be;
- })
- .filter(function (be, Ce, ge) {
- return ge.indexOf(be) === Ce;
- })
- .map(function (be) {
- return D.filter(function (Ce) {
- return Ce.priority === be;
- }).sort(function (Ce, ge) {
- return ge.subPriority - Ce.subPriority;
- });
- })
- .map(function (be) {
- return be[0];
- }),
- Q = Xt(n);
- if (isNaN(Q.getTime())) return new Date(NaN);
- var re = nk(Q, tk(Q)),
- se = {},
- pe = pS(G),
- ce;
- try {
- for (pe.s(); !(ce = pe.n()).done; ) {
- var xe = ce.value;
- if (!xe.validate(re, A)) return new Date(NaN);
- var ve = xe.set(re, se, A);
- Array.isArray(ve) ? ((re = ve[0]), gj(se, ve[1])) : (re = ve);
- }
- } catch (be) {
- pe.e(be);
- } finally {
- pe.f();
- }
- return re;
- }
- function gW(e) {
- return e.match(uW)[1].replace(fW, "'");
- }
- function mW(e) {
- Bt(1, arguments);
- var t = Xt(e);
- return t.setMinutes(0, 0, 0), t;
- }
- function Ep(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Xt(t);
- return n.getFullYear() === r.getFullYear() && n.getMonth() === r.getMonth();
- }
- function vk(e, t) {
- Bt(2, arguments);
- var n = Ou(e),
- r = Ou(t);
- return n.getTime() === r.getTime();
- }
- function yy(e) {
- Bt(1, arguments);
- var t = Xt(e);
- return t.setMilliseconds(0), t;
- }
- function pk(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Xt(t);
- return n.getFullYear() === r.getFullYear();
- }
- function xy(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t),
- o = n.getFullYear(),
- i = n.getDate(),
- a = new Date(0);
- a.setFullYear(o, r, 15), a.setHours(0, 0, 0, 0);
- var s = bj(a);
- return n.setMonth(r, Math.min(i, s)), n;
- }
- function Br(e, t) {
- if ((Bt(2, arguments), Yi(t) !== 'object' || t === null))
- throw new RangeError('values parameter must be an object');
- var n = Xt(e);
- return isNaN(n.getTime())
- ? new Date(NaN)
- : (t.year != null && n.setFullYear(t.year),
- t.month != null && (n = xy(n, t.month)),
- t.date != null && n.setDate(Ln(t.date)),
- t.hours != null && n.setHours(Ln(t.hours)),
- t.minutes != null && n.setMinutes(Ln(t.minutes)),
- t.seconds != null && n.setSeconds(Ln(t.seconds)),
- t.milliseconds != null && n.setMilliseconds(Ln(t.milliseconds)),
- n);
- }
- function Zl(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t);
- return n.setHours(r), n;
- }
- function Cm(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t);
- return n.setMinutes(r), n;
- }
- function bW(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t),
- o = Math.floor(n.getMonth() / 3) + 1,
- i = r - o;
- return xy(n, n.getMonth() + i * 3);
- }
- function Sm(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t);
- return n.setSeconds(r), n;
- }
- function mS(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t);
- return isNaN(n.getTime()) ? new Date(NaN) : (n.setFullYear(r), n);
- }
- function Ta(e) {
- const { mergedLocaleRef: t, mergedDateLocaleRef: n } = Ze(Ca, null) || {},
- r = I(() => {
- var i, a;
- return (a =
- (i = t == null ? void 0 : t.value) === null || i === void 0
- ? void 0
- : i[e]) !== null && a !== void 0
- ? a
- : gN[e];
- });
- return {
- dateLocaleRef: I(() => {
- var i;
- return (i = n == null ? void 0 : n.value) !== null && i !== void 0
- ? i
- : HH;
- }),
- localeRef: r
- };
- }
- function $a(e, t, n) {
- if (!t) return;
- const r = wl(),
- o = Ze(Ca, null),
- i = () => {
- const a = n == null ? void 0 : n.value;
- t.mount({
- id: a === void 0 ? e : a + e,
- head: !0,
- anchorMetaName: Ac,
- props: { bPrefix: a ? `.${a}-` : void 0 },
- ssr: r
- }),
- (o != null && o.preflightStyleDisabled) ||
- QP.mount({ id: 'n-global', head: !0, anchorMetaName: Ac, ssr: r });
- };
- r ? i() : yl(i);
- }
- function Mt(e, t, n, r) {
- var o;
- n || io('useThemeClass', 'cssVarsRef is not passed');
- const i =
- (o = Ze(Ca, null)) === null || o === void 0
- ? void 0
- : o.mergedThemeHashRef,
- a = Z(''),
- s = wl();
- let c;
- const d = `__${e}`,
- f = () => {
- let v = d;
- const p = t ? t.value : void 0,
- m = i == null ? void 0 : i.value;
- m && (v += '-' + m), p && (v += '-' + p);
- const { themeOverrides: g, builtinThemeOverrides: w } = r;
- g && (v += '-' + Su(JSON.stringify(g))),
- w && (v += '-' + Su(JSON.stringify(w))),
- (a.value = v),
- (c = () => {
- const x = n.value;
- let y = '';
- for (const C in x) y += `${C}: ${x[C]};`;
- F(`.${v}`, y).mount({ id: v, ssr: s }), (c = void 0);
- });
- };
- return (
- Bn(() => {
- f();
- }),
- {
- themeClass: a,
- onRender: () => {
- c == null || c();
- }
- }
- );
- }
- function cr(e, t, n) {
- if (!t) return;
- const r = wl(),
- o = I(() => {
- const { value: a } = t;
- if (!a) return;
- const s = a[e];
- if (s) return s;
- }),
- i = () => {
- Bn(() => {
- const { value: a } = n,
- s = `${a}${e}Rtl`;
- if (qI(s, r)) return;
- const { value: c } = o;
- c &&
- c.style.mount({
- id: s,
- head: !0,
- anchorMetaName: Ac,
- props: { bPrefix: a ? `.${a}-` : void 0 },
- ssr: r
- });
- });
- };
- return r ? i() : yl(i), o;
- }
- const wy = ke({
- name: 'Add',
- render() {
- return h(
- 'svg',
- {
- width: '512',
- height: '512',
- viewBox: '0 0 512 512',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('path', {
- d: 'M256 112V400M400 256H112',
- stroke: 'currentColor',
- 'stroke-width': '32',
- 'stroke-linecap': 'round',
- 'stroke-linejoin': 'round'
- })
- );
- }
- }),
- yW = ke({
- name: 'ArrowDown',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 28 28',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z'
- })
- )
- )
- );
- }
- });
- function Mr(e, t) {
- return ke({
- name: IL(e),
- setup() {
- var n;
- const r =
- (n = Ze(Ca, null)) === null || n === void 0 ? void 0 : n.mergedIconsRef;
- return () => {
- var o;
- const i =
- (o = r == null ? void 0 : r.value) === null || o === void 0
- ? void 0
- : o[e];
- return i ? i() : t;
- };
- }
- });
- }
- const xW = Mr(
- 'attach',
- h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z'
- })
- )
- )
- )
- ),
- vl = ke({
- name: 'Backward',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('path', {
- d: 'M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z',
- fill: 'currentColor'
- })
- );
- }
- }),
- bS = Mr(
- 'date',
- h(
- 'svg',
- {
- width: '28px',
- height: '28px',
- viewBox: '0 0 28 28',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z'
- })
- )
- )
- )
- ),
- gk = ke({
- name: 'Checkmark',
- render() {
- return h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 16 16' },
- h(
- 'g',
- { fill: 'none' },
- h('path', {
- d: 'M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z',
- fill: 'currentColor'
- })
- )
- );
- }
- }),
- Cy = ke({
- name: 'ChevronRight',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('path', {
- d: 'M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z',
- fill: 'currentColor'
- })
- );
- }
- }),
- mk = Mr(
- 'close',
- h(
- 'svg',
- {
- viewBox: '0 0 12 12',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg',
- 'aria-hidden': !0
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z'
- })
- )
- )
- )
- ),
- bk = ke({
- name: 'Eye',
- render() {
- return h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' },
- h('path', {
- d: 'M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z',
- fill: 'none',
- stroke: 'currentColor',
- 'stroke-linecap': 'round',
- 'stroke-linejoin': 'round',
- 'stroke-width': '32'
- }),
- h('circle', {
- cx: '256',
- cy: '256',
- r: '80',
- fill: 'none',
- stroke: 'currentColor',
- 'stroke-miterlimit': '10',
- 'stroke-width': '32'
- })
- );
- }
- }),
- wW = ke({
- name: 'EyeOff',
- render() {
- return h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' },
- h('path', {
- d: 'M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z',
- fill: 'currentColor'
- }),
- h('path', {
- d: 'M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z',
- fill: 'currentColor'
- }),
- h('path', {
- d: 'M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z',
- fill: 'currentColor'
- }),
- h('path', {
- d: 'M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z',
- fill: 'currentColor'
- }),
- h('path', {
- d: 'M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z',
- fill: 'currentColor'
- })
- );
- }
- }),
- CW = Mr(
- 'trash',
- h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' },
- h('path', {
- d: 'M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144',
- style:
- 'fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;'
- }),
- h('rect', {
- x: '32',
- y: '64',
- width: '448',
- height: '80',
- rx: '16',
- ry: '16',
- style:
- 'fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;'
- }),
- h('line', {
- x1: '312',
- y1: '240',
- x2: '200',
- y2: '352',
- style:
- 'fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;'
- }),
- h('line', {
- x1: '312',
- y1: '352',
- x2: '200',
- y2: '240',
- style:
- 'fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;'
- })
- )
- ),
- SW = Mr(
- 'download',
- h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z'
- })
- )
- )
- )
- ),
- _W = ke({
- name: 'Empty',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 28 28',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('path', {
- d: 'M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z',
- fill: 'currentColor'
- }),
- h('path', {
- d: 'M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z',
- fill: 'currentColor'
- })
- );
- }
- }),
- Os = Mr(
- 'error',
- h(
- 'svg',
- {
- viewBox: '0 0 48 48',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z'
- })
- )
- )
- )
- ),
- pl = ke({
- name: 'FastBackward',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z'
- })
- )
- )
- );
- }
- }),
- gl = ke({
- name: 'FastForward',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z'
- })
- )
- )
- );
- }
- }),
- RW = ke({
- name: 'Filter',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 28 28',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z'
- })
- )
- )
- );
- }
- }),
- ml = ke({
- name: 'Forward',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('path', {
- d: 'M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z',
- fill: 'currentColor'
- })
- );
- }
- }),
- bl = Mr(
- 'info',
- h(
- 'svg',
- {
- viewBox: '0 0 28 28',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z'
- })
- )
- )
- )
- ),
- yS = ke({
- name: 'More',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z'
- })
- )
- )
- );
- }
- }),
- PW = ke({
- name: 'Remove',
- render() {
- return h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' },
- h('line', {
- x1: '400',
- y1: '256',
- x2: '112',
- y2: '256',
- style: `
- fill: none;
- stroke: currentColor;
- stroke-linecap: round;
- stroke-linejoin: round;
- stroke-width: 32px;
- `
- })
- );
- }
- }),
- zs = Mr(
- 'success',
- h(
- 'svg',
- {
- viewBox: '0 0 48 48',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z'
- })
- )
- )
- )
- ),
- kW = ke({
- name: 'Switcher',
- render() {
- return h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 32 32' },
- h('path', { d: 'M12 8l10 8l-10 8z' })
- );
- }
- }),
- TW = Mr(
- 'time',
- h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' },
- h('path', {
- d: 'M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z',
- style: `
- fill: none;
- stroke: currentColor;
- stroke-miterlimit: 10;
- stroke-width: 32px;
- `
- }),
- h('polyline', {
- points: '256 128 256 272 352 272',
- style: `
- fill: none;
- stroke: currentColor;
- stroke-linecap: round;
- stroke-linejoin: round;
- stroke-width: 32px;
- `
- })
- )
- ),
- Es = Mr(
- 'warning',
- h(
- 'svg',
- {
- viewBox: '0 0 24 24',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z'
- })
- )
- )
- )
- ),
- $W = Mr(
- 'cancel',
- h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z'
- })
- )
- )
- )
- ),
- yk = ke({
- name: 'ChevronDown',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('path', {
- d: 'M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z',
- fill: 'currentColor'
- })
- );
- }
- }),
- OW = Mr(
- 'clear',
- h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z'
- })
- )
- )
- )
- ),
- zW = ke({
- name: 'ChevronDownFilled',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('path', {
- d: 'M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z',
- fill: 'currentColor'
- })
- );
- }
- }),
- EW = Mr(
- 'to',
- h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('path', {
- d: 'M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z'
- })
- )
- )
- )
- ),
- AW = Mr(
- 'retry',
- h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' },
- h('path', {
- d: 'M320,146s24.36-12-64-12A160,160,0,1,0,416,294',
- style:
- 'fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;'
- }),
- h('polyline', {
- points: '256 58 336 138 256 218',
- style:
- 'fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;'
- })
- )
- ),
- MW = Mr(
- 'rotateClockwise',
- h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('path', {
- d: 'M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z',
- fill: 'currentColor'
- }),
- h('path', {
- d: 'M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z',
- fill: 'currentColor'
- })
- )
- ),
- IW = Mr(
- 'rotateClockwise',
- h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('path', {
- d: 'M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z',
- fill: 'currentColor'
- }),
- h('path', {
- d: 'M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z',
- fill: 'currentColor'
- })
- )
- ),
- DW = Mr(
- 'zoomIn',
- h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('path', {
- d: 'M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z',
- fill: 'currentColor'
- }),
- h('path', {
- d: 'M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z',
- fill: 'currentColor'
- })
- )
- ),
- FW = Mr(
- 'zoomOut',
- h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('path', {
- d: 'M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z',
- fill: 'currentColor'
- }),
- h('path', {
- d: 'M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z',
- fill: 'currentColor'
- })
- )
- ),
- BW = ke({
- name: 'ResizeSmall',
- render() {
- return h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 20 20' },
- h(
- 'g',
- { fill: 'none' },
- h('path', {
- d: 'M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z',
- fill: 'currentColor'
- })
- )
- );
- }
- }),
- Ji = ke({
- name: 'BaseIconSwitchTransition',
- setup(e, { slots: t }) {
- const n = yi();
- return () =>
- h(Kn, { name: 'icon-switch-transition', appear: n.value }, t);
- }
- }),
- Cl = ke({
- name: 'FadeInExpandTransition',
- props: {
- appear: Boolean,
- group: Boolean,
- mode: String,
- onLeave: Function,
- onAfterLeave: Function,
- onAfterEnter: Function,
- width: Boolean,
- reverse: Boolean
- },
- setup(e, { slots: t }) {
- function n(s) {
- e.width
- ? (s.style.maxWidth = `${s.offsetWidth}px`)
- : (s.style.maxHeight = `${s.offsetHeight}px`),
- s.offsetWidth;
- }
- function r(s) {
- e.width ? (s.style.maxWidth = '0') : (s.style.maxHeight = '0'),
- s.offsetWidth;
- const { onLeave: c } = e;
- c && c();
- }
- function o(s) {
- e.width ? (s.style.maxWidth = '') : (s.style.maxHeight = '');
- const { onAfterLeave: c } = e;
- c && c();
- }
- function i(s) {
- if (((s.style.transition = 'none'), e.width)) {
- const c = s.offsetWidth;
- (s.style.maxWidth = '0'),
- s.offsetWidth,
- (s.style.transition = ''),
- (s.style.maxWidth = `${c}px`);
- } else if (e.reverse)
- (s.style.maxHeight = `${s.offsetHeight}px`),
- s.offsetHeight,
- (s.style.transition = ''),
- (s.style.maxHeight = '0');
- else {
- const c = s.offsetHeight;
- (s.style.maxHeight = '0'),
- s.offsetWidth,
- (s.style.transition = ''),
- (s.style.maxHeight = `${c}px`);
- }
- s.offsetWidth;
- }
- function a(s) {
- var c;
- e.width
- ? (s.style.maxWidth = '')
- : e.reverse || (s.style.maxHeight = ''),
- (c = e.onAfterEnter) === null || c === void 0 || c.call(e);
- }
- return () => {
- const { group: s, width: c, appear: d, mode: f } = e,
- v = s ? Y0 : Kn,
- p = {
- name: c
- ? 'fade-in-width-expand-transition'
- : 'fade-in-height-expand-transition',
- appear: d,
- onEnter: i,
- onAfterEnter: a,
- onBeforeLeave: n,
- onLeave: r,
- onAfterLeave: o
- };
- return s || (p.mode = f), h(v, p, t);
- };
- }
- }),
- LW = O(
- 'base-icon',
- `
- height: 1em;
- width: 1em;
- line-height: 1em;
- text-align: center;
- display: inline-block;
- position: relative;
- fill: currentColor;
- transform: translateZ(0);
- `,
- [
- F(
- 'svg',
- `
- height: 1em;
- width: 1em;
- `
- )
- ]
- ),
- At = ke({
- name: 'BaseIcon',
- props: {
- role: String,
- ariaLabel: String,
- ariaDisabled: { type: Boolean, default: void 0 },
- ariaHidden: { type: Boolean, default: void 0 },
- clsPrefix: { type: String, required: !0 },
- onClick: Function,
- onMousedown: Function,
- onMouseup: Function
- },
- setup(e) {
- $a('-base-icon', LW, Ie(e, 'clsPrefix'));
- },
- render() {
- return h(
- 'i',
- {
- class: `${this.clsPrefix}-base-icon`,
- onClick: this.onClick,
- onMousedown: this.onMousedown,
- onMouseup: this.onMouseup,
- role: this.role,
- 'aria-label': this.ariaLabel,
- 'aria-hidden': this.ariaHidden,
- 'aria-disabled': this.ariaDisabled
- },
- this.$slots
- );
- }
- }),
- NW = O(
- 'base-close',
- `
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- background-color: transparent;
- color: var(--n-close-icon-color);
- border-radius: var(--n-close-border-radius);
- height: var(--n-close-size);
- width: var(--n-close-size);
- font-size: var(--n-close-icon-size);
- outline: none;
- border: none;
- position: relative;
- padding: 0;
- `,
- [
- U(
- 'absolute',
- `
- height: var(--n-close-icon-size);
- width: var(--n-close-icon-size);
- `
- ),
- F(
- '&::before',
- `
- content: "";
- position: absolute;
- width: var(--n-close-size);
- height: var(--n-close-size);
- left: 50%;
- top: 50%;
- transform: translateY(-50%) translateX(-50%);
- transition: inherit;
- border-radius: inherit;
- `
- ),
- jt('disabled', [
- F(
- '&:hover',
- `
- color: var(--n-close-icon-color-hover);
- `
- ),
- F(
- '&:hover::before',
- `
- background-color: var(--n-close-color-hover);
- `
- ),
- F(
- '&:focus::before',
- `
- background-color: var(--n-close-color-hover);
- `
- ),
- F(
- '&:active',
- `
- color: var(--n-close-icon-color-pressed);
- `
- ),
- F(
- '&:active::before',
- `
- background-color: var(--n-close-color-pressed);
- `
- )
- ]),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- color: var(--n-close-icon-color-disabled);
- background-color: transparent;
- `
- ),
- U('round', [
- F(
- '&::before',
- `
- border-radius: 50%;
- `
- )
- ])
- ]
- ),
- Sl = ke({
- name: 'BaseClose',
- props: {
- isButtonTag: { type: Boolean, default: !0 },
- clsPrefix: { type: String, required: !0 },
- disabled: { type: Boolean, default: void 0 },
- focusable: { type: Boolean, default: !0 },
- round: Boolean,
- onClick: Function,
- absolute: Boolean
- },
- setup(e) {
- return (
- $a('-base-close', NW, Ie(e, 'clsPrefix')),
- () => {
- const {
- clsPrefix: t,
- disabled: n,
- absolute: r,
- round: o,
- isButtonTag: i
- } = e;
- return h(
- i ? 'button' : 'div',
- {
- type: i ? 'button' : void 0,
- tabindex: n || !e.focusable ? -1 : 0,
- 'aria-disabled': n,
- 'aria-label': 'close',
- role: i ? void 0 : 'button',
- disabled: n,
- class: [
- `${t}-base-close`,
- r && `${t}-base-close--absolute`,
- n && `${t}-base-close--disabled`,
- o && `${t}-base-close--round`
- ],
- onMousedown: s => {
- e.focusable || s.preventDefault();
- },
- onClick: e.onClick
- },
- h(At, { clsPrefix: t }, { default: () => h(mk, null) })
- );
- }
- );
- }
- }),
- _l = ke({
- props: { onFocus: Function, onBlur: Function },
- setup(e) {
- return () =>
- h('div', {
- style: 'width: 0; height: 0',
- tabindex: 0,
- onFocus: e.onFocus,
- onBlur: e.onBlur
- });
- }
- }),
- { cubicBezierEaseInOut: HW } = Bo;
- function br({
- originalTransform: e = '',
- left: t = 0,
- top: n = 0,
- transition: r = `all .3s ${HW} !important`
- } = {}) {
- return [
- F(
- '&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to',
- { transform: e + ' scale(0.75)', left: t, top: n, opacity: 0 }
- ),
- F(
- '&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from',
- { transform: `scale(1) ${e}`, left: t, top: n, opacity: 1 }
- ),
- F(
- '&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active',
- {
- transformOrigin: 'center',
- position: 'absolute',
- left: t,
- top: n,
- transition: r
- }
- )
- ];
- }
- const jW = F([
- F(
- '@keyframes loading-container-rotate',
- `
- to {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- `
- ),
- F(
- '@keyframes loading-layer-rotate',
- `
- 12.5% {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg);
- }
- 25% {
- -webkit-transform: rotate(270deg);
- transform: rotate(270deg);
- }
- 37.5% {
- -webkit-transform: rotate(405deg);
- transform: rotate(405deg);
- }
- 50% {
- -webkit-transform: rotate(540deg);
- transform: rotate(540deg);
- }
- 62.5% {
- -webkit-transform: rotate(675deg);
- transform: rotate(675deg);
- }
- 75% {
- -webkit-transform: rotate(810deg);
- transform: rotate(810deg);
- }
- 87.5% {
- -webkit-transform: rotate(945deg);
- transform: rotate(945deg);
- }
- 100% {
- -webkit-transform: rotate(1080deg);
- transform: rotate(1080deg);
- }
- `
- ),
- F(
- '@keyframes loading-left-spin',
- `
- from {
- -webkit-transform: rotate(265deg);
- transform: rotate(265deg);
- }
- 50% {
- -webkit-transform: rotate(130deg);
- transform: rotate(130deg);
- }
- to {
- -webkit-transform: rotate(265deg);
- transform: rotate(265deg);
- }
- `
- ),
- F(
- '@keyframes loading-right-spin',
- `
- from {
- -webkit-transform: rotate(-265deg);
- transform: rotate(-265deg);
- }
- 50% {
- -webkit-transform: rotate(-130deg);
- transform: rotate(-130deg);
- }
- to {
- -webkit-transform: rotate(-265deg);
- transform: rotate(-265deg);
- }
- `
- ),
- O(
- 'base-loading',
- `
- position: relative;
- line-height: 0;
- width: 1em;
- height: 1em;
- `,
- [
- V(
- 'transition-wrapper',
- `
- position: absolute;
- width: 100%;
- height: 100%;
- `,
- [br()]
- ),
- V(
- 'container',
- `
- display: inline-flex;
- position: relative;
- direction: ltr;
- line-height: 0;
- animation: loading-container-rotate 1568.2352941176ms linear infinite;
- font-size: 0;
- letter-spacing: 0;
- white-space: nowrap;
- opacity: 1;
- width: 100%;
- height: 100%;
- `,
- [
- V(
- 'svg',
- `
- stroke: var(--n-text-color);
- fill: transparent;
- position: absolute;
- height: 100%;
- overflow: hidden;
- `
- ),
- V(
- 'container-layer',
- `
- position: absolute;
- width: 100%;
- height: 100%;
- animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
- `,
- [
- V(
- 'container-layer-left',
- `
- display: inline-flex;
- position: relative;
- width: 50%;
- height: 100%;
- overflow: hidden;
- `,
- [
- V(
- 'svg',
- `
- animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
- width: 200%;
- `
- )
- ]
- ),
- V(
- 'container-layer-patch',
- `
- position: absolute;
- top: 0;
- left: 47.5%;
- box-sizing: border-box;
- width: 5%;
- height: 100%;
- overflow: hidden;
- `,
- [
- V(
- 'svg',
- `
- left: -900%;
- width: 2000%;
- transform: rotate(180deg);
- `
- )
- ]
- ),
- V(
- 'container-layer-right',
- `
- display: inline-flex;
- position: relative;
- width: 50%;
- height: 100%;
- overflow: hidden;
- `,
- [
- V(
- 'svg',
- `
- animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
- left: -100%;
- width: 200%;
- `
- )
- ]
- )
- ]
- )
- ]
- ),
- V(
- 'placeholder',
- `
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- `,
- [
- br({
- left: '50%',
- top: '50%',
- originalTransform: 'translateX(-50%) translateY(-50%)'
- })
- ]
- )
- ]
- )
- ]),
- WW = {
- strokeWidth: { type: Number, default: 28 },
- stroke: { type: String, default: void 0 }
- },
- Oa = ke({
- name: 'BaseLoading',
- props: Object.assign(
- {
- clsPrefix: { type: String, required: !0 },
- show: { type: Boolean, default: !0 },
- scale: { type: Number, default: 1 },
- radius: { type: Number, default: 100 }
- },
- WW
- ),
- setup(e) {
- $a('-base-loading', jW, Ie(e, 'clsPrefix'));
- },
- render() {
- const {
- clsPrefix: e,
- radius: t,
- strokeWidth: n,
- stroke: r,
- scale: o
- } = this,
- i = t / o;
- return h(
- 'div',
- { class: `${e}-base-loading`, role: 'img', 'aria-label': 'loading' },
- h(Ji, null, {
- default: () =>
- this.show
- ? h(
- 'div',
- {
- key: 'icon',
- class: `${e}-base-loading__transition-wrapper`
- },
- h(
- 'div',
- { class: `${e}-base-loading__container` },
- h(
- 'div',
- { class: `${e}-base-loading__container-layer` },
- h(
- 'div',
- { class: `${e}-base-loading__container-layer-left` },
- h(
- 'svg',
- {
- class: `${e}-base-loading__svg`,
- viewBox: `0 0 ${2 * i} ${2 * i}`,
- xmlns: 'http://www.w3.org/2000/svg',
- style: { color: r }
- },
- h('circle', {
- fill: 'none',
- stroke: 'currentColor',
- 'stroke-width': n,
- 'stroke-linecap': 'round',
- cx: i,
- cy: i,
- r: t - n / 2,
- 'stroke-dasharray': 4.91 * t,
- 'stroke-dashoffset': 2.46 * t
- })
- )
- ),
- h(
- 'div',
- { class: `${e}-base-loading__container-layer-patch` },
- h(
- 'svg',
- {
- class: `${e}-base-loading__svg`,
- viewBox: `0 0 ${2 * i} ${2 * i}`,
- xmlns: 'http://www.w3.org/2000/svg',
- style: { color: r }
- },
- h('circle', {
- fill: 'none',
- stroke: 'currentColor',
- 'stroke-width': n,
- 'stroke-linecap': 'round',
- cx: i,
- cy: i,
- r: t - n / 2,
- 'stroke-dasharray': 4.91 * t,
- 'stroke-dashoffset': 2.46 * t
- })
- )
- ),
- h(
- 'div',
- { class: `${e}-base-loading__container-layer-right` },
- h(
- 'svg',
- {
- class: `${e}-base-loading__svg`,
- viewBox: `0 0 ${2 * i} ${2 * i}`,
- xmlns: 'http://www.w3.org/2000/svg',
- style: { color: r }
- },
- h('circle', {
- fill: 'none',
- stroke: 'currentColor',
- 'stroke-width': n,
- 'stroke-linecap': 'round',
- cx: i,
- cy: i,
- r: t - n / 2,
- 'stroke-dasharray': 4.91 * t,
- 'stroke-dashoffset': 2.46 * t
- })
- )
- )
- )
- )
- )
- : h(
- 'div',
- {
- key: 'placeholder',
- class: `${e}-base-loading__placeholder`
- },
- this.$slots
- )
- })
- );
- }
- });
- function xS(e) {
- return Array.isArray(e) ? e : [e];
- }
- const Wb = { STOP: 'STOP' };
- function xk(e, t) {
- const n = t(e);
- e.children !== void 0 && n !== Wb.STOP && e.children.forEach(r => xk(r, t));
- }
- function UW(e, t = {}) {
- const { preserveGroup: n = !1 } = t,
- r = [],
- o = n
- ? a => {
- a.isLeaf || (r.push(a.key), i(a.children));
- }
- : a => {
- a.isLeaf || (a.isGroup || r.push(a.key), i(a.children));
- };
- function i(a) {
- a.forEach(o);
- }
- return i(e), r;
- }
- function VW(e, t) {
- const { isLeaf: n } = e;
- return n !== void 0 ? n : !t(e);
- }
- function KW(e) {
- return e.children;
- }
- function qW(e) {
- return e.key;
- }
- function YW() {
- return !1;
- }
- function GW(e, t) {
- const { isLeaf: n } = e;
- return !(n === !1 && !Array.isArray(t(e)));
- }
- function XW(e) {
- return e.disabled === !0;
- }
- function ZW(e, t) {
- return e.isLeaf === !1 && !Array.isArray(t(e));
- }
- function _m(e) {
- var t;
- return e == null
- ? []
- : Array.isArray(e)
- ? e
- : (t = e.checkedKeys) !== null && t !== void 0
- ? t
- : [];
- }
- function Rm(e) {
- var t;
- return e == null || Array.isArray(e)
- ? []
- : (t = e.indeterminateKeys) !== null && t !== void 0
- ? t
- : [];
- }
- function QW(e, t) {
- const n = new Set(e);
- return (
- t.forEach(r => {
- n.has(r) || n.add(r);
- }),
- Array.from(n)
- );
- }
- function JW(e, t) {
- const n = new Set(e);
- return (
- t.forEach(r => {
- n.has(r) && n.delete(r);
- }),
- Array.from(n)
- );
- }
- function eU(e) {
- return (e == null ? void 0 : e.type) === 'group';
- }
- function wk(e) {
- const t = new Map();
- return (
- e.forEach((n, r) => {
- t.set(n.key, r);
- }),
- n => {
- var r;
- return (r = t.get(n)) !== null && r !== void 0 ? r : null;
- }
- );
- }
- class tU extends Error {
- constructor() {
- super(),
- (this.message =
- 'SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded.');
- }
- }
- function nU(e, t, n, r) {
- return hv(t.concat(e), n, r, !1);
- }
- function rU(e, t) {
- const n = new Set();
- return (
- e.forEach(r => {
- const o = t.treeNodeMap.get(r);
- if (o !== void 0) {
- let i = o.parent;
- for (; i !== null && !(i.disabled || n.has(i.key)); )
- n.add(i.key), (i = i.parent);
- }
- }),
- n
- );
- }
- function oU(e, t, n, r) {
- const o = hv(t, n, r, !1),
- i = hv(e, n, r, !0),
- a = rU(e, n),
- s = [];
- return (
- o.forEach(c => {
- (i.has(c) || a.has(c)) && s.push(c);
- }),
- s.forEach(c => o.delete(c)),
- o
- );
- }
- function Pm(e, t) {
- const {
- checkedKeys: n,
- keysToCheck: r,
- keysToUncheck: o,
- indeterminateKeys: i,
- cascade: a,
- leafOnly: s,
- checkStrategy: c,
- allowNotLoaded: d
- } = e;
- if (!a)
- return r !== void 0
- ? { checkedKeys: QW(n, r), indeterminateKeys: Array.from(i) }
- : o !== void 0
- ? { checkedKeys: JW(n, o), indeterminateKeys: Array.from(i) }
- : { checkedKeys: Array.from(n), indeterminateKeys: Array.from(i) };
- const { levelTreeNodeMap: f } = t;
- let v;
- o !== void 0
- ? (v = oU(o, n, t, d))
- : r !== void 0
- ? (v = nU(r, n, t, d))
- : (v = hv(n, t, d, !1));
- const p = c === 'parent',
- m = c === 'child' || s,
- g = v,
- w = new Set(),
- x = Math.max.apply(null, Array.from(f.keys()));
- for (let y = x; y >= 0; y -= 1) {
- const C = y === 0,
- R = f.get(y);
- for (const S of R) {
- if (S.isLeaf) continue;
- const { key: _, shallowLoaded: P } = S;
- if (
- (m &&
- P &&
- S.children.forEach(k => {
- !k.disabled &&
- !k.isLeaf &&
- k.shallowLoaded &&
- g.has(k.key) &&
- g.delete(k.key);
- }),
- S.disabled || !P)
- )
- continue;
- let T = !0,
- E = !1,
- z = !0;
- for (const k of S.children) {
- const M = k.key;
- if (!k.disabled) {
- if ((z && (z = !1), g.has(M))) E = !0;
- else if (w.has(M)) {
- (E = !0), (T = !1);
- break;
- } else if (((T = !1), E)) break;
- }
- }
- T && !z
- ? (p &&
- S.children.forEach(k => {
- !k.disabled && g.has(k.key) && g.delete(k.key);
- }),
- g.add(_))
- : E && w.add(_),
- C && m && g.has(_) && g.delete(_);
- }
- }
- return { checkedKeys: Array.from(g), indeterminateKeys: Array.from(w) };
- }
- function hv(e, t, n, r) {
- const { treeNodeMap: o, getChildren: i } = t,
- a = new Set(),
- s = new Set(e);
- return (
- e.forEach(c => {
- const d = o.get(c);
- d !== void 0 &&
- xk(d, f => {
- if (f.disabled) return Wb.STOP;
- const { key: v } = f;
- if (!a.has(v) && (a.add(v), s.add(v), ZW(f.rawNode, i))) {
- if (r) return Wb.STOP;
- if (!n) throw new tU();
- }
- });
- }),
- s
- );
- }
- function iU(e, { includeGroup: t = !1, includeSelf: n = !0 }, r) {
- var o;
- const i = r.treeNodeMap;
- let a = e == null ? null : (o = i.get(e)) !== null && o !== void 0 ? o : null;
- const s = { keyPath: [], treeNodePath: [], treeNode: a };
- if (a != null && a.ignored) return (s.treeNode = null), s;
- for (; a; )
- !a.ignored && (t || !a.isGroup) && s.treeNodePath.push(a), (a = a.parent);
- return (
- s.treeNodePath.reverse(),
- n || s.treeNodePath.pop(),
- (s.keyPath = s.treeNodePath.map(c => c.key)),
- s
- );
- }
- function aU(e) {
- if (e.length === 0) return null;
- const t = e[0];
- return t.isGroup || t.ignored || t.disabled ? t.getNext() : t;
- }
- function lU(e, t) {
- const n = e.siblings,
- r = n.length,
- { index: o } = e;
- return t ? n[(o + 1) % r] : o === n.length - 1 ? null : n[o + 1];
- }
- function wS(e, t, { loop: n = !1, includeDisabled: r = !1 } = {}) {
- const o = t === 'prev' ? sU : lU,
- i = { reverse: t === 'prev' };
- let a = !1,
- s = null;
- function c(d) {
- if (d !== null) {
- if (d === e) {
- if (!a) a = !0;
- else if (!e.disabled && !e.isGroup) {
- s = e;
- return;
- }
- } else if ((!d.disabled || r) && !d.ignored && !d.isGroup) {
- s = d;
- return;
- }
- if (d.isGroup) {
- const f = Sy(d, i);
- f !== null ? (s = f) : c(o(d, n));
- } else {
- const f = o(d, !1);
- if (f !== null) c(f);
- else {
- const v = cU(d);
- v != null && v.isGroup ? c(o(v, n)) : n && c(o(d, !0));
- }
- }
- }
- }
- return c(e), s;
- }
- function sU(e, t) {
- const n = e.siblings,
- r = n.length,
- { index: o } = e;
- return t ? n[(o - 1 + r) % r] : o === 0 ? null : n[o - 1];
- }
- function cU(e) {
- return e.parent;
- }
- function Sy(e, t = {}) {
- const { reverse: n = !1 } = t,
- { children: r } = e;
- if (r) {
- const { length: o } = r,
- i = n ? o - 1 : 0,
- a = n ? -1 : o,
- s = n ? -1 : 1;
- for (let c = i; c !== a; c += s) {
- const d = r[c];
- if (!d.disabled && !d.ignored)
- if (d.isGroup) {
- const f = Sy(d, t);
- if (f !== null) return f;
- } else return d;
- }
- }
- return null;
- }
- const dU = {
- getChild() {
- return this.ignored ? null : Sy(this);
- },
- getParent() {
- const { parent: e } = this;
- return e != null && e.isGroup ? e.getParent() : e;
- },
- getNext(e = {}) {
- return wS(this, 'next', e);
- },
- getPrev(e = {}) {
- return wS(this, 'prev', e);
- }
- };
- function Ub(e, t) {
- const n = t ? new Set(t) : void 0,
- r = [];
- function o(i) {
- i.forEach(a => {
- r.push(a),
- !(a.isLeaf || !a.children || a.ignored) &&
- (a.isGroup || n === void 0 || n.has(a.key)) &&
- o(a.children);
- });
- }
- return o(e), r;
- }
- function uU(e, t) {
- const n = e.key;
- for (; t; ) {
- if (t.key === n) return !0;
- t = t.parent;
- }
- return !1;
- }
- function Ck(e, t, n, r, o, i = null, a = 0) {
- const s = [];
- return (
- e.forEach((c, d) => {
- var f;
- const v = Object.create(r);
- if (
- ((v.rawNode = c),
- (v.siblings = s),
- (v.level = a),
- (v.index = d),
- (v.isFirstChild = d === 0),
- (v.isLastChild = d + 1 === e.length),
- (v.parent = i),
- !v.ignored)
- ) {
- const p = o(c);
- Array.isArray(p) && (v.children = Ck(p, t, n, r, o, v, a + 1));
- }
- s.push(v),
- t.set(v.key, v),
- n.has(a) || n.set(a, []),
- (f = n.get(a)) === null || f === void 0 || f.push(v);
- }),
- s
- );
- }
- function rd(e, t = {}) {
- var n;
- const r = new Map(),
- o = new Map(),
- {
- getDisabled: i = XW,
- getIgnored: a = YW,
- getIsGroup: s = eU,
- getKey: c = qW
- } = t,
- d = (n = t.getChildren) !== null && n !== void 0 ? n : KW,
- f = t.ignoreEmptyChildren
- ? S => {
- const _ = d(S);
- return Array.isArray(_) ? (_.length ? _ : null) : _;
- }
- : d,
- v = Object.assign(
- {
- get key() {
- return c(this.rawNode);
- },
- get disabled() {
- return i(this.rawNode);
- },
- get isGroup() {
- return s(this.rawNode);
- },
- get isLeaf() {
- return VW(this.rawNode, f);
- },
- get shallowLoaded() {
- return GW(this.rawNode, f);
- },
- get ignored() {
- return a(this.rawNode);
- },
- contains(S) {
- return uU(this, S);
- }
- },
- dU
- ),
- p = Ck(e, r, o, v, f);
- function m(S) {
- if (S == null) return null;
- const _ = r.get(S);
- return _ && !_.isGroup && !_.ignored ? _ : null;
- }
- function g(S) {
- if (S == null) return null;
- const _ = r.get(S);
- return _ && !_.ignored ? _ : null;
- }
- function w(S, _) {
- const P = g(S);
- return P ? P.getPrev(_) : null;
- }
- function x(S, _) {
- const P = g(S);
- return P ? P.getNext(_) : null;
- }
- function y(S) {
- const _ = g(S);
- return _ ? _.getParent() : null;
- }
- function C(S) {
- const _ = g(S);
- return _ ? _.getChild() : null;
- }
- const R = {
- treeNodes: p,
- treeNodeMap: r,
- levelTreeNodeMap: o,
- maxLevel: Math.max(...o.keys()),
- getChildren: f,
- getFlattenedNodes(S) {
- return Ub(p, S);
- },
- getNode: m,
- getPrev: w,
- getNext: x,
- getParent: y,
- getChild: C,
- getFirstAvailableNode() {
- return aU(p);
- },
- getPath(S, _ = {}) {
- return iU(S, _, R);
- },
- getCheckedKeys(S, _ = {}) {
- const {
- cascade: P = !0,
- leafOnly: T = !1,
- checkStrategy: E = 'all',
- allowNotLoaded: z = !1
- } = _;
- return Pm(
- {
- checkedKeys: _m(S),
- indeterminateKeys: Rm(S),
- cascade: P,
- leafOnly: T,
- checkStrategy: E,
- allowNotLoaded: z
- },
- R
- );
- },
- check(S, _, P = {}) {
- const {
- cascade: T = !0,
- leafOnly: E = !1,
- checkStrategy: z = 'all',
- allowNotLoaded: k = !1
- } = P;
- return Pm(
- {
- checkedKeys: _m(_),
- indeterminateKeys: Rm(_),
- keysToCheck: S == null ? [] : xS(S),
- cascade: T,
- leafOnly: E,
- checkStrategy: z,
- allowNotLoaded: k
- },
- R
- );
- },
- uncheck(S, _, P = {}) {
- const {
- cascade: T = !0,
- leafOnly: E = !1,
- checkStrategy: z = 'all',
- allowNotLoaded: k = !1
- } = P;
- return Pm(
- {
- checkedKeys: _m(_),
- indeterminateKeys: Rm(_),
- keysToUncheck: S == null ? [] : xS(S),
- cascade: T,
- leafOnly: E,
- checkStrategy: z,
- allowNotLoaded: k
- },
- R
- );
- },
- getNonLeafKeys(S = {}) {
- return UW(p, S);
- }
- };
- return R;
- }
- const Ft = {
- neutralBase: '#FFF',
- neutralInvertBase: '#000',
- neutralTextBase: '#000',
- neutralPopover: '#fff',
- neutralCard: '#fff',
- neutralModal: '#fff',
- neutralBody: '#fff',
- alpha1: '0.82',
- alpha2: '0.72',
- alpha3: '0.38',
- alpha4: '0.24',
- alpha5: '0.18',
- alphaClose: '0.6',
- alphaDisabled: '0.5',
- alphaDisabledInput: '0.02',
- alphaPending: '0.05',
- alphaTablePending: '0.02',
- alphaPressed: '0.07',
- alphaAvatar: '0.2',
- alphaRail: '0.14',
- alphaProgressRail: '.08',
- alphaBorder: '0.12',
- alphaDivider: '0.06',
- alphaInput: '0',
- alphaAction: '0.02',
- alphaTab: '0.04',
- alphaScrollbar: '0.25',
- alphaScrollbarHover: '0.4',
- alphaCode: '0.05',
- alphaTag: '0.02',
- primaryHover: '#36ad6a',
- primaryDefault: '#18a058',
- primaryActive: '#0c7a43',
- primarySuppl: '#36ad6a',
- infoHover: '#4098fc',
- infoDefault: '#2080f0',
- infoActive: '#1060c9',
- infoSuppl: '#4098fc',
- errorHover: '#de576d',
- errorDefault: '#d03050',
- errorActive: '#ab1f3f',
- errorSuppl: '#de576d',
- warningHover: '#fcb040',
- warningDefault: '#f0a020',
- warningActive: '#c97c10',
- warningSuppl: '#fcb040',
- successHover: '#36ad6a',
- successDefault: '#18a058',
- successActive: '#0c7a43',
- successSuppl: '#36ad6a'
- },
- fU = ul(Ft.neutralBase),
- Sk = ul(Ft.neutralInvertBase),
- hU = 'rgba(' + Sk.slice(0, 3).join(', ') + ', ';
- function CS(e) {
- return hU + String(e) + ')';
- }
- function jr(e) {
- const t = Array.from(Sk);
- return (t[3] = Number(e)), Et(fU, t);
- }
- const vU = Object.assign(Object.assign({ name: 'common' }, Bo), {
- baseColor: Ft.neutralBase,
- primaryColor: Ft.primaryDefault,
- primaryColorHover: Ft.primaryHover,
- primaryColorPressed: Ft.primaryActive,
- primaryColorSuppl: Ft.primarySuppl,
- infoColor: Ft.infoDefault,
- infoColorHover: Ft.infoHover,
- infoColorPressed: Ft.infoActive,
- infoColorSuppl: Ft.infoSuppl,
- successColor: Ft.successDefault,
- successColorHover: Ft.successHover,
- successColorPressed: Ft.successActive,
- successColorSuppl: Ft.successSuppl,
- warningColor: Ft.warningDefault,
- warningColorHover: Ft.warningHover,
- warningColorPressed: Ft.warningActive,
- warningColorSuppl: Ft.warningSuppl,
- errorColor: Ft.errorDefault,
- errorColorHover: Ft.errorHover,
- errorColorPressed: Ft.errorActive,
- errorColorSuppl: Ft.errorSuppl,
- textColorBase: Ft.neutralTextBase,
- textColor1: 'rgb(31, 34, 37)',
- textColor2: 'rgb(51, 54, 57)',
- textColor3: 'rgb(118, 124, 130)',
- textColorDisabled: jr(Ft.alpha4),
- placeholderColor: jr(Ft.alpha4),
- placeholderColorDisabled: jr(Ft.alpha5),
- iconColor: jr(Ft.alpha4),
- iconColorHover: uh(jr(Ft.alpha4), { lightness: 0.75 }),
- iconColorPressed: uh(jr(Ft.alpha4), { lightness: 0.9 }),
- iconColorDisabled: jr(Ft.alpha5),
- opacity1: Ft.alpha1,
- opacity2: Ft.alpha2,
- opacity3: Ft.alpha3,
- opacity4: Ft.alpha4,
- opacity5: Ft.alpha5,
- dividerColor: 'rgb(239, 239, 245)',
- borderColor: 'rgb(224, 224, 230)',
- closeIconColor: jr(Number(Ft.alphaClose)),
- closeIconColorHover: jr(Number(Ft.alphaClose)),
- closeIconColorPressed: jr(Number(Ft.alphaClose)),
- closeColorHover: 'rgba(0, 0, 0, .09)',
- closeColorPressed: 'rgba(0, 0, 0, .13)',
- clearColor: jr(Ft.alpha4),
- clearColorHover: uh(jr(Ft.alpha4), { lightness: 0.75 }),
- clearColorPressed: uh(jr(Ft.alpha4), { lightness: 0.9 }),
- scrollbarColor: CS(Ft.alphaScrollbar),
- scrollbarColorHover: CS(Ft.alphaScrollbarHover),
- scrollbarWidth: '5px',
- scrollbarHeight: '5px',
- scrollbarBorderRadius: '5px',
- progressRailColor: jr(Ft.alphaProgressRail),
- railColor: 'rgb(219, 219, 223)',
- popoverColor: Ft.neutralPopover,
- tableColor: Ft.neutralCard,
- cardColor: Ft.neutralCard,
- modalColor: Ft.neutralModal,
- bodyColor: Ft.neutralBody,
- tagColor: '#eee',
- avatarColor: jr(Ft.alphaAvatar),
- invertedColor: 'rgb(0, 20, 40)',
- inputColor: jr(Ft.alphaInput),
- codeColor: 'rgb(244, 244, 248)',
- tabColor: 'rgb(247, 247, 250)',
- actionColor: 'rgb(250, 250, 252)',
- tableHeaderColor: 'rgb(250, 250, 252)',
- hoverColor: 'rgb(243, 243, 245)',
- tableColorHover: 'rgba(0, 0, 100, 0.03)',
- tableColorStriped: 'rgba(0, 0, 100, 0.02)',
- pressedColor: 'rgb(237, 237, 239)',
- opacityDisabled: Ft.alphaDisabled,
- inputColorDisabled: 'rgb(250, 250, 252)',
- buttonColor2: 'rgba(46, 51, 56, .05)',
- buttonColor2Hover: 'rgba(46, 51, 56, .09)',
- buttonColor2Pressed: 'rgba(46, 51, 56, .13)',
- boxShadow1:
- '0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)',
- boxShadow2:
- '0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)',
- boxShadow3:
- '0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)'
- }),
- Nt = vU,
- pU = {
- iconSizeSmall: '34px',
- iconSizeMedium: '40px',
- iconSizeLarge: '46px',
- iconSizeHuge: '52px'
- },
- gU = e => {
- const {
- textColorDisabled: t,
- iconColor: n,
- textColor2: r,
- fontSizeSmall: o,
- fontSizeMedium: i,
- fontSizeLarge: a,
- fontSizeHuge: s
- } = e;
- return Object.assign(Object.assign({}, pU), {
- fontSizeSmall: o,
- fontSizeMedium: i,
- fontSizeLarge: a,
- fontSizeHuge: s,
- textColor: t,
- iconColor: n,
- extraTextColor: r
- });
- },
- mU = { name: 'Empty', common: Nt, self: gU },
- Ap = mU,
- bU = O(
- 'empty',
- `
- display: flex;
- flex-direction: column;
- align-items: center;
- font-size: var(--n-font-size);
- `,
- [
- V(
- 'icon',
- `
- width: var(--n-icon-size);
- height: var(--n-icon-size);
- font-size: var(--n-icon-size);
- line-height: var(--n-icon-size);
- color: var(--n-icon-color);
- transition:
- color .3s var(--n-bezier);
- `,
- [
- F('+', [
- V(
- 'description',
- `
- margin-top: 8px;
- `
- )
- ])
- ]
- ),
- V(
- 'description',
- `
- transition: color .3s var(--n-bezier);
- color: var(--n-text-color);
- `
- ),
- V(
- 'extra',
- `
- text-align: center;
- transition: color .3s var(--n-bezier);
- margin-top: 12px;
- color: var(--n-extra-text-color);
- `
- )
- ]
- ),
- yU = Object.assign(Object.assign({}, Ke.props), {
- description: String,
- showDescription: { type: Boolean, default: !0 },
- showIcon: { type: Boolean, default: !0 },
- size: { type: String, default: 'medium' },
- renderIcon: Function
- }),
- _y = ke({
- name: 'Empty',
- props: yU,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Empty', '-empty', bU, Ap, e, t),
- { localeRef: o } = Ta('Empty'),
- i = Ze(Ca, null),
- a = I(() => {
- var f, v, p;
- return (f = e.description) !== null && f !== void 0
- ? f
- : (p =
- (v = i == null ? void 0 : i.mergedComponentPropsRef.value) ===
- null || v === void 0
- ? void 0
- : v.Empty) === null || p === void 0
- ? void 0
- : p.description;
- }),
- s = I(() => {
- var f, v;
- return (
- ((v =
- (f = i == null ? void 0 : i.mergedComponentPropsRef.value) ===
- null || f === void 0
- ? void 0
- : f.Empty) === null || v === void 0
- ? void 0
- : v.renderIcon) || (() => h(_W, null))
- );
- }),
- c = I(() => {
- const { size: f } = e,
- {
- common: { cubicBezierEaseInOut: v },
- self: {
- [Ee('iconSize', f)]: p,
- [Ee('fontSize', f)]: m,
- textColor: g,
- iconColor: w,
- extraTextColor: x
- }
- } = r.value;
- return {
- '--n-icon-size': p,
- '--n-font-size': m,
- '--n-bezier': v,
- '--n-text-color': g,
- '--n-icon-color': w,
- '--n-extra-text-color': x
- };
- }),
- d = n
- ? Mt(
- 'empty',
- I(() => {
- let f = '';
- const { size: v } = e;
- return (f += v[0]), f;
- }),
- c,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- mergedRenderIcon: s,
- localizedDescription: I(() => a.value || o.value.description),
- cssVars: n ? void 0 : c,
- themeClass: d == null ? void 0 : d.themeClass,
- onRender: d == null ? void 0 : d.onRender
- };
- },
- render() {
- const { $slots: e, mergedClsPrefix: t, onRender: n } = this;
- return (
- n == null || n(),
- h(
- 'div',
- { class: [`${t}-empty`, this.themeClass], style: this.cssVars },
- this.showIcon
- ? h(
- 'div',
- { class: `${t}-empty__icon` },
- e.icon
- ? e.icon()
- : h(At, { clsPrefix: t }, { default: this.mergedRenderIcon })
- )
- : null,
- this.showDescription
- ? h(
- 'div',
- { class: `${t}-empty__description` },
- e.default ? e.default() : this.localizedDescription
- )
- : null,
- e.extra ? h('div', { class: `${t}-empty__extra` }, e.extra()) : null
- )
- );
- }
- }),
- xU = e => {
- const { scrollbarColor: t, scrollbarColorHover: n } = e;
- return { color: t, colorHover: n };
- },
- wU = { name: 'Scrollbar', common: Nt, self: xU },
- ea = wU,
- { cubicBezierEaseInOut: SS } = Bo;
- function Cs({
- name: e = 'fade-in',
- enterDuration: t = '0.2s',
- leaveDuration: n = '0.2s',
- enterCubicBezier: r = SS,
- leaveCubicBezier: o = SS
- } = {}) {
- return [
- F(`&.${e}-transition-enter-active`, {
- transition: `all ${t} ${r}!important`
- }),
- F(`&.${e}-transition-leave-active`, {
- transition: `all ${n} ${o}!important`
- }),
- F(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`, {
- opacity: 0
- }),
- F(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`, {
- opacity: 1
- })
- ];
- }
- const CU = O(
- 'scrollbar',
- `
- overflow: hidden;
- position: relative;
- z-index: auto;
- height: 100%;
- width: 100%;
- `,
- [
- F('>', [
- O(
- 'scrollbar-container',
- `
- width: 100%;
- overflow: scroll;
- height: 100%;
- max-height: inherit;
- scrollbar-width: none;
- `,
- [
- F(
- '&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb',
- `
- width: 0;
- height: 0;
- display: none;
- `
- ),
- F('>', [
- O(
- 'scrollbar-content',
- `
- box-sizing: border-box;
- min-width: 100%;
- `
- )
- ])
- ]
- )
- ]),
- F('>, +', [
- O(
- 'scrollbar-rail',
- `
- position: absolute;
- pointer-events: none;
- user-select: none;
- -webkit-user-select: none;
- `,
- [
- U(
- 'horizontal',
- `
- left: 2px;
- right: 2px;
- bottom: 4px;
- height: var(--n-scrollbar-height);
- `,
- [
- F('>', [
- V(
- 'scrollbar',
- `
- height: var(--n-scrollbar-height);
- border-radius: var(--n-scrollbar-border-radius);
- right: 0;
- `
- )
- ])
- ]
- ),
- U(
- 'vertical',
- `
- right: 4px;
- top: 2px;
- bottom: 2px;
- width: var(--n-scrollbar-width);
- `,
- [
- F('>', [
- V(
- 'scrollbar',
- `
- width: var(--n-scrollbar-width);
- border-radius: var(--n-scrollbar-border-radius);
- bottom: 0;
- `
- )
- ])
- ]
- ),
- U('disabled', [
- F('>', [V('scrollbar', { pointerEvents: 'none' })])
- ]),
- F('>', [
- V(
- 'scrollbar',
- `
- position: absolute;
- cursor: pointer;
- pointer-events: all;
- background-color: var(--n-scrollbar-color);
- transition: background-color .2s var(--n-scrollbar-bezier);
- `,
- [
- Cs(),
- F('&:hover', {
- backgroundColor: 'var(--n-scrollbar-color-hover)'
- })
- ]
- )
- ])
- ]
- )
- ])
- ]
- ),
- SU = Object.assign(Object.assign({}, Ke.props), {
- size: { type: Number, default: 5 },
- duration: { type: Number, default: 0 },
- scrollable: { type: Boolean, default: !0 },
- xScrollable: Boolean,
- trigger: { type: String, default: 'hover' },
- useUnifiedContainer: Boolean,
- triggerDisplayManually: Boolean,
- container: Function,
- content: Function,
- containerClass: String,
- containerStyle: [String, Object],
- contentClass: String,
- contentStyle: [String, Object],
- horizontalRailStyle: [String, Object],
- verticalRailStyle: [String, Object],
- onScroll: Function,
- onWheel: Function,
- onResize: Function,
- internalOnUpdateScrollLeft: Function,
- internalHoistYRail: Boolean
- }),
- _k = ke({
- name: 'Scrollbar',
- props: SU,
- inheritAttrs: !1,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- inlineThemeDisabled: n,
- mergedRtlRef: r
- } = yt(e),
- o = cr('Scrollbar', r, t),
- i = Z(null),
- a = Z(null),
- s = Z(null),
- c = Z(null),
- d = Z(null),
- f = Z(null),
- v = Z(null),
- p = Z(null),
- m = Z(null),
- g = Z(null),
- w = Z(null),
- x = Z(0),
- y = Z(0),
- C = Z(!1),
- R = Z(!1);
- let S = !1,
- _ = !1,
- P,
- T,
- E = 0,
- z = 0,
- k = 0,
- M = 0;
- const A = uD(),
- D = I(() => {
- const { value: oe } = p,
- { value: ze } = f,
- { value: We } = g;
- return oe === null || ze === null || We === null
- ? 0
- : Math.min(oe, (We * oe) / ze + e.size * 1.5);
- }),
- L = I(() => `${D.value}px`),
- H = I(() => {
- const { value: oe } = m,
- { value: ze } = v,
- { value: We } = w;
- return oe === null || ze === null || We === null
- ? 0
- : (We * oe) / ze + e.size * 1.5;
- }),
- B = I(() => `${H.value}px`),
- q = I(() => {
- const { value: oe } = p,
- { value: ze } = x,
- { value: We } = f,
- { value: lt } = g;
- if (oe === null || We === null || lt === null) return 0;
- {
- const st = We - oe;
- return st ? (ze / st) * (lt - D.value) : 0;
- }
- }),
- X = I(() => `${q.value}px`),
- te = I(() => {
- const { value: oe } = m,
- { value: ze } = y,
- { value: We } = v,
- { value: lt } = w;
- if (oe === null || We === null || lt === null) return 0;
- {
- const st = We - oe;
- return st ? (ze / st) * (lt - H.value) : 0;
- }
- }),
- G = I(() => `${te.value}px`),
- Q = I(() => {
- const { value: oe } = p,
- { value: ze } = f;
- return oe !== null && ze !== null && ze > oe;
- }),
- re = I(() => {
- const { value: oe } = m,
- { value: ze } = v;
- return oe !== null && ze !== null && ze > oe;
- }),
- se = I(() => {
- const { trigger: oe } = e;
- return oe === 'none' || C.value;
- }),
- pe = I(() => {
- const { trigger: oe } = e;
- return oe === 'none' || R.value;
- }),
- ce = I(() => {
- const { container: oe } = e;
- return oe ? oe() : a.value;
- }),
- xe = I(() => {
- const { content: oe } = e;
- return oe ? oe() : s.value;
- }),
- ve = ny(() => {
- e.container || ge({ top: x.value, left: y.value });
- }),
- be = () => {
- ve.isDeactivated || Ge();
- },
- Ce = oe => {
- if (ve.isDeactivated) return;
- const { onResize: ze } = e;
- ze && ze(oe), Ge();
- },
- ge = (oe, ze) => {
- if (!e.scrollable) return;
- if (typeof oe == 'number') {
- j(ze ?? 0, oe, 0, !1, 'auto');
- return;
- }
- const {
- left: We,
- top: lt,
- index: st,
- elSize: me,
- position: He,
- behavior: tt,
- el: pt,
- debounce: Pe = !0
- } = oe;
- (We !== void 0 || lt !== void 0) && j(We ?? 0, lt ?? 0, 0, !1, tt),
- pt !== void 0
- ? j(0, pt.offsetTop, pt.offsetHeight, Pe, tt)
- : st !== void 0 && me !== void 0
- ? j(0, st * me, me, Pe, tt)
- : He === 'bottom'
- ? j(0, Number.MAX_SAFE_INTEGER, 0, !1, tt)
- : He === 'top' && j(0, 0, 0, !1, tt);
- },
- Ae = (oe, ze) => {
- if (!e.scrollable) return;
- const { value: We } = ce;
- We &&
- (typeof oe == 'object'
- ? We.scrollBy(oe)
- : We.scrollBy(oe, ze || 0));
- };
- function j(oe, ze, We, lt, st) {
- const { value: me } = ce;
- if (me) {
- if (lt) {
- const { scrollTop: He, offsetHeight: tt } = me;
- if (ze > He) {
- ze + We <= He + tt ||
- me.scrollTo({ left: oe, top: ze + We - tt, behavior: st });
- return;
- }
- }
- me.scrollTo({ left: oe, top: ze, behavior: st });
- }
- }
- function ee() {
- ae(), he(), Ge();
- }
- function ne() {
- fe();
- }
- function fe() {
- ie(), W();
- }
- function ie() {
- T !== void 0 && window.clearTimeout(T),
- (T = window.setTimeout(() => {
- R.value = !1;
- }, e.duration));
- }
- function W() {
- P !== void 0 && window.clearTimeout(P),
- (P = window.setTimeout(() => {
- C.value = !1;
- }, e.duration));
- }
- function ae() {
- P !== void 0 && window.clearTimeout(P), (C.value = !0);
- }
- function he() {
- T !== void 0 && window.clearTimeout(T), (R.value = !0);
- }
- function _e(oe) {
- const { onScroll: ze } = e;
- ze && ze(oe), le();
- }
- function le() {
- const { value: oe } = ce;
- oe &&
- ((x.value = oe.scrollTop),
- (y.value = oe.scrollLeft * (o != null && o.value ? -1 : 1)));
- }
- function Re() {
- const { value: oe } = xe;
- oe && ((f.value = oe.offsetHeight), (v.value = oe.offsetWidth));
- const { value: ze } = ce;
- ze && ((p.value = ze.offsetHeight), (m.value = ze.offsetWidth));
- const { value: We } = d,
- { value: lt } = c;
- We && (w.value = We.offsetWidth), lt && (g.value = lt.offsetHeight);
- }
- function Ne() {
- const { value: oe } = ce;
- oe &&
- ((x.value = oe.scrollTop),
- (y.value = oe.scrollLeft * (o != null && o.value ? -1 : 1)),
- (p.value = oe.offsetHeight),
- (m.value = oe.offsetWidth),
- (f.value = oe.scrollHeight),
- (v.value = oe.scrollWidth));
- const { value: ze } = d,
- { value: We } = c;
- ze && (w.value = ze.offsetWidth), We && (g.value = We.offsetHeight);
- }
- function Ge() {
- e.scrollable && (e.useUnifiedContainer ? Ne() : (Re(), le()));
- }
- function it(oe) {
- var ze;
- return !(
- !((ze = i.value) === null || ze === void 0) && ze.contains(xa(oe))
- );
- }
- function dt(oe) {
- oe.preventDefault(),
- oe.stopPropagation(),
- (_ = !0),
- Tn('mousemove', window, xt, !0),
- Tn('mouseup', window, De, !0),
- (z = y.value),
- (k =
- o != null && o.value ? window.innerWidth - oe.clientX : oe.clientX);
- }
- function xt(oe) {
- if (!_) return;
- P !== void 0 && window.clearTimeout(P),
- T !== void 0 && window.clearTimeout(T);
- const { value: ze } = m,
- { value: We } = v,
- { value: lt } = H;
- if (ze === null || We === null) return;
- const me =
- ((o != null && o.value
- ? window.innerWidth - oe.clientX - k
- : oe.clientX - k) *
- (We - ze)) /
- (ze - lt),
- He = We - ze;
- let tt = z + me;
- (tt = Math.min(He, tt)), (tt = Math.max(tt, 0));
- const { value: pt } = ce;
- if (pt) {
- pt.scrollLeft = tt * (o != null && o.value ? -1 : 1);
- const { internalOnUpdateScrollLeft: Pe } = e;
- Pe && Pe(tt);
- }
- }
- function De(oe) {
- oe.preventDefault(),
- oe.stopPropagation(),
- pn('mousemove', window, xt, !0),
- pn('mouseup', window, De, !0),
- (_ = !1),
- Ge(),
- it(oe) && fe();
- }
- function ut(oe) {
- oe.preventDefault(),
- oe.stopPropagation(),
- (S = !0),
- Tn('mousemove', window, wt, !0),
- Tn('mouseup', window, Lt, !0),
- (E = x.value),
- (M = oe.clientY);
- }
- function wt(oe) {
- if (!S) return;
- P !== void 0 && window.clearTimeout(P),
- T !== void 0 && window.clearTimeout(T);
- const { value: ze } = p,
- { value: We } = f,
- { value: lt } = D;
- if (ze === null || We === null) return;
- const me = ((oe.clientY - M) * (We - ze)) / (ze - lt),
- He = We - ze;
- let tt = E + me;
- (tt = Math.min(He, tt)), (tt = Math.max(tt, 0));
- const { value: pt } = ce;
- pt && (pt.scrollTop = tt);
- }
- function Lt(oe) {
- oe.preventDefault(),
- oe.stopPropagation(),
- pn('mousemove', window, wt, !0),
- pn('mouseup', window, Lt, !0),
- (S = !1),
- Ge(),
- it(oe) && fe();
- }
- Bn(() => {
- const { value: oe } = re,
- { value: ze } = Q,
- { value: We } = t,
- { value: lt } = d,
- { value: st } = c;
- lt &&
- (oe
- ? lt.classList.remove(`${We}-scrollbar-rail--disabled`)
- : lt.classList.add(`${We}-scrollbar-rail--disabled`)),
- st &&
- (ze
- ? st.classList.remove(`${We}-scrollbar-rail--disabled`)
- : st.classList.add(`${We}-scrollbar-rail--disabled`));
- }),
- Hn(() => {
- e.container || Ge();
- }),
- qn(() => {
- P !== void 0 && window.clearTimeout(P),
- T !== void 0 && window.clearTimeout(T),
- pn('mousemove', window, wt, !0),
- pn('mouseup', window, Lt, !0);
- });
- const ot = Ke('Scrollbar', '-scrollbar', CU, ea, e, t),
- ct = I(() => {
- const {
- common: {
- cubicBezierEaseInOut: oe,
- scrollbarBorderRadius: ze,
- scrollbarHeight: We,
- scrollbarWidth: lt
- },
- self: { color: st, colorHover: me }
- } = ot.value;
- return {
- '--n-scrollbar-bezier': oe,
- '--n-scrollbar-color': st,
- '--n-scrollbar-color-hover': me,
- '--n-scrollbar-border-radius': ze,
- '--n-scrollbar-width': lt,
- '--n-scrollbar-height': We
- };
- }),
- Xe = n ? Mt('scrollbar', void 0, ct, e) : void 0;
- return Object.assign(
- Object.assign(
- {},
- {
- scrollTo: ge,
- scrollBy: Ae,
- sync: Ge,
- syncUnifiedContainer: Ne,
- handleMouseEnterWrapper: ee,
- handleMouseLeaveWrapper: ne
- }
- ),
- {
- mergedClsPrefix: t,
- rtlEnabled: o,
- containerScrollTop: x,
- wrapperRef: i,
- containerRef: a,
- contentRef: s,
- yRailRef: c,
- xRailRef: d,
- needYBar: Q,
- needXBar: re,
- yBarSizePx: L,
- xBarSizePx: B,
- yBarTopPx: X,
- xBarLeftPx: G,
- isShowXBar: se,
- isShowYBar: pe,
- isIos: A,
- handleScroll: _e,
- handleContentResize: be,
- handleContainerResize: Ce,
- handleYScrollMouseDown: ut,
- handleXScrollMouseDown: dt,
- cssVars: n ? void 0 : ct,
- themeClass: Xe == null ? void 0 : Xe.themeClass,
- onRender: Xe == null ? void 0 : Xe.onRender
- }
- );
- },
- render() {
- var e;
- const {
- $slots: t,
- mergedClsPrefix: n,
- triggerDisplayManually: r,
- rtlEnabled: o,
- internalHoistYRail: i
- } = this;
- if (!this.scrollable)
- return (e = t.default) === null || e === void 0 ? void 0 : e.call(t);
- const a = this.trigger === 'none',
- s = () =>
- h(
- 'div',
- {
- ref: 'yRailRef',
- class: [`${n}-scrollbar-rail`, `${n}-scrollbar-rail--vertical`],
- 'data-scrollbar-rail': !0,
- style: this.verticalRailStyle,
- 'aria-hidden': !0
- },
- h(a ? Rb : Kn, a ? null : { name: 'fade-in-transition' }, {
- default: () =>
- this.needYBar && this.isShowYBar && !this.isIos
- ? h('div', {
- class: `${n}-scrollbar-rail__scrollbar`,
- style: { height: this.yBarSizePx, top: this.yBarTopPx },
- onMousedown: this.handleYScrollMouseDown
- })
- : null
- })
- ),
- c = () => {
- var f, v;
- return (
- (f = this.onRender) === null || f === void 0 || f.call(this),
- h(
- 'div',
- qr(this.$attrs, {
- role: 'none',
- ref: 'wrapperRef',
- class: [
- `${n}-scrollbar`,
- this.themeClass,
- o && `${n}-scrollbar--rtl`
- ],
- style: this.cssVars,
- onMouseenter: r ? void 0 : this.handleMouseEnterWrapper,
- onMouseleave: r ? void 0 : this.handleMouseLeaveWrapper
- }),
- [
- this.container
- ? (v = t.default) === null || v === void 0
- ? void 0
- : v.call(t)
- : h(
- 'div',
- {
- role: 'none',
- ref: 'containerRef',
- class: [
- `${n}-scrollbar-container`,
- this.containerClass
- ],
- style: this.containerStyle,
- onScroll: this.handleScroll,
- onWheel: this.onWheel
- },
- h(
- qi,
- { onResize: this.handleContentResize },
- {
- default: () =>
- h(
- 'div',
- {
- ref: 'contentRef',
- role: 'none',
- style: [
- {
- width: this.xScrollable
- ? 'fit-content'
- : null
- },
- this.contentStyle
- ],
- class: [
- `${n}-scrollbar-content`,
- this.contentClass
- ]
- },
- t
- )
- }
- )
- ),
- i ? null : s(),
- this.xScrollable &&
- h(
- 'div',
- {
- ref: 'xRailRef',
- class: [
- `${n}-scrollbar-rail`,
- `${n}-scrollbar-rail--horizontal`
- ],
- style: this.horizontalRailStyle,
- 'data-scrollbar-rail': !0,
- 'aria-hidden': !0
- },
- h(a ? Rb : Kn, a ? null : { name: 'fade-in-transition' }, {
- default: () =>
- this.needXBar && this.isShowXBar && !this.isIos
- ? h('div', {
- class: `${n}-scrollbar-rail__scrollbar`,
- style: {
- width: this.xBarSizePx,
- right: o ? this.xBarLeftPx : void 0,
- left: o ? void 0 : this.xBarLeftPx
- },
- onMousedown: this.handleXScrollMouseDown
- })
- : null
- })
- )
- ]
- )
- );
- },
- d = this.container
- ? c()
- : h(qi, { onResize: this.handleContainerResize }, { default: c });
- return i ? h(on, null, d, s()) : d;
- }
- }),
- yr = _k,
- vv = _k,
- _U = {
- height: 'calc(var(--n-option-height) * 7.6)',
- paddingSmall: '4px 0',
- paddingMedium: '4px 0',
- paddingLarge: '4px 0',
- paddingHuge: '4px 0',
- optionPaddingSmall: '0 12px',
- optionPaddingMedium: '0 12px',
- optionPaddingLarge: '0 12px',
- optionPaddingHuge: '0 12px',
- loadingSize: '18px'
- },
- RU = e => {
- const {
- borderRadius: t,
- popoverColor: n,
- textColor3: r,
- dividerColor: o,
- textColor2: i,
- primaryColorPressed: a,
- textColorDisabled: s,
- primaryColor: c,
- opacityDisabled: d,
- hoverColor: f,
- fontSizeSmall: v,
- fontSizeMedium: p,
- fontSizeLarge: m,
- fontSizeHuge: g,
- heightSmall: w,
- heightMedium: x,
- heightLarge: y,
- heightHuge: C
- } = e;
- return Object.assign(Object.assign({}, _U), {
- optionFontSizeSmall: v,
- optionFontSizeMedium: p,
- optionFontSizeLarge: m,
- optionFontSizeHuge: g,
- optionHeightSmall: w,
- optionHeightMedium: x,
- optionHeightLarge: y,
- optionHeightHuge: C,
- borderRadius: t,
- color: n,
- groupHeaderTextColor: r,
- actionDividerColor: o,
- optionTextColor: i,
- optionTextColorPressed: a,
- optionTextColorDisabled: s,
- optionTextColorActive: c,
- optionOpacityDisabled: d,
- optionCheckColor: c,
- optionColorPending: f,
- optionColorActive: 'rgba(0, 0, 0, 0)',
- optionColorActivePending: f,
- actionTextColor: i,
- loadingColor: c
- });
- },
- PU = {
- name: 'InternalSelectMenu',
- common: Nt,
- peers: { Scrollbar: ea, Empty: Ap },
- self: RU
- },
- Ry = PU;
- function kU(e, t) {
- return h(
- Kn,
- { name: 'fade-in-scale-up-transition' },
- {
- default: () =>
- e
- ? h(
- At,
- { clsPrefix: t, class: `${t}-base-select-option__check` },
- { default: () => h(gk) }
- )
- : null
- }
- );
- }
- const _S = ke({
- name: 'NBaseSelectOption',
- props: {
- clsPrefix: { type: String, required: !0 },
- tmNode: { type: Object, required: !0 }
- },
- setup(e) {
- const {
- valueRef: t,
- pendingTmNodeRef: n,
- multipleRef: r,
- valueSetRef: o,
- renderLabelRef: i,
- renderOptionRef: a,
- labelFieldRef: s,
- valueFieldRef: c,
- showCheckmarkRef: d,
- nodePropsRef: f,
- handleOptionClick: v,
- handleOptionMouseEnter: p
- } = Ze(Z0),
- m = kt(() => {
- const { value: y } = n;
- return y ? e.tmNode.key === y.key : !1;
- });
- function g(y) {
- const { tmNode: C } = e;
- C.disabled || v(y, C);
- }
- function w(y) {
- const { tmNode: C } = e;
- C.disabled || p(y, C);
- }
- function x(y) {
- const { tmNode: C } = e,
- { value: R } = m;
- C.disabled || R || p(y, C);
- }
- return {
- multiple: r,
- isGrouped: kt(() => {
- const { tmNode: y } = e,
- { parent: C } = y;
- return C && C.rawNode.type === 'group';
- }),
- showCheckmark: d,
- nodeProps: f,
- isPending: m,
- isSelected: kt(() => {
- const { value: y } = t,
- { value: C } = r;
- if (y === null) return !1;
- const R = e.tmNode.rawNode[c.value];
- if (C) {
- const { value: S } = o;
- return S.has(R);
- } else return y === R;
- }),
- labelField: s,
- renderLabel: i,
- renderOption: a,
- handleMouseMove: x,
- handleMouseEnter: w,
- handleClick: g
- };
- },
- render() {
- const {
- clsPrefix: e,
- tmNode: { rawNode: t },
- isSelected: n,
- isPending: r,
- isGrouped: o,
- showCheckmark: i,
- nodeProps: a,
- renderOption: s,
- renderLabel: c,
- handleClick: d,
- handleMouseEnter: f,
- handleMouseMove: v
- } = this,
- p = kU(n, e),
- m = c ? [c(t, n), i && p] : [_n(t[this.labelField], t, n), i && p],
- g = a == null ? void 0 : a(t),
- w = h(
- 'div',
- Object.assign({}, g, {
- class: [
- `${e}-base-select-option`,
- t.class,
- g == null ? void 0 : g.class,
- {
- [`${e}-base-select-option--disabled`]: t.disabled,
- [`${e}-base-select-option--selected`]: n,
- [`${e}-base-select-option--grouped`]: o,
- [`${e}-base-select-option--pending`]: r,
- [`${e}-base-select-option--show-checkmark`]: i
- }
- ],
- style: [(g == null ? void 0 : g.style) || '', t.style || ''],
- onClick: Jd([d, g == null ? void 0 : g.onClick]),
- onMouseenter: Jd([f, g == null ? void 0 : g.onMouseenter]),
- onMousemove: Jd([v, g == null ? void 0 : g.onMousemove])
- }),
- h('div', { class: `${e}-base-select-option__content` }, m)
- );
- return t.render
- ? t.render({ node: w, option: t, selected: n })
- : s
- ? s({ node: w, option: t, selected: n })
- : w;
- }
- }),
- RS = ke({
- name: 'NBaseSelectGroupHeader',
- props: {
- clsPrefix: { type: String, required: !0 },
- tmNode: { type: Object, required: !0 }
- },
- setup() {
- const {
- renderLabelRef: e,
- renderOptionRef: t,
- labelFieldRef: n,
- nodePropsRef: r
- } = Ze(Z0);
- return { labelField: n, nodeProps: r, renderLabel: e, renderOption: t };
- },
- render() {
- const {
- clsPrefix: e,
- renderLabel: t,
- renderOption: n,
- nodeProps: r,
- tmNode: { rawNode: o }
- } = this,
- i = r == null ? void 0 : r(o),
- a = t ? t(o, !1) : _n(o[this.labelField], o, !1),
- s = h(
- 'div',
- Object.assign({}, i, {
- class: [
- `${e}-base-select-group-header`,
- i == null ? void 0 : i.class
- ]
- }),
- a
- );
- return o.render
- ? o.render({ node: s, option: o })
- : n
- ? n({ node: s, option: o, selected: !1 })
- : s;
- }
- }),
- { cubicBezierEaseIn: PS, cubicBezierEaseOut: kS } = Bo;
- function gi({
- transformOrigin: e = 'inherit',
- duration: t = '.2s',
- enterScale: n = '.9',
- originalTransform: r = '',
- originalTransition: o = ''
- } = {}) {
- return [
- F('&.fade-in-scale-up-transition-leave-active', {
- transformOrigin: e,
- transition: `opacity ${t} ${PS}, transform ${t} ${PS} ${o && ',' + o}`
- }),
- F('&.fade-in-scale-up-transition-enter-active', {
- transformOrigin: e,
- transition: `opacity ${t} ${kS}, transform ${t} ${kS} ${o && ',' + o}`
- }),
- F(
- '&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to',
- { opacity: 0, transform: `${r} scale(${n})` }
- ),
- F(
- '&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to',
- { opacity: 1, transform: `${r} scale(1)` }
- )
- ];
- }
- const TU = O(
- 'base-select-menu',
- `
- line-height: 1.5;
- outline: none;
- z-index: 0;
- position: relative;
- border-radius: var(--n-border-radius);
- transition:
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- background-color: var(--n-color);
- `,
- [
- O(
- 'scrollbar',
- `
- max-height: var(--n-height);
- `
- ),
- O(
- 'virtual-list',
- `
- max-height: var(--n-height);
- `
- ),
- O(
- 'base-select-option',
- `
- min-height: var(--n-option-height);
- font-size: var(--n-option-font-size);
- display: flex;
- align-items: center;
- `,
- [
- V(
- 'content',
- `
- z-index: 1;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- `
- )
- ]
- ),
- O(
- 'base-select-group-header',
- `
- min-height: var(--n-option-height);
- font-size: .93em;
- display: flex;
- align-items: center;
- `
- ),
- O(
- 'base-select-menu-option-wrapper',
- `
- position: relative;
- width: 100%;
- `
- ),
- V(
- 'loading, empty',
- `
- display: flex;
- padding: 12px 32px;
- flex: 1;
- justify-content: center;
- `
- ),
- V(
- 'loading',
- `
- color: var(--n-loading-color);
- font-size: var(--n-loading-size);
- `
- ),
- V(
- 'action',
- `
- padding: 8px var(--n-option-padding-left);
- font-size: var(--n-option-font-size);
- transition:
- color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- border-top: 1px solid var(--n-action-divider-color);
- color: var(--n-action-text-color);
- `
- ),
- O(
- 'base-select-group-header',
- `
- position: relative;
- cursor: default;
- padding: var(--n-option-padding);
- color: var(--n-group-header-text-color);
- `
- ),
- O(
- 'base-select-option',
- `
- cursor: pointer;
- position: relative;
- padding: var(--n-option-padding);
- transition:
- color .3s var(--n-bezier),
- opacity .3s var(--n-bezier);
- box-sizing: border-box;
- color: var(--n-option-text-color);
- opacity: 1;
- `,
- [
- U(
- 'show-checkmark',
- `
- padding-right: calc(var(--n-option-padding-right) + 20px);
- `
- ),
- F(
- '&::before',
- `
- content: "";
- position: absolute;
- left: 4px;
- right: 4px;
- top: 0;
- bottom: 0;
- border-radius: var(--n-border-radius);
- transition: background-color .3s var(--n-bezier);
- `
- ),
- F(
- '&:active',
- `
- color: var(--n-option-text-color-pressed);
- `
- ),
- U(
- 'grouped',
- `
- padding-left: calc(var(--n-option-padding-left) * 1.5);
- `
- ),
- U('pending', [
- F(
- '&::before',
- `
- background-color: var(--n-option-color-pending);
- `
- )
- ]),
- U(
- 'selected',
- `
- color: var(--n-option-text-color-active);
- `,
- [
- F(
- '&::before',
- `
- background-color: var(--n-option-color-active);
- `
- ),
- U('pending', [
- F(
- '&::before',
- `
- background-color: var(--n-option-color-active-pending);
- `
- )
- ])
- ]
- ),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- `,
- [
- jt(
- 'selected',
- `
- color: var(--n-option-text-color-disabled);
- `
- ),
- U(
- 'selected',
- `
- opacity: var(--n-option-opacity-disabled);
- `
- )
- ]
- ),
- V(
- 'check',
- `
- font-size: 16px;
- position: absolute;
- right: calc(var(--n-option-padding-right) - 4px);
- top: calc(50% - 7px);
- color: var(--n-option-check-color);
- transition: color .3s var(--n-bezier);
- `,
- [gi({ enterScale: '0.5' })]
- )
- ]
- )
- ]
- ),
- Rk = ke({
- name: 'InternalSelectMenu',
- props: Object.assign(Object.assign({}, Ke.props), {
- clsPrefix: { type: String, required: !0 },
- scrollable: { type: Boolean, default: !0 },
- treeMate: { type: Object, required: !0 },
- multiple: Boolean,
- size: { type: String, default: 'medium' },
- value: { type: [String, Number, Array], default: null },
- autoPending: Boolean,
- virtualScroll: { type: Boolean, default: !0 },
- show: { type: Boolean, default: !0 },
- labelField: { type: String, default: 'label' },
- valueField: { type: String, default: 'value' },
- loading: Boolean,
- focusable: Boolean,
- renderLabel: Function,
- renderOption: Function,
- nodeProps: Function,
- showCheckmark: { type: Boolean, default: !0 },
- onMousedown: Function,
- onScroll: Function,
- onFocus: Function,
- onBlur: Function,
- onKeyup: Function,
- onKeydown: Function,
- onTabOut: Function,
- onMouseenter: Function,
- onMouseleave: Function,
- onResize: Function,
- resetMenuOnOptionsChange: { type: Boolean, default: !0 },
- inlineThemeDisabled: Boolean,
- onToggle: Function
- }),
- setup(e) {
- const t = Ke(
- 'InternalSelectMenu',
- '-internal-select-menu',
- TU,
- Ry,
- e,
- Ie(e, 'clsPrefix')
- ),
- n = Z(null),
- r = Z(null),
- o = Z(null),
- i = I(() => e.treeMate.getFlattenedNodes()),
- a = I(() => wk(i.value)),
- s = Z(null);
- function c() {
- const { treeMate: te } = e;
- let G = null;
- const { value: Q } = e;
- Q === null
- ? (G = te.getFirstAvailableNode())
- : (e.multiple
- ? (G = te.getNode((Q || [])[(Q || []).length - 1]))
- : (G = te.getNode(Q)),
- (!G || G.disabled) && (G = te.getFirstAvailableNode())),
- M(G || null);
- }
- function d() {
- const { value: te } = s;
- te && !e.treeMate.getNode(te.key) && (s.value = null);
- }
- let f;
- $t(
- () => e.show,
- te => {
- te
- ? (f = $t(
- () => e.treeMate,
- () => {
- e.resetMenuOnOptionsChange
- ? (e.autoPending ? c() : d(), mn(A))
- : d();
- },
- { immediate: !0 }
- ))
- : f == null || f();
- },
- { immediate: !0 }
- ),
- qn(() => {
- f == null || f();
- });
- const v = I(() => Lr(t.value.self[Ee('optionHeight', e.size)])),
- p = I(() => Go(t.value.self[Ee('padding', e.size)])),
- m = I(() =>
- e.multiple && Array.isArray(e.value) ? new Set(e.value) : new Set()
- ),
- g = I(() => {
- const te = i.value;
- return te && te.length === 0;
- });
- function w(te) {
- const { onToggle: G } = e;
- G && G(te);
- }
- function x(te) {
- const { onScroll: G } = e;
- G && G(te);
- }
- function y(te) {
- var G;
- (G = o.value) === null || G === void 0 || G.sync(), x(te);
- }
- function C() {
- var te;
- (te = o.value) === null || te === void 0 || te.sync();
- }
- function R() {
- const { value: te } = s;
- return te || null;
- }
- function S(te, G) {
- G.disabled || M(G, !1);
- }
- function _(te, G) {
- G.disabled || w(G);
- }
- function P(te) {
- var G;
- Mo(te, 'action') ||
- (G = e.onKeyup) === null ||
- G === void 0 ||
- G.call(e, te);
- }
- function T(te) {
- var G;
- Mo(te, 'action') ||
- (G = e.onKeydown) === null ||
- G === void 0 ||
- G.call(e, te);
- }
- function E(te) {
- var G;
- (G = e.onMousedown) === null || G === void 0 || G.call(e, te),
- !e.focusable && te.preventDefault();
- }
- function z() {
- const { value: te } = s;
- te && M(te.getNext({ loop: !0 }), !0);
- }
- function k() {
- const { value: te } = s;
- te && M(te.getPrev({ loop: !0 }), !0);
- }
- function M(te, G = !1) {
- (s.value = te), G && A();
- }
- function A() {
- var te, G;
- const Q = s.value;
- if (!Q) return;
- const re = a.value(Q.key);
- re !== null &&
- (e.virtualScroll
- ? (te = r.value) === null ||
- te === void 0 ||
- te.scrollTo({ index: re })
- : (G = o.value) === null ||
- G === void 0 ||
- G.scrollTo({ index: re, elSize: v.value }));
- }
- function D(te) {
- var G, Q;
- !((G = n.value) === null || G === void 0) &&
- G.contains(te.target) &&
- ((Q = e.onFocus) === null || Q === void 0 || Q.call(e, te));
- }
- function L(te) {
- var G, Q;
- (!((G = n.value) === null || G === void 0) &&
- G.contains(te.relatedTarget)) ||
- (Q = e.onBlur) === null ||
- Q === void 0 ||
- Q.call(e, te);
- }
- Rt(Z0, {
- handleOptionMouseEnter: S,
- handleOptionClick: _,
- valueSetRef: m,
- pendingTmNodeRef: s,
- nodePropsRef: Ie(e, 'nodeProps'),
- showCheckmarkRef: Ie(e, 'showCheckmark'),
- multipleRef: Ie(e, 'multiple'),
- valueRef: Ie(e, 'value'),
- renderLabelRef: Ie(e, 'renderLabel'),
- renderOptionRef: Ie(e, 'renderOption'),
- labelFieldRef: Ie(e, 'labelField'),
- valueFieldRef: Ie(e, 'valueField')
- }),
- Rt(KR, n),
- Hn(() => {
- const { value: te } = o;
- te && te.sync();
- });
- const H = I(() => {
- const { size: te } = e,
- {
- common: { cubicBezierEaseInOut: G },
- self: {
- height: Q,
- borderRadius: re,
- color: se,
- groupHeaderTextColor: pe,
- actionDividerColor: ce,
- optionTextColorPressed: xe,
- optionTextColor: ve,
- optionTextColorDisabled: be,
- optionTextColorActive: Ce,
- optionOpacityDisabled: ge,
- optionCheckColor: Ae,
- actionTextColor: j,
- optionColorPending: ee,
- optionColorActive: ne,
- loadingColor: fe,
- loadingSize: ie,
- optionColorActivePending: W,
- [Ee('optionFontSize', te)]: ae,
- [Ee('optionHeight', te)]: he,
- [Ee('optionPadding', te)]: _e
- }
- } = t.value;
- return {
- '--n-height': Q,
- '--n-action-divider-color': ce,
- '--n-action-text-color': j,
- '--n-bezier': G,
- '--n-border-radius': re,
- '--n-color': se,
- '--n-option-font-size': ae,
- '--n-group-header-text-color': pe,
- '--n-option-check-color': Ae,
- '--n-option-color-pending': ee,
- '--n-option-color-active': ne,
- '--n-option-color-active-pending': W,
- '--n-option-height': he,
- '--n-option-opacity-disabled': ge,
- '--n-option-text-color': ve,
- '--n-option-text-color-active': Ce,
- '--n-option-text-color-disabled': be,
- '--n-option-text-color-pressed': xe,
- '--n-option-padding': _e,
- '--n-option-padding-left': Go(_e, 'left'),
- '--n-option-padding-right': Go(_e, 'right'),
- '--n-loading-color': fe,
- '--n-loading-size': ie
- };
- }),
- { inlineThemeDisabled: B } = e,
- q = B
- ? Mt(
- 'internal-select-menu',
- I(() => e.size[0]),
- H,
- e
- )
- : void 0,
- X = { selfRef: n, next: z, prev: k, getPendingTmNode: R };
- return (
- sP(n, e.onResize),
- Object.assign(
- {
- mergedTheme: t,
- virtualListRef: r,
- scrollbarRef: o,
- itemSize: v,
- padding: p,
- flattenedNodes: i,
- empty: g,
- virtualListContainer() {
- const { value: te } = r;
- return te == null ? void 0 : te.listElRef;
- },
- virtualListContent() {
- const { value: te } = r;
- return te == null ? void 0 : te.itemsElRef;
- },
- doScroll: x,
- handleFocusin: D,
- handleFocusout: L,
- handleKeyUp: P,
- handleKeyDown: T,
- handleMouseDown: E,
- handleVirtualListResize: C,
- handleVirtualListScroll: y,
- cssVars: B ? void 0 : H,
- themeClass: q == null ? void 0 : q.themeClass,
- onRender: q == null ? void 0 : q.onRender
- },
- X
- )
- );
- },
- render() {
- const {
- $slots: e,
- virtualScroll: t,
- clsPrefix: n,
- mergedTheme: r,
- themeClass: o,
- onRender: i
- } = this;
- return (
- i == null || i(),
- h(
- 'div',
- {
- ref: 'selfRef',
- tabindex: this.focusable ? 0 : -1,
- class: [
- `${n}-base-select-menu`,
- o,
- this.multiple && `${n}-base-select-menu--multiple`
- ],
- style: this.cssVars,
- onFocusin: this.handleFocusin,
- onFocusout: this.handleFocusout,
- onKeyup: this.handleKeyUp,
- onKeydown: this.handleKeyDown,
- onMousedown: this.handleMouseDown,
- onMouseenter: this.onMouseenter,
- onMouseleave: this.onMouseleave
- },
- this.loading
- ? h(
- 'div',
- { class: `${n}-base-select-menu__loading` },
- h(Oa, { clsPrefix: n, strokeWidth: 20 })
- )
- : this.empty
- ? h(
- 'div',
- { class: `${n}-base-select-menu__empty`, 'data-empty': !0 },
- Kt(e.empty, () => [
- h(_y, {
- theme: r.peers.Empty,
- themeOverrides: r.peerOverrides.Empty
- })
- ])
- )
- : h(
- yr,
- {
- ref: 'scrollbarRef',
- theme: r.peers.Scrollbar,
- themeOverrides: r.peerOverrides.Scrollbar,
- scrollable: this.scrollable,
- container: t ? this.virtualListContainer : void 0,
- content: t ? this.virtualListContent : void 0,
- onScroll: t ? void 0 : this.doScroll
- },
- {
- default: () =>
- t
- ? h(
- Ec,
- {
- ref: 'virtualListRef',
- class: `${n}-virtual-list`,
- items: this.flattenedNodes,
- itemSize: this.itemSize,
- showScrollbar: !1,
- paddingTop: this.padding.top,
- paddingBottom: this.padding.bottom,
- onResize: this.handleVirtualListResize,
- onScroll: this.handleVirtualListScroll,
- itemResizable: !0
- },
- {
- default: ({ item: a }) =>
- a.isGroup
- ? h(RS, { key: a.key, clsPrefix: n, tmNode: a })
- : a.ignored
- ? null
- : h(_S, { clsPrefix: n, key: a.key, tmNode: a })
- }
- )
- : h(
- 'div',
- {
- class: `${n}-base-select-menu-option-wrapper`,
- style: {
- paddingTop: this.padding.top,
- paddingBottom: this.padding.bottom
- }
- },
- this.flattenedNodes.map(a =>
- a.isGroup
- ? h(RS, { key: a.key, clsPrefix: n, tmNode: a })
- : h(_S, { clsPrefix: n, key: a.key, tmNode: a })
- )
- )
- }
- ),
- cn(
- e.action,
- a =>
- a && [
- h(
- 'div',
- {
- class: `${n}-base-select-menu__action`,
- 'data-action': !0,
- key: 'action'
- },
- a
- ),
- h(_l, { onFocus: this.onTabOut, key: 'focus-detector' })
- ]
- )
- )
- );
- }
- }),
- $U = O(
- 'base-wave',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- border-radius: inherit;
- `
- ),
- Pk = ke({
- name: 'BaseWave',
- props: { clsPrefix: { type: String, required: !0 } },
- setup(e) {
- $a('-base-wave', $U, Ie(e, 'clsPrefix'));
- const t = Z(null),
- n = Z(!1);
- let r = null;
- return (
- qn(() => {
- r !== null && window.clearTimeout(r);
- }),
- {
- active: n,
- selfRef: t,
- play() {
- r !== null && (window.clearTimeout(r), (n.value = !1), (r = null)),
- mn(() => {
- var o;
- (o = t.value) === null || o === void 0 || o.offsetHeight,
- (n.value = !0),
- (r = window.setTimeout(() => {
- (n.value = !1), (r = null);
- }, 1e3));
- });
- }
- }
- );
- },
- render() {
- const { clsPrefix: e } = this;
- return h('div', {
- ref: 'selfRef',
- 'aria-hidden': !0,
- class: [`${e}-base-wave`, this.active && `${e}-base-wave--active`]
- });
- }
- }),
- OU = {
- space: '6px',
- spaceArrow: '10px',
- arrowOffset: '10px',
- arrowOffsetVertical: '10px',
- arrowHeight: '6px',
- padding: '8px 14px'
- },
- zU = e => {
- const {
- boxShadow2: t,
- popoverColor: n,
- textColor2: r,
- borderRadius: o,
- fontSize: i,
- dividerColor: a
- } = e;
- return Object.assign(Object.assign({}, OU), {
- fontSize: i,
- borderRadius: o,
- color: n,
- dividerColor: a,
- textColor: r,
- boxShadow: t
- });
- },
- EU = { name: 'Popover', common: Nt, self: zU },
- od = EU,
- km = { top: 'bottom', bottom: 'top', left: 'right', right: 'left' },
- Cr = 'var(--n-arrow-height) * 1.414',
- AU = F([
- O(
- 'popover',
- `
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- position: relative;
- font-size: var(--n-font-size);
- color: var(--n-text-color);
- box-shadow: var(--n-box-shadow);
- word-break: break-word;
- `,
- [
- F('>', [
- O(
- 'scrollbar',
- `
- height: inherit;
- max-height: inherit;
- `
- )
- ]),
- jt(
- 'raw',
- `
- background-color: var(--n-color);
- border-radius: var(--n-border-radius);
- `,
- [
- jt('scrollable', [
- jt('show-header-or-footer', 'padding: var(--n-padding);')
- ])
- ]
- ),
- V(
- 'header',
- `
- padding: var(--n-padding);
- border-bottom: 1px solid var(--n-divider-color);
- transition: border-color .3s var(--n-bezier);
- `
- ),
- V(
- 'footer',
- `
- padding: var(--n-padding);
- border-top: 1px solid var(--n-divider-color);
- transition: border-color .3s var(--n-bezier);
- `
- ),
- U('scrollable, show-header-or-footer', [
- V(
- 'content',
- `
- padding: var(--n-padding);
- `
- )
- ])
- ]
- ),
- O(
- 'popover-shared',
- `
- transform-origin: inherit;
- `,
- [
- O(
- 'popover-arrow-wrapper',
- `
- position: absolute;
- overflow: hidden;
- pointer-events: none;
- `,
- [
- O(
- 'popover-arrow',
- `
- transition: background-color .3s var(--n-bezier);
- position: absolute;
- display: block;
- width: calc(${Cr});
- height: calc(${Cr});
- box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
- transform: rotate(45deg);
- background-color: var(--n-color);
- pointer-events: all;
- `
- )
- ]
- ),
- F(
- '&.popover-transition-enter-from, &.popover-transition-leave-to',
- `
- opacity: 0;
- transform: scale(.85);
- `
- ),
- F(
- '&.popover-transition-enter-to, &.popover-transition-leave-from',
- `
- transform: scale(1);
- opacity: 1;
- `
- ),
- F(
- '&.popover-transition-enter-active',
- `
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .15s var(--n-bezier-ease-out),
- transform .15s var(--n-bezier-ease-out);
- `
- ),
- F(
- '&.popover-transition-leave-active',
- `
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .15s var(--n-bezier-ease-in),
- transform .15s var(--n-bezier-ease-in);
- `
- )
- ]
- ),
- Yo(
- 'top-start',
- `
- top: calc(${Cr} / -2);
- left: calc(${ha('top-start')} - var(--v-offset-left));
- `
- ),
- Yo(
- 'top',
- `
- top: calc(${Cr} / -2);
- transform: translateX(calc(${Cr} / -2)) rotate(45deg);
- left: 50%;
- `
- ),
- Yo(
- 'top-end',
- `
- top: calc(${Cr} / -2);
- right: calc(${ha('top-end')} + var(--v-offset-left));
- `
- ),
- Yo(
- 'bottom-start',
- `
- bottom: calc(${Cr} / -2);
- left: calc(${ha('bottom-start')} - var(--v-offset-left));
- `
- ),
- Yo(
- 'bottom',
- `
- bottom: calc(${Cr} / -2);
- transform: translateX(calc(${Cr} / -2)) rotate(45deg);
- left: 50%;
- `
- ),
- Yo(
- 'bottom-end',
- `
- bottom: calc(${Cr} / -2);
- right: calc(${ha('bottom-end')} + var(--v-offset-left));
- `
- ),
- Yo(
- 'left-start',
- `
- left: calc(${Cr} / -2);
- top: calc(${ha('left-start')} - var(--v-offset-top));
- `
- ),
- Yo(
- 'left',
- `
- left: calc(${Cr} / -2);
- transform: translateY(calc(${Cr} / -2)) rotate(45deg);
- top: 50%;
- `
- ),
- Yo(
- 'left-end',
- `
- left: calc(${Cr} / -2);
- bottom: calc(${ha('left-end')} + var(--v-offset-top));
- `
- ),
- Yo(
- 'right-start',
- `
- right: calc(${Cr} / -2);
- top: calc(${ha('right-start')} - var(--v-offset-top));
- `
- ),
- Yo(
- 'right',
- `
- right: calc(${Cr} / -2);
- transform: translateY(calc(${Cr} / -2)) rotate(45deg);
- top: 50%;
- `
- ),
- Yo(
- 'right-end',
- `
- right: calc(${Cr} / -2);
- bottom: calc(${ha('right-end')} + var(--v-offset-top));
- `
- ),
- ...aN(
- {
- top: ['right-start', 'left-start'],
- right: ['top-end', 'bottom-end'],
- bottom: ['right-end', 'left-end'],
- left: ['top-start', 'bottom-start']
- },
- (e, t) => {
- const n = ['right', 'left'].includes(t),
- r = n ? 'width' : 'height';
- return e.map(o => {
- const i = o.split('-')[1] === 'end',
- s = `calc((${`var(--v-target-${r}, 0px)`} - ${Cr}) / 2)`,
- c = ha(o);
- return F(`[v-placement="${o}"] >`, [
- O('popover-shared', [
- U('center-arrow', [
- O(
- 'popover-arrow',
- `${t}: calc(max(${s}, ${c}) ${i ? '+' : '-'} var(--v-offset-${
- n ? 'left' : 'top'
- }));`
- )
- ])
- ])
- ]);
- });
- }
- )
- ]);
- function ha(e) {
- return ['top', 'bottom'].includes(e.split('-')[0])
- ? 'var(--n-arrow-offset)'
- : 'var(--n-arrow-offset-vertical)';
- }
- function Yo(e, t) {
- const n = e.split('-')[0],
- r = ['top', 'bottom'].includes(n)
- ? 'height: var(--n-space-arrow);'
- : 'width: var(--n-space-arrow);';
- return F(`[v-placement="${e}"] >`, [
- O(
- 'popover-shared',
- `
- margin-${km[n]}: var(--n-space);
- `,
- [
- U(
- 'show-arrow',
- `
- margin-${km[n]}: var(--n-space-arrow);
- `
- ),
- U(
- 'overlap',
- `
- margin: 0;
- `
- ),
- QI(
- 'popover-arrow-wrapper',
- `
- right: 0;
- left: 0;
- top: 0;
- bottom: 0;
- ${n}: 100%;
- ${km[n]}: auto;
- ${r}
- `,
- [O('popover-arrow', t)]
- )
- ]
- )
- ]);
- }
- const kk = Object.assign(Object.assign({}, Ke.props), {
- to: Yr.propTo,
- show: Boolean,
- trigger: String,
- showArrow: Boolean,
- delay: Number,
- duration: Number,
- raw: Boolean,
- arrowPointToCenter: Boolean,
- arrowStyle: [String, Object],
- displayDirective: String,
- x: Number,
- y: Number,
- flip: Boolean,
- overlap: Boolean,
- placement: String,
- width: [Number, String],
- keepAliveOnHover: Boolean,
- scrollable: Boolean,
- contentStyle: [Object, String],
- headerStyle: [Object, String],
- footerStyle: [Object, String],
- internalDeactivateImmediately: Boolean,
- animated: Boolean,
- onClickoutside: Function,
- internalTrapFocus: Boolean,
- internalOnAfterLeave: Function,
- minWidth: Number,
- maxWidth: Number
- }),
- Tk = ({ arrowStyle: e, clsPrefix: t }) =>
- h(
- 'div',
- { key: '__popover-arrow__', class: `${t}-popover-arrow-wrapper` },
- h('div', { class: `${t}-popover-arrow`, style: e })
- ),
- MU = ke({
- name: 'PopoverBody',
- inheritAttrs: !1,
- props: kk,
- setup(e, { slots: t, attrs: n }) {
- const {
- namespaceRef: r,
- mergedClsPrefixRef: o,
- inlineThemeDisabled: i
- } = yt(e),
- a = Ke('Popover', '-popover', AU, od, e, o),
- s = Z(null),
- c = Ze('NPopover'),
- d = Z(null),
- f = Z(e.show),
- v = Z(!1);
- Bn(() => {
- const { show: T } = e;
- T && !JI() && !e.internalDeactivateImmediately && (v.value = !0);
- });
- const p = I(() => {
- const { trigger: T, onClickoutside: E } = e,
- z = [],
- {
- positionManuallyRef: { value: k }
- } = c;
- return (
- k ||
- (T === 'click' && !E && z.push([wa, S, void 0, { capture: !0 }]),
- T === 'hover' && z.push([xD, R])),
- E && z.push([wa, S, void 0, { capture: !0 }]),
- (e.displayDirective === 'show' || (e.animated && v.value)) &&
- z.push([vi, e.show]),
- z
- );
- }),
- m = I(() => {
- const T = e.width === 'trigger' ? void 0 : vn(e.width),
- E = [];
- T && E.push({ width: T });
- const { maxWidth: z, minWidth: k } = e;
- return (
- z && E.push({ maxWidth: vn(z) }),
- k && E.push({ maxWidth: vn(k) }),
- i || E.push(g.value),
- E
- );
- }),
- g = I(() => {
- const {
- common: {
- cubicBezierEaseInOut: T,
- cubicBezierEaseIn: E,
- cubicBezierEaseOut: z
- },
- self: {
- space: k,
- spaceArrow: M,
- padding: A,
- fontSize: D,
- textColor: L,
- dividerColor: H,
- color: B,
- boxShadow: q,
- borderRadius: X,
- arrowHeight: te,
- arrowOffset: G,
- arrowOffsetVertical: Q
- }
- } = a.value;
- return {
- '--n-box-shadow': q,
- '--n-bezier': T,
- '--n-bezier-ease-in': E,
- '--n-bezier-ease-out': z,
- '--n-font-size': D,
- '--n-text-color': L,
- '--n-color': B,
- '--n-divider-color': H,
- '--n-border-radius': X,
- '--n-arrow-height': te,
- '--n-arrow-offset': G,
- '--n-arrow-offset-vertical': Q,
- '--n-padding': A,
- '--n-space': k,
- '--n-space-arrow': M
- };
- }),
- w = i ? Mt('popover', void 0, g, e) : void 0;
- c.setBodyInstance({ syncPosition: x }),
- qn(() => {
- c.setBodyInstance(null);
- }),
- $t(Ie(e, 'show'), T => {
- e.animated || (T ? (f.value = !0) : (f.value = !1));
- });
- function x() {
- var T;
- (T = s.value) === null || T === void 0 || T.syncPosition();
- }
- function y(T) {
- e.trigger === 'hover' &&
- e.keepAliveOnHover &&
- e.show &&
- c.handleMouseEnter(T);
- }
- function C(T) {
- e.trigger === 'hover' && e.keepAliveOnHover && c.handleMouseLeave(T);
- }
- function R(T) {
- e.trigger === 'hover' &&
- !_().contains(xa(T)) &&
- c.handleMouseMoveOutside(T);
- }
- function S(T) {
- ((e.trigger === 'click' && !_().contains(xa(T))) || e.onClickoutside) &&
- c.handleClickOutside(T);
- }
- function _() {
- return c.getTriggerElement();
- }
- Rt(Zc, d), Rt(Ku, null), Rt(Vu, null);
- function P() {
- if (
- (w == null || w.onRender(),
- !(e.displayDirective === 'show' || e.show || (e.animated && v.value)))
- )
- return null;
- let E;
- const z = c.internalRenderBodyRef.value,
- { value: k } = o;
- if (z)
- E = z(
- [
- `${k}-popover-shared`,
- w == null ? void 0 : w.themeClass.value,
- e.overlap && `${k}-popover-shared--overlap`,
- e.showArrow && `${k}-popover-shared--show-arrow`,
- e.arrowPointToCenter && `${k}-popover-shared--center-arrow`
- ],
- d,
- m.value,
- y,
- C
- );
- else {
- const { value: M } = c.extraClassRef,
- { internalTrapFocus: A } = e,
- D = !ps(t.header) || !ps(t.footer),
- L = () => {
- var H;
- const B = D
- ? h(
- on,
- null,
- cn(t.header, te =>
- te
- ? h(
- 'div',
- {
- class: `${k}-popover__header`,
- style: e.headerStyle
- },
- te
- )
- : null
- ),
- cn(t.default, te =>
- te
- ? h(
- 'div',
- {
- class: `${k}-popover__content`,
- style: e.contentStyle
- },
- t
- )
- : null
- ),
- cn(t.footer, te =>
- te
- ? h(
- 'div',
- {
- class: `${k}-popover__footer`,
- style: e.footerStyle
- },
- te
- )
- : null
- )
- )
- : e.scrollable
- ? (H = t.default) === null || H === void 0
- ? void 0
- : H.call(t)
- : h(
- 'div',
- { class: `${k}-popover__content`, style: e.contentStyle },
- t
- ),
- q = e.scrollable
- ? h(
- vv,
- {
- contentClass: D ? void 0 : `${k}-popover__content`,
- contentStyle: D ? void 0 : e.contentStyle
- },
- { default: () => B }
- )
- : B,
- X = e.showArrow
- ? Tk({ arrowStyle: e.arrowStyle, clsPrefix: k })
- : null;
- return [q, X];
- };
- E = h(
- 'div',
- qr(
- {
- class: [
- `${k}-popover`,
- `${k}-popover-shared`,
- w == null ? void 0 : w.themeClass.value,
- M.map(H => `${k}-${H}`),
- {
- [`${k}-popover--scrollable`]: e.scrollable,
- [`${k}-popover--show-header-or-footer`]: D,
- [`${k}-popover--raw`]: e.raw,
- [`${k}-popover-shared--overlap`]: e.overlap,
- [`${k}-popover-shared--show-arrow`]: e.showArrow,
- [`${k}-popover-shared--center-arrow`]: e.arrowPointToCenter
- }
- ],
- ref: d,
- style: m.value,
- onKeydown: c.handleKeydown,
- onMouseenter: y,
- onMouseleave: C
- },
- n
- ),
- A ? h(ey, { active: e.show, autoFocus: !0 }, { default: L }) : L()
- );
- }
- return Er(E, p.value);
- }
- return {
- displayed: v,
- namespace: r,
- isMounted: c.isMountedRef,
- zIndex: c.zIndexRef,
- followerRef: s,
- adjustedTo: Yr(e),
- followerEnabled: f,
- renderContentNode: P
- };
- },
- render() {
- return h(
- ed,
- {
- ref: 'followerRef',
- zIndex: this.zIndex,
- show: this.show,
- enabled: this.followerEnabled,
- to: this.adjustedTo,
- x: this.x,
- y: this.y,
- flip: this.flip,
- placement: this.placement,
- containerClass: this.namespace,
- overlap: this.overlap,
- width: this.width === 'trigger' ? 'target' : void 0,
- teleportDisabled: this.adjustedTo === Yr.tdkey
- },
- {
- default: () =>
- this.animated
- ? h(
- Kn,
- {
- name: 'popover-transition',
- appear: this.isMounted,
- onEnter: () => {
- this.followerEnabled = !0;
- },
- onAfterLeave: () => {
- var e;
- (e = this.internalOnAfterLeave) === null ||
- e === void 0 ||
- e.call(this),
- (this.followerEnabled = !1),
- (this.displayed = !1);
- }
- },
- { default: this.renderContentNode }
- )
- : this.renderContentNode()
- }
- );
- }
- }),
- IU = Object.keys(kk),
- DU = {
- focus: ['onFocus', 'onBlur'],
- click: ['onClick'],
- hover: ['onMouseenter', 'onMouseleave'],
- manual: [],
- nested: ['onFocus', 'onBlur', 'onMouseenter', 'onMouseleave', 'onClick']
- };
- function FU(e, t, n) {
- DU[t].forEach(r => {
- e.props ? (e.props = Object.assign({}, e.props)) : (e.props = {});
- const o = e.props[r],
- i = n[r];
- o
- ? (e.props[r] = (...a) => {
- o(...a), i(...a);
- })
- : (e.props[r] = i);
- });
- }
- const Ic = {
- show: { type: Boolean, default: void 0 },
- defaultShow: Boolean,
- showArrow: { type: Boolean, default: !0 },
- trigger: { type: String, default: 'hover' },
- delay: { type: Number, default: 100 },
- duration: { type: Number, default: 100 },
- raw: Boolean,
- placement: { type: String, default: 'top' },
- x: Number,
- y: Number,
- arrowPointToCenter: Boolean,
- disabled: Boolean,
- getDisabled: Function,
- displayDirective: { type: String, default: 'if' },
- arrowStyle: [String, Object],
- flip: { type: Boolean, default: !0 },
- animated: { type: Boolean, default: !0 },
- width: { type: [Number, String], default: void 0 },
- overlap: Boolean,
- keepAliveOnHover: { type: Boolean, default: !0 },
- zIndex: Number,
- to: Yr.propTo,
- scrollable: Boolean,
- contentStyle: [Object, String],
- headerStyle: [Object, String],
- footerStyle: [Object, String],
- onClickoutside: Function,
- 'onUpdate:show': [Function, Array],
- onUpdateShow: [Function, Array],
- internalDeactivateImmediately: Boolean,
- internalSyncTargetWithParent: Boolean,
- internalInheritedEventHandlers: { type: Array, default: () => [] },
- internalTrapFocus: Boolean,
- internalExtraClass: { type: Array, default: () => [] },
- onShow: [Function, Array],
- onHide: [Function, Array],
- arrow: { type: Boolean, default: void 0 },
- minWidth: Number,
- maxWidth: Number
- },
- BU = Object.assign(Object.assign(Object.assign({}, Ke.props), Ic), {
- internalOnAfterLeave: Function,
- internalRenderBody: Function
- }),
- id = ke({
- name: 'Popover',
- inheritAttrs: !1,
- props: BU,
- __popover__: !0,
- setup(e) {
- const t = yi(),
- n = Z(null),
- r = I(() => e.show),
- o = Z(e.defaultShow),
- i = En(r, o),
- a = kt(() => (e.disabled ? !1 : i.value)),
- s = () => {
- if (e.disabled) return !0;
- const { getDisabled: L } = e;
- return !!(L != null && L());
- },
- c = () => (s() ? !1 : i.value),
- d = xs(e, ['arrow', 'showArrow']),
- f = I(() => (e.overlap ? !1 : d.value));
- let v = null;
- const p = Z(null),
- m = Z(null),
- g = kt(() => e.x !== void 0 && e.y !== void 0);
- function w(L) {
- const { 'onUpdate:show': H, onUpdateShow: B, onShow: q, onHide: X } = e;
- (o.value = L),
- H && Me(H, L),
- B && Me(B, L),
- L && q && Me(q, !0),
- L && X && Me(X, !1);
- }
- function x() {
- v && v.syncPosition();
- }
- function y() {
- const { value: L } = p;
- L && (window.clearTimeout(L), (p.value = null));
- }
- function C() {
- const { value: L } = m;
- L && (window.clearTimeout(L), (m.value = null));
- }
- function R() {
- const L = s();
- if (e.trigger === 'focus' && !L) {
- if (c()) return;
- w(!0);
- }
- }
- function S() {
- const L = s();
- if (e.trigger === 'focus' && !L) {
- if (!c()) return;
- w(!1);
- }
- }
- function _() {
- const L = s();
- if (e.trigger === 'hover' && !L) {
- if ((C(), p.value !== null || c())) return;
- const H = () => {
- w(!0), (p.value = null);
- },
- { delay: B } = e;
- B === 0 ? H() : (p.value = window.setTimeout(H, B));
- }
- }
- function P() {
- const L = s();
- if (e.trigger === 'hover' && !L) {
- if ((y(), m.value !== null || !c())) return;
- const H = () => {
- w(!1), (m.value = null);
- },
- { duration: B } = e;
- B === 0 ? H() : (m.value = window.setTimeout(H, B));
- }
- }
- function T() {
- P();
- }
- function E(L) {
- var H;
- c() &&
- (e.trigger === 'click' && (y(), C(), w(!1)),
- (H = e.onClickoutside) === null || H === void 0 || H.call(e, L));
- }
- function z() {
- if (e.trigger === 'click' && !s()) {
- y(), C();
- const L = !c();
- w(L);
- }
- }
- function k(L) {
- e.internalTrapFocus && L.key === 'Escape' && (y(), C(), w(!1));
- }
- function M(L) {
- o.value = L;
- }
- function A() {
- var L;
- return (L = n.value) === null || L === void 0 ? void 0 : L.targetRef;
- }
- function D(L) {
- v = L;
- }
- return (
- Rt('NPopover', {
- getTriggerElement: A,
- handleKeydown: k,
- handleMouseEnter: _,
- handleMouseLeave: P,
- handleClickOutside: E,
- handleMouseMoveOutside: T,
- setBodyInstance: D,
- positionManuallyRef: g,
- isMountedRef: t,
- zIndexRef: Ie(e, 'zIndex'),
- extraClassRef: Ie(e, 'internalExtraClass'),
- internalRenderBodyRef: Ie(e, 'internalRenderBody')
- }),
- Bn(() => {
- i.value && s() && w(!1);
- }),
- {
- binderInstRef: n,
- positionManually: g,
- mergedShowConsideringDisabledProp: a,
- uncontrolledShow: o,
- mergedShowArrow: f,
- getMergedShow: c,
- setShow: M,
- handleClick: z,
- handleMouseEnter: _,
- handleMouseLeave: P,
- handleFocus: R,
- handleBlur: S,
- syncPosition: x
- }
- );
- },
- render() {
- var e;
- const { positionManually: t, $slots: n } = this;
- let r,
- o = !1;
- if (
- !t &&
- (n.activator ? (r = _b(n, 'activator')) : (r = _b(n, 'trigger')), r)
- ) {
- (r = Ao(r)), (r = r.type === ju ? h('span', [r]) : r);
- const i = {
- onClick: this.handleClick,
- onMouseenter: this.handleMouseEnter,
- onMouseleave: this.handleMouseLeave,
- onFocus: this.handleFocus,
- onBlur: this.handleBlur
- };
- if (!((e = r.type) === null || e === void 0) && e.__popover__)
- (o = !0),
- r.props ||
- (r.props = {
- internalSyncTargetWithParent: !0,
- internalInheritedEventHandlers: []
- }),
- (r.props.internalSyncTargetWithParent = !0),
- r.props.internalInheritedEventHandlers
- ? (r.props.internalInheritedEventHandlers = [
- i,
- ...r.props.internalInheritedEventHandlers
- ])
- : (r.props.internalInheritedEventHandlers = [i]);
- else {
- const { internalInheritedEventHandlers: a } = this,
- s = [i, ...a],
- c = {
- onBlur: d => {
- s.forEach(f => {
- f.onBlur(d);
- });
- },
- onFocus: d => {
- s.forEach(f => {
- f.onFocus(d);
- });
- },
- onClick: d => {
- s.forEach(f => {
- f.onClick(d);
- });
- },
- onMouseenter: d => {
- s.forEach(f => {
- f.onMouseenter(d);
- });
- },
- onMouseleave: d => {
- s.forEach(f => {
- f.onMouseleave(d);
- });
- }
- };
- FU(r, a ? 'nested' : t ? 'manual' : this.trigger, c);
- }
- }
- return h(
- Qc,
- {
- ref: 'binderInstRef',
- syncTarget: !o,
- syncTargetWithParent: this.internalSyncTargetWithParent
- },
- {
- default: () => {
- this.mergedShowConsideringDisabledProp;
- const i = this.getMergedShow();
- return [
- this.internalTrapFocus && i
- ? Er(h('div', { style: { position: 'fixed', inset: 0 } }), [
- [qu, { enabled: i, zIndex: this.zIndex }]
- ])
- : null,
- t ? null : h(Jc, null, { default: () => r }),
- h(
- MU,
- fi(
- this.$props,
- IU,
- Object.assign(Object.assign({}, this.$attrs), {
- showArrow: this.mergedShowArrow,
- show: i
- })
- ),
- {
- default: () => {
- var a, s;
- return (s = (a = this.$slots).default) === null ||
- s === void 0
- ? void 0
- : s.call(a);
- },
- header: () => {
- var a, s;
- return (s = (a = this.$slots).header) === null ||
- s === void 0
- ? void 0
- : s.call(a);
- },
- footer: () => {
- var a, s;
- return (s = (a = this.$slots).footer) === null ||
- s === void 0
- ? void 0
- : s.call(a);
- }
- }
- )
- ];
- }
- }
- );
- }
- }),
- LU = {
- closeIconSizeTiny: '12px',
- closeIconSizeSmall: '12px',
- closeIconSizeMedium: '14px',
- closeIconSizeLarge: '14px',
- closeSizeTiny: '16px',
- closeSizeSmall: '16px',
- closeSizeMedium: '18px',
- closeSizeLarge: '18px',
- padding: '0 7px',
- closeMargin: '0 0 0 4px',
- closeMarginRtl: '0 4px 0 0'
- },
- NU = e => {
- const {
- textColor2: t,
- primaryColorHover: n,
- primaryColorPressed: r,
- primaryColor: o,
- infoColor: i,
- successColor: a,
- warningColor: s,
- errorColor: c,
- baseColor: d,
- borderColor: f,
- opacityDisabled: v,
- tagColor: p,
- closeIconColor: m,
- closeIconColorHover: g,
- closeIconColorPressed: w,
- borderRadiusSmall: x,
- fontSizeMini: y,
- fontSizeTiny: C,
- fontSizeSmall: R,
- fontSizeMedium: S,
- heightMini: _,
- heightTiny: P,
- heightSmall: T,
- heightMedium: E,
- closeColorHover: z,
- closeColorPressed: k,
- buttonColor2Hover: M,
- buttonColor2Pressed: A,
- fontWeightStrong: D
- } = e;
- return Object.assign(Object.assign({}, LU), {
- closeBorderRadius: x,
- heightTiny: _,
- heightSmall: P,
- heightMedium: T,
- heightLarge: E,
- borderRadius: x,
- opacityDisabled: v,
- fontSizeTiny: y,
- fontSizeSmall: C,
- fontSizeMedium: R,
- fontSizeLarge: S,
- fontWeightStrong: D,
- textColorCheckable: t,
- textColorHoverCheckable: t,
- textColorPressedCheckable: t,
- textColorChecked: d,
- colorCheckable: '#0000',
- colorHoverCheckable: M,
- colorPressedCheckable: A,
- colorChecked: o,
- colorCheckedHover: n,
- colorCheckedPressed: r,
- border: `1px solid ${f}`,
- textColor: t,
- color: p,
- colorBordered: 'rgb(250, 250, 252)',
- closeIconColor: m,
- closeIconColorHover: g,
- closeIconColorPressed: w,
- closeColorHover: z,
- closeColorPressed: k,
- borderPrimary: `1px solid ${zt(o, { alpha: 0.3 })}`,
- textColorPrimary: o,
- colorPrimary: zt(o, { alpha: 0.12 }),
- colorBorderedPrimary: zt(o, { alpha: 0.1 }),
- closeIconColorPrimary: o,
- closeIconColorHoverPrimary: o,
- closeIconColorPressedPrimary: o,
- closeColorHoverPrimary: zt(o, { alpha: 0.12 }),
- closeColorPressedPrimary: zt(o, { alpha: 0.18 }),
- borderInfo: `1px solid ${zt(i, { alpha: 0.3 })}`,
- textColorInfo: i,
- colorInfo: zt(i, { alpha: 0.12 }),
- colorBorderedInfo: zt(i, { alpha: 0.1 }),
- closeIconColorInfo: i,
- closeIconColorHoverInfo: i,
- closeIconColorPressedInfo: i,
- closeColorHoverInfo: zt(i, { alpha: 0.12 }),
- closeColorPressedInfo: zt(i, { alpha: 0.18 }),
- borderSuccess: `1px solid ${zt(a, { alpha: 0.3 })}`,
- textColorSuccess: a,
- colorSuccess: zt(a, { alpha: 0.12 }),
- colorBorderedSuccess: zt(a, { alpha: 0.1 }),
- closeIconColorSuccess: a,
- closeIconColorHoverSuccess: a,
- closeIconColorPressedSuccess: a,
- closeColorHoverSuccess: zt(a, { alpha: 0.12 }),
- closeColorPressedSuccess: zt(a, { alpha: 0.18 }),
- borderWarning: `1px solid ${zt(s, { alpha: 0.35 })}`,
- textColorWarning: s,
- colorWarning: zt(s, { alpha: 0.15 }),
- colorBorderedWarning: zt(s, { alpha: 0.12 }),
- closeIconColorWarning: s,
- closeIconColorHoverWarning: s,
- closeIconColorPressedWarning: s,
- closeColorHoverWarning: zt(s, { alpha: 0.12 }),
- closeColorPressedWarning: zt(s, { alpha: 0.18 }),
- borderError: `1px solid ${zt(c, { alpha: 0.23 })}`,
- textColorError: c,
- colorError: zt(c, { alpha: 0.1 }),
- colorBorderedError: zt(c, { alpha: 0.08 }),
- closeIconColorError: c,
- closeIconColorHoverError: c,
- closeIconColorPressedError: c,
- closeColorHoverError: zt(c, { alpha: 0.12 }),
- closeColorPressedError: zt(c, { alpha: 0.18 })
- });
- },
- HU = { name: 'Tag', common: Nt, self: NU },
- jU = HU,
- WU = {
- color: Object,
- type: { type: String, default: 'default' },
- round: Boolean,
- size: { type: String, default: 'medium' },
- closable: Boolean,
- disabled: { type: Boolean, default: void 0 }
- },
- UU = O(
- 'tag',
- `
- white-space: nowrap;
- position: relative;
- box-sizing: border-box;
- cursor: default;
- display: inline-flex;
- align-items: center;
- flex-wrap: nowrap;
- padding: var(--n-padding);
- border-radius: var(--n-border-radius);
- color: var(--n-text-color);
- background-color: var(--n-color);
- transition:
- border-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- opacity .3s var(--n-bezier);
- line-height: 1;
- height: var(--n-height);
- font-size: var(--n-font-size);
- `,
- [
- U(
- 'strong',
- `
- font-weight: var(--n-font-weight-strong);
- `
- ),
- V(
- 'border',
- `
- pointer-events: none;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- border-radius: inherit;
- border: var(--n-border);
- transition: border-color .3s var(--n-bezier);
- `
- ),
- V(
- 'icon',
- `
- display: flex;
- margin: 0 4px 0 0;
- color: var(--n-text-color);
- transition: color .3s var(--n-bezier);
- font-size: var(--n-avatar-size-override);
- `
- ),
- V(
- 'avatar',
- `
- display: flex;
- margin: 0 6px 0 0;
- `
- ),
- V(
- 'close',
- `
- margin: var(--n-close-margin);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `
- ),
- U(
- 'round',
- `
- padding: 0 calc(var(--n-height) / 3);
- border-radius: calc(var(--n-height) / 2);
- `,
- [
- V(
- 'icon',
- `
- margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
- `
- ),
- V(
- 'avatar',
- `
- margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
- `
- ),
- U(
- 'closable',
- `
- padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
- `
- )
- ]
- ),
- U('icon, avatar', [
- U(
- 'round',
- `
- padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
- `
- )
- ]),
- U(
- 'disabled',
- `
- cursor: not-allowed !important;
- opacity: var(--n-opacity-disabled);
- `
- ),
- U(
- 'checkable',
- `
- cursor: pointer;
- box-shadow: none;
- color: var(--n-text-color-checkable);
- background-color: var(--n-color-checkable);
- `,
- [
- jt('disabled', [
- F('&:hover', 'background-color: var(--n-color-hover-checkable);', [
- jt('checked', 'color: var(--n-text-color-hover-checkable);')
- ]),
- F(
- '&:active',
- 'background-color: var(--n-color-pressed-checkable);',
- [jt('checked', 'color: var(--n-text-color-pressed-checkable);')]
- )
- ]),
- U(
- 'checked',
- `
- color: var(--n-text-color-checked);
- background-color: var(--n-color-checked);
- `,
- [
- jt('disabled', [
- F('&:hover', 'background-color: var(--n-color-checked-hover);'),
- F(
- '&:active',
- 'background-color: var(--n-color-checked-pressed);'
- )
- ])
- ]
- )
- ]
- )
- ]
- ),
- VU = Object.assign(Object.assign(Object.assign({}, Ke.props), WU), {
- bordered: { type: Boolean, default: void 0 },
- checked: Boolean,
- checkable: Boolean,
- strong: Boolean,
- triggerClickOnClose: Boolean,
- onClose: [Array, Function],
- onMouseenter: Function,
- onMouseleave: Function,
- 'onUpdate:checked': Function,
- onUpdateChecked: Function,
- internalCloseFocusable: { type: Boolean, default: !0 },
- internalCloseIsButtonTag: { type: Boolean, default: !0 },
- onCheckedChange: Function
- }),
- $k = 'n-tag',
- jh = ke({
- name: 'Tag',
- props: VU,
- setup(e) {
- const t = Z(null),
- {
- mergedBorderedRef: n,
- mergedClsPrefixRef: r,
- inlineThemeDisabled: o,
- mergedRtlRef: i
- } = yt(e),
- a = Ke('Tag', '-tag', UU, jU, e, r);
- Rt($k, { roundRef: Ie(e, 'round') });
- function s(m) {
- if (!e.disabled && e.checkable) {
- const {
- checked: g,
- onCheckedChange: w,
- onUpdateChecked: x,
- 'onUpdate:checked': y
- } = e;
- x && x(!g), y && y(!g), w && w(!g);
- }
- }
- function c(m) {
- if ((e.triggerClickOnClose || m.stopPropagation(), !e.disabled)) {
- const { onClose: g } = e;
- g && Me(g, m);
- }
- }
- const d = {
- setTextContent(m) {
- const { value: g } = t;
- g && (g.textContent = m);
- }
- },
- f = cr('Tag', i, r),
- v = I(() => {
- const {
- type: m,
- size: g,
- color: { color: w, textColor: x } = {}
- } = e,
- {
- common: { cubicBezierEaseInOut: y },
- self: {
- padding: C,
- closeMargin: R,
- closeMarginRtl: S,
- borderRadius: _,
- opacityDisabled: P,
- textColorCheckable: T,
- textColorHoverCheckable: E,
- textColorPressedCheckable: z,
- textColorChecked: k,
- colorCheckable: M,
- colorHoverCheckable: A,
- colorPressedCheckable: D,
- colorChecked: L,
- colorCheckedHover: H,
- colorCheckedPressed: B,
- closeBorderRadius: q,
- fontWeightStrong: X,
- [Ee('colorBordered', m)]: te,
- [Ee('closeSize', g)]: G,
- [Ee('closeIconSize', g)]: Q,
- [Ee('fontSize', g)]: re,
- [Ee('height', g)]: se,
- [Ee('color', m)]: pe,
- [Ee('textColor', m)]: ce,
- [Ee('border', m)]: xe,
- [Ee('closeIconColor', m)]: ve,
- [Ee('closeIconColorHover', m)]: be,
- [Ee('closeIconColorPressed', m)]: Ce,
- [Ee('closeColorHover', m)]: ge,
- [Ee('closeColorPressed', m)]: Ae
- }
- } = a.value;
- return {
- '--n-font-weight-strong': X,
- '--n-avatar-size-override': `calc(${se} - 8px)`,
- '--n-bezier': y,
- '--n-border-radius': _,
- '--n-border': xe,
- '--n-close-icon-size': Q,
- '--n-close-color-pressed': Ae,
- '--n-close-color-hover': ge,
- '--n-close-border-radius': q,
- '--n-close-icon-color': ve,
- '--n-close-icon-color-hover': be,
- '--n-close-icon-color-pressed': Ce,
- '--n-close-icon-color-disabled': ve,
- '--n-close-margin': R,
- '--n-close-margin-rtl': S,
- '--n-close-size': G,
- '--n-color': w || (n.value ? te : pe),
- '--n-color-checkable': M,
- '--n-color-checked': L,
- '--n-color-checked-hover': H,
- '--n-color-checked-pressed': B,
- '--n-color-hover-checkable': A,
- '--n-color-pressed-checkable': D,
- '--n-font-size': re,
- '--n-height': se,
- '--n-opacity-disabled': P,
- '--n-padding': C,
- '--n-text-color': x || ce,
- '--n-text-color-checkable': T,
- '--n-text-color-checked': k,
- '--n-text-color-hover-checkable': E,
- '--n-text-color-pressed-checkable': z
- };
- }),
- p = o
- ? Mt(
- 'tag',
- I(() => {
- let m = '';
- const {
- type: g,
- size: w,
- color: { color: x, textColor: y } = {}
- } = e;
- return (
- (m += g[0]),
- (m += w[0]),
- x && (m += `a${zc(x)}`),
- y && (m += `b${zc(y)}`),
- n.value && (m += 'c'),
- m
- );
- }),
- v,
- e
- )
- : void 0;
- return Object.assign(Object.assign({}, d), {
- rtlEnabled: f,
- mergedClsPrefix: r,
- contentRef: t,
- mergedBordered: n,
- handleClick: s,
- handleCloseClick: c,
- cssVars: o ? void 0 : v,
- themeClass: p == null ? void 0 : p.themeClass,
- onRender: p == null ? void 0 : p.onRender
- });
- },
- render() {
- var e, t;
- const {
- mergedClsPrefix: n,
- rtlEnabled: r,
- closable: o,
- color: { borderColor: i } = {},
- round: a,
- onRender: s,
- $slots: c
- } = this;
- s == null || s();
- const d = cn(
- c.avatar,
- v => v && h('div', { class: `${n}-tag__avatar` }, v)
- ),
- f = cn(c.icon, v => v && h('div', { class: `${n}-tag__icon` }, v));
- return h(
- 'div',
- {
- class: [
- `${n}-tag`,
- this.themeClass,
- {
- [`${n}-tag--rtl`]: r,
- [`${n}-tag--strong`]: this.strong,
- [`${n}-tag--disabled`]: this.disabled,
- [`${n}-tag--checkable`]: this.checkable,
- [`${n}-tag--checked`]: this.checkable && this.checked,
- [`${n}-tag--round`]: a,
- [`${n}-tag--avatar`]: d,
- [`${n}-tag--icon`]: f,
- [`${n}-tag--closable`]: o
- }
- ],
- style: this.cssVars,
- onClick: this.handleClick,
- onMouseenter: this.onMouseenter,
- onMouseleave: this.onMouseleave
- },
- f || d,
- h(
- 'span',
- { class: `${n}-tag__content`, ref: 'contentRef' },
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e)
- ),
- !this.checkable && o
- ? h(Sl, {
- clsPrefix: n,
- class: `${n}-tag__close`,
- disabled: this.disabled,
- onClick: this.handleCloseClick,
- focusable: this.internalCloseFocusable,
- round: a,
- isButtonTag: this.internalCloseIsButtonTag,
- absolute: !0
- })
- : null,
- !this.checkable && this.mergedBordered
- ? h('div', { class: `${n}-tag__border`, style: { borderColor: i } })
- : null
- );
- }
- }),
- KU = O(
- 'base-clear',
- `
- flex-shrink: 0;
- height: 1em;
- width: 1em;
- position: relative;
- `,
- [
- F('>', [
- V(
- 'clear',
- `
- font-size: var(--n-clear-size);
- height: 1em;
- width: 1em;
- cursor: pointer;
- color: var(--n-clear-color);
- transition: color .3s var(--n-bezier);
- display: flex;
- `,
- [
- F(
- '&:hover',
- `
- color: var(--n-clear-color-hover)!important;
- `
- ),
- F(
- '&:active',
- `
- color: var(--n-clear-color-pressed)!important;
- `
- )
- ]
- ),
- V(
- 'placeholder',
- `
- display: flex;
- `
- ),
- V(
- 'clear, placeholder',
- `
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- `,
- [
- br({
- originalTransform: 'translateX(-50%) translateY(-50%)',
- left: '50%',
- top: '50%'
- })
- ]
- )
- ])
- ]
- ),
- Vb = ke({
- name: 'BaseClear',
- props: {
- clsPrefix: { type: String, required: !0 },
- show: Boolean,
- onClear: Function
- },
- setup(e) {
- return (
- $a('-base-clear', KU, Ie(e, 'clsPrefix')),
- {
- handleMouseDown(t) {
- t.preventDefault();
- }
- }
- );
- },
- render() {
- const { clsPrefix: e } = this;
- return h(
- 'div',
- { class: `${e}-base-clear` },
- h(Ji, null, {
- default: () => {
- var t, n;
- return this.show
- ? h(
- 'div',
- {
- key: 'dismiss',
- class: `${e}-base-clear__clear`,
- onClick: this.onClear,
- onMousedown: this.handleMouseDown,
- 'data-clear': !0
- },
- Kt(this.$slots.icon, () => [
- h(At, { clsPrefix: e }, { default: () => h(OW, null) })
- ])
- )
- : h(
- 'div',
- { key: 'icon', class: `${e}-base-clear__placeholder` },
- (n = (t = this.$slots).placeholder) === null || n === void 0
- ? void 0
- : n.call(t)
- );
- }
- })
- );
- }
- }),
- Ok = ke({
- name: 'InternalSelectionSuffix',
- props: {
- clsPrefix: { type: String, required: !0 },
- showArrow: { type: Boolean, default: void 0 },
- showClear: { type: Boolean, default: void 0 },
- loading: { type: Boolean, default: !1 },
- onClear: Function
- },
- setup(e, { slots: t }) {
- return () => {
- const { clsPrefix: n } = e;
- return h(
- Oa,
- {
- clsPrefix: n,
- class: `${n}-base-suffix`,
- strokeWidth: 24,
- scale: 0.85,
- show: e.loading
- },
- {
- default: () =>
- e.showArrow
- ? h(
- Vb,
- { clsPrefix: n, show: e.showClear, onClear: e.onClear },
- {
- placeholder: () =>
- h(
- At,
- { clsPrefix: n, class: `${n}-base-suffix__arrow` },
- { default: () => Kt(t.default, () => [h(yk, null)]) }
- )
- }
- )
- : null
- }
- );
- };
- }
- }),
- qU = {
- paddingSingle: '0 26px 0 12px',
- paddingMultiple: '3px 26px 0 12px',
- clearSize: '16px',
- arrowSize: '16px'
- },
- YU = e => {
- const {
- borderRadius: t,
- textColor2: n,
- textColorDisabled: r,
- inputColor: o,
- inputColorDisabled: i,
- primaryColor: a,
- primaryColorHover: s,
- warningColor: c,
- warningColorHover: d,
- errorColor: f,
- errorColorHover: v,
- borderColor: p,
- iconColor: m,
- iconColorDisabled: g,
- clearColor: w,
- clearColorHover: x,
- clearColorPressed: y,
- placeholderColor: C,
- placeholderColorDisabled: R,
- fontSizeTiny: S,
- fontSizeSmall: _,
- fontSizeMedium: P,
- fontSizeLarge: T,
- heightTiny: E,
- heightSmall: z,
- heightMedium: k,
- heightLarge: M
- } = e;
- return Object.assign(Object.assign({}, qU), {
- fontSizeTiny: S,
- fontSizeSmall: _,
- fontSizeMedium: P,
- fontSizeLarge: T,
- heightTiny: E,
- heightSmall: z,
- heightMedium: k,
- heightLarge: M,
- borderRadius: t,
- textColor: n,
- textColorDisabled: r,
- placeholderColor: C,
- placeholderColorDisabled: R,
- color: o,
- colorDisabled: i,
- colorActive: o,
- border: `1px solid ${p}`,
- borderHover: `1px solid ${s}`,
- borderActive: `1px solid ${a}`,
- borderFocus: `1px solid ${s}`,
- boxShadowHover: 'none',
- boxShadowActive: `0 0 0 2px ${zt(a, { alpha: 0.2 })}`,
- boxShadowFocus: `0 0 0 2px ${zt(a, { alpha: 0.2 })}`,
- caretColor: a,
- arrowColor: m,
- arrowColorDisabled: g,
- loadingColor: a,
- borderWarning: `1px solid ${c}`,
- borderHoverWarning: `1px solid ${d}`,
- borderActiveWarning: `1px solid ${c}`,
- borderFocusWarning: `1px solid ${d}`,
- boxShadowHoverWarning: 'none',
- boxShadowActiveWarning: `0 0 0 2px ${zt(c, { alpha: 0.2 })}`,
- boxShadowFocusWarning: `0 0 0 2px ${zt(c, { alpha: 0.2 })}`,
- colorActiveWarning: o,
- caretColorWarning: c,
- borderError: `1px solid ${f}`,
- borderHoverError: `1px solid ${v}`,
- borderActiveError: `1px solid ${f}`,
- borderFocusError: `1px solid ${v}`,
- boxShadowHoverError: 'none',
- boxShadowActiveError: `0 0 0 2px ${zt(f, { alpha: 0.2 })}`,
- boxShadowFocusError: `0 0 0 2px ${zt(f, { alpha: 0.2 })}`,
- colorActiveError: o,
- caretColorError: f,
- clearColor: w,
- clearColorHover: x,
- clearColorPressed: y
- });
- },
- GU = {
- name: 'InternalSelection',
- common: Nt,
- peers: { Popover: od },
- self: YU
- },
- zk = GU,
- XU = F([
- O(
- 'base-selection',
- `
- position: relative;
- z-index: auto;
- box-shadow: none;
- width: 100%;
- max-width: 100%;
- display: inline-block;
- vertical-align: bottom;
- border-radius: var(--n-border-radius);
- min-height: var(--n-height);
- line-height: 1.5;
- font-size: var(--n-font-size);
- `,
- [
- O(
- 'base-loading',
- `
- color: var(--n-loading-color);
- `
- ),
- O('base-selection-tags', 'min-height: var(--n-height);'),
- V(
- 'border, state-border',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- pointer-events: none;
- border: var(--n-border);
- border-radius: inherit;
- transition:
- box-shadow .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `
- ),
- V(
- 'state-border',
- `
- z-index: 1;
- border-color: #0000;
- `
- ),
- O(
- 'base-suffix',
- `
- cursor: pointer;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- right: 10px;
- `,
- [
- V(
- 'arrow',
- `
- font-size: var(--n-arrow-size);
- color: var(--n-arrow-color);
- transition: color .3s var(--n-bezier);
- `
- )
- ]
- ),
- O(
- 'base-selection-overlay',
- `
- display: flex;
- align-items: center;
- white-space: nowrap;
- pointer-events: none;
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- padding: var(--n-padding-single);
- transition: color .3s var(--n-bezier);
- `,
- [
- V(
- 'wrapper',
- `
- flex-basis: 0;
- flex-grow: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- `
- )
- ]
- ),
- O(
- 'base-selection-placeholder',
- `
- color: var(--n-placeholder-color);
- `,
- [
- V(
- 'inner',
- `
- max-width: 100%;
- overflow: hidden;
- `
- )
- ]
- ),
- O(
- 'base-selection-tags',
- `
- cursor: pointer;
- outline: none;
- box-sizing: border-box;
- position: relative;
- z-index: auto;
- display: flex;
- padding: var(--n-padding-multiple);
- flex-wrap: wrap;
- align-items: center;
- width: 100%;
- vertical-align: bottom;
- background-color: var(--n-color);
- border-radius: inherit;
- transition:
- color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `
- ),
- O(
- 'base-selection-label',
- `
- height: var(--n-height);
- display: inline-flex;
- width: 100%;
- vertical-align: bottom;
- cursor: pointer;
- outline: none;
- z-index: auto;
- box-sizing: border-box;
- position: relative;
- transition:
- color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- border-radius: inherit;
- background-color: var(--n-color);
- align-items: center;
- `,
- [
- O(
- 'base-selection-input',
- `
- font-size: inherit;
- line-height: inherit;
- outline: none;
- cursor: pointer;
- box-sizing: border-box;
- border:none;
- width: 100%;
- padding: var(--n-padding-single);
- background-color: #0000;
- color: var(--n-text-color);
- transition: color .3s var(--n-bezier);
- caret-color: var(--n-caret-color);
- `,
- [
- V(
- 'content',
- `
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- `
- )
- ]
- ),
- V(
- 'render-label',
- `
- color: var(--n-text-color);
- `
- )
- ]
- ),
- jt('disabled', [
- F('&:hover', [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-hover);
- border: var(--n-border-hover);
- `
- )
- ]),
- U('focus', [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-focus);
- border: var(--n-border-focus);
- `
- )
- ]),
- U('active', [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-active);
- border: var(--n-border-active);
- `
- ),
- O(
- 'base-selection-label',
- 'background-color: var(--n-color-active);'
- ),
- O('base-selection-tags', 'background-color: var(--n-color-active);')
- ])
- ]),
- U('disabled', 'cursor: not-allowed;', [
- V(
- 'arrow',
- `
- color: var(--n-arrow-color-disabled);
- `
- ),
- O(
- 'base-selection-label',
- `
- cursor: not-allowed;
- background-color: var(--n-color-disabled);
- `,
- [
- O(
- 'base-selection-input',
- `
- cursor: not-allowed;
- color: var(--n-text-color-disabled);
- `
- ),
- V(
- 'render-label',
- `
- color: var(--n-text-color-disabled);
- `
- )
- ]
- ),
- O(
- 'base-selection-tags',
- `
- cursor: not-allowed;
- background-color: var(--n-color-disabled);
- `
- ),
- O(
- 'base-selection-placeholder',
- `
- cursor: not-allowed;
- color: var(--n-placeholder-color-disabled);
- `
- )
- ]),
- O(
- 'base-selection-input-tag',
- `
- height: calc(var(--n-height) - 6px);
- line-height: calc(var(--n-height) - 6px);
- outline: none;
- display: none;
- position: relative;
- margin-bottom: 3px;
- max-width: 100%;
- vertical-align: bottom;
- `,
- [
- V(
- 'input',
- `
- font-size: inherit;
- font-family: inherit;
- min-width: 1px;
- padding: 0;
- background-color: #0000;
- outline: none;
- border: none;
- max-width: 100%;
- overflow: hidden;
- width: 1em;
- line-height: inherit;
- cursor: pointer;
- color: var(--n-text-color);
- caret-color: var(--n-caret-color);
- `
- ),
- V(
- 'mirror',
- `
- position: absolute;
- left: 0;
- top: 0;
- white-space: pre;
- visibility: hidden;
- user-select: none;
- -webkit-user-select: none;
- opacity: 0;
- `
- )
- ]
- ),
- ['warning', 'error'].map(e =>
- U(`${e}-status`, [
- V('state-border', `border: var(--n-border-${e});`),
- jt('disabled', [
- F('&:hover', [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-hover-${e});
- border: var(--n-border-hover-${e});
- `
- )
- ]),
- U('active', [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-active-${e});
- border: var(--n-border-active-${e});
- `
- ),
- O(
- 'base-selection-label',
- `background-color: var(--n-color-active-${e});`
- ),
- O(
- 'base-selection-tags',
- `background-color: var(--n-color-active-${e});`
- )
- ]),
- U('focus', [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-focus-${e});
- border: var(--n-border-focus-${e});
- `
- )
- ])
- ])
- ])
- )
- ]
- ),
- O(
- 'base-selection-popover',
- `
- margin-bottom: -3px;
- display: flex;
- flex-wrap: wrap;
- margin-right: -8px;
- `
- ),
- O(
- 'base-selection-tag-wrapper',
- `
- max-width: 100%;
- display: inline-flex;
- padding: 0 7px 3px 0;
- `,
- [
- F('&:last-child', 'padding-right: 0;'),
- O(
- 'tag',
- `
- font-size: 14px;
- max-width: 100%;
- `,
- [
- V(
- 'content',
- `
- line-height: 1.25;
- text-overflow: ellipsis;
- overflow: hidden;
- `
- )
- ]
- )
- ]
- )
- ]),
- ZU = ke({
- name: 'InternalSelection',
- props: Object.assign(Object.assign({}, Ke.props), {
- clsPrefix: { type: String, required: !0 },
- bordered: { type: Boolean, default: void 0 },
- active: Boolean,
- pattern: { type: String, default: '' },
- placeholder: String,
- selectedOption: { type: Object, default: null },
- selectedOptions: { type: Array, default: null },
- labelField: { type: String, default: 'label' },
- valueField: { type: String, default: 'value' },
- multiple: Boolean,
- filterable: Boolean,
- clearable: Boolean,
- disabled: Boolean,
- size: { type: String, default: 'medium' },
- loading: Boolean,
- autofocus: Boolean,
- showArrow: { type: Boolean, default: !0 },
- inputProps: Object,
- focused: Boolean,
- renderTag: Function,
- onKeydown: Function,
- onClick: Function,
- onBlur: Function,
- onFocus: Function,
- onDeleteOption: Function,
- maxTagCount: [String, Number],
- onClear: Function,
- onPatternInput: Function,
- onPatternFocus: Function,
- onPatternBlur: Function,
- renderLabel: Function,
- status: String,
- inlineThemeDisabled: Boolean,
- ignoreComposition: { type: Boolean, default: !0 },
- onResize: Function
- }),
- setup(e) {
- const t = Z(null),
- n = Z(null),
- r = Z(null),
- o = Z(null),
- i = Z(null),
- a = Z(null),
- s = Z(null),
- c = Z(null),
- d = Z(null),
- f = Z(null),
- v = Z(!1),
- p = Z(!1),
- m = Z(!1),
- g = Ke(
- 'InternalSelection',
- '-internal-selection',
- XU,
- zk,
- e,
- Ie(e, 'clsPrefix')
- ),
- w = I(() => e.clearable && !e.disabled && (m.value || e.active)),
- x = I(() =>
- e.selectedOption
- ? e.renderTag
- ? e.renderTag({ option: e.selectedOption, handleClose: () => {} })
- : e.renderLabel
- ? e.renderLabel(e.selectedOption, !0)
- : _n(e.selectedOption[e.labelField], e.selectedOption, !0)
- : e.placeholder
- ),
- y = I(() => {
- const le = e.selectedOption;
- if (le) return le[e.labelField];
- }),
- C = I(() =>
- e.multiple
- ? !!(Array.isArray(e.selectedOptions) && e.selectedOptions.length)
- : e.selectedOption !== null
- );
- function R() {
- var le;
- const { value: Re } = t;
- if (Re) {
- const { value: Ne } = n;
- Ne &&
- ((Ne.style.width = `${Re.offsetWidth}px`),
- e.maxTagCount !== 'responsive' &&
- ((le = d.value) === null || le === void 0 || le.sync()));
- }
- }
- function S() {
- const { value: le } = f;
- le && (le.style.display = 'none');
- }
- function _() {
- const { value: le } = f;
- le && (le.style.display = 'inline-block');
- }
- $t(Ie(e, 'active'), le => {
- le || S();
- }),
- $t(Ie(e, 'pattern'), () => {
- e.multiple && mn(R);
- });
- function P(le) {
- const { onFocus: Re } = e;
- Re && Re(le);
- }
- function T(le) {
- const { onBlur: Re } = e;
- Re && Re(le);
- }
- function E(le) {
- const { onDeleteOption: Re } = e;
- Re && Re(le);
- }
- function z(le) {
- const { onClear: Re } = e;
- Re && Re(le);
- }
- function k(le) {
- const { onPatternInput: Re } = e;
- Re && Re(le);
- }
- function M(le) {
- var Re;
- (!le.relatedTarget ||
- !(
- !((Re = r.value) === null || Re === void 0) &&
- Re.contains(le.relatedTarget)
- )) &&
- P(le);
- }
- function A(le) {
- var Re;
- (!((Re = r.value) === null || Re === void 0) &&
- Re.contains(le.relatedTarget)) ||
- T(le);
- }
- function D(le) {
- z(le);
- }
- function L() {
- m.value = !0;
- }
- function H() {
- m.value = !1;
- }
- function B(le) {
- !e.active ||
- !e.filterable ||
- (le.target !== n.value && le.preventDefault());
- }
- function q(le) {
- E(le);
- }
- function X(le) {
- if (le.key === 'Backspace' && !te.value && !e.pattern.length) {
- const { selectedOptions: Re } = e;
- Re != null && Re.length && q(Re[Re.length - 1]);
- }
- }
- const te = Z(!1);
- let G = null;
- function Q(le) {
- const { value: Re } = t;
- if (Re) {
- const Ne = le.target.value;
- (Re.textContent = Ne), R();
- }
- e.ignoreComposition && te.value ? (G = le) : k(le);
- }
- function re() {
- te.value = !0;
- }
- function se() {
- (te.value = !1), e.ignoreComposition && k(G), (G = null);
- }
- function pe(le) {
- var Re;
- (p.value = !0),
- (Re = e.onPatternFocus) === null || Re === void 0 || Re.call(e, le);
- }
- function ce(le) {
- var Re;
- (p.value = !1),
- (Re = e.onPatternBlur) === null || Re === void 0 || Re.call(e, le);
- }
- function xe() {
- var le, Re;
- if (e.filterable)
- (p.value = !1),
- (le = a.value) === null || le === void 0 || le.blur(),
- (Re = n.value) === null || Re === void 0 || Re.blur();
- else if (e.multiple) {
- const { value: Ne } = o;
- Ne == null || Ne.blur();
- } else {
- const { value: Ne } = i;
- Ne == null || Ne.blur();
- }
- }
- function ve() {
- var le, Re, Ne;
- e.filterable
- ? ((p.value = !1),
- (le = a.value) === null || le === void 0 || le.focus())
- : e.multiple
- ? (Re = o.value) === null || Re === void 0 || Re.focus()
- : (Ne = i.value) === null || Ne === void 0 || Ne.focus();
- }
- function be() {
- const { value: le } = n;
- le && (_(), le.focus());
- }
- function Ce() {
- const { value: le } = n;
- le && le.blur();
- }
- function ge(le) {
- const { value: Re } = s;
- Re && Re.setTextContent(`+${le}`);
- }
- function Ae() {
- const { value: le } = c;
- return le;
- }
- function j() {
- return n.value;
- }
- let ee = null;
- function ne() {
- ee !== null && window.clearTimeout(ee);
- }
- function fe() {
- e.disabled ||
- e.active ||
- (ne(),
- (ee = window.setTimeout(() => {
- C.value && (v.value = !0);
- }, 100)));
- }
- function ie() {
- ne();
- }
- function W(le) {
- le || (ne(), (v.value = !1));
- }
- $t(C, le => {
- le || (v.value = !1);
- }),
- Hn(() => {
- Bn(() => {
- const le = a.value;
- le && (le.tabIndex = e.disabled || p.value ? -1 : 0);
- });
- }),
- sP(r, e.onResize);
- const { inlineThemeDisabled: ae } = e,
- he = I(() => {
- const { size: le } = e,
- {
- common: { cubicBezierEaseInOut: Re },
- self: {
- borderRadius: Ne,
- color: Ge,
- placeholderColor: it,
- textColor: dt,
- paddingSingle: xt,
- paddingMultiple: De,
- caretColor: ut,
- colorDisabled: wt,
- textColorDisabled: Lt,
- placeholderColorDisabled: ot,
- colorActive: ct,
- boxShadowFocus: Xe,
- boxShadowActive: Qe,
- boxShadowHover: oe,
- border: ze,
- borderFocus: We,
- borderHover: lt,
- borderActive: st,
- arrowColor: me,
- arrowColorDisabled: He,
- loadingColor: tt,
- colorActiveWarning: pt,
- boxShadowFocusWarning: Pe,
- boxShadowActiveWarning: Ve,
- boxShadowHoverWarning: nt,
- borderWarning: Ot,
- borderFocusWarning: $n,
- borderHoverWarning: jn,
- borderActiveWarning: Zt,
- colorActiveError: Se,
- boxShadowFocusError: je,
- boxShadowActiveError: Ct,
- boxShadowHoverError: qt,
- borderError: we,
- borderFocusError: Fe,
- borderHoverError: rt,
- borderActiveError: ft,
- clearColor: gt,
- clearColorHover: bn,
- clearColorPressed: ln,
- clearSize: $e,
- arrowSize: Je,
- [Ee('height', le)]: vt,
- [Ee('fontSize', le)]: Wt
- }
- } = g.value;
- return {
- '--n-bezier': Re,
- '--n-border': ze,
- '--n-border-active': st,
- '--n-border-focus': We,
- '--n-border-hover': lt,
- '--n-border-radius': Ne,
- '--n-box-shadow-active': Qe,
- '--n-box-shadow-focus': Xe,
- '--n-box-shadow-hover': oe,
- '--n-caret-color': ut,
- '--n-color': Ge,
- '--n-color-active': ct,
- '--n-color-disabled': wt,
- '--n-font-size': Wt,
- '--n-height': vt,
- '--n-padding-single': xt,
- '--n-padding-multiple': De,
- '--n-placeholder-color': it,
- '--n-placeholder-color-disabled': ot,
- '--n-text-color': dt,
- '--n-text-color-disabled': Lt,
- '--n-arrow-color': me,
- '--n-arrow-color-disabled': He,
- '--n-loading-color': tt,
- '--n-color-active-warning': pt,
- '--n-box-shadow-focus-warning': Pe,
- '--n-box-shadow-active-warning': Ve,
- '--n-box-shadow-hover-warning': nt,
- '--n-border-warning': Ot,
- '--n-border-focus-warning': $n,
- '--n-border-hover-warning': jn,
- '--n-border-active-warning': Zt,
- '--n-color-active-error': Se,
- '--n-box-shadow-focus-error': je,
- '--n-box-shadow-active-error': Ct,
- '--n-box-shadow-hover-error': qt,
- '--n-border-error': we,
- '--n-border-focus-error': Fe,
- '--n-border-hover-error': rt,
- '--n-border-active-error': ft,
- '--n-clear-size': $e,
- '--n-clear-color': gt,
- '--n-clear-color-hover': bn,
- '--n-clear-color-pressed': ln,
- '--n-arrow-size': Je
- };
- }),
- _e = ae
- ? Mt(
- 'internal-selection',
- I(() => e.size[0]),
- he,
- e
- )
- : void 0;
- return {
- mergedTheme: g,
- mergedClearable: w,
- patternInputFocused: p,
- filterablePlaceholder: x,
- label: y,
- selected: C,
- showTagsPanel: v,
- isComposing: te,
- counterRef: s,
- counterWrapperRef: c,
- patternInputMirrorRef: t,
- patternInputRef: n,
- selfRef: r,
- multipleElRef: o,
- singleElRef: i,
- patternInputWrapperRef: a,
- overflowRef: d,
- inputTagElRef: f,
- handleMouseDown: B,
- handleFocusin: M,
- handleClear: D,
- handleMouseEnter: L,
- handleMouseLeave: H,
- handleDeleteOption: q,
- handlePatternKeyDown: X,
- handlePatternInputInput: Q,
- handlePatternInputBlur: ce,
- handlePatternInputFocus: pe,
- handleMouseEnterCounter: fe,
- handleMouseLeaveCounter: ie,
- handleFocusout: A,
- handleCompositionEnd: se,
- handleCompositionStart: re,
- onPopoverUpdateShow: W,
- focus: ve,
- focusInput: be,
- blur: xe,
- blurInput: Ce,
- updateCounter: ge,
- getCounter: Ae,
- getTail: j,
- renderLabel: e.renderLabel,
- cssVars: ae ? void 0 : he,
- themeClass: _e == null ? void 0 : _e.themeClass,
- onRender: _e == null ? void 0 : _e.onRender
- };
- },
- render() {
- const {
- status: e,
- multiple: t,
- size: n,
- disabled: r,
- filterable: o,
- maxTagCount: i,
- bordered: a,
- clsPrefix: s,
- onRender: c,
- renderTag: d,
- renderLabel: f
- } = this;
- c == null || c();
- const v = i === 'responsive',
- p = typeof i == 'number',
- m = v || p,
- g = h(Rb, null, {
- default: () =>
- h(
- Ok,
- {
- clsPrefix: s,
- loading: this.loading,
- showArrow: this.showArrow,
- showClear: this.mergedClearable && this.selected,
- onClear: this.handleClear
- },
- {
- default: () => {
- var x, y;
- return (y = (x = this.$slots).arrow) === null || y === void 0
- ? void 0
- : y.call(x);
- }
- }
- )
- });
- let w;
- if (t) {
- const { labelField: x } = this,
- y = A =>
- h(
- 'div',
- { class: `${s}-base-selection-tag-wrapper`, key: A.value },
- d
- ? d({
- option: A,
- handleClose: () => {
- this.handleDeleteOption(A);
- }
- })
- : h(
- jh,
- {
- size: n,
- closable: !A.disabled,
- disabled: r,
- onClose: () => {
- this.handleDeleteOption(A);
- },
- internalCloseIsButtonTag: !1,
- internalCloseFocusable: !1
- },
- { default: () => (f ? f(A, !0) : _n(A[x], A, !0)) }
- )
- ),
- C = () =>
- (p ? this.selectedOptions.slice(0, i) : this.selectedOptions).map(
- y
- ),
- R = o
- ? h(
- 'div',
- {
- class: `${s}-base-selection-input-tag`,
- ref: 'inputTagElRef',
- key: '__input-tag__'
- },
- h(
- 'input',
- Object.assign({}, this.inputProps, {
- ref: 'patternInputRef',
- tabindex: -1,
- disabled: r,
- value: this.pattern,
- autofocus: this.autofocus,
- class: `${s}-base-selection-input-tag__input`,
- onBlur: this.handlePatternInputBlur,
- onFocus: this.handlePatternInputFocus,
- onKeydown: this.handlePatternKeyDown,
- onInput: this.handlePatternInputInput,
- onCompositionstart: this.handleCompositionStart,
- onCompositionend: this.handleCompositionEnd
- })
- ),
- h(
- 'span',
- {
- ref: 'patternInputMirrorRef',
- class: `${s}-base-selection-input-tag__mirror`
- },
- this.pattern
- )
- )
- : null,
- S = v
- ? () =>
- h(
- 'div',
- {
- class: `${s}-base-selection-tag-wrapper`,
- ref: 'counterWrapperRef'
- },
- h(jh, {
- size: n,
- ref: 'counterRef',
- onMouseenter: this.handleMouseEnterCounter,
- onMouseleave: this.handleMouseLeaveCounter,
- disabled: r
- })
- )
- : void 0;
- let _;
- if (p) {
- const A = this.selectedOptions.length - i;
- A > 0 &&
- (_ = h(
- 'div',
- { class: `${s}-base-selection-tag-wrapper`, key: '__counter__' },
- h(
- jh,
- {
- size: n,
- ref: 'counterRef',
- onMouseenter: this.handleMouseEnterCounter,
- disabled: r
- },
- { default: () => `+${A}` }
- )
- ));
- }
- const P = v
- ? o
- ? h(
- _C,
- {
- ref: 'overflowRef',
- updateCounter: this.updateCounter,
- getCounter: this.getCounter,
- getTail: this.getTail,
- style: {
- width: '100%',
- display: 'flex',
- overflow: 'hidden'
- }
- },
- { default: C, counter: S, tail: () => R }
- )
- : h(
- _C,
- {
- ref: 'overflowRef',
- updateCounter: this.updateCounter,
- getCounter: this.getCounter,
- style: {
- width: '100%',
- display: 'flex',
- overflow: 'hidden'
- }
- },
- { default: C, counter: S }
- )
- : p
- ? C().concat(_)
- : C(),
- T = m
- ? () =>
- h(
- 'div',
- { class: `${s}-base-selection-popover` },
- v ? C() : this.selectedOptions.map(y)
- )
- : void 0,
- E = m
- ? {
- show: this.showTagsPanel,
- trigger: 'hover',
- overlap: !0,
- placement: 'top',
- width: 'trigger',
- onUpdateShow: this.onPopoverUpdateShow,
- theme: this.mergedTheme.peers.Popover,
- themeOverrides: this.mergedTheme.peerOverrides.Popover
- }
- : null,
- k = (
- this.selected
- ? !1
- : this.active
- ? !this.pattern && !this.isComposing
- : !0
- )
- ? h(
- 'div',
- {
- class: `${s}-base-selection-placeholder ${s}-base-selection-overlay`
- },
- h(
- 'div',
- { class: `${s}-base-selection-placeholder__inner` },
- this.placeholder
- )
- )
- : null,
- M = o
- ? h(
- 'div',
- {
- ref: 'patternInputWrapperRef',
- class: `${s}-base-selection-tags`
- },
- P,
- v ? null : R,
- g
- )
- : h(
- 'div',
- {
- ref: 'multipleElRef',
- class: `${s}-base-selection-tags`,
- tabindex: r ? void 0 : 0
- },
- P,
- g
- );
- w = h(
- on,
- null,
- m
- ? h(
- id,
- Object.assign({}, E, {
- scrollable: !0,
- style: 'max-height: calc(var(--v-target-height) * 6.6);'
- }),
- { trigger: () => M, default: T }
- )
- : M,
- k
- );
- } else if (o) {
- const x = this.pattern || this.isComposing,
- y = this.active ? !x : !this.selected,
- C = this.active ? !1 : this.selected;
- w = h(
- 'div',
- { ref: 'patternInputWrapperRef', class: `${s}-base-selection-label` },
- h(
- 'input',
- Object.assign({}, this.inputProps, {
- ref: 'patternInputRef',
- class: `${s}-base-selection-input`,
- value: this.active ? this.pattern : '',
- placeholder: '',
- readonly: r,
- disabled: r,
- tabindex: -1,
- autofocus: this.autofocus,
- onFocus: this.handlePatternInputFocus,
- onBlur: this.handlePatternInputBlur,
- onInput: this.handlePatternInputInput,
- onCompositionstart: this.handleCompositionStart,
- onCompositionend: this.handleCompositionEnd
- })
- ),
- C
- ? h(
- 'div',
- {
- class: `${s}-base-selection-label__render-label ${s}-base-selection-overlay`,
- key: 'input'
- },
- h(
- 'div',
- { class: `${s}-base-selection-overlay__wrapper` },
- d
- ? d({ option: this.selectedOption, handleClose: () => {} })
- : f
- ? f(this.selectedOption, !0)
- : _n(this.label, this.selectedOption, !0)
- )
- )
- : null,
- y
- ? h(
- 'div',
- {
- class: `${s}-base-selection-placeholder ${s}-base-selection-overlay`,
- key: 'placeholder'
- },
- h(
- 'div',
- { class: `${s}-base-selection-overlay__wrapper` },
- this.filterablePlaceholder
- )
- )
- : null,
- g
- );
- } else
- w = h(
- 'div',
- {
- ref: 'singleElRef',
- class: `${s}-base-selection-label`,
- tabindex: this.disabled ? void 0 : 0
- },
- this.label !== void 0
- ? h(
- 'div',
- {
- class: `${s}-base-selection-input`,
- title: $R(this.label),
- key: 'input'
- },
- h(
- 'div',
- { class: `${s}-base-selection-input__content` },
- d
- ? d({ option: this.selectedOption, handleClose: () => {} })
- : f
- ? f(this.selectedOption, !0)
- : _n(this.label, this.selectedOption, !0)
- )
- )
- : h(
- 'div',
- {
- class: `${s}-base-selection-placeholder ${s}-base-selection-overlay`,
- key: 'placeholder'
- },
- h(
- 'div',
- { class: `${s}-base-selection-placeholder__inner` },
- this.placeholder
- )
- ),
- g
- );
- return h(
- 'div',
- {
- ref: 'selfRef',
- class: [
- `${s}-base-selection`,
- this.themeClass,
- e && `${s}-base-selection--${e}-status`,
- {
- [`${s}-base-selection--active`]: this.active,
- [`${s}-base-selection--selected`]:
- this.selected || (this.active && this.pattern),
- [`${s}-base-selection--disabled`]: this.disabled,
- [`${s}-base-selection--multiple`]: this.multiple,
- [`${s}-base-selection--focus`]: this.focused
- }
- ],
- style: this.cssVars,
- onClick: this.onClick,
- onMouseenter: this.handleMouseEnter,
- onMouseleave: this.handleMouseLeave,
- onKeydown: this.onKeydown,
- onFocusin: this.handleFocusin,
- onFocusout: this.handleFocusout,
- onMousedown: this.handleMouseDown
- },
- w,
- a ? h('div', { class: `${s}-base-selection__border` }) : null,
- a ? h('div', { class: `${s}-base-selection__state-border` }) : null
- );
- }
- }),
- TS = ke({
- name: 'SlotMachineNumber',
- props: {
- clsPrefix: { type: String, required: !0 },
- value: { type: [Number, String], required: !0 },
- oldOriginalNumber: { type: Number, default: void 0 },
- newOriginalNumber: { type: Number, default: void 0 }
- },
- setup(e) {
- const t = Z(null),
- n = Z(e.value),
- r = Z(e.value),
- o = Z('up'),
- i = Z(!1),
- a = I(() =>
- i.value
- ? `${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`
- : null
- ),
- s = I(() =>
- i.value
- ? `${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`
- : null
- );
- $t(Ie(e, 'value'), (f, v) => {
- (n.value = v), (r.value = f), mn(c);
- });
- function c() {
- const f = e.newOriginalNumber,
- v = e.oldOriginalNumber;
- v === void 0 || f === void 0 || (f > v ? d('up') : v > f && d('down'));
- }
- function d(f) {
- (o.value = f),
- (i.value = !1),
- mn(() => {
- var v;
- (v = t.value) === null || v === void 0 || v.offsetWidth,
- (i.value = !0);
- });
- }
- return () => {
- const { clsPrefix: f } = e;
- return h(
- 'span',
- { ref: t, class: `${f}-base-slot-machine-number` },
- n.value !== null
- ? h(
- 'span',
- {
- class: [
- `${f}-base-slot-machine-old-number ${f}-base-slot-machine-old-number--top`,
- s.value
- ]
- },
- n.value
- )
- : null,
- h(
- 'span',
- { class: [`${f}-base-slot-machine-current-number`, a.value] },
- h(
- 'span',
- {
- ref: 'numberWrapper',
- class: [
- `${f}-base-slot-machine-current-number__inner`,
- typeof e.value != 'number' &&
- `${f}-base-slot-machine-current-number__inner--not-number`
- ]
- },
- r.value
- )
- ),
- n.value !== null
- ? h(
- 'span',
- {
- class: [
- `${f}-base-slot-machine-old-number ${f}-base-slot-machine-old-number--bottom`,
- s.value
- ]
- },
- n.value
- )
- : null
- );
- };
- }
- }),
- { cubicBezierEaseInOut: Ga } = Bo;
- function Ek({ duration: e = '.2s', delay: t = '.1s' } = {}) {
- return [
- F(
- '&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to',
- { opacity: 1 }
- ),
- F(
- '&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from',
- `
- opacity: 0!important;
- margin-left: 0!important;
- margin-right: 0!important;
- `
- ),
- F(
- '&.fade-in-width-expand-transition-leave-active',
- `
- overflow: hidden;
- transition:
- opacity ${e} ${Ga},
- max-width ${e} ${Ga} ${t},
- margin-left ${e} ${Ga} ${t},
- margin-right ${e} ${Ga} ${t};
- `
- ),
- F(
- '&.fade-in-width-expand-transition-enter-active',
- `
- overflow: hidden;
- transition:
- opacity ${e} ${Ga} ${t},
- max-width ${e} ${Ga},
- margin-left ${e} ${Ga},
- margin-right ${e} ${Ga};
- `
- )
- ];
- }
- const { cubicBezierEaseOut: dc } = Bo;
- function QU({ duration: e = '.2s' } = {}) {
- return [
- F('&.fade-up-width-expand-transition-leave-active', {
- transition: `
- opacity ${e} ${dc},
- max-width ${e} ${dc},
- transform ${e} ${dc}
- `
- }),
- F('&.fade-up-width-expand-transition-enter-active', {
- transition: `
- opacity ${e} ${dc},
- max-width ${e} ${dc},
- transform ${e} ${dc}
- `
- }),
- F('&.fade-up-width-expand-transition-enter-to', {
- opacity: 1,
- transform: 'translateX(0) translateY(0)'
- }),
- F('&.fade-up-width-expand-transition-enter-from', {
- maxWidth: '0 !important',
- opacity: 0,
- transform: 'translateY(60%)'
- }),
- F('&.fade-up-width-expand-transition-leave-from', {
- opacity: 1,
- transform: 'translateY(0)'
- }),
- F('&.fade-up-width-expand-transition-leave-to', {
- maxWidth: '0 !important',
- opacity: 0,
- transform: 'translateY(60%)'
- })
- ];
- }
- const JU = F([
- F(
- '@keyframes n-base-slot-machine-fade-up-in',
- `
- from {
- transform: translateY(60%);
- opacity: 0;
- }
- to {
- transform: translateY(0);
- opacity: 1;
- }
- `
- ),
- F(
- '@keyframes n-base-slot-machine-fade-down-in',
- `
- from {
- transform: translateY(-60%);
- opacity: 0;
- }
- to {
- transform: translateY(0);
- opacity: 1;
- }
- `
- ),
- F(
- '@keyframes n-base-slot-machine-fade-up-out',
- `
- from {
- transform: translateY(0%);
- opacity: 1;
- }
- to {
- transform: translateY(-60%);
- opacity: 0;
- }
- `
- ),
- F(
- '@keyframes n-base-slot-machine-fade-down-out',
- `
- from {
- transform: translateY(0%);
- opacity: 1;
- }
- to {
- transform: translateY(60%);
- opacity: 0;
- }
- `
- ),
- O(
- 'base-slot-machine',
- `
- overflow: hidden;
- white-space: nowrap;
- display: inline-block;
- height: 18px;
- line-height: 18px;
- `,
- [
- O(
- 'base-slot-machine-number',
- `
- display: inline-block;
- position: relative;
- height: 18px;
- width: .6em;
- max-width: .6em;
- `,
- [
- QU({ duration: '.2s' }),
- Ek({ duration: '.2s', delay: '0s' }),
- O(
- 'base-slot-machine-old-number',
- `
- display: inline-block;
- opacity: 0;
- position: absolute;
- left: 0;
- right: 0;
- `,
- [
- U('top', { transform: 'translateY(-100%)' }),
- U('bottom', { transform: 'translateY(100%)' }),
- U('down-scroll', {
- animation:
- 'n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)',
- animationIterationCount: 1
- }),
- U('up-scroll', {
- animation:
- 'n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)',
- animationIterationCount: 1
- })
- ]
- ),
- O(
- 'base-slot-machine-current-number',
- `
- display: inline-block;
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- right: 0;
- opacity: 1;
- transform: translateY(0);
- width: .6em;
- `,
- [
- U('down-scroll', {
- animation:
- 'n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)',
- animationIterationCount: 1
- }),
- U('up-scroll', {
- animation:
- 'n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)',
- animationIterationCount: 1
- }),
- V(
- 'inner',
- `
- display: inline-block;
- position: absolute;
- right: 0;
- top: 0;
- width: .6em;
- `,
- [
- U(
- 'not-number',
- `
- right: unset;
- left: 0;
- `
- )
- ]
- )
- ]
- )
- ]
- )
- ]
- )
- ]),
- eV = ke({
- name: 'BaseSlotMachine',
- props: {
- clsPrefix: { type: String, required: !0 },
- value: { type: [Number, String], default: 0 },
- max: { type: Number, default: void 0 },
- appeared: { type: Boolean, required: !0 }
- },
- setup(e) {
- $a('-base-slot-machine', JU, Ie(e, 'clsPrefix'));
- const t = Z(),
- n = Z(),
- r = I(() => {
- if (typeof e.value == 'string') return [];
- if (e.value < 1) return [0];
- const o = [];
- let i = e.value;
- for (e.max !== void 0 && (i = Math.min(e.max, i)); i >= 1; )
- o.push(i % 10), (i /= 10), (i = Math.floor(i));
- return o.reverse(), o;
- });
- return (
- $t(Ie(e, 'value'), (o, i) => {
- typeof o == 'string'
- ? ((n.value = void 0), (t.value = void 0))
- : typeof i == 'string'
- ? ((n.value = o), (t.value = void 0))
- : ((n.value = o), (t.value = i));
- }),
- () => {
- const { value: o, clsPrefix: i } = e;
- return typeof o == 'number'
- ? h(
- 'span',
- { class: `${i}-base-slot-machine` },
- h(
- Y0,
- { name: 'fade-up-width-expand-transition', tag: 'span' },
- {
- default: () =>
- r.value.map((a, s) =>
- h(TS, {
- clsPrefix: i,
- key: r.value.length - s - 1,
- oldOriginalNumber: t.value,
- newOriginalNumber: n.value,
- value: a
- })
- )
- }
- ),
- h(
- Cl,
- { key: '+', width: !0 },
- {
- default: () =>
- e.max !== void 0 && e.max < o
- ? h(TS, { clsPrefix: i, value: '+' })
- : null
- }
- )
- )
- : h('span', { class: `${i}-base-slot-machine` }, o);
- }
- );
- }
- }),
- tV = {
- iconMargin: '11px 8px 0 12px',
- iconMarginRtl: '11px 12px 0 8px',
- iconSize: '24px',
- closeIconSize: '16px',
- closeSize: '20px',
- closeMargin: '13px 14px 0 0',
- closeMarginRtl: '13px 0 0 14px',
- padding: '13px'
- },
- nV = e => {
- const {
- lineHeight: t,
- borderRadius: n,
- fontWeightStrong: r,
- baseColor: o,
- dividerColor: i,
- actionColor: a,
- textColor1: s,
- textColor2: c,
- closeColorHover: d,
- closeColorPressed: f,
- closeIconColor: v,
- closeIconColorHover: p,
- closeIconColorPressed: m,
- infoColor: g,
- successColor: w,
- warningColor: x,
- errorColor: y,
- fontSize: C
- } = e;
- return Object.assign(Object.assign({}, tV), {
- fontSize: C,
- lineHeight: t,
- titleFontWeight: r,
- borderRadius: n,
- border: `1px solid ${i}`,
- color: a,
- titleTextColor: s,
- iconColor: c,
- contentTextColor: c,
- closeBorderRadius: n,
- closeColorHover: d,
- closeColorPressed: f,
- closeIconColor: v,
- closeIconColorHover: p,
- closeIconColorPressed: m,
- borderInfo: `1px solid ${Et(o, zt(g, { alpha: 0.25 }))}`,
- colorInfo: Et(o, zt(g, { alpha: 0.08 })),
- titleTextColorInfo: s,
- iconColorInfo: g,
- contentTextColorInfo: c,
- closeColorHoverInfo: d,
- closeColorPressedInfo: f,
- closeIconColorInfo: v,
- closeIconColorHoverInfo: p,
- closeIconColorPressedInfo: m,
- borderSuccess: `1px solid ${Et(o, zt(w, { alpha: 0.25 }))}`,
- colorSuccess: Et(o, zt(w, { alpha: 0.08 })),
- titleTextColorSuccess: s,
- iconColorSuccess: w,
- contentTextColorSuccess: c,
- closeColorHoverSuccess: d,
- closeColorPressedSuccess: f,
- closeIconColorSuccess: v,
- closeIconColorHoverSuccess: p,
- closeIconColorPressedSuccess: m,
- borderWarning: `1px solid ${Et(o, zt(x, { alpha: 0.33 }))}`,
- colorWarning: Et(o, zt(x, { alpha: 0.08 })),
- titleTextColorWarning: s,
- iconColorWarning: x,
- contentTextColorWarning: c,
- closeColorHoverWarning: d,
- closeColorPressedWarning: f,
- closeIconColorWarning: v,
- closeIconColorHoverWarning: p,
- closeIconColorPressedWarning: m,
- borderError: `1px solid ${Et(o, zt(y, { alpha: 0.25 }))}`,
- colorError: Et(o, zt(y, { alpha: 0.08 })),
- titleTextColorError: s,
- iconColorError: y,
- contentTextColorError: c,
- closeColorHoverError: d,
- closeColorPressedError: f,
- closeIconColorError: v,
- closeIconColorHoverError: p,
- closeIconColorPressedError: m
- });
- },
- rV = { name: 'Alert', common: Nt, self: nV },
- oV = rV,
- {
- cubicBezierEaseInOut: $i,
- cubicBezierEaseOut: iV,
- cubicBezierEaseIn: aV
- } = Bo;
- function Ss({
- overflow: e = 'hidden',
- duration: t = '.3s',
- originalTransition: n = '',
- leavingDelay: r = '0s',
- foldPadding: o = !1,
- enterToProps: i = void 0,
- leaveToProps: a = void 0,
- reverse: s = !1
- } = {}) {
- const c = s ? 'leave' : 'enter',
- d = s ? 'enter' : 'leave';
- return [
- F(
- `&.fade-in-height-expand-transition-${d}-from,
- &.fade-in-height-expand-transition-${c}-to`,
- Object.assign(Object.assign({}, i), { opacity: 1 })
- ),
- F(
- `&.fade-in-height-expand-transition-${d}-to,
- &.fade-in-height-expand-transition-${c}-from`,
- Object.assign(Object.assign({}, a), {
- opacity: 0,
- marginTop: '0 !important',
- marginBottom: '0 !important',
- paddingTop: o ? '0 !important' : void 0,
- paddingBottom: o ? '0 !important' : void 0
- })
- ),
- F(
- `&.fade-in-height-expand-transition-${d}-active`,
- `
- overflow: ${e};
- transition:
- max-height ${t} ${$i} ${r},
- opacity ${t} ${iV} ${r},
- margin-top ${t} ${$i} ${r},
- margin-bottom ${t} ${$i} ${r},
- padding-top ${t} ${$i} ${r},
- padding-bottom ${t} ${$i} ${r}
- ${n ? ',' + n : ''}
- `
- ),
- F(
- `&.fade-in-height-expand-transition-${c}-active`,
- `
- overflow: ${e};
- transition:
- max-height ${t} ${$i},
- opacity ${t} ${aV},
- margin-top ${t} ${$i},
- margin-bottom ${t} ${$i},
- padding-top ${t} ${$i},
- padding-bottom ${t} ${$i}
- ${n ? ',' + n : ''}
- `
- )
- ];
- }
- const lV = O(
- 'alert',
- `
- line-height: var(--n-line-height);
- border-radius: var(--n-border-radius);
- position: relative;
- transition: background-color .3s var(--n-bezier);
- background-color: var(--n-color);
- text-align: start;
- word-break: break-word;
- `,
- [
- V(
- 'border',
- `
- border-radius: inherit;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- transition: border-color .3s var(--n-bezier);
- border: var(--n-border);
- pointer-events: none;
- `
- ),
- U('closable', [
- O('alert-body', [
- V(
- 'title',
- `
- padding-right: 24px;
- `
- )
- ])
- ]),
- V('icon', { color: 'var(--n-icon-color)' }),
- O('alert-body', { padding: 'var(--n-padding)' }, [
- V('title', { color: 'var(--n-title-text-color)' }),
- V('content', { color: 'var(--n-content-text-color)' })
- ]),
- Ss({
- originalTransition: 'transform .3s var(--n-bezier)',
- enterToProps: { transform: 'scale(1)' },
- leaveToProps: { transform: 'scale(0.9)' }
- }),
- V(
- 'icon',
- `
- position: absolute;
- left: 0;
- top: 0;
- align-items: center;
- justify-content: center;
- display: flex;
- width: var(--n-icon-size);
- height: var(--n-icon-size);
- font-size: var(--n-icon-size);
- margin: var(--n-icon-margin);
- `
- ),
- V(
- 'close',
- `
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- position: absolute;
- right: 0;
- top: 0;
- margin: var(--n-close-margin);
- `
- ),
- U('show-icon', [
- O('alert-body', {
- paddingLeft:
- 'calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))'
- })
- ]),
- O(
- 'alert-body',
- `
- border-radius: var(--n-border-radius);
- transition: border-color .3s var(--n-bezier);
- `,
- [
- V(
- 'title',
- `
- transition: color .3s var(--n-bezier);
- font-size: 16px;
- line-height: 19px;
- font-weight: var(--n-title-font-weight);
- `,
- [F('& +', [V('content', { marginTop: '9px' })])]
- ),
- V('content', {
- transition: 'color .3s var(--n-bezier)',
- fontSize: 'var(--n-font-size)'
- })
- ]
- ),
- V('icon', { transition: 'color .3s var(--n-bezier)' })
- ]
- ),
- sV = Object.assign(Object.assign({}, Ke.props), {
- title: String,
- showIcon: { type: Boolean, default: !0 },
- type: { type: String, default: 'default' },
- bordered: { type: Boolean, default: !0 },
- closable: Boolean,
- onClose: Function,
- onAfterLeave: Function,
- onAfterHide: Function
- }),
- cV = ke({
- name: 'Alert',
- inheritAttrs: !1,
- props: sV,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- mergedBorderedRef: n,
- inlineThemeDisabled: r,
- mergedRtlRef: o
- } = yt(e),
- i = Ke('Alert', '-alert', lV, oV, e, t),
- a = cr('Alert', o, t),
- s = I(() => {
- const {
- common: { cubicBezierEaseInOut: m },
- self: g
- } = i.value,
- {
- fontSize: w,
- borderRadius: x,
- titleFontWeight: y,
- lineHeight: C,
- iconSize: R,
- iconMargin: S,
- iconMarginRtl: _,
- closeIconSize: P,
- closeBorderRadius: T,
- closeSize: E,
- closeMargin: z,
- closeMarginRtl: k,
- padding: M
- } = g,
- { type: A } = e,
- { left: D, right: L } = Go(S);
- return {
- '--n-bezier': m,
- '--n-color': g[Ee('color', A)],
- '--n-close-icon-size': P,
- '--n-close-border-radius': T,
- '--n-close-color-hover': g[Ee('closeColorHover', A)],
- '--n-close-color-pressed': g[Ee('closeColorPressed', A)],
- '--n-close-icon-color': g[Ee('closeIconColor', A)],
- '--n-close-icon-color-hover': g[Ee('closeIconColorHover', A)],
- '--n-close-icon-color-pressed': g[Ee('closeIconColorPressed', A)],
- '--n-icon-color': g[Ee('iconColor', A)],
- '--n-border': g[Ee('border', A)],
- '--n-title-text-color': g[Ee('titleTextColor', A)],
- '--n-content-text-color': g[Ee('contentTextColor', A)],
- '--n-line-height': C,
- '--n-border-radius': x,
- '--n-font-size': w,
- '--n-title-font-weight': y,
- '--n-icon-size': R,
- '--n-icon-margin': S,
- '--n-icon-margin-rtl': _,
- '--n-close-size': E,
- '--n-close-margin': z,
- '--n-close-margin-rtl': k,
- '--n-padding': M,
- '--n-icon-margin-left': D,
- '--n-icon-margin-right': L
- };
- }),
- c = r
- ? Mt(
- 'alert',
- I(() => e.type[0]),
- s,
- e
- )
- : void 0,
- d = Z(!0),
- f = () => {
- const { onAfterLeave: m, onAfterHide: g } = e;
- m && m(), g && g();
- };
- return {
- rtlEnabled: a,
- mergedClsPrefix: t,
- mergedBordered: n,
- visible: d,
- handleCloseClick: () => {
- var m;
- Promise.resolve(
- (m = e.onClose) === null || m === void 0 ? void 0 : m.call(e)
- ).then(g => {
- g !== !1 && (d.value = !1);
- });
- },
- handleAfterLeave: () => {
- f();
- },
- mergedTheme: i,
- cssVars: r ? void 0 : s,
- themeClass: c == null ? void 0 : c.themeClass,
- onRender: c == null ? void 0 : c.onRender
- };
- },
- render() {
- var e;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- Cl,
- { onAfterLeave: this.handleAfterLeave },
- {
- default: () => {
- const { mergedClsPrefix: t, $slots: n } = this,
- r = {
- class: [
- `${t}-alert`,
- this.themeClass,
- this.closable && `${t}-alert--closable`,
- this.showIcon && `${t}-alert--show-icon`,
- this.rtlEnabled && `${t}-alert--rtl`
- ],
- style: this.cssVars,
- role: 'alert'
- };
- return this.visible
- ? h(
- 'div',
- Object.assign({}, qr(this.$attrs, r)),
- this.closable &&
- h(Sl, {
- clsPrefix: t,
- class: `${t}-alert__close`,
- onClick: this.handleCloseClick
- }),
- this.bordered && h('div', { class: `${t}-alert__border` }),
- this.showIcon &&
- h(
- 'div',
- { class: `${t}-alert__icon`, 'aria-hidden': 'true' },
- Kt(n.icon, () => [
- h(
- At,
- { clsPrefix: t },
- {
- default: () => {
- switch (this.type) {
- case 'success':
- return h(zs, null);
- case 'info':
- return h(bl, null);
- case 'warning':
- return h(Es, null);
- case 'error':
- return h(Os, null);
- default:
- return null;
- }
- }
- }
- )
- ])
- ),
- h(
- 'div',
- {
- class: [
- `${t}-alert-body`,
- this.mergedBordered && `${t}-alert-body--bordered`
- ]
- },
- cn(n.header, o => {
- const i = o || this.title;
- return i
- ? h('div', { class: `${t}-alert-body__title` }, i)
- : null;
- }),
- n.default &&
- h('div', { class: `${t}-alert-body__content` }, n)
- )
- )
- : null;
- }
- }
- )
- );
- }
- });
- function pv(e) {
- return e.type === 'group';
- }
- function Ak(e) {
- return e.type === 'ignored';
- }
- function Tm(e, t) {
- try {
- return !!(1 + t.toString().toLowerCase().indexOf(e.trim().toLowerCase()));
- } catch {
- return !1;
- }
- }
- function Mk(e, t) {
- return {
- getIsGroup: pv,
- getIgnored: Ak,
- getKey(r) {
- return pv(r) ? r.name || r.key || 'key-required' : r[e];
- },
- getChildren(r) {
- return r[t];
- }
- };
- }
- function dV(e, t, n, r) {
- if (!t) return e;
- function o(i) {
- if (!Array.isArray(i)) return [];
- const a = [];
- for (const s of i)
- if (pv(s)) {
- const c = o(s[r]);
- c.length && a.push(Object.assign({}, s, { [r]: c }));
- } else {
- if (Ak(s)) continue;
- t(n, s) && a.push(s);
- }
- return a;
- }
- return o(e);
- }
- function uV(e, t, n) {
- const r = new Map();
- return (
- e.forEach(o => {
- pv(o)
- ? o[n].forEach(i => {
- r.set(i[t], i);
- })
- : r.set(o[t], o);
- }),
- r
- );
- }
- const fV = Fo && 'chrome' in window;
- Fo && navigator.userAgent.includes('Firefox');
- const Ik = Fo && navigator.userAgent.includes('Safari') && !fV,
- hV = {
- paddingTiny: '0 8px',
- paddingSmall: '0 10px',
- paddingMedium: '0 12px',
- paddingLarge: '0 14px',
- clearSize: '16px'
- },
- vV = e => {
- const {
- textColor2: t,
- textColor3: n,
- textColorDisabled: r,
- primaryColor: o,
- primaryColorHover: i,
- inputColor: a,
- inputColorDisabled: s,
- borderColor: c,
- warningColor: d,
- warningColorHover: f,
- errorColor: v,
- errorColorHover: p,
- borderRadius: m,
- lineHeight: g,
- fontSizeTiny: w,
- fontSizeSmall: x,
- fontSizeMedium: y,
- fontSizeLarge: C,
- heightTiny: R,
- heightSmall: S,
- heightMedium: _,
- heightLarge: P,
- actionColor: T,
- clearColor: E,
- clearColorHover: z,
- clearColorPressed: k,
- placeholderColor: M,
- placeholderColorDisabled: A,
- iconColor: D,
- iconColorDisabled: L,
- iconColorHover: H,
- iconColorPressed: B
- } = e;
- return Object.assign(Object.assign({}, hV), {
- countTextColorDisabled: r,
- countTextColor: n,
- heightTiny: R,
- heightSmall: S,
- heightMedium: _,
- heightLarge: P,
- fontSizeTiny: w,
- fontSizeSmall: x,
- fontSizeMedium: y,
- fontSizeLarge: C,
- lineHeight: g,
- lineHeightTextarea: g,
- borderRadius: m,
- iconSize: '16px',
- groupLabelColor: T,
- groupLabelTextColor: t,
- textColor: t,
- textColorDisabled: r,
- textDecorationColor: t,
- caretColor: o,
- placeholderColor: M,
- placeholderColorDisabled: A,
- color: a,
- colorDisabled: s,
- colorFocus: a,
- groupLabelBorder: `1px solid ${c}`,
- border: `1px solid ${c}`,
- borderHover: `1px solid ${i}`,
- borderDisabled: `1px solid ${c}`,
- borderFocus: `1px solid ${i}`,
- boxShadowFocus: `0 0 0 2px ${zt(o, { alpha: 0.2 })}`,
- loadingColor: o,
- loadingColorWarning: d,
- borderWarning: `1px solid ${d}`,
- borderHoverWarning: `1px solid ${f}`,
- colorFocusWarning: a,
- borderFocusWarning: `1px solid ${f}`,
- boxShadowFocusWarning: `0 0 0 2px ${zt(d, { alpha: 0.2 })}`,
- caretColorWarning: d,
- loadingColorError: v,
- borderError: `1px solid ${v}`,
- borderHoverError: `1px solid ${p}`,
- colorFocusError: a,
- borderFocusError: `1px solid ${p}`,
- boxShadowFocusError: `0 0 0 2px ${zt(v, { alpha: 0.2 })}`,
- caretColorError: v,
- clearColor: E,
- clearColorHover: z,
- clearColorPressed: k,
- iconColor: D,
- iconColorDisabled: L,
- iconColorHover: H,
- iconColorPressed: B,
- suffixTextColor: t
- });
- },
- pV = { name: 'Input', common: Nt, self: vV },
- Xu = pV,
- Dk = 'n-input';
- function gV(e) {
- let t = 0;
- for (const n of e) t++;
- return t;
- }
- function Sh(e) {
- return e === '' || e == null;
- }
- function mV(e) {
- const t = Z(null);
- function n() {
- const { value: i } = e;
- if (!(i != null && i.focus)) {
- o();
- return;
- }
- const { selectionStart: a, selectionEnd: s, value: c } = i;
- if (a == null || s == null) {
- o();
- return;
- }
- t.value = {
- start: a,
- end: s,
- beforeText: c.slice(0, a),
- afterText: c.slice(s)
- };
- }
- function r() {
- var i;
- const { value: a } = t,
- { value: s } = e;
- if (!a || !s) return;
- const { value: c } = s,
- { start: d, beforeText: f, afterText: v } = a;
- let p = c.length;
- if (c.endsWith(v)) p = c.length - v.length;
- else if (c.startsWith(f)) p = f.length;
- else {
- const m = f[d - 1],
- g = c.indexOf(m, d - 1);
- g !== -1 && (p = g + 1);
- }
- (i = s.setSelectionRange) === null || i === void 0 || i.call(s, p, p);
- }
- function o() {
- t.value = null;
- }
- return $t(e, o), { recordCursor: n, restoreCursor: r };
- }
- const $S = ke({
- name: 'InputWordCount',
- setup(e, { slots: t }) {
- const {
- mergedValueRef: n,
- maxlengthRef: r,
- mergedClsPrefixRef: o,
- countGraphemesRef: i
- } = Ze(Dk),
- a = I(() => {
- const { value: s } = n;
- return s === null || Array.isArray(s) ? 0 : (i.value || gV)(s);
- });
- return () => {
- const { value: s } = r,
- { value: c } = n;
- return h(
- 'span',
- { class: `${o.value}-input-word-count` },
- $I(
- t.default,
- { value: c === null || Array.isArray(c) ? '' : c },
- () => [s === void 0 ? a.value : `${a.value} / ${s}`]
- )
- );
- };
- }
- }),
- bV = O(
- 'input',
- `
- max-width: 100%;
- cursor: text;
- line-height: 1.5;
- z-index: auto;
- outline: none;
- box-sizing: border-box;
- position: relative;
- display: inline-flex;
- border-radius: var(--n-border-radius);
- background-color: var(--n-color);
- transition: background-color .3s var(--n-bezier);
- font-size: var(--n-font-size);
- --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
- `,
- [
- V(
- 'input, textarea',
- `
- overflow: hidden;
- flex-grow: 1;
- position: relative;
- `
- ),
- V(
- 'input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder',
- `
- box-sizing: border-box;
- font-size: inherit;
- line-height: 1.5;
- font-family: inherit;
- border: none;
- outline: none;
- background-color: #0000;
- text-align: inherit;
- transition:
- -webkit-text-fill-color .3s var(--n-bezier),
- caret-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- text-decoration-color .3s var(--n-bezier);
- `
- ),
- V(
- 'input-el, textarea-el',
- `
- -webkit-appearance: none;
- scrollbar-width: none;
- width: 100%;
- min-width: 0;
- text-decoration-color: var(--n-text-decoration-color);
- color: var(--n-text-color);
- caret-color: var(--n-caret-color);
- background-color: transparent;
- `,
- [
- F(
- '&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb',
- `
- width: 0;
- height: 0;
- display: none;
- `
- ),
- F(
- '&::placeholder',
- `
- color: #0000;
- -webkit-text-fill-color: transparent !important;
- `
- ),
- F('&:-webkit-autofill ~', [V('placeholder', 'display: none;')])
- ]
- ),
- U('round', [jt('textarea', 'border-radius: calc(var(--n-height) / 2);')]),
- V(
- 'placeholder',
- `
- pointer-events: none;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- overflow: hidden;
- color: var(--n-placeholder-color);
- `,
- [
- F(
- 'span',
- `
- width: 100%;
- display: inline-block;
- `
- )
- ]
- ),
- U('textarea', [V('placeholder', 'overflow: visible;')]),
- jt('autosize', 'width: 100%;'),
- U('autosize', [
- V(
- 'textarea-el, input-el',
- `
- position: absolute;
- top: 0;
- left: 0;
- height: 100%;
- `
- )
- ]),
- O(
- 'input-wrapper',
- `
- overflow: hidden;
- display: inline-flex;
- flex-grow: 1;
- position: relative;
- padding-left: var(--n-padding-left);
- padding-right: var(--n-padding-right);
- `
- ),
- V(
- 'input-mirror',
- `
- padding: 0;
- height: var(--n-height);
- line-height: var(--n-height);
- overflow: hidden;
- visibility: hidden;
- position: static;
- white-space: pre;
- pointer-events: none;
- `
- ),
- V(
- 'input-el',
- `
- padding: 0;
- height: var(--n-height);
- line-height: var(--n-height);
- `,
- [
- F('+', [
- V(
- 'placeholder',
- `
- display: flex;
- align-items: center;
- `
- )
- ])
- ]
- ),
- jt('textarea', [V('placeholder', 'white-space: nowrap;')]),
- V(
- 'eye',
- `
- display: flex;
- align-items: center;
- justify-content: center;
- transition: color .3s var(--n-bezier);
- `
- ),
- U('textarea', 'width: 100%;', [
- O(
- 'input-word-count',
- `
- position: absolute;
- right: var(--n-padding-right);
- bottom: var(--n-padding-vertical);
- `
- ),
- U('resizable', [
- O(
- 'input-wrapper',
- `
- resize: vertical;
- min-height: var(--n-height);
- `
- )
- ]),
- V(
- 'textarea-el, textarea-mirror, placeholder',
- `
- height: 100%;
- padding-left: 0;
- padding-right: 0;
- padding-top: var(--n-padding-vertical);
- padding-bottom: var(--n-padding-vertical);
- word-break: break-word;
- display: inline-block;
- vertical-align: bottom;
- box-sizing: border-box;
- line-height: var(--n-line-height-textarea);
- margin: 0;
- resize: none;
- white-space: pre-wrap;
- `
- ),
- V(
- 'textarea-mirror',
- `
- width: 100%;
- pointer-events: none;
- overflow: hidden;
- visibility: hidden;
- position: static;
- white-space: pre-wrap;
- overflow-wrap: break-word;
- `
- )
- ]),
- U('pair', [
- V('input-el, placeholder', 'text-align: center;'),
- V(
- 'separator',
- `
- display: flex;
- align-items: center;
- transition: color .3s var(--n-bezier);
- color: var(--n-text-color);
- white-space: nowrap;
- `,
- [
- O(
- 'icon',
- `
- color: var(--n-icon-color);
- `
- ),
- O(
- 'base-icon',
- `
- color: var(--n-icon-color);
- `
- )
- ]
- )
- ]),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- background-color: var(--n-color-disabled);
- `,
- [
- V('border', 'border: var(--n-border-disabled);'),
- V(
- 'input-el, textarea-el',
- `
- cursor: not-allowed;
- color: var(--n-text-color-disabled);
- text-decoration-color: var(--n-text-color-disabled);
- `
- ),
- V('placeholder', 'color: var(--n-placeholder-color-disabled);'),
- V('separator', 'color: var(--n-text-color-disabled);', [
- O(
- 'icon',
- `
- color: var(--n-icon-color-disabled);
- `
- ),
- O(
- 'base-icon',
- `
- color: var(--n-icon-color-disabled);
- `
- )
- ]),
- O(
- 'input-word-count',
- `
- color: var(--n-count-text-color-disabled);
- `
- ),
- V('suffix, prefix', 'color: var(--n-text-color-disabled);', [
- O(
- 'icon',
- `
- color: var(--n-icon-color-disabled);
- `
- ),
- O(
- 'internal-icon',
- `
- color: var(--n-icon-color-disabled);
- `
- )
- ])
- ]
- ),
- jt('disabled', [
- V(
- 'eye',
- `
- color: var(--n-icon-color);
- cursor: pointer;
- `,
- [
- F(
- '&:hover',
- `
- color: var(--n-icon-color-hover);
- `
- ),
- F(
- '&:active',
- `
- color: var(--n-icon-color-pressed);
- `
- )
- ]
- ),
- F('&:hover', [V('state-border', 'border: var(--n-border-hover);')]),
- U('focus', 'background-color: var(--n-color-focus);', [
- V(
- 'state-border',
- `
- border: var(--n-border-focus);
- box-shadow: var(--n-box-shadow-focus);
- `
- )
- ])
- ]),
- V(
- 'border, state-border',
- `
- box-sizing: border-box;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- pointer-events: none;
- border-radius: inherit;
- border: var(--n-border);
- transition:
- box-shadow .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `
- ),
- V(
- 'state-border',
- `
- border-color: #0000;
- z-index: 1;
- `
- ),
- V('prefix', 'margin-right: 4px;'),
- V(
- 'suffix',
- `
- margin-left: 4px;
- `
- ),
- V(
- 'suffix, prefix',
- `
- transition: color .3s var(--n-bezier);
- flex-wrap: nowrap;
- flex-shrink: 0;
- line-height: var(--n-height);
- white-space: nowrap;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- color: var(--n-suffix-text-color);
- `,
- [
- O(
- 'base-loading',
- `
- font-size: var(--n-icon-size);
- margin: 0 2px;
- color: var(--n-loading-color);
- `
- ),
- O(
- 'base-clear',
- `
- font-size: var(--n-icon-size);
- `,
- [
- V('placeholder', [
- O(
- 'base-icon',
- `
- transition: color .3s var(--n-bezier);
- color: var(--n-icon-color);
- font-size: var(--n-icon-size);
- `
- )
- ])
- ]
- ),
- F('>', [
- O(
- 'icon',
- `
- transition: color .3s var(--n-bezier);
- color: var(--n-icon-color);
- font-size: var(--n-icon-size);
- `
- )
- ]),
- O(
- 'base-icon',
- `
- font-size: var(--n-icon-size);
- `
- )
- ]
- ),
- O(
- 'input-word-count',
- `
- pointer-events: none;
- line-height: 1.5;
- font-size: .85em;
- color: var(--n-count-text-color);
- transition: color .3s var(--n-bezier);
- margin-left: 4px;
- font-variant: tabular-nums;
- `
- ),
- ['warning', 'error'].map(e =>
- U(`${e}-status`, [
- jt('disabled', [
- O(
- 'base-loading',
- `
- color: var(--n-loading-color-${e})
- `
- ),
- V(
- 'input-el, textarea-el',
- `
- caret-color: var(--n-caret-color-${e});
- `
- ),
- V(
- 'state-border',
- `
- border: var(--n-border-${e});
- `
- ),
- F('&:hover', [
- V(
- 'state-border',
- `
- border: var(--n-border-hover-${e});
- `
- )
- ]),
- F(
- '&:focus',
- `
- background-color: var(--n-color-focus-${e});
- `,
- [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-focus-${e});
- border: var(--n-border-focus-${e});
- `
- )
- ]
- ),
- U(
- 'focus',
- `
- background-color: var(--n-color-focus-${e});
- `,
- [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-focus-${e});
- border: var(--n-border-focus-${e});
- `
- )
- ]
- )
- ])
- ])
- )
- ]
- ),
- yV = O('input', [
- U('disabled', [
- V(
- 'input-el, textarea-el',
- `
- -webkit-text-fill-color: var(--n-text-color-disabled);
- `
- )
- ])
- ]),
- xV = Object.assign(Object.assign({}, Ke.props), {
- bordered: { type: Boolean, default: void 0 },
- type: { type: String, default: 'text' },
- placeholder: [Array, String],
- defaultValue: { type: [String, Array], default: null },
- value: [String, Array],
- disabled: { type: Boolean, default: void 0 },
- size: String,
- rows: { type: [Number, String], default: 3 },
- round: Boolean,
- minlength: [String, Number],
- maxlength: [String, Number],
- clearable: Boolean,
- autosize: { type: [Boolean, Object], default: !1 },
- pair: Boolean,
- separator: String,
- readonly: { type: [String, Boolean], default: !1 },
- passivelyActivated: Boolean,
- showPasswordOn: String,
- stateful: { type: Boolean, default: !0 },
- autofocus: Boolean,
- inputProps: Object,
- resizable: { type: Boolean, default: !0 },
- showCount: Boolean,
- loading: { type: Boolean, default: void 0 },
- allowInput: Function,
- renderCount: Function,
- onMousedown: Function,
- onKeydown: Function,
- onKeyup: Function,
- onInput: [Function, Array],
- onFocus: [Function, Array],
- onBlur: [Function, Array],
- onClick: [Function, Array],
- onChange: [Function, Array],
- onClear: [Function, Array],
- countGraphemes: Function,
- status: String,
- 'onUpdate:value': [Function, Array],
- onUpdateValue: [Function, Array],
- textDecoration: [String, Array],
- attrSize: { type: Number, default: 20 },
- onInputBlur: [Function, Array],
- onInputFocus: [Function, Array],
- onDeactivate: [Function, Array],
- onActivate: [Function, Array],
- onWrapperFocus: [Function, Array],
- onWrapperBlur: [Function, Array],
- internalDeactivateOnEnter: Boolean,
- internalForceFocus: Boolean,
- internalLoadingBeforeSuffix: Boolean,
- showPasswordToggle: Boolean
- }),
- Gi = ke({
- name: 'Input',
- props: xV,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- mergedBorderedRef: n,
- inlineThemeDisabled: r,
- mergedRtlRef: o
- } = yt(e),
- i = Ke('Input', '-input', bV, Xu, e, t);
- Ik && $a('-input-safari', yV, t);
- const a = Z(null),
- s = Z(null),
- c = Z(null),
- d = Z(null),
- f = Z(null),
- v = Z(null),
- p = Z(null),
- m = mV(p),
- g = Z(null),
- { localeRef: w } = Ta('Input'),
- x = Z(e.defaultValue),
- y = Ie(e, 'value'),
- C = En(y, x),
- R = ei(e),
- { mergedSizeRef: S, mergedDisabledRef: _, mergedStatusRef: P } = R,
- T = Z(!1),
- E = Z(!1),
- z = Z(!1),
- k = Z(!1);
- let M = null;
- const A = I(() => {
- const { placeholder: Se, pair: je } = e;
- return je
- ? Array.isArray(Se)
- ? Se
- : Se === void 0
- ? ['', '']
- : [Se, Se]
- : Se === void 0
- ? [w.value.placeholder]
- : [Se];
- }),
- D = I(() => {
- const { value: Se } = z,
- { value: je } = C,
- { value: Ct } = A;
- return !Se && (Sh(je) || (Array.isArray(je) && Sh(je[0]))) && Ct[0];
- }),
- L = I(() => {
- const { value: Se } = z,
- { value: je } = C,
- { value: Ct } = A;
- return !Se && Ct[1] && (Sh(je) || (Array.isArray(je) && Sh(je[1])));
- }),
- H = kt(() => e.internalForceFocus || T.value),
- B = kt(() => {
- if (_.value || e.readonly || !e.clearable || (!H.value && !E.value))
- return !1;
- const { value: Se } = C,
- { value: je } = H;
- return e.pair
- ? !!(Array.isArray(Se) && (Se[0] || Se[1])) && (E.value || je)
- : !!Se && (E.value || je);
- }),
- q = I(() => {
- const { showPasswordOn: Se } = e;
- if (Se) return Se;
- if (e.showPasswordToggle) return 'click';
- }),
- X = Z(!1),
- te = I(() => {
- const { textDecoration: Se } = e;
- return Se
- ? Array.isArray(Se)
- ? Se.map(je => ({ textDecoration: je }))
- : [{ textDecoration: Se }]
- : ['', ''];
- }),
- G = Z(void 0),
- Q = () => {
- var Se, je;
- if (e.type === 'textarea') {
- const { autosize: Ct } = e;
- if (
- (Ct &&
- (G.value =
- (je =
- (Se = g.value) === null || Se === void 0
- ? void 0
- : Se.$el) === null || je === void 0
- ? void 0
- : je.offsetWidth),
- !s.value || typeof Ct == 'boolean')
- )
- return;
- const {
- paddingTop: qt,
- paddingBottom: we,
- lineHeight: Fe
- } = window.getComputedStyle(s.value),
- rt = Number(qt.slice(0, -2)),
- ft = Number(we.slice(0, -2)),
- gt = Number(Fe.slice(0, -2)),
- { value: bn } = c;
- if (!bn) return;
- if (Ct.minRows) {
- const ln = Math.max(Ct.minRows, 1),
- $e = `${rt + ft + gt * ln}px`;
- bn.style.minHeight = $e;
- }
- if (Ct.maxRows) {
- const ln = `${rt + ft + gt * Ct.maxRows}px`;
- bn.style.maxHeight = ln;
- }
- }
- },
- re = I(() => {
- const { maxlength: Se } = e;
- return Se === void 0 ? void 0 : Number(Se);
- });
- Hn(() => {
- const { value: Se } = C;
- Array.isArray(Se) || He(Se);
- });
- const se = Ra().proxy;
- function pe(Se) {
- const { onUpdateValue: je, 'onUpdate:value': Ct, onInput: qt } = e,
- { nTriggerFormInput: we } = R;
- je && Me(je, Se),
- Ct && Me(Ct, Se),
- qt && Me(qt, Se),
- (x.value = Se),
- we();
- }
- function ce(Se) {
- const { onChange: je } = e,
- { nTriggerFormChange: Ct } = R;
- je && Me(je, Se), (x.value = Se), Ct();
- }
- function xe(Se) {
- const { onBlur: je } = e,
- { nTriggerFormBlur: Ct } = R;
- je && Me(je, Se), Ct();
- }
- function ve(Se) {
- const { onFocus: je } = e,
- { nTriggerFormFocus: Ct } = R;
- je && Me(je, Se), Ct();
- }
- function be(Se) {
- const { onClear: je } = e;
- je && Me(je, Se);
- }
- function Ce(Se) {
- const { onInputBlur: je } = e;
- je && Me(je, Se);
- }
- function ge(Se) {
- const { onInputFocus: je } = e;
- je && Me(je, Se);
- }
- function Ae() {
- const { onDeactivate: Se } = e;
- Se && Me(Se);
- }
- function j() {
- const { onActivate: Se } = e;
- Se && Me(Se);
- }
- function ee(Se) {
- const { onClick: je } = e;
- je && Me(je, Se);
- }
- function ne(Se) {
- const { onWrapperFocus: je } = e;
- je && Me(je, Se);
- }
- function fe(Se) {
- const { onWrapperBlur: je } = e;
- je && Me(je, Se);
- }
- function ie() {
- z.value = !0;
- }
- function W(Se) {
- (z.value = !1), Se.target === v.value ? ae(Se, 1) : ae(Se, 0);
- }
- function ae(Se, je = 0, Ct = 'input') {
- const qt = Se.target.value;
- if (
- (He(qt),
- Se instanceof InputEvent && !Se.isComposing && (z.value = !1),
- e.type === 'textarea')
- ) {
- const { value: Fe } = g;
- Fe && Fe.syncUnifiedContainer();
- }
- if (((M = qt), z.value)) return;
- m.recordCursor();
- const we = he(qt);
- if (we)
- if (!e.pair) Ct === 'input' ? pe(qt) : ce(qt);
- else {
- let { value: Fe } = C;
- Array.isArray(Fe) ? (Fe = [Fe[0], Fe[1]]) : (Fe = ['', '']),
- (Fe[je] = qt),
- Ct === 'input' ? pe(Fe) : ce(Fe);
- }
- se.$forceUpdate(), we || mn(m.restoreCursor);
- }
- function he(Se) {
- const { countGraphemes: je, maxlength: Ct, minlength: qt } = e;
- if (je) {
- let Fe;
- if (
- (Ct !== void 0 &&
- (Fe === void 0 && (Fe = je(Se)), Fe > Number(Ct))) ||
- (qt !== void 0 && (Fe === void 0 && (Fe = je(Se)), Fe < Number(Ct)))
- )
- return !1;
- }
- const { allowInput: we } = e;
- return typeof we == 'function' ? we(Se) : !0;
- }
- function _e(Se) {
- Ce(Se),
- Se.relatedTarget === a.value && Ae(),
- (Se.relatedTarget !== null &&
- (Se.relatedTarget === f.value ||
- Se.relatedTarget === v.value ||
- Se.relatedTarget === s.value)) ||
- (k.value = !1),
- Ge(Se, 'blur'),
- (p.value = null);
- }
- function le(Se, je) {
- ge(Se),
- (T.value = !0),
- (k.value = !0),
- j(),
- Ge(Se, 'focus'),
- je === 0
- ? (p.value = f.value)
- : je === 1
- ? (p.value = v.value)
- : je === 2 && (p.value = s.value);
- }
- function Re(Se) {
- e.passivelyActivated && (fe(Se), Ge(Se, 'blur'));
- }
- function Ne(Se) {
- e.passivelyActivated && ((T.value = !0), ne(Se), Ge(Se, 'focus'));
- }
- function Ge(Se, je) {
- (Se.relatedTarget !== null &&
- (Se.relatedTarget === f.value ||
- Se.relatedTarget === v.value ||
- Se.relatedTarget === s.value ||
- Se.relatedTarget === a.value)) ||
- (je === 'focus'
- ? (ve(Se), (T.value = !0))
- : je === 'blur' && (xe(Se), (T.value = !1)));
- }
- function it(Se, je) {
- ae(Se, je, 'change');
- }
- function dt(Se) {
- ee(Se);
- }
- function xt(Se) {
- be(Se), e.pair ? (pe(['', '']), ce(['', ''])) : (pe(''), ce(''));
- }
- function De(Se) {
- const { onMousedown: je } = e;
- je && je(Se);
- const { tagName: Ct } = Se.target;
- if (Ct !== 'INPUT' && Ct !== 'TEXTAREA') {
- if (e.resizable) {
- const { value: qt } = a;
- if (qt) {
- const {
- left: we,
- top: Fe,
- width: rt,
- height: ft
- } = qt.getBoundingClientRect(),
- gt = 14;
- if (
- we + rt - gt < Se.clientX &&
- Se.clientX < we + rt &&
- Fe + ft - gt < Se.clientY &&
- Se.clientY < Fe + ft
- )
- return;
- }
- }
- Se.preventDefault(), T.value || oe();
- }
- }
- function ut() {
- var Se;
- (E.value = !0),
- e.type === 'textarea' &&
- ((Se = g.value) === null ||
- Se === void 0 ||
- Se.handleMouseEnterWrapper());
- }
- function wt() {
- var Se;
- (E.value = !1),
- e.type === 'textarea' &&
- ((Se = g.value) === null ||
- Se === void 0 ||
- Se.handleMouseLeaveWrapper());
- }
- function Lt() {
- _.value || (q.value === 'click' && (X.value = !X.value));
- }
- function ot(Se) {
- if (_.value) return;
- Se.preventDefault();
- const je = qt => {
- qt.preventDefault(), pn('mouseup', document, je);
- };
- if ((Tn('mouseup', document, je), q.value !== 'mousedown')) return;
- X.value = !0;
- const Ct = () => {
- (X.value = !1), pn('mouseup', document, Ct);
- };
- Tn('mouseup', document, Ct);
- }
- function ct(Se) {
- var je;
- switch (
- ((je = e.onKeydown) === null || je === void 0 || je.call(e, Se),
- Se.key)
- ) {
- case 'Escape':
- Qe();
- break;
- case 'Enter':
- Xe(Se);
- break;
- }
- }
- function Xe(Se) {
- var je, Ct;
- if (e.passivelyActivated) {
- const { value: qt } = k;
- if (qt) {
- e.internalDeactivateOnEnter && Qe();
- return;
- }
- Se.preventDefault(),
- e.type === 'textarea'
- ? (je = s.value) === null || je === void 0 || je.focus()
- : (Ct = f.value) === null || Ct === void 0 || Ct.focus();
- }
- }
- function Qe() {
- e.passivelyActivated &&
- ((k.value = !1),
- mn(() => {
- var Se;
- (Se = a.value) === null || Se === void 0 || Se.focus();
- }));
- }
- function oe() {
- var Se, je, Ct;
- _.value ||
- (e.passivelyActivated
- ? (Se = a.value) === null || Se === void 0 || Se.focus()
- : ((je = s.value) === null || je === void 0 || je.focus(),
- (Ct = f.value) === null || Ct === void 0 || Ct.focus()));
- }
- function ze() {
- var Se;
- !((Se = a.value) === null || Se === void 0) &&
- Se.contains(document.activeElement) &&
- document.activeElement.blur();
- }
- function We() {
- var Se, je;
- (Se = s.value) === null || Se === void 0 || Se.select(),
- (je = f.value) === null || je === void 0 || je.select();
- }
- function lt() {
- _.value || (s.value ? s.value.focus() : f.value && f.value.focus());
- }
- function st() {
- const { value: Se } = a;
- Se != null &&
- Se.contains(document.activeElement) &&
- Se !== document.activeElement &&
- Qe();
- }
- function me(Se) {
- if (e.type === 'textarea') {
- const { value: je } = s;
- je == null || je.scrollTo(Se);
- } else {
- const { value: je } = f;
- je == null || je.scrollTo(Se);
- }
- }
- function He(Se) {
- const { type: je, pair: Ct, autosize: qt } = e;
- if (!Ct && qt)
- if (je === 'textarea') {
- const { value: we } = c;
- we &&
- (we.textContent =
- (Se ?? '') +
- `\r
- `);
- } else {
- const { value: we } = d;
- we && (Se ? (we.textContent = Se) : (we.innerHTML = ' '));
- }
- }
- function tt() {
- Q();
- }
- const pt = Z({ top: '0' });
- function Pe(Se) {
- var je;
- const { scrollTop: Ct } = Se.target;
- (pt.value.top = `${-Ct}px`),
- (je = g.value) === null || je === void 0 || je.syncUnifiedContainer();
- }
- let Ve = null;
- Bn(() => {
- const { autosize: Se, type: je } = e;
- Se && je === 'textarea'
- ? (Ve = $t(C, Ct => {
- !Array.isArray(Ct) && Ct !== M && He(Ct);
- }))
- : Ve == null || Ve();
- });
- let nt = null;
- Bn(() => {
- e.type === 'textarea'
- ? (nt = $t(C, Se => {
- var je;
- !Array.isArray(Se) &&
- Se !== M &&
- ((je = g.value) === null ||
- je === void 0 ||
- je.syncUnifiedContainer());
- }))
- : nt == null || nt();
- }),
- Rt(Dk, {
- mergedValueRef: C,
- maxlengthRef: re,
- mergedClsPrefixRef: t,
- countGraphemesRef: Ie(e, 'countGraphemes')
- });
- const Ot = {
- wrapperElRef: a,
- inputElRef: f,
- textareaElRef: s,
- isCompositing: z,
- focus: oe,
- blur: ze,
- select: We,
- deactivate: st,
- activate: lt,
- scrollTo: me
- },
- $n = cr('Input', o, t),
- jn = I(() => {
- const { value: Se } = S,
- {
- common: { cubicBezierEaseInOut: je },
- self: {
- color: Ct,
- borderRadius: qt,
- textColor: we,
- caretColor: Fe,
- caretColorError: rt,
- caretColorWarning: ft,
- textDecorationColor: gt,
- border: bn,
- borderDisabled: ln,
- borderHover: $e,
- borderFocus: Je,
- placeholderColor: vt,
- placeholderColorDisabled: Wt,
- lineHeightTextarea: dn,
- colorDisabled: nn,
- colorFocus: kr,
- textColorDisabled: Yt,
- boxShadowFocus: On,
- iconSize: Co,
- colorFocusWarning: Lo,
- boxShadowFocusWarning: No,
- borderWarning: So,
- borderFocusWarning: Xr,
- borderHoverWarning: za,
- colorFocusError: Pl,
- boxShadowFocusError: Zr,
- borderError: kl,
- borderFocusError: Tl,
- borderHoverError: Ea,
- clearSize: Aa,
- clearColor: Ma,
- clearColorHover: $l,
- clearColorPressed: Ia,
- iconColor: Is,
- iconColorDisabled: Da,
- suffixTextColor: Ds,
- countTextColor: Fs,
- countTextColorDisabled: Bs,
- iconColorHover: Ls,
- iconColorPressed: na,
- loadingColor: sd,
- loadingColorError: Ns,
- loadingColorWarning: Ol,
- [Ee('padding', Se)]: zl,
- [Ee('fontSize', Se)]: Ci,
- [Ee('height', Se)]: Hs
- }
- } = i.value,
- { left: js, right: cd } = Go(zl);
- return {
- '--n-bezier': je,
- '--n-count-text-color': Fs,
- '--n-count-text-color-disabled': Bs,
- '--n-color': Ct,
- '--n-font-size': Ci,
- '--n-border-radius': qt,
- '--n-height': Hs,
- '--n-padding-left': js,
- '--n-padding-right': cd,
- '--n-text-color': we,
- '--n-caret-color': Fe,
- '--n-text-decoration-color': gt,
- '--n-border': bn,
- '--n-border-disabled': ln,
- '--n-border-hover': $e,
- '--n-border-focus': Je,
- '--n-placeholder-color': vt,
- '--n-placeholder-color-disabled': Wt,
- '--n-icon-size': Co,
- '--n-line-height-textarea': dn,
- '--n-color-disabled': nn,
- '--n-color-focus': kr,
- '--n-text-color-disabled': Yt,
- '--n-box-shadow-focus': On,
- '--n-loading-color': sd,
- '--n-caret-color-warning': ft,
- '--n-color-focus-warning': Lo,
- '--n-box-shadow-focus-warning': No,
- '--n-border-warning': So,
- '--n-border-focus-warning': Xr,
- '--n-border-hover-warning': za,
- '--n-loading-color-warning': Ol,
- '--n-caret-color-error': rt,
- '--n-color-focus-error': Pl,
- '--n-box-shadow-focus-error': Zr,
- '--n-border-error': kl,
- '--n-border-focus-error': Tl,
- '--n-border-hover-error': Ea,
- '--n-loading-color-error': Ns,
- '--n-clear-color': Ma,
- '--n-clear-size': Aa,
- '--n-clear-color-hover': $l,
- '--n-clear-color-pressed': Ia,
- '--n-icon-color': Is,
- '--n-icon-color-hover': Ls,
- '--n-icon-color-pressed': na,
- '--n-icon-color-disabled': Da,
- '--n-suffix-text-color': Ds
- };
- }),
- Zt = r
- ? Mt(
- 'input',
- I(() => {
- const { value: Se } = S;
- return Se[0];
- }),
- jn,
- e
- )
- : void 0;
- return Object.assign(Object.assign({}, Ot), {
- wrapperElRef: a,
- inputElRef: f,
- inputMirrorElRef: d,
- inputEl2Ref: v,
- textareaElRef: s,
- textareaMirrorElRef: c,
- textareaScrollbarInstRef: g,
- rtlEnabled: $n,
- uncontrolledValue: x,
- mergedValue: C,
- passwordVisible: X,
- mergedPlaceholder: A,
- showPlaceholder1: D,
- showPlaceholder2: L,
- mergedFocus: H,
- isComposing: z,
- activated: k,
- showClearButton: B,
- mergedSize: S,
- mergedDisabled: _,
- textDecorationStyle: te,
- mergedClsPrefix: t,
- mergedBordered: n,
- mergedShowPasswordOn: q,
- placeholderStyle: pt,
- mergedStatus: P,
- textAreaScrollContainerWidth: G,
- handleTextAreaScroll: Pe,
- handleCompositionStart: ie,
- handleCompositionEnd: W,
- handleInput: ae,
- handleInputBlur: _e,
- handleInputFocus: le,
- handleWrapperBlur: Re,
- handleWrapperFocus: Ne,
- handleMouseEnter: ut,
- handleMouseLeave: wt,
- handleMouseDown: De,
- handleChange: it,
- handleClick: dt,
- handleClear: xt,
- handlePasswordToggleClick: Lt,
- handlePasswordToggleMousedown: ot,
- handleWrapperKeydown: ct,
- handleTextAreaMirrorResize: tt,
- getTextareaScrollContainer: () => s.value,
- mergedTheme: i,
- cssVars: r ? void 0 : jn,
- themeClass: Zt == null ? void 0 : Zt.themeClass,
- onRender: Zt == null ? void 0 : Zt.onRender
- });
- },
- render() {
- var e, t;
- const {
- mergedClsPrefix: n,
- mergedStatus: r,
- themeClass: o,
- type: i,
- countGraphemes: a,
- onRender: s
- } = this,
- c = this.$slots;
- return (
- s == null || s(),
- h(
- 'div',
- {
- ref: 'wrapperElRef',
- class: [
- `${n}-input`,
- o,
- r && `${n}-input--${r}-status`,
- {
- [`${n}-input--rtl`]: this.rtlEnabled,
- [`${n}-input--disabled`]: this.mergedDisabled,
- [`${n}-input--textarea`]: i === 'textarea',
- [`${n}-input--resizable`]: this.resizable && !this.autosize,
- [`${n}-input--autosize`]: this.autosize,
- [`${n}-input--round`]: this.round && i !== 'textarea',
- [`${n}-input--pair`]: this.pair,
- [`${n}-input--focus`]: this.mergedFocus,
- [`${n}-input--stateful`]: this.stateful
- }
- ],
- style: this.cssVars,
- tabindex:
- !this.mergedDisabled && this.passivelyActivated && !this.activated
- ? 0
- : void 0,
- onFocus: this.handleWrapperFocus,
- onBlur: this.handleWrapperBlur,
- onClick: this.handleClick,
- onMousedown: this.handleMouseDown,
- onMouseenter: this.handleMouseEnter,
- onMouseleave: this.handleMouseLeave,
- onCompositionstart: this.handleCompositionStart,
- onCompositionend: this.handleCompositionEnd,
- onKeyup: this.onKeyup,
- onKeydown: this.handleWrapperKeydown
- },
- h(
- 'div',
- { class: `${n}-input-wrapper` },
- cn(
- c.prefix,
- d => d && h('div', { class: `${n}-input__prefix` }, d)
- ),
- i === 'textarea'
- ? h(
- yr,
- {
- ref: 'textareaScrollbarInstRef',
- class: `${n}-input__textarea`,
- container: this.getTextareaScrollContainer,
- triggerDisplayManually: !0,
- useUnifiedContainer: !0,
- internalHoistYRail: !0
- },
- {
- default: () => {
- var d, f;
- const { textAreaScrollContainerWidth: v } = this,
- p = { width: this.autosize && v && `${v}px` };
- return h(
- on,
- null,
- h(
- 'textarea',
- Object.assign({}, this.inputProps, {
- ref: 'textareaElRef',
- class: [
- `${n}-input__textarea-el`,
- (d = this.inputProps) === null || d === void 0
- ? void 0
- : d.class
- ],
- autofocus: this.autofocus,
- rows: Number(this.rows),
- placeholder: this.placeholder,
- value: this.mergedValue,
- disabled: this.mergedDisabled,
- maxlength: a ? void 0 : this.maxlength,
- minlength: a ? void 0 : this.minlength,
- readonly: this.readonly,
- tabindex:
- this.passivelyActivated && !this.activated
- ? -1
- : void 0,
- style: [
- this.textDecorationStyle[0],
- (f = this.inputProps) === null || f === void 0
- ? void 0
- : f.style,
- p
- ],
- onBlur: this.handleInputBlur,
- onFocus: m => {
- this.handleInputFocus(m, 2);
- },
- onInput: this.handleInput,
- onChange: this.handleChange,
- onScroll: this.handleTextAreaScroll
- })
- ),
- this.showPlaceholder1
- ? h(
- 'div',
- {
- class: `${n}-input__placeholder`,
- style: [this.placeholderStyle, p],
- key: 'placeholder'
- },
- this.mergedPlaceholder[0]
- )
- : null,
- this.autosize
- ? h(
- qi,
- { onResize: this.handleTextAreaMirrorResize },
- {
- default: () =>
- h('div', {
- ref: 'textareaMirrorElRef',
- class: `${n}-input__textarea-mirror`,
- key: 'mirror'
- })
- }
- )
- : null
- );
- }
- }
- )
- : h(
- 'div',
- { class: `${n}-input__input` },
- h(
- 'input',
- Object.assign(
- {
- type:
- i === 'password' &&
- this.mergedShowPasswordOn &&
- this.passwordVisible
- ? 'text'
- : i
- },
- this.inputProps,
- {
- ref: 'inputElRef',
- class: [
- `${n}-input__input-el`,
- (e = this.inputProps) === null || e === void 0
- ? void 0
- : e.class
- ],
- style: [
- this.textDecorationStyle[0],
- (t = this.inputProps) === null || t === void 0
- ? void 0
- : t.style
- ],
- tabindex:
- this.passivelyActivated && !this.activated
- ? -1
- : void 0,
- placeholder: this.mergedPlaceholder[0],
- disabled: this.mergedDisabled,
- maxlength: a ? void 0 : this.maxlength,
- minlength: a ? void 0 : this.minlength,
- value: Array.isArray(this.mergedValue)
- ? this.mergedValue[0]
- : this.mergedValue,
- readonly: this.readonly,
- autofocus: this.autofocus,
- size: this.attrSize,
- onBlur: this.handleInputBlur,
- onFocus: d => {
- this.handleInputFocus(d, 0);
- },
- onInput: d => {
- this.handleInput(d, 0);
- },
- onChange: d => {
- this.handleChange(d, 0);
- }
- }
- )
- ),
- this.showPlaceholder1
- ? h(
- 'div',
- { class: `${n}-input__placeholder` },
- h('span', null, this.mergedPlaceholder[0])
- )
- : null,
- this.autosize
- ? h(
- 'div',
- {
- class: `${n}-input__input-mirror`,
- key: 'mirror',
- ref: 'inputMirrorElRef'
- },
- ' '
- )
- : null
- ),
- !this.pair &&
- cn(c.suffix, d =>
- d ||
- this.clearable ||
- this.showCount ||
- this.mergedShowPasswordOn ||
- this.loading !== void 0
- ? h('div', { class: `${n}-input__suffix` }, [
- cn(
- c['clear-icon-placeholder'],
- f =>
- (this.clearable || f) &&
- h(
- Vb,
- {
- clsPrefix: n,
- show: this.showClearButton,
- onClear: this.handleClear
- },
- {
- placeholder: () => f,
- icon: () => {
- var v, p;
- return (p = (v = this.$slots)['clear-icon']) ===
- null || p === void 0
- ? void 0
- : p.call(v);
- }
- }
- )
- ),
- this.internalLoadingBeforeSuffix ? null : d,
- this.loading !== void 0
- ? h(Ok, {
- clsPrefix: n,
- loading: this.loading,
- showArrow: !1,
- showClear: !1,
- style: this.cssVars
- })
- : null,
- this.internalLoadingBeforeSuffix ? d : null,
- this.showCount && this.type !== 'textarea'
- ? h($S, null, {
- default: f => {
- var v;
- return (v = c.count) === null || v === void 0
- ? void 0
- : v.call(c, f);
- }
- })
- : null,
- this.mergedShowPasswordOn && this.type === 'password'
- ? h(
- 'div',
- {
- class: `${n}-input__eye`,
- onMousedown: this.handlePasswordToggleMousedown,
- onClick: this.handlePasswordToggleClick
- },
- this.passwordVisible
- ? Kt(c['password-visible-icon'], () => [
- h(
- At,
- { clsPrefix: n },
- { default: () => h(bk, null) }
- )
- ])
- : Kt(c['password-invisible-icon'], () => [
- h(
- At,
- { clsPrefix: n },
- { default: () => h(wW, null) }
- )
- ])
- )
- : null
- ])
- : null
- )
- ),
- this.pair
- ? h(
- 'span',
- { class: `${n}-input__separator` },
- Kt(c.separator, () => [this.separator])
- )
- : null,
- this.pair
- ? h(
- 'div',
- { class: `${n}-input-wrapper` },
- h(
- 'div',
- { class: `${n}-input__input` },
- h('input', {
- ref: 'inputEl2Ref',
- type: this.type,
- class: `${n}-input__input-el`,
- tabindex:
- this.passivelyActivated && !this.activated ? -1 : void 0,
- placeholder: this.mergedPlaceholder[1],
- disabled: this.mergedDisabled,
- maxlength: a ? void 0 : this.maxlength,
- minlength: a ? void 0 : this.minlength,
- value: Array.isArray(this.mergedValue)
- ? this.mergedValue[1]
- : void 0,
- readonly: this.readonly,
- style: this.textDecorationStyle[1],
- onBlur: this.handleInputBlur,
- onFocus: d => {
- this.handleInputFocus(d, 1);
- },
- onInput: d => {
- this.handleInput(d, 1);
- },
- onChange: d => {
- this.handleChange(d, 1);
- }
- }),
- this.showPlaceholder2
- ? h(
- 'div',
- { class: `${n}-input__placeholder` },
- h('span', null, this.mergedPlaceholder[1])
- )
- : null
- ),
- cn(
- c.suffix,
- d =>
- (this.clearable || d) &&
- h('div', { class: `${n}-input__suffix` }, [
- this.clearable &&
- h(
- Vb,
- {
- clsPrefix: n,
- show: this.showClearButton,
- onClear: this.handleClear
- },
- {
- icon: () => {
- var f;
- return (f = c['clear-icon']) === null ||
- f === void 0
- ? void 0
- : f.call(c);
- },
- placeholder: () => {
- var f;
- return (f = c['clear-icon-placeholder']) ===
- null || f === void 0
- ? void 0
- : f.call(c);
- }
- }
- ),
- d
- ])
- )
- )
- : null,
- this.mergedBordered
- ? h('div', { class: `${n}-input__border` })
- : null,
- this.mergedBordered
- ? h('div', { class: `${n}-input__state-border` })
- : null,
- this.showCount && i === 'textarea'
- ? h($S, null, {
- default: d => {
- var f;
- const { renderCount: v } = this;
- return v
- ? v(d)
- : (f = c.count) === null || f === void 0
- ? void 0
- : f.call(c, d);
- }
- })
- : null
- )
- );
- }
- }),
- wV = O(
- 'input-group',
- `
- display: inline-flex;
- width: 100%;
- flex-wrap: nowrap;
- vertical-align: bottom;
- `,
- [
- F('>', [
- O('input', [
- F(
- '&:not(:last-child)',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `
- ),
- F(
- '&:not(:first-child)',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- margin-left: -1px!important;
- `
- )
- ]),
- O('button', [
- F(
- '&:not(:last-child)',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `,
- [
- V(
- 'state-border, border',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `
- )
- ]
- ),
- F(
- '&:not(:first-child)',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `,
- [
- V(
- 'state-border, border',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `
- )
- ]
- )
- ]),
- F('*', [
- F(
- '&:not(:last-child)',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `,
- [
- F('>', [
- O(
- 'input',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `
- ),
- O('base-selection', [
- O(
- 'base-selection-label',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `
- ),
- O(
- 'base-selection-tags',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `
- ),
- V(
- 'box-shadow, border, state-border',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `
- )
- ])
- ])
- ]
- ),
- F(
- '&:not(:first-child)',
- `
- margin-left: -1px!important;
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `,
- [
- F('>', [
- O(
- 'input',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `
- ),
- O('base-selection', [
- O(
- 'base-selection-label',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `
- ),
- O(
- 'base-selection-tags',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `
- ),
- V(
- 'box-shadow, border, state-border',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `
- )
- ])
- ])
- ]
- )
- ])
- ])
- ]
- ),
- CV = {},
- SV = ke({
- name: 'InputGroup',
- props: CV,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e);
- return $a('-input-group', wV, t), { mergedClsPrefix: t };
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h('div', { class: `${e}-input-group` }, this.$slots);
- }
- }),
- Wh = Fo && 'loading' in document.createElement('img'),
- _V = (e = {}) => {
- var t;
- const { root: n = null } = e;
- return {
- hash: `${e.rootMargin || '0px 0px 0px 0px'}-${
- Array.isArray(e.threshold)
- ? e.threshold.join(',')
- : (t = e.threshold) !== null && t !== void 0
- ? t
- : '0'
- }`,
- options: Object.assign(Object.assign({}, e), {
- root:
- (typeof n == 'string' ? document.querySelector(n) : n) ||
- document.documentElement
- })
- };
- },
- $m = new WeakMap(),
- Om = new WeakMap(),
- zm = new WeakMap(),
- Fk = (e, t, n) => {
- if (!e) return () => {};
- const r = _V(t),
- { root: o } = r.options;
- let i;
- const a = $m.get(o);
- a ? (i = a) : ((i = new Map()), $m.set(o, i));
- let s, c;
- i.has(r.hash)
- ? ((c = i.get(r.hash)),
- c[1].has(e) || ((s = c[0]), c[1].add(e), s.observe(e)))
- : ((s = new IntersectionObserver(v => {
- v.forEach(p => {
- if (p.isIntersecting) {
- const m = Om.get(p.target),
- g = zm.get(p.target);
- m && m(), g && (g.value = !0);
- }
- });
- }, r.options)),
- s.observe(e),
- (c = [s, new Set([e])]),
- i.set(r.hash, c));
- let d = !1;
- const f = () => {
- d ||
- (Om.delete(e),
- zm.delete(e),
- (d = !0),
- c[1].has(e) && (c[0].unobserve(e), c[1].delete(e)),
- c[1].size <= 0 && i.delete(r.hash),
- i.size || $m.delete(o));
- };
- return Om.set(e, f), zm.set(e, n), f;
- },
- RV = e => {
- const {
- borderRadius: t,
- avatarColor: n,
- cardColor: r,
- fontSize: o,
- heightTiny: i,
- heightSmall: a,
- heightMedium: s,
- heightLarge: c,
- heightHuge: d,
- modalColor: f,
- popoverColor: v
- } = e;
- return {
- borderRadius: t,
- fontSize: o,
- border: `2px solid ${r}`,
- heightTiny: i,
- heightSmall: a,
- heightMedium: s,
- heightLarge: c,
- heightHuge: d,
- color: Et(r, n),
- colorModal: Et(f, n),
- colorPopover: Et(v, n)
- };
- },
- PV = { name: 'Avatar', common: Nt, self: RV },
- kV = PV,
- TV = 'n-avatar-group',
- $V = O(
- 'avatar',
- `
- width: var(--n-merged-size);
- height: var(--n-merged-size);
- color: #FFF;
- font-size: var(--n-font-size);
- display: inline-flex;
- position: relative;
- overflow: hidden;
- text-align: center;
- border: var(--n-border);
- border-radius: var(--n-border-radius);
- --n-merged-color: var(--n-color);
- background-color: var(--n-merged-color);
- transition:
- border-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `,
- [
- xl(F('&', '--n-merged-color: var(--n-color-modal);')),
- Ps(F('&', '--n-merged-color: var(--n-color-popover);')),
- F(
- 'img',
- `
- width: 100%;
- height: 100%;
- `
- ),
- V(
- 'text',
- `
- white-space: nowrap;
- display: inline-block;
- position: absolute;
- left: 50%;
- top: 50%;
- `
- ),
- O(
- 'icon',
- `
- vertical-align: bottom;
- font-size: calc(var(--n-merged-size) - 6px);
- `
- ),
- V('text', 'line-height: 1.25')
- ]
- ),
- OV = Object.assign(Object.assign({}, Ke.props), {
- size: [String, Number],
- src: String,
- circle: { type: Boolean, default: void 0 },
- objectFit: String,
- round: { type: Boolean, default: void 0 },
- bordered: { type: Boolean, default: void 0 },
- onError: Function,
- fallbackSrc: String,
- intersectionObserverOptions: Object,
- lazy: Boolean,
- onLoad: Function,
- renderPlaceholder: Function,
- renderFallback: Function,
- imgProps: Object,
- color: String
- }),
- zV = ke({
- name: 'Avatar',
- props: OV,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Z(!1);
- let o = null;
- const i = Z(null),
- a = Z(null),
- s = () => {
- const { value: R } = i;
- if (R && (o === null || o !== R.innerHTML)) {
- o = R.innerHTML;
- const { value: S } = a;
- if (S) {
- const { offsetWidth: _, offsetHeight: P } = S,
- { offsetWidth: T, offsetHeight: E } = R,
- z = 0.9,
- k = Math.min((_ / T) * z, (P / E) * z, 1);
- R.style.transform = `translateX(-50%) translateY(-50%) scale(${k})`;
- }
- }
- },
- c = Ze(TV, null),
- d = I(() => {
- const { size: R } = e;
- if (R) return R;
- const { size: S } = c || {};
- return S || 'medium';
- }),
- f = Ke('Avatar', '-avatar', $V, kV, e, t),
- v = Ze($k, null),
- p = I(() => {
- if (c) return !0;
- const { round: R, circle: S } = e;
- return R !== void 0 || S !== void 0
- ? R || S
- : v
- ? v.roundRef.value
- : !1;
- }),
- m = I(() => (c ? !0 : e.bordered || !1)),
- g = R => {
- var S;
- if (!y.value) return;
- r.value = !0;
- const { onError: _, imgProps: P } = e;
- (S = P == null ? void 0 : P.onError) === null ||
- S === void 0 ||
- S.call(P, R),
- _ && _(R);
- };
- $t(
- () => e.src,
- () => (r.value = !1)
- );
- const w = I(() => {
- const R = d.value,
- S = p.value,
- _ = m.value,
- { color: P } = e,
- {
- self: {
- borderRadius: T,
- fontSize: E,
- color: z,
- border: k,
- colorModal: M,
- colorPopover: A
- },
- common: { cubicBezierEaseInOut: D }
- } = f.value;
- let L;
- return (
- typeof R == 'number'
- ? (L = `${R}px`)
- : (L = f.value.self[Ee('height', R)]),
- {
- '--n-font-size': E,
- '--n-border': _ ? k : 'none',
- '--n-border-radius': S ? '50%' : T,
- '--n-color': P || z,
- '--n-color-modal': P || M,
- '--n-color-popover': P || A,
- '--n-bezier': D,
- '--n-merged-size': `var(--n-avatar-size-override, ${L})`
- }
- );
- }),
- x = n
- ? Mt(
- 'avatar',
- I(() => {
- const R = d.value,
- S = p.value,
- _ = m.value,
- { color: P } = e;
- let T = '';
- return (
- R && (typeof R == 'number' ? (T += `a${R}`) : (T += R[0])),
- S && (T += 'b'),
- _ && (T += 'c'),
- P && (T += zc(P)),
- T
- );
- }),
- w,
- e
- )
- : void 0,
- y = Z(!e.lazy);
- Hn(() => {
- if (Wh) return;
- let R;
- const S = Bn(() => {
- R == null || R(),
- (R = void 0),
- e.lazy && (R = Fk(a.value, e.intersectionObserverOptions, y));
- });
- qn(() => {
- S(), R == null || R();
- });
- });
- const C = Z(!e.lazy);
- return {
- textRef: i,
- selfRef: a,
- mergedRoundRef: p,
- mergedClsPrefix: t,
- fitTextTransform: s,
- cssVars: n ? void 0 : w,
- themeClass: x == null ? void 0 : x.themeClass,
- onRender: x == null ? void 0 : x.onRender,
- hasLoadError: r,
- handleError: g,
- shouldStartLoading: y,
- loaded: C,
- mergedOnLoad: R => {
- var S;
- const { onLoad: _, imgProps: P } = e;
- _ == null || _(R),
- (S = P == null ? void 0 : P.onLoad) === null ||
- S === void 0 ||
- S.call(P, R),
- (C.value = !0);
- }
- };
- },
- render() {
- var e, t;
- const {
- $slots: n,
- src: r,
- mergedClsPrefix: o,
- lazy: i,
- onRender: a,
- mergedOnLoad: s,
- shouldStartLoading: c,
- loaded: d,
- hasLoadError: f
- } = this;
- a == null || a();
- let v;
- const p =
- !d &&
- !f &&
- (this.renderPlaceholder
- ? this.renderPlaceholder()
- : (t = (e = this.$slots).placeholder) === null || t === void 0
- ? void 0
- : t.call(e));
- return (
- this.hasLoadError
- ? (v = this.renderFallback
- ? this.renderFallback()
- : Kt(n.fallback, () => [
- h('img', {
- src: this.fallbackSrc,
- style: { objectFit: this.objectFit }
- })
- ]))
- : (v = cn(n.default, m => {
- if (m)
- return h(
- qi,
- { onResize: this.fitTextTransform },
- {
- default: () =>
- h(
- 'span',
- { ref: 'textRef', class: `${o}-avatar__text` },
- m
- )
- }
- );
- if (r) {
- const { imgProps: g } = this;
- return h(
- 'img',
- Object.assign(Object.assign({}, g), {
- loading:
- Wh && !this.intersectionObserverOptions && i
- ? 'lazy'
- : 'eager',
- src: Wh || c || d ? r : void 0,
- onLoad: s,
- 'data-image-src': r,
- onError: this.handleError,
- style: [
- g == null ? void 0 : g.style,
- { objectFit: this.objectFit },
- p
- ? {
- height: '0',
- width: '0',
- visibility: 'hidden',
- position: 'absolute'
- }
- : ''
- ]
- })
- );
- }
- })),
- h(
- 'span',
- {
- ref: 'selfRef',
- class: [`${o}-avatar`, this.themeClass],
- style: this.cssVars
- },
- v,
- i && p
- )
- );
- }
- }),
- EV = {
- width: '44px',
- height: '44px',
- borderRadius: '22px',
- iconSize: '26px'
- },
- AV = e => {
- const {
- popoverColor: t,
- textColor2: n,
- primaryColorHover: r,
- primaryColorPressed: o
- } = e;
- return Object.assign(Object.assign({}, EV), {
- color: t,
- textColor: n,
- iconColor: n,
- iconColorHover: r,
- iconColorPressed: o,
- boxShadow: '0 2px 8px 0px rgba(0, 0, 0, .12)',
- boxShadowHover: '0 2px 12px 0px rgba(0, 0, 0, .18)',
- boxShadowPressed: '0 2px 12px 0px rgba(0, 0, 0, .18)'
- });
- },
- MV = { name: 'BackTop', common: Nt, self: AV },
- IV = MV,
- DV = h(
- 'svg',
- {
- viewBox: '0 0 24 24',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg',
- xlinkHref: 'http://www.w3.org/1999/xlink'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- {
- transform: 'translate(-139.000000, -4423.000000)',
- 'fill-rule': 'nonzero'
- },
- h(
- 'g',
- { transform: 'translate(120.000000, 4285.000000)' },
- h(
- 'g',
- { transform: 'translate(7.000000, 126.000000)' },
- h(
- 'g',
- {
- transform:
- 'translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)'
- },
- h(
- 'g',
- { transform: 'translate(4.000000, 2.000000)' },
- h('path', {
- d: 'M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z'
- }),
- h('path', {
- d: 'M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z'
- })
- )
- )
- )
- )
- )
- )
- ),
- FV = O(
- 'back-top',
- `
- position: fixed;
- right: 40px;
- bottom: 40px;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- color: var(--n-text-color);
- transition:
- color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- border-radius: var(--n-border-radius);
- height: var(--n-height);
- min-width: var(--n-width);
- box-shadow: var(--n-box-shadow);
- background-color: var(--n-color);
- `,
- [
- gi(),
- U('transition-disabled', { transition: 'none !important' }),
- O(
- 'base-icon',
- `
- font-size: var(--n-icon-size);
- color: var(--n-icon-color);
- transition: color .3s var(--n-bezier);
- `
- ),
- F('svg', { pointerEvents: 'none' }),
- F('&:hover', { boxShadow: 'var(--n-box-shadow-hover)' }, [
- O('base-icon', { color: 'var(--n-icon-color-hover)' })
- ]),
- F('&:active', { boxShadow: 'var(--n-box-shadow-pressed)' }, [
- O('base-icon', { color: 'var(--n-icon-color-pressed)' })
- ])
- ]
- ),
- BV = Object.assign(Object.assign({}, Ke.props), {
- show: { type: Boolean, default: void 0 },
- right: { type: [Number, String], default: 40 },
- bottom: { type: [Number, String], default: 40 },
- to: { type: [String, Object], default: 'body' },
- visibilityHeight: { type: Number, default: 180 },
- listenTo: [String, Object, Function],
- 'onUpdate:show': { type: Function, default: () => {} },
- target: Function,
- onShow: Function,
- onHide: Function
- }),
- LV = ke({
- name: 'BackTop',
- inheritAttrs: !1,
- props: BV,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Z(null),
- o = Z(!1);
- Bn(() => {
- const { value: S } = r;
- if (S === null) {
- o.value = !1;
- return;
- }
- o.value = S >= e.visibilityHeight;
- });
- const i = Z(!1);
- $t(o, S => {
- var _;
- i.value &&
- ((_ = e['onUpdate:show']) === null || _ === void 0 || _.call(e, S));
- });
- const a = Ie(e, 'show'),
- s = En(a, o),
- c = Z(!0),
- d = Z(null),
- f = I(() => ({
- right: `calc(${vn(e.right)} + ${Ob.value})`,
- bottom: vn(e.bottom)
- }));
- let v, p;
- $t(s, S => {
- var _, P;
- i.value &&
- (S && ((_ = e.onShow) === null || _ === void 0 || _.call(e)),
- (P = e.onHide) === null || P === void 0 || P.call(e));
- });
- const m = Ke('BackTop', '-back-top', FV, IV, e, t);
- function g() {
- var S;
- if (p) return;
- p = !0;
- const _ =
- ((S = e.target) === null || S === void 0 ? void 0 : S.call(e)) ||
- bI(e.listenTo) ||
- kR(d.value);
- if (!_) return;
- v = _ === document.documentElement ? document : _;
- const { to: P } = e;
- typeof P == 'string' && document.querySelector(P),
- v.addEventListener('scroll', x),
- x();
- }
- function w() {
- (zC(v) ? document.documentElement : v).scrollTo({
- top: 0,
- behavior: 'smooth'
- });
- }
- function x() {
- (r.value = (zC(v) ? document.documentElement : v).scrollTop),
- i.value ||
- mn(() => {
- i.value = !0;
- });
- }
- function y() {
- c.value = !1;
- }
- Hn(() => {
- g(), (c.value = s.value);
- }),
- qn(() => {
- v && v.removeEventListener('scroll', x);
- });
- const C = I(() => {
- const {
- self: {
- color: S,
- boxShadow: _,
- boxShadowHover: P,
- boxShadowPressed: T,
- iconColor: E,
- iconColorHover: z,
- iconColorPressed: k,
- width: M,
- height: A,
- iconSize: D,
- borderRadius: L,
- textColor: H
- },
- common: { cubicBezierEaseInOut: B }
- } = m.value;
- return {
- '--n-bezier': B,
- '--n-border-radius': L,
- '--n-height': A,
- '--n-width': M,
- '--n-box-shadow': _,
- '--n-box-shadow-hover': P,
- '--n-box-shadow-pressed': T,
- '--n-color': S,
- '--n-icon-size': D,
- '--n-icon-color': E,
- '--n-icon-color-hover': z,
- '--n-icon-color-pressed': k,
- '--n-text-color': H
- };
- }),
- R = n ? Mt('back-top', void 0, C, e) : void 0;
- return {
- placeholderRef: d,
- style: f,
- mergedShow: s,
- isMounted: yi(),
- scrollElement: Z(null),
- scrollTop: r,
- DomInfoReady: i,
- transitionDisabled: c,
- mergedClsPrefix: t,
- handleAfterEnter: y,
- handleScroll: x,
- handleClick: w,
- cssVars: n ? void 0 : C,
- themeClass: R == null ? void 0 : R.themeClass,
- onRender: R == null ? void 0 : R.onRender
- };
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h(
- 'div',
- {
- ref: 'placeholderRef',
- class: `${e}-back-top-placeholder`,
- style: 'display: none',
- 'aria-hidden': !0
- },
- h(
- Yu,
- { to: this.to, show: this.mergedShow },
- {
- default: () =>
- h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- appear: this.isMounted,
- onAfterEnter: this.handleAfterEnter
- },
- {
- default: () => {
- var t;
- return (
- (t = this.onRender) === null ||
- t === void 0 ||
- t.call(this),
- this.mergedShow
- ? h(
- 'div',
- qr(this.$attrs, {
- class: [
- `${e}-back-top`,
- this.themeClass,
- this.transitionDisabled &&
- `${e}-back-top--transition-disabled`
- ],
- style: [this.style, this.cssVars],
- onClick: this.handleClick
- }),
- Kt(this.$slots.default, () => [
- h(At, { clsPrefix: e }, { default: () => DV })
- ])
- )
- : null
- );
- }
- }
- )
- }
- )
- );
- }
- }),
- NV = e => {
- const {
- errorColor: t,
- infoColor: n,
- successColor: r,
- warningColor: o,
- fontFamily: i
- } = e;
- return {
- color: t,
- colorInfo: n,
- colorSuccess: r,
- colorError: t,
- colorWarning: o,
- fontSize: '12px',
- fontFamily: i
- };
- },
- HV = { name: 'Badge', common: Nt, self: NV },
- jV = HV,
- WV = F([
- F('@keyframes badge-wave-spread', {
- from: { boxShadow: '0 0 0.5px 0px var(--n-ripple-color)', opacity: 0.6 },
- to: { boxShadow: '0 0 0.5px 4.5px var(--n-ripple-color)', opacity: 0 }
- }),
- O(
- 'badge',
- `
- display: inline-flex;
- position: relative;
- vertical-align: middle;
- color: var(--n-color);
- font-family: var(--n-font-family);
- `,
- [
- U('as-is', [
- O('badge-sup', { position: 'static', transform: 'translateX(0)' }, [
- gi({
- transformOrigin: 'left bottom',
- originalTransform: 'translateX(0)'
- })
- ])
- ]),
- U('dot', [
- O(
- 'badge-sup',
- `
- height: 8px;
- width: 8px;
- padding: 0;
- min-width: 8px;
- left: 100%;
- bottom: calc(100% - 4px);
- `,
- [F('::before', 'border-radius: 4px;')]
- )
- ]),
- O(
- 'badge-sup',
- `
- background: var(--n-color);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- color: #FFF;
- position: absolute;
- height: 18px;
- line-height: 18px;
- border-radius: 9px;
- padding: 0 6px;
- text-align: center;
- font-size: var(--n-font-size);
- transform: translateX(-50%);
- left: 100%;
- bottom: calc(100% - 9px);
- font-variant-numeric: tabular-nums;
- z-index: 1;
- display: flex;
- align-items: center;
- `,
- [
- gi({
- transformOrigin: 'left bottom',
- originalTransform: 'translateX(-50%)'
- }),
- O('base-wave', {
- zIndex: 1,
- animationDuration: '2s',
- animationIterationCount: 'infinite',
- animationDelay: '1s',
- animationTimingFunction: 'var(--n-ripple-bezier)',
- animationName: 'badge-wave-spread'
- }),
- F(
- '&::before',
- `
- opacity: 0;
- transform: scale(1);
- border-radius: 9px;
- content: "";
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `
- )
- ]
- )
- ]
- )
- ]),
- UV = Object.assign(Object.assign({}, Ke.props), {
- value: [String, Number],
- max: Number,
- dot: Boolean,
- type: { type: String, default: 'default' },
- show: { type: Boolean, default: !0 },
- showZero: Boolean,
- processing: Boolean,
- color: String,
- offset: Array
- }),
- VV = ke({
- name: 'Badge',
- props: UV,
- setup(e, { slots: t }) {
- const {
- mergedClsPrefixRef: n,
- inlineThemeDisabled: r,
- mergedRtlRef: o
- } = yt(e),
- i = Ke('Badge', '-badge', WV, jV, e, n),
- a = Z(!1),
- s = () => {
- a.value = !0;
- },
- c = () => {
- a.value = !1;
- },
- d = I(
- () =>
- e.show &&
- (e.dot ||
- (e.value !== void 0 && !(!e.showZero && Number(e.value) <= 0)) ||
- !ps(t.value))
- );
- Hn(() => {
- d.value && (a.value = !0);
- });
- const f = cr('Badge', o, n),
- v = I(() => {
- const { type: g, color: w } = e,
- {
- common: { cubicBezierEaseInOut: x, cubicBezierEaseOut: y },
- self: { [Ee('color', g)]: C, fontFamily: R, fontSize: S }
- } = i.value;
- return {
- '--n-font-size': S,
- '--n-font-family': R,
- '--n-color': w || C,
- '--n-ripple-color': w || C,
- '--n-bezier': x,
- '--n-ripple-bezier': y
- };
- }),
- p = r
- ? Mt(
- 'badge',
- I(() => {
- let g = '';
- const { type: w, color: x } = e;
- return w && (g += w[0]), x && (g += zc(x)), g;
- }),
- v,
- e
- )
- : void 0,
- m = I(() => {
- const { offset: g } = e;
- if (!g) return;
- const [w, x] = g,
- y = typeof w == 'number' ? `${w}px` : w,
- C = typeof x == 'number' ? `${x}px` : x;
- return {
- transform: `translate(calc(${
- f != null && f.value ? '50%' : '-50%'
- } + ${y}), ${C})`
- };
- });
- return {
- rtlEnabled: f,
- mergedClsPrefix: n,
- appeared: a,
- showBadge: d,
- handleAfterEnter: s,
- handleAfterLeave: c,
- cssVars: r ? void 0 : v,
- themeClass: p == null ? void 0 : p.themeClass,
- onRender: p == null ? void 0 : p.onRender,
- offsetStyle: m
- };
- },
- render() {
- var e;
- const {
- mergedClsPrefix: t,
- onRender: n,
- themeClass: r,
- $slots: o
- } = this;
- n == null || n();
- const i = (e = o.default) === null || e === void 0 ? void 0 : e.call(o);
- return h(
- 'div',
- {
- class: [
- `${t}-badge`,
- this.rtlEnabled && `${t}-badge--rtl`,
- r,
- { [`${t}-badge--dot`]: this.dot, [`${t}-badge--as-is`]: !i }
- ],
- style: this.cssVars
- },
- i,
- h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- onAfterEnter: this.handleAfterEnter,
- onAfterLeave: this.handleAfterLeave
- },
- {
- default: () =>
- this.showBadge
- ? h(
- 'sup',
- {
- class: `${t}-badge-sup`,
- title: $R(this.value),
- style: this.offsetStyle
- },
- Kt(o.value, () => [
- this.dot
- ? null
- : h(eV, {
- clsPrefix: t,
- appeared: this.appeared,
- max: this.max,
- value: this.value
- })
- ]),
- this.processing ? h(Pk, { clsPrefix: t }) : null
- )
- : null
- }
- )
- );
- }
- }),
- KV = { fontWeightActive: '400' },
- qV = e => {
- const {
- fontSize: t,
- textColor3: n,
- textColor2: r,
- borderRadius: o,
- buttonColor2Hover: i,
- buttonColor2Pressed: a
- } = e;
- return Object.assign(Object.assign({}, KV), {
- fontSize: t,
- itemLineHeight: '1.25',
- itemTextColor: n,
- itemTextColorHover: r,
- itemTextColorPressed: r,
- itemTextColorActive: r,
- itemBorderRadius: o,
- itemColorHover: i,
- itemColorPressed: a,
- separatorColor: n
- });
- },
- YV = { name: 'Breadcrumb', common: Nt, self: qV },
- GV = YV,
- XV = O(
- 'breadcrumb',
- `
- white-space: nowrap;
- cursor: default;
- line-height: var(--n-item-line-height);
- `,
- [
- F(
- 'ul',
- `
- list-style: none;
- padding: 0;
- margin: 0;
- `
- ),
- F(
- 'a',
- `
- color: inherit;
- text-decoration: inherit;
- `
- ),
- O(
- 'breadcrumb-item',
- `
- font-size: var(--n-font-size);
- transition: color .3s var(--n-bezier);
- display: inline-flex;
- align-items: center;
- `,
- [
- O(
- 'icon',
- `
- font-size: 18px;
- vertical-align: -.2em;
- transition: color .3s var(--n-bezier);
- color: var(--n-item-text-color);
- `
- ),
- F('&:not(:last-child)', [
- U('clickable', [
- V(
- 'link',
- `
- cursor: pointer;
- `,
- [
- F(
- '&:hover',
- `
- background-color: var(--n-item-color-hover);
- `
- ),
- F(
- '&:active',
- `
- background-color: var(--n-item-color-pressed);
- `
- )
- ]
- )
- ])
- ]),
- V(
- 'link',
- `
- padding: 4px;
- border-radius: var(--n-item-border-radius);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- color: var(--n-item-text-color);
- position: relative;
- `,
- [
- F(
- '&:hover',
- `
- color: var(--n-item-text-color-hover);
- `,
- [
- O(
- 'icon',
- `
- color: var(--n-item-text-color-hover);
- `
- )
- ]
- ),
- F(
- '&:active',
- `
- color: var(--n-item-text-color-pressed);
- `,
- [
- O(
- 'icon',
- `
- color: var(--n-item-text-color-pressed);
- `
- )
- ]
- )
- ]
- ),
- V(
- 'separator',
- `
- margin: 0 8px;
- color: var(--n-separator-color);
- transition: color .3s var(--n-bezier);
- user-select: none;
- -webkit-user-select: none;
- `
- ),
- F('&:last-child', [
- V(
- 'link',
- `
- font-weight: var(--n-font-weight-active);
- cursor: unset;
- color: var(--n-item-text-color-active);
- `,
- [
- O(
- 'icon',
- `
- color: var(--n-item-text-color-active);
- `
- )
- ]
- ),
- V(
- 'separator',
- `
- display: none;
- `
- )
- ])
- ]
- )
- ]
- ),
- Bk = 'n-breadcrumb',
- ZV = Object.assign(Object.assign({}, Ke.props), {
- separator: { type: String, default: '/' }
- }),
- QV = ke({
- name: 'Breadcrumb',
- props: ZV,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Breadcrumb', '-breadcrumb', XV, GV, e, t);
- Rt(Bk, { separatorRef: Ie(e, 'separator'), mergedClsPrefixRef: t });
- const o = I(() => {
- const {
- common: { cubicBezierEaseInOut: a },
- self: {
- separatorColor: s,
- itemTextColor: c,
- itemTextColorHover: d,
- itemTextColorPressed: f,
- itemTextColorActive: v,
- fontSize: p,
- fontWeightActive: m,
- itemBorderRadius: g,
- itemColorHover: w,
- itemColorPressed: x,
- itemLineHeight: y
- }
- } = r.value;
- return {
- '--n-font-size': p,
- '--n-bezier': a,
- '--n-item-text-color': c,
- '--n-item-text-color-hover': d,
- '--n-item-text-color-pressed': f,
- '--n-item-text-color-active': v,
- '--n-separator-color': s,
- '--n-item-color-hover': w,
- '--n-item-color-pressed': x,
- '--n-item-border-radius': g,
- '--n-font-weight-active': m,
- '--n-item-line-height': y
- };
- }),
- i = n ? Mt('breadcrumb', void 0, o, e) : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'nav',
- {
- class: [`${this.mergedClsPrefix}-breadcrumb`, this.themeClass],
- style: this.cssVars,
- 'aria-label': 'Breadcrumb'
- },
- h('ul', null, this.$slots)
- )
- );
- }
- }),
- JV = (e = Fo ? window : null) => {
- const t = () => {
- const {
- hash: o,
- host: i,
- hostname: a,
- href: s,
- origin: c,
- pathname: d,
- port: f,
- protocol: v,
- search: p
- } = (e == null ? void 0 : e.location) || {};
- return {
- hash: o,
- host: i,
- hostname: a,
- href: s,
- origin: c,
- pathname: d,
- port: f,
- protocol: v,
- search: p
- };
- },
- n = () => {
- r.value = t();
- },
- r = Z(t());
- return (
- Hn(() => {
- e &&
- (e.addEventListener('popstate', n),
- e.addEventListener('hashchange', n));
- }),
- Nu(() => {
- e &&
- (e.removeEventListener('popstate', n),
- e.removeEventListener('hashchange', n));
- }),
- r
- );
- },
- eK = {
- separator: String,
- href: String,
- clickable: { type: Boolean, default: !0 },
- onClick: Function
- },
- tK = ke({
- name: 'BreadcrumbItem',
- props: eK,
- setup(e, { slots: t }) {
- const n = Ze(Bk, null);
- if (!n) return () => null;
- const { separatorRef: r, mergedClsPrefixRef: o } = n,
- i = JV(),
- a = I(() => (e.href ? 'a' : 'span')),
- s = I(() => (i.value.href === e.href ? 'location' : null));
- return () => {
- const { value: c } = o;
- return h(
- 'li',
- {
- class: [
- `${c}-breadcrumb-item`,
- e.clickable && `${c}-breadcrumb-item--clickable`
- ]
- },
- h(
- a.value,
- {
- class: `${c}-breadcrumb-item__link`,
- 'aria-current': s.value,
- href: e.href,
- onClick: e.onClick
- },
- t
- ),
- h(
- 'span',
- { class: `${c}-breadcrumb-item__separator`, 'aria-hidden': 'true' },
- Kt(t.separator, () => {
- var d;
- return [(d = e.separator) !== null && d !== void 0 ? d : r.value];
- })
- )
- );
- };
- }
- });
- function Ql(e) {
- return Et(e, [255, 255, 255, 0.16]);
- }
- function _h(e) {
- return Et(e, [0, 0, 0, 0.12]);
- }
- const nK = 'n-button-group',
- rK = {
- paddingTiny: '0 6px',
- paddingSmall: '0 10px',
- paddingMedium: '0 14px',
- paddingLarge: '0 18px',
- paddingRoundTiny: '0 10px',
- paddingRoundSmall: '0 14px',
- paddingRoundMedium: '0 18px',
- paddingRoundLarge: '0 22px',
- iconMarginTiny: '6px',
- iconMarginSmall: '6px',
- iconMarginMedium: '6px',
- iconMarginLarge: '6px',
- iconSizeTiny: '14px',
- iconSizeSmall: '18px',
- iconSizeMedium: '18px',
- iconSizeLarge: '20px',
- rippleDuration: '.6s'
- },
- oK = e => {
- const {
- heightTiny: t,
- heightSmall: n,
- heightMedium: r,
- heightLarge: o,
- borderRadius: i,
- fontSizeTiny: a,
- fontSizeSmall: s,
- fontSizeMedium: c,
- fontSizeLarge: d,
- opacityDisabled: f,
- textColor2: v,
- textColor3: p,
- primaryColorHover: m,
- primaryColorPressed: g,
- borderColor: w,
- primaryColor: x,
- baseColor: y,
- infoColor: C,
- infoColorHover: R,
- infoColorPressed: S,
- successColor: _,
- successColorHover: P,
- successColorPressed: T,
- warningColor: E,
- warningColorHover: z,
- warningColorPressed: k,
- errorColor: M,
- errorColorHover: A,
- errorColorPressed: D,
- fontWeight: L,
- buttonColor2: H,
- buttonColor2Hover: B,
- buttonColor2Pressed: q,
- fontWeightStrong: X
- } = e;
- return Object.assign(Object.assign({}, rK), {
- heightTiny: t,
- heightSmall: n,
- heightMedium: r,
- heightLarge: o,
- borderRadiusTiny: i,
- borderRadiusSmall: i,
- borderRadiusMedium: i,
- borderRadiusLarge: i,
- fontSizeTiny: a,
- fontSizeSmall: s,
- fontSizeMedium: c,
- fontSizeLarge: d,
- opacityDisabled: f,
- colorOpacitySecondary: '0.16',
- colorOpacitySecondaryHover: '0.22',
- colorOpacitySecondaryPressed: '0.28',
- colorSecondary: H,
- colorSecondaryHover: B,
- colorSecondaryPressed: q,
- colorTertiary: H,
- colorTertiaryHover: B,
- colorTertiaryPressed: q,
- colorQuaternary: '#0000',
- colorQuaternaryHover: B,
- colorQuaternaryPressed: q,
- color: '#0000',
- colorHover: '#0000',
- colorPressed: '#0000',
- colorFocus: '#0000',
- colorDisabled: '#0000',
- textColor: v,
- textColorTertiary: p,
- textColorHover: m,
- textColorPressed: g,
- textColorFocus: m,
- textColorDisabled: v,
- textColorText: v,
- textColorTextHover: m,
- textColorTextPressed: g,
- textColorTextFocus: m,
- textColorTextDisabled: v,
- textColorGhost: v,
- textColorGhostHover: m,
- textColorGhostPressed: g,
- textColorGhostFocus: m,
- textColorGhostDisabled: v,
- border: `1px solid ${w}`,
- borderHover: `1px solid ${m}`,
- borderPressed: `1px solid ${g}`,
- borderFocus: `1px solid ${m}`,
- borderDisabled: `1px solid ${w}`,
- rippleColor: x,
- colorPrimary: x,
- colorHoverPrimary: m,
- colorPressedPrimary: g,
- colorFocusPrimary: m,
- colorDisabledPrimary: x,
- textColorPrimary: y,
- textColorHoverPrimary: y,
- textColorPressedPrimary: y,
- textColorFocusPrimary: y,
- textColorDisabledPrimary: y,
- textColorTextPrimary: x,
- textColorTextHoverPrimary: m,
- textColorTextPressedPrimary: g,
- textColorTextFocusPrimary: m,
- textColorTextDisabledPrimary: v,
- textColorGhostPrimary: x,
- textColorGhostHoverPrimary: m,
- textColorGhostPressedPrimary: g,
- textColorGhostFocusPrimary: m,
- textColorGhostDisabledPrimary: x,
- borderPrimary: `1px solid ${x}`,
- borderHoverPrimary: `1px solid ${m}`,
- borderPressedPrimary: `1px solid ${g}`,
- borderFocusPrimary: `1px solid ${m}`,
- borderDisabledPrimary: `1px solid ${x}`,
- rippleColorPrimary: x,
- colorInfo: C,
- colorHoverInfo: R,
- colorPressedInfo: S,
- colorFocusInfo: R,
- colorDisabledInfo: C,
- textColorInfo: y,
- textColorHoverInfo: y,
- textColorPressedInfo: y,
- textColorFocusInfo: y,
- textColorDisabledInfo: y,
- textColorTextInfo: C,
- textColorTextHoverInfo: R,
- textColorTextPressedInfo: S,
- textColorTextFocusInfo: R,
- textColorTextDisabledInfo: v,
- textColorGhostInfo: C,
- textColorGhostHoverInfo: R,
- textColorGhostPressedInfo: S,
- textColorGhostFocusInfo: R,
- textColorGhostDisabledInfo: C,
- borderInfo: `1px solid ${C}`,
- borderHoverInfo: `1px solid ${R}`,
- borderPressedInfo: `1px solid ${S}`,
- borderFocusInfo: `1px solid ${R}`,
- borderDisabledInfo: `1px solid ${C}`,
- rippleColorInfo: C,
- colorSuccess: _,
- colorHoverSuccess: P,
- colorPressedSuccess: T,
- colorFocusSuccess: P,
- colorDisabledSuccess: _,
- textColorSuccess: y,
- textColorHoverSuccess: y,
- textColorPressedSuccess: y,
- textColorFocusSuccess: y,
- textColorDisabledSuccess: y,
- textColorTextSuccess: _,
- textColorTextHoverSuccess: P,
- textColorTextPressedSuccess: T,
- textColorTextFocusSuccess: P,
- textColorTextDisabledSuccess: v,
- textColorGhostSuccess: _,
- textColorGhostHoverSuccess: P,
- textColorGhostPressedSuccess: T,
- textColorGhostFocusSuccess: P,
- textColorGhostDisabledSuccess: _,
- borderSuccess: `1px solid ${_}`,
- borderHoverSuccess: `1px solid ${P}`,
- borderPressedSuccess: `1px solid ${T}`,
- borderFocusSuccess: `1px solid ${P}`,
- borderDisabledSuccess: `1px solid ${_}`,
- rippleColorSuccess: _,
- colorWarning: E,
- colorHoverWarning: z,
- colorPressedWarning: k,
- colorFocusWarning: z,
- colorDisabledWarning: E,
- textColorWarning: y,
- textColorHoverWarning: y,
- textColorPressedWarning: y,
- textColorFocusWarning: y,
- textColorDisabledWarning: y,
- textColorTextWarning: E,
- textColorTextHoverWarning: z,
- textColorTextPressedWarning: k,
- textColorTextFocusWarning: z,
- textColorTextDisabledWarning: v,
- textColorGhostWarning: E,
- textColorGhostHoverWarning: z,
- textColorGhostPressedWarning: k,
- textColorGhostFocusWarning: z,
- textColorGhostDisabledWarning: E,
- borderWarning: `1px solid ${E}`,
- borderHoverWarning: `1px solid ${z}`,
- borderPressedWarning: `1px solid ${k}`,
- borderFocusWarning: `1px solid ${z}`,
- borderDisabledWarning: `1px solid ${E}`,
- rippleColorWarning: E,
- colorError: M,
- colorHoverError: A,
- colorPressedError: D,
- colorFocusError: A,
- colorDisabledError: M,
- textColorError: y,
- textColorHoverError: y,
- textColorPressedError: y,
- textColorFocusError: y,
- textColorDisabledError: y,
- textColorTextError: M,
- textColorTextHoverError: A,
- textColorTextPressedError: D,
- textColorTextFocusError: A,
- textColorTextDisabledError: v,
- textColorGhostError: M,
- textColorGhostHoverError: A,
- textColorGhostPressedError: D,
- textColorGhostFocusError: A,
- textColorGhostDisabledError: M,
- borderError: `1px solid ${M}`,
- borderHoverError: `1px solid ${A}`,
- borderPressedError: `1px solid ${D}`,
- borderFocusError: `1px solid ${A}`,
- borderDisabledError: `1px solid ${M}`,
- rippleColorError: M,
- waveOpacity: '0.6',
- fontWeight: L,
- fontWeightStrong: X
- });
- },
- iK = { name: 'Button', common: Nt, self: oK },
- As = iK,
- aK = F([
- O(
- 'button',
- `
- margin: 0;
- font-weight: var(--n-font-weight);
- line-height: 1;
- font-family: inherit;
- padding: var(--n-padding);
- height: var(--n-height);
- font-size: var(--n-font-size);
- border-radius: var(--n-border-radius);
- color: var(--n-text-color);
- background-color: var(--n-color);
- width: var(--n-width);
- white-space: nowrap;
- outline: none;
- position: relative;
- z-index: auto;
- border: none;
- display: inline-flex;
- flex-wrap: nowrap;
- flex-shrink: 0;
- align-items: center;
- justify-content: center;
- user-select: none;
- -webkit-user-select: none;
- text-align: center;
- cursor: pointer;
- text-decoration: none;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- U('color', [
- V('border', { borderColor: 'var(--n-border-color)' }),
- U('disabled', [
- V('border', { borderColor: 'var(--n-border-color-disabled)' })
- ]),
- jt('disabled', [
- F('&:focus', [
- V('state-border', { borderColor: 'var(--n-border-color-focus)' })
- ]),
- F('&:hover', [
- V('state-border', { borderColor: 'var(--n-border-color-hover)' })
- ]),
- F('&:active', [
- V('state-border', {
- borderColor: 'var(--n-border-color-pressed)'
- })
- ]),
- U('pressed', [
- V('state-border', {
- borderColor: 'var(--n-border-color-pressed)'
- })
- ])
- ])
- ]),
- U(
- 'disabled',
- {
- backgroundColor: 'var(--n-color-disabled)',
- color: 'var(--n-text-color-disabled)'
- },
- [V('border', { border: 'var(--n-border-disabled)' })]
- ),
- jt('disabled', [
- F(
- '&:focus',
- {
- backgroundColor: 'var(--n-color-focus)',
- color: 'var(--n-text-color-focus)'
- },
- [V('state-border', { border: 'var(--n-border-focus)' })]
- ),
- F(
- '&:hover',
- {
- backgroundColor: 'var(--n-color-hover)',
- color: 'var(--n-text-color-hover)'
- },
- [V('state-border', { border: 'var(--n-border-hover)' })]
- ),
- F(
- '&:active',
- {
- backgroundColor: 'var(--n-color-pressed)',
- color: 'var(--n-text-color-pressed)'
- },
- [V('state-border', { border: 'var(--n-border-pressed)' })]
- ),
- U(
- 'pressed',
- {
- backgroundColor: 'var(--n-color-pressed)',
- color: 'var(--n-text-color-pressed)'
- },
- [V('state-border', { border: 'var(--n-border-pressed)' })]
- )
- ]),
- U('loading', 'cursor: wait;'),
- O(
- 'base-wave',
- `
- pointer-events: none;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- animation-iteration-count: 1;
- animation-duration: var(--n-ripple-duration);
- animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
- `,
- [
- U('active', {
- zIndex: 1,
- animationName: 'button-wave-spread, button-wave-opacity'
- })
- ]
- ),
- Fo && 'MozBoxSizing' in document.createElement('div').style
- ? F('&::moz-focus-inner', { border: 0 })
- : null,
- V(
- 'border, state-border',
- `
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- border-radius: inherit;
- transition: border-color .3s var(--n-bezier);
- pointer-events: none;
- `
- ),
- V('border', { border: 'var(--n-border)' }),
- V('state-border', {
- border: 'var(--n-border)',
- borderColor: '#0000',
- zIndex: 1
- }),
- V(
- 'icon',
- `
- margin: var(--n-icon-margin);
- margin-left: 0;
- height: var(--n-icon-size);
- width: var(--n-icon-size);
- max-width: var(--n-icon-size);
- font-size: var(--n-icon-size);
- position: relative;
- flex-shrink: 0;
- `,
- [
- O(
- 'icon-slot',
- `
- height: var(--n-icon-size);
- width: var(--n-icon-size);
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- display: flex;
- align-items: center;
- justify-content: center;
- `,
- [br({ top: '50%', originalTransform: 'translateY(-50%)' })]
- ),
- Ek()
- ]
- ),
- V(
- 'content',
- `
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- min-width: 0;
- `,
- [
- F('~', [
- V('icon', { margin: 'var(--n-icon-margin)', marginRight: 0 })
- ])
- ]
- ),
- U(
- 'block',
- `
- display: flex;
- width: 100%;
- `
- ),
- U('dashed', [
- V('border, state-border', { borderStyle: 'dashed !important' })
- ]),
- U('disabled', {
- cursor: 'not-allowed',
- opacity: 'var(--n-opacity-disabled)'
- })
- ]
- ),
- F('@keyframes button-wave-spread', {
- from: { boxShadow: '0 0 0.5px 0 var(--n-ripple-color)' },
- to: { boxShadow: '0 0 0.5px 4.5px var(--n-ripple-color)' }
- }),
- F('@keyframes button-wave-opacity', {
- from: { opacity: 'var(--n-wave-opacity)' },
- to: { opacity: 0 }
- })
- ]),
- lK = Object.assign(Object.assign({}, Ke.props), {
- color: String,
- textColor: String,
- text: Boolean,
- block: Boolean,
- loading: Boolean,
- disabled: Boolean,
- circle: Boolean,
- size: String,
- ghost: Boolean,
- round: Boolean,
- secondary: Boolean,
- tertiary: Boolean,
- quaternary: Boolean,
- strong: Boolean,
- focusable: { type: Boolean, default: !0 },
- keyboard: { type: Boolean, default: !0 },
- tag: { type: String, default: 'button' },
- type: { type: String, default: 'default' },
- dashed: Boolean,
- renderIcon: Function,
- iconPlacement: { type: String, default: 'left' },
- attrType: { type: String, default: 'button' },
- bordered: { type: Boolean, default: !0 },
- onClick: [Function, Array],
- nativeFocusBehavior: { type: Boolean, default: !Ik }
- }),
- Lk = ke({
- name: 'Button',
- props: lK,
- setup(e) {
- const t = Z(null),
- n = Z(null),
- r = Z(!1),
- o = kt(
- () =>
- !e.quaternary &&
- !e.tertiary &&
- !e.secondary &&
- !e.text &&
- (!e.color || e.ghost || e.dashed) &&
- e.bordered
- ),
- i = Ze(nK, {}),
- { mergedSizeRef: a } = ei(
- {},
- {
- defaultSize: 'medium',
- mergedSize: S => {
- const { size: _ } = e;
- if (_) return _;
- const { size: P } = i;
- if (P) return P;
- const { mergedSize: T } = S || {};
- return T ? T.value : 'medium';
- }
- }
- ),
- s = I(() => e.focusable && !e.disabled),
- c = S => {
- var _;
- s.value || S.preventDefault(),
- !e.nativeFocusBehavior &&
- (S.preventDefault(),
- !e.disabled &&
- s.value &&
- ((_ = t.value) === null ||
- _ === void 0 ||
- _.focus({ preventScroll: !0 })));
- },
- d = S => {
- var _;
- if (!e.disabled && !e.loading) {
- const { onClick: P } = e;
- P && Me(P, S),
- e.text || (_ = n.value) === null || _ === void 0 || _.play();
- }
- },
- f = S => {
- switch (S.key) {
- case 'Enter':
- if (!e.keyboard) return;
- r.value = !1;
- }
- },
- v = S => {
- switch (S.key) {
- case 'Enter':
- if (!e.keyboard || e.loading) {
- S.preventDefault();
- return;
- }
- r.value = !0;
- }
- },
- p = () => {
- r.value = !1;
- },
- {
- inlineThemeDisabled: m,
- mergedClsPrefixRef: g,
- mergedRtlRef: w
- } = yt(e),
- x = Ke('Button', '-button', aK, As, e, g),
- y = cr('Button', w, g),
- C = I(() => {
- const S = x.value,
- {
- common: { cubicBezierEaseInOut: _, cubicBezierEaseOut: P },
- self: T
- } = S,
- {
- rippleDuration: E,
- opacityDisabled: z,
- fontWeight: k,
- fontWeightStrong: M
- } = T,
- A = a.value,
- {
- dashed: D,
- type: L,
- ghost: H,
- text: B,
- color: q,
- round: X,
- circle: te,
- textColor: G,
- secondary: Q,
- tertiary: re,
- quaternary: se,
- strong: pe
- } = e,
- ce = { 'font-weight': pe ? M : k };
- let xe = {
- '--n-color': 'initial',
- '--n-color-hover': 'initial',
- '--n-color-pressed': 'initial',
- '--n-color-focus': 'initial',
- '--n-color-disabled': 'initial',
- '--n-ripple-color': 'initial',
- '--n-text-color': 'initial',
- '--n-text-color-hover': 'initial',
- '--n-text-color-pressed': 'initial',
- '--n-text-color-focus': 'initial',
- '--n-text-color-disabled': 'initial'
- };
- const ve = L === 'tertiary',
- be = L === 'default',
- Ce = ve ? 'default' : L;
- if (B) {
- const _e = G || q;
- xe = {
- '--n-color': '#0000',
- '--n-color-hover': '#0000',
- '--n-color-pressed': '#0000',
- '--n-color-focus': '#0000',
- '--n-color-disabled': '#0000',
- '--n-ripple-color': '#0000',
- '--n-text-color': _e || T[Ee('textColorText', Ce)],
- '--n-text-color-hover': _e
- ? Ql(_e)
- : T[Ee('textColorTextHover', Ce)],
- '--n-text-color-pressed': _e
- ? _h(_e)
- : T[Ee('textColorTextPressed', Ce)],
- '--n-text-color-focus': _e
- ? Ql(_e)
- : T[Ee('textColorTextHover', Ce)],
- '--n-text-color-disabled':
- _e || T[Ee('textColorTextDisabled', Ce)]
- };
- } else if (H || D) {
- const _e = G || q;
- xe = {
- '--n-color': '#0000',
- '--n-color-hover': '#0000',
- '--n-color-pressed': '#0000',
- '--n-color-focus': '#0000',
- '--n-color-disabled': '#0000',
- '--n-ripple-color': q || T[Ee('rippleColor', Ce)],
- '--n-text-color': _e || T[Ee('textColorGhost', Ce)],
- '--n-text-color-hover': _e
- ? Ql(_e)
- : T[Ee('textColorGhostHover', Ce)],
- '--n-text-color-pressed': _e
- ? _h(_e)
- : T[Ee('textColorGhostPressed', Ce)],
- '--n-text-color-focus': _e
- ? Ql(_e)
- : T[Ee('textColorGhostHover', Ce)],
- '--n-text-color-disabled':
- _e || T[Ee('textColorGhostDisabled', Ce)]
- };
- } else if (Q) {
- const _e = be
- ? T.textColor
- : ve
- ? T.textColorTertiary
- : T[Ee('color', Ce)],
- le = q || _e,
- Re = L !== 'default' && L !== 'tertiary';
- xe = {
- '--n-color': Re
- ? zt(le, { alpha: Number(T.colorOpacitySecondary) })
- : T.colorSecondary,
- '--n-color-hover': Re
- ? zt(le, { alpha: Number(T.colorOpacitySecondaryHover) })
- : T.colorSecondaryHover,
- '--n-color-pressed': Re
- ? zt(le, { alpha: Number(T.colorOpacitySecondaryPressed) })
- : T.colorSecondaryPressed,
- '--n-color-focus': Re
- ? zt(le, { alpha: Number(T.colorOpacitySecondaryHover) })
- : T.colorSecondaryHover,
- '--n-color-disabled': T.colorSecondary,
- '--n-ripple-color': '#0000',
- '--n-text-color': le,
- '--n-text-color-hover': le,
- '--n-text-color-pressed': le,
- '--n-text-color-focus': le,
- '--n-text-color-disabled': le
- };
- } else if (re || se) {
- const _e = be
- ? T.textColor
- : ve
- ? T.textColorTertiary
- : T[Ee('color', Ce)],
- le = q || _e;
- re
- ? ((xe['--n-color'] = T.colorTertiary),
- (xe['--n-color-hover'] = T.colorTertiaryHover),
- (xe['--n-color-pressed'] = T.colorTertiaryPressed),
- (xe['--n-color-focus'] = T.colorSecondaryHover),
- (xe['--n-color-disabled'] = T.colorTertiary))
- : ((xe['--n-color'] = T.colorQuaternary),
- (xe['--n-color-hover'] = T.colorQuaternaryHover),
- (xe['--n-color-pressed'] = T.colorQuaternaryPressed),
- (xe['--n-color-focus'] = T.colorQuaternaryHover),
- (xe['--n-color-disabled'] = T.colorQuaternary)),
- (xe['--n-ripple-color'] = '#0000'),
- (xe['--n-text-color'] = le),
- (xe['--n-text-color-hover'] = le),
- (xe['--n-text-color-pressed'] = le),
- (xe['--n-text-color-focus'] = le),
- (xe['--n-text-color-disabled'] = le);
- } else
- xe = {
- '--n-color': q || T[Ee('color', Ce)],
- '--n-color-hover': q ? Ql(q) : T[Ee('colorHover', Ce)],
- '--n-color-pressed': q ? _h(q) : T[Ee('colorPressed', Ce)],
- '--n-color-focus': q ? Ql(q) : T[Ee('colorFocus', Ce)],
- '--n-color-disabled': q || T[Ee('colorDisabled', Ce)],
- '--n-ripple-color': q || T[Ee('rippleColor', Ce)],
- '--n-text-color':
- G ||
- (q
- ? T.textColorPrimary
- : ve
- ? T.textColorTertiary
- : T[Ee('textColor', Ce)]),
- '--n-text-color-hover':
- G ||
- (q ? T.textColorHoverPrimary : T[Ee('textColorHover', Ce)]),
- '--n-text-color-pressed':
- G ||
- (q ? T.textColorPressedPrimary : T[Ee('textColorPressed', Ce)]),
- '--n-text-color-focus':
- G ||
- (q ? T.textColorFocusPrimary : T[Ee('textColorFocus', Ce)]),
- '--n-text-color-disabled':
- G ||
- (q
- ? T.textColorDisabledPrimary
- : T[Ee('textColorDisabled', Ce)])
- };
- let ge = {
- '--n-border': 'initial',
- '--n-border-hover': 'initial',
- '--n-border-pressed': 'initial',
- '--n-border-focus': 'initial',
- '--n-border-disabled': 'initial'
- };
- B
- ? (ge = {
- '--n-border': 'none',
- '--n-border-hover': 'none',
- '--n-border-pressed': 'none',
- '--n-border-focus': 'none',
- '--n-border-disabled': 'none'
- })
- : (ge = {
- '--n-border': T[Ee('border', Ce)],
- '--n-border-hover': T[Ee('borderHover', Ce)],
- '--n-border-pressed': T[Ee('borderPressed', Ce)],
- '--n-border-focus': T[Ee('borderFocus', Ce)],
- '--n-border-disabled': T[Ee('borderDisabled', Ce)]
- });
- const {
- [Ee('height', A)]: Ae,
- [Ee('fontSize', A)]: j,
- [Ee('padding', A)]: ee,
- [Ee('paddingRound', A)]: ne,
- [Ee('iconSize', A)]: fe,
- [Ee('borderRadius', A)]: ie,
- [Ee('iconMargin', A)]: W,
- waveOpacity: ae
- } = T,
- he = {
- '--n-width': te && !B ? Ae : 'initial',
- '--n-height': B ? 'initial' : Ae,
- '--n-font-size': j,
- '--n-padding': te || B ? 'initial' : X ? ne : ee,
- '--n-icon-size': fe,
- '--n-icon-margin': W,
- '--n-border-radius': B ? 'initial' : te || X ? Ae : ie
- };
- return Object.assign(
- Object.assign(
- Object.assign(
- Object.assign(
- {
- '--n-bezier': _,
- '--n-bezier-ease-out': P,
- '--n-ripple-duration': E,
- '--n-opacity-disabled': z,
- '--n-wave-opacity': ae
- },
- ce
- ),
- xe
- ),
- ge
- ),
- he
- );
- }),
- R = m
- ? Mt(
- 'button',
- I(() => {
- let S = '';
- const {
- dashed: _,
- type: P,
- ghost: T,
- text: E,
- color: z,
- round: k,
- circle: M,
- textColor: A,
- secondary: D,
- tertiary: L,
- quaternary: H,
- strong: B
- } = e;
- _ && (S += 'a'),
- T && (S += 'b'),
- E && (S += 'c'),
- k && (S += 'd'),
- M && (S += 'e'),
- D && (S += 'f'),
- L && (S += 'g'),
- H && (S += 'h'),
- B && (S += 'i'),
- z && (S += 'j' + zc(z)),
- A && (S += 'k' + zc(A));
- const { value: q } = a;
- return (S += 'l' + q[0]), (S += 'm' + P[0]), S;
- }),
- C,
- e
- )
- : void 0;
- return {
- selfElRef: t,
- waveElRef: n,
- mergedClsPrefix: g,
- mergedFocusable: s,
- mergedSize: a,
- showBorder: o,
- enterPressed: r,
- rtlEnabled: y,
- handleMousedown: c,
- handleKeydown: v,
- handleBlur: p,
- handleKeyup: f,
- handleClick: d,
- customColorCssVars: I(() => {
- const { color: S } = e;
- if (!S) return null;
- const _ = Ql(S);
- return {
- '--n-border-color': S,
- '--n-border-color-hover': _,
- '--n-border-color-pressed': _h(S),
- '--n-border-color-focus': _,
- '--n-border-color-disabled': S
- };
- }),
- cssVars: m ? void 0 : C,
- themeClass: R == null ? void 0 : R.themeClass,
- onRender: R == null ? void 0 : R.onRender
- };
- },
- render() {
- const { mergedClsPrefix: e, tag: t, onRender: n } = this;
- n == null || n();
- const r = cn(
- this.$slots.default,
- o => o && h('span', { class: `${e}-button__content` }, o)
- );
- return h(
- t,
- {
- ref: 'selfElRef',
- class: [
- this.themeClass,
- `${e}-button`,
- `${e}-button--${this.type}-type`,
- `${e}-button--${this.mergedSize}-type`,
- this.rtlEnabled && `${e}-button--rtl`,
- this.disabled && `${e}-button--disabled`,
- this.block && `${e}-button--block`,
- this.enterPressed && `${e}-button--pressed`,
- !this.text && this.dashed && `${e}-button--dashed`,
- this.color && `${e}-button--color`,
- this.secondary && `${e}-button--secondary`,
- this.loading && `${e}-button--loading`,
- this.ghost && `${e}-button--ghost`
- ],
- tabindex: this.mergedFocusable ? 0 : -1,
- type: this.attrType,
- style: this.cssVars,
- disabled: this.disabled,
- onClick: this.handleClick,
- onBlur: this.handleBlur,
- onMousedown: this.handleMousedown,
- onKeyup: this.handleKeyup,
- onKeydown: this.handleKeydown
- },
- this.iconPlacement === 'right' && r,
- h(
- Cl,
- { width: !0 },
- {
- default: () =>
- cn(
- this.$slots.icon,
- o =>
- (this.loading || this.renderIcon || o) &&
- h(
- 'span',
- {
- class: `${e}-button__icon`,
- style: { margin: ps(this.$slots.default) ? '0' : '' }
- },
- h(Ji, null, {
- default: () =>
- this.loading
- ? h(Oa, {
- clsPrefix: e,
- key: 'loading',
- class: `${e}-icon-slot`,
- strokeWidth: 20
- })
- : h(
- 'div',
- {
- key: 'icon',
- class: `${e}-icon-slot`,
- role: 'none'
- },
- this.renderIcon ? this.renderIcon() : o
- )
- })
- )
- )
- }
- ),
- this.iconPlacement === 'left' && r,
- this.text ? null : h(Pk, { ref: 'waveElRef', clsPrefix: e }),
- this.showBorder
- ? h('div', {
- 'aria-hidden': !0,
- class: `${e}-button__border`,
- style: this.customColorCssVars
- })
- : null,
- this.showBorder
- ? h('div', {
- 'aria-hidden': !0,
- class: `${e}-button__state-border`,
- style: this.customColorCssVars
- })
- : null
- );
- }
- }),
- nr = Lk,
- Wi = Lk,
- gv = 1901,
- _s = 40,
- sK = { date: qH, month: Ep, year: pk, quarter: vk };
- function ma(e, t, n) {
- const r = sK[n];
- return Array.isArray(e) ? e.some(o => r(o, t)) : r(e, t);
- }
- function Em(e, t, n, r) {
- let o = !1,
- i = !1,
- a = !1;
- Array.isArray(n) &&
- (n[0] < e && e < n[1] && (o = !0),
- ma(n[0], e, 'date') && (i = !0),
- ma(n[1], e, 'date') && (a = !0));
- const s =
- n !== null &&
- (Array.isArray(n)
- ? ma(n[0], e, 'date') || ma(n[1], e, 'date')
- : ma(n, e, 'date'));
- return {
- type: 'date',
- dateObject: { date: li(e), month: Yn(e), year: er(e) },
- inCurrentMonth: Ep(e, t),
- isCurrentDate: ma(r, e, 'date'),
- inSpan: o,
- startOfSpan: i,
- endOfSpan: a,
- selected: s,
- ts: ht(e)
- };
- }
- function cK(e, t, n) {
- return {
- type: 'month',
- dateObject: { month: Yn(e), year: er(e) },
- isCurrent: Ep(n, e),
- selected: t !== null && ma(t, e, 'month'),
- ts: ht(e)
- };
- }
- function dK(e, t, n) {
- return {
- type: 'year',
- dateObject: { year: er(e) },
- isCurrent: pk(n, e),
- selected: t !== null && ma(t, e, 'year'),
- ts: ht(e)
- };
- }
- function uK(e, t, n) {
- return {
- type: 'quarter',
- dateObject: { quarter: GH(e), year: er(e) },
- isCurrent: vk(n, e),
- selected: t !== null && ma(t, e, 'quarter'),
- ts: ht(e)
- };
- }
- function Kb(e, t, n, r, o = !1) {
- const i = Yn(e);
- let a = ht(ga(e)),
- s = ht(Ch(a, -1));
- const c = [];
- let d = !o;
- for (; mj(s) !== r || d; )
- c.unshift(Em(s, e, t, n)), (s = ht(Ch(s, -1))), (d = !1);
- for (; Yn(a) === i; ) c.push(Em(a, e, t, n)), (a = ht(Ch(a, 1)));
- const f = o ? (c.length <= 28 ? 28 : c.length <= 35 ? 35 : 42) : 42;
- for (; c.length < f; ) c.push(Em(a, e, t, n)), (a = ht(Ch(a, 1)));
- return c;
- }
- function qb(e, t, n) {
- const r = [],
- o = py(e);
- for (let i = 0; i < 12; i++) r.push(cK(ht(Fr(o, i)), t, n));
- return r;
- }
- function Yb(e, t, n) {
- const r = [],
- o = py(e);
- for (let i = 0; i < 4; i++) r.push(uK(ht(WH(o, i)), t, n));
- return r;
- }
- function Gb(e, t) {
- const n = [],
- r = new Date(gv, 0, 1);
- for (let o = 0; o < 200; o++) n.push(dK(ht(Nb(r, o)), e, t));
- return n;
- }
- function xo(e, t, n, r) {
- const o = pW(e, t, n, r);
- return Xo(o) ? (Xn(o, t, r) === e ? o : new Date(NaN)) : o;
- }
- function Uh(e) {
- if (e === void 0) return;
- if (typeof e == 'number') return e;
- const [t, n, r] = e.split(':');
- return { hours: Number(t), minutes: Number(n), seconds: Number(r) };
- }
- function uc(e, t) {
- return Array.isArray(e) ? e[t === 'start' ? 0 : 1] : null;
- }
- const fK = {
- paddingSmall: '12px 16px 12px',
- paddingMedium: '19px 24px 20px',
- paddingLarge: '23px 32px 24px',
- paddingHuge: '27px 40px 28px',
- titleFontSizeSmall: '16px',
- titleFontSizeMedium: '18px',
- titleFontSizeLarge: '18px',
- titleFontSizeHuge: '18px',
- closeIconSize: '18px',
- closeSize: '22px'
- },
- hK = e => {
- const {
- primaryColor: t,
- borderRadius: n,
- lineHeight: r,
- fontSize: o,
- cardColor: i,
- textColor2: a,
- textColor1: s,
- dividerColor: c,
- fontWeightStrong: d,
- closeIconColor: f,
- closeIconColorHover: v,
- closeIconColorPressed: p,
- closeColorHover: m,
- closeColorPressed: g,
- modalColor: w,
- boxShadow1: x,
- popoverColor: y,
- actionColor: C
- } = e;
- return Object.assign(Object.assign({}, fK), {
- lineHeight: r,
- color: i,
- colorModal: w,
- colorPopover: y,
- colorTarget: t,
- colorEmbedded: C,
- colorEmbeddedModal: C,
- colorEmbeddedPopover: C,
- textColor: a,
- titleTextColor: s,
- borderColor: c,
- actionColor: C,
- titleFontWeight: d,
- closeColorHover: m,
- closeColorPressed: g,
- closeBorderRadius: n,
- closeIconColor: f,
- closeIconColorHover: v,
- closeIconColorPressed: p,
- fontSizeSmall: o,
- fontSizeMedium: o,
- fontSizeLarge: o,
- fontSizeHuge: o,
- boxShadow: x,
- borderRadius: n
- });
- },
- vK = { name: 'Card', common: Nt, self: hK },
- Nk = vK,
- pK = F([
- O(
- 'card',
- `
- font-size: var(--n-font-size);
- line-height: var(--n-line-height);
- display: flex;
- flex-direction: column;
- width: 100%;
- box-sizing: border-box;
- position: relative;
- border-radius: var(--n-border-radius);
- background-color: var(--n-color);
- color: var(--n-text-color);
- word-break: break-word;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- LR({ background: 'var(--n-color-modal)' }),
- U('hoverable', [F('&:hover', 'box-shadow: var(--n-box-shadow);')]),
- U('content-segmented', [
- F('>', [V('content', { paddingTop: 'var(--n-padding-bottom)' })])
- ]),
- U('content-soft-segmented', [
- F('>', [
- V(
- 'content',
- `
- margin: 0 var(--n-padding-left);
- padding: var(--n-padding-bottom) 0;
- `
- )
- ])
- ]),
- U('footer-segmented', [
- F('>', [V('footer', { paddingTop: 'var(--n-padding-bottom)' })])
- ]),
- U('footer-soft-segmented', [
- F('>', [
- V(
- 'footer',
- `
- padding: var(--n-padding-bottom) 0;
- margin: 0 var(--n-padding-left);
- `
- )
- ])
- ]),
- F('>', [
- O(
- 'card-header',
- `
- box-sizing: border-box;
- display: flex;
- align-items: center;
- font-size: var(--n-title-font-size);
- padding:
- var(--n-padding-top)
- var(--n-padding-left)
- var(--n-padding-bottom)
- var(--n-padding-left);
- `,
- [
- V(
- 'main',
- `
- font-weight: var(--n-title-font-weight);
- transition: color .3s var(--n-bezier);
- flex: 1;
- min-width: 0;
- color: var(--n-title-text-color);
- `
- ),
- V(
- 'extra',
- `
- display: flex;
- align-items: center;
- font-size: var(--n-font-size);
- font-weight: 400;
- transition: color .3s var(--n-bezier);
- color: var(--n-text-color);
- `
- ),
- V(
- 'close',
- `
- margin: 0 0 0 8px;
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `
- )
- ]
- ),
- V(
- 'action',
- `
- box-sizing: border-box;
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- background-clip: padding-box;
- background-color: var(--n-action-color);
- `
- ),
- V('content', 'flex: 1; min-width: 0;'),
- V(
- 'content, footer',
- `
- box-sizing: border-box;
- padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
- font-size: var(--n-font-size);
- `,
- [F('&:first-child', { paddingTop: 'var(--n-padding-bottom)' })]
- ),
- V(
- 'action',
- `
- background-color: var(--n-action-color);
- padding: var(--n-padding-bottom) var(--n-padding-left);
- border-bottom-left-radius: var(--n-border-radius);
- border-bottom-right-radius: var(--n-border-radius);
- `
- )
- ]),
- O(
- 'card-cover',
- `
- overflow: hidden;
- width: 100%;
- border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
- `,
- [
- F(
- 'img',
- `
- display: block;
- width: 100%;
- `
- )
- ]
- ),
- U(
- 'bordered',
- `
- border: 1px solid var(--n-border-color);
- `,
- [F('&:target', 'border-color: var(--n-color-target);')]
- ),
- U('action-segmented', [
- F('>', [
- V('action', [
- F('&:not(:first-child)', {
- borderTop: '1px solid var(--n-border-color)'
- })
- ])
- ])
- ]),
- U('content-segmented, content-soft-segmented', [
- F('>', [
- V('content', { transition: 'border-color 0.3s var(--n-bezier)' }, [
- F('&:not(:first-child)', {
- borderTop: '1px solid var(--n-border-color)'
- })
- ])
- ])
- ]),
- U('footer-segmented, footer-soft-segmented', [
- F('>', [
- V('footer', { transition: 'border-color 0.3s var(--n-bezier)' }, [
- F('&:not(:first-child)', {
- borderTop: '1px solid var(--n-border-color)'
- })
- ])
- ])
- ]),
- U(
- 'embedded',
- `
- background-color: var(--n-color-embedded);
- `
- )
- ]
- ),
- xl(
- O(
- 'card',
- `
- background: var(--n-color-modal);
- `,
- [
- U(
- 'embedded',
- `
- background-color: var(--n-color-embedded-modal);
- `
- )
- ]
- )
- ),
- Ps(
- O(
- 'card',
- `
- background: var(--n-color-popover);
- `,
- [
- U(
- 'embedded',
- `
- background-color: var(--n-color-embedded-popover);
- `
- )
- ]
- )
- )
- ]),
- Py = {
- title: String,
- contentStyle: [Object, String],
- headerStyle: [Object, String],
- headerExtraStyle: [Object, String],
- footerStyle: [Object, String],
- embedded: Boolean,
- segmented: { type: [Boolean, Object], default: !1 },
- size: { type: String, default: 'medium' },
- bordered: { type: Boolean, default: !0 },
- closable: Boolean,
- hoverable: Boolean,
- role: String,
- onClose: [Function, Array],
- tag: { type: String, default: 'div' }
- },
- gK = Ki(Py),
- mK = Object.assign(Object.assign({}, Ke.props), Py),
- Hk = ke({
- name: 'Card',
- props: mK,
- setup(e) {
- const t = () => {
- const { onClose: d } = e;
- d && Me(d);
- },
- {
- inlineThemeDisabled: n,
- mergedClsPrefixRef: r,
- mergedRtlRef: o
- } = yt(e),
- i = Ke('Card', '-card', pK, Nk, e, r),
- a = cr('Card', o, r),
- s = I(() => {
- const { size: d } = e,
- {
- self: {
- color: f,
- colorModal: v,
- colorTarget: p,
- textColor: m,
- titleTextColor: g,
- titleFontWeight: w,
- borderColor: x,
- actionColor: y,
- borderRadius: C,
- lineHeight: R,
- closeIconColor: S,
- closeIconColorHover: _,
- closeIconColorPressed: P,
- closeColorHover: T,
- closeColorPressed: E,
- closeBorderRadius: z,
- closeIconSize: k,
- closeSize: M,
- boxShadow: A,
- colorPopover: D,
- colorEmbedded: L,
- colorEmbeddedModal: H,
- colorEmbeddedPopover: B,
- [Ee('padding', d)]: q,
- [Ee('fontSize', d)]: X,
- [Ee('titleFontSize', d)]: te
- },
- common: { cubicBezierEaseInOut: G }
- } = i.value,
- { top: Q, left: re, bottom: se } = Go(q);
- return {
- '--n-bezier': G,
- '--n-border-radius': C,
- '--n-color': f,
- '--n-color-modal': v,
- '--n-color-popover': D,
- '--n-color-embedded': L,
- '--n-color-embedded-modal': H,
- '--n-color-embedded-popover': B,
- '--n-color-target': p,
- '--n-text-color': m,
- '--n-line-height': R,
- '--n-action-color': y,
- '--n-title-text-color': g,
- '--n-title-font-weight': w,
- '--n-close-icon-color': S,
- '--n-close-icon-color-hover': _,
- '--n-close-icon-color-pressed': P,
- '--n-close-color-hover': T,
- '--n-close-color-pressed': E,
- '--n-border-color': x,
- '--n-box-shadow': A,
- '--n-padding-top': Q,
- '--n-padding-bottom': se,
- '--n-padding-left': re,
- '--n-font-size': X,
- '--n-title-font-size': te,
- '--n-close-size': M,
- '--n-close-icon-size': k,
- '--n-close-border-radius': z
- };
- }),
- c = n
- ? Mt(
- 'card',
- I(() => e.size[0]),
- s,
- e
- )
- : void 0;
- return {
- rtlEnabled: a,
- mergedClsPrefix: r,
- mergedTheme: i,
- handleCloseClick: t,
- cssVars: n ? void 0 : s,
- themeClass: c == null ? void 0 : c.themeClass,
- onRender: c == null ? void 0 : c.onRender
- };
- },
- render() {
- const {
- segmented: e,
- bordered: t,
- hoverable: n,
- mergedClsPrefix: r,
- rtlEnabled: o,
- onRender: i,
- embedded: a,
- tag: s,
- $slots: c
- } = this;
- return (
- i == null || i(),
- h(
- s,
- {
- class: [
- `${r}-card`,
- this.themeClass,
- a && `${r}-card--embedded`,
- {
- [`${r}-card--rtl`]: o,
- [`${r}-card--content${
- typeof e != 'boolean' && e.content === 'soft' ? '-soft' : ''
- }-segmented`]: e === !0 || (e !== !1 && e.content),
- [`${r}-card--footer${
- typeof e != 'boolean' && e.footer === 'soft' ? '-soft' : ''
- }-segmented`]: e === !0 || (e !== !1 && e.footer),
- [`${r}-card--action-segmented`]:
- e === !0 || (e !== !1 && e.action),
- [`${r}-card--bordered`]: t,
- [`${r}-card--hoverable`]: n
- }
- ],
- style: this.cssVars,
- role: this.role
- },
- cn(
- c.cover,
- d => d && h('div', { class: `${r}-card-cover`, role: 'none' }, d)
- ),
- cn(c.header, d =>
- d || this.title || this.closable
- ? h(
- 'div',
- { class: `${r}-card-header`, style: this.headerStyle },
- h(
- 'div',
- { class: `${r}-card-header__main`, role: 'heading' },
- d || this.title
- ),
- cn(
- c['header-extra'],
- f =>
- f &&
- h(
- 'div',
- {
- class: `${r}-card-header__extra`,
- style: this.headerExtraStyle
- },
- f
- )
- ),
- this.closable
- ? h(Sl, {
- clsPrefix: r,
- class: `${r}-card-header__close`,
- onClick: this.handleCloseClick,
- absolute: !0
- })
- : null
- )
- : null
- ),
- cn(
- c.default,
- d =>
- d &&
- h(
- 'div',
- {
- class: `${r}-card__content`,
- style: this.contentStyle,
- role: 'none'
- },
- d
- )
- ),
- cn(
- c.footer,
- d =>
- d && [
- h(
- 'div',
- {
- class: `${r}-card__footer`,
- style: this.footerStyle,
- role: 'none'
- },
- d
- )
- ]
- ),
- cn(
- c.action,
- d => d && h('div', { class: `${r}-card__action`, role: 'none' }, d)
- )
- )
- );
- }
- }),
- bK = {
- sizeSmall: '14px',
- sizeMedium: '16px',
- sizeLarge: '18px',
- labelPadding: '0 8px',
- labelFontWeight: '400'
- },
- yK = e => {
- const {
- baseColor: t,
- inputColorDisabled: n,
- cardColor: r,
- modalColor: o,
- popoverColor: i,
- textColorDisabled: a,
- borderColor: s,
- primaryColor: c,
- textColor2: d,
- fontSizeSmall: f,
- fontSizeMedium: v,
- fontSizeLarge: p,
- borderRadiusSmall: m,
- lineHeight: g
- } = e;
- return Object.assign(Object.assign({}, bK), {
- labelLineHeight: g,
- fontSizeSmall: f,
- fontSizeMedium: v,
- fontSizeLarge: p,
- borderRadius: m,
- color: t,
- colorChecked: c,
- colorDisabled: n,
- colorDisabledChecked: n,
- colorTableHeader: r,
- colorTableHeaderModal: o,
- colorTableHeaderPopover: i,
- checkMarkColor: t,
- checkMarkColorDisabled: a,
- checkMarkColorDisabledChecked: a,
- border: `1px solid ${s}`,
- borderDisabled: `1px solid ${s}`,
- borderDisabledChecked: `1px solid ${s}`,
- borderChecked: `1px solid ${c}`,
- borderFocus: `1px solid ${c}`,
- boxShadowFocus: `0 0 0 2px ${zt(c, { alpha: 0.3 })}`,
- textColor: d,
- textColorDisabled: a
- });
- },
- xK = { name: 'Checkbox', common: Nt, self: yK },
- ky = xK,
- wK = h(
- 'svg',
- { viewBox: '0 0 64 64', class: 'check-icon' },
- h('path', {
- d: 'M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z'
- })
- ),
- CK = h(
- 'svg',
- { viewBox: '0 0 100 100', class: 'line-icon' },
- h('path', {
- d: 'M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z'
- })
- ),
- jk = 'n-checkbox-group',
- SK = {
- min: Number,
- max: Number,
- size: String,
- value: Array,
- defaultValue: { type: Array, default: null },
- disabled: { type: Boolean, default: void 0 },
- 'onUpdate:value': [Function, Array],
- onUpdateValue: [Function, Array],
- onChange: [Function, Array]
- },
- Wk = ke({
- name: 'CheckboxGroup',
- props: SK,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e),
- n = ei(e),
- { mergedSizeRef: r, mergedDisabledRef: o } = n,
- i = Z(e.defaultValue),
- a = I(() => e.value),
- s = En(a, i),
- c = I(() => {
- var v;
- return (
- ((v = s.value) === null || v === void 0 ? void 0 : v.length) || 0
- );
- }),
- d = I(() => (Array.isArray(s.value) ? new Set(s.value) : new Set()));
- function f(v, p) {
- const { nTriggerFormInput: m, nTriggerFormChange: g } = n,
- { onChange: w, 'onUpdate:value': x, onUpdateValue: y } = e;
- if (Array.isArray(s.value)) {
- const C = Array.from(s.value),
- R = C.findIndex(S => S === p);
- v
- ? ~R ||
- (C.push(p),
- y && Me(y, C, { actionType: 'check', value: p }),
- x && Me(x, C, { actionType: 'check', value: p }),
- m(),
- g(),
- (i.value = C),
- w && Me(w, C))
- : ~R &&
- (C.splice(R, 1),
- y && Me(y, C, { actionType: 'uncheck', value: p }),
- x && Me(x, C, { actionType: 'uncheck', value: p }),
- w && Me(w, C),
- (i.value = C),
- m(),
- g());
- } else
- v
- ? (y && Me(y, [p], { actionType: 'check', value: p }),
- x && Me(x, [p], { actionType: 'check', value: p }),
- w && Me(w, [p]),
- (i.value = [p]),
- m(),
- g())
- : (y && Me(y, [], { actionType: 'uncheck', value: p }),
- x && Me(x, [], { actionType: 'uncheck', value: p }),
- w && Me(w, []),
- (i.value = []),
- m(),
- g());
- }
- return (
- Rt(jk, {
- checkedCountRef: c,
- maxRef: Ie(e, 'max'),
- minRef: Ie(e, 'min'),
- valueSetRef: d,
- disabledRef: o,
- mergedSizeRef: r,
- toggleCheckbox: f
- }),
- { mergedClsPrefix: t }
- );
- },
- render() {
- return h(
- 'div',
- { class: `${this.mergedClsPrefix}-checkbox-group`, role: 'group' },
- this.$slots
- );
- }
- }),
- _K = F([
- O(
- 'checkbox',
- `
- line-height: var(--n-label-line-height);
- font-size: var(--n-font-size);
- outline: none;
- cursor: pointer;
- display: inline-flex;
- flex-wrap: nowrap;
- align-items: flex-start;
- word-break: break-word;
- --n-merged-color-table: var(--n-color-table);
- `,
- [
- F('&:hover', [
- O('checkbox-box', [
- V('border', { border: 'var(--n-border-checked)' })
- ])
- ]),
- F('&:focus:not(:active)', [
- O('checkbox-box', [
- V(
- 'border',
- `
- border: var(--n-border-focus);
- box-shadow: var(--n-box-shadow-focus);
- `
- )
- ])
- ]),
- U('inside-table', [
- O(
- 'checkbox-box',
- `
- background-color: var(--n-merged-color-table);
- `
- )
- ]),
- U('checked', [
- O(
- 'checkbox-box',
- `
- background-color: var(--n-color-checked);
- `,
- [
- O('checkbox-icon', [
- F(
- '.check-icon',
- `
- opacity: 1;
- transform: scale(1);
- `
- )
- ])
- ]
- )
- ]),
- U('indeterminate', [
- O('checkbox-box', [
- O('checkbox-icon', [
- F(
- '.check-icon',
- `
- opacity: 0;
- transform: scale(.5);
- `
- ),
- F(
- '.line-icon',
- `
- opacity: 1;
- transform: scale(1);
- `
- )
- ])
- ])
- ]),
- U('checked, indeterminate', [
- F('&:focus:not(:active)', [
- O('checkbox-box', [
- V(
- 'border',
- `
- border: var(--n-border-checked);
- box-shadow: var(--n-box-shadow-focus);
- `
- )
- ])
- ]),
- O(
- 'checkbox-box',
- `
- background-color: var(--n-color-checked);
- border-left: 0;
- border-top: 0;
- `,
- [V('border', { border: 'var(--n-border-checked)' })]
- )
- ]),
- U('disabled', { cursor: 'not-allowed' }, [
- U('checked', [
- O(
- 'checkbox-box',
- `
- background-color: var(--n-color-disabled-checked);
- `,
- [
- V('border', { border: 'var(--n-border-disabled-checked)' }),
- O('checkbox-icon', [
- F('.check-icon, .line-icon', {
- fill: 'var(--n-check-mark-color-disabled-checked)'
- })
- ])
- ]
- )
- ]),
- O(
- 'checkbox-box',
- `
- background-color: var(--n-color-disabled);
- `,
- [
- V('border', { border: 'var(--n-border-disabled)' }),
- O('checkbox-icon', [
- F('.check-icon, .line-icon', {
- fill: 'var(--n-check-mark-color-disabled)'
- })
- ])
- ]
- ),
- V('label', { color: 'var(--n-text-color-disabled)' })
- ]),
- O(
- 'checkbox-box-wrapper',
- `
- position: relative;
- width: var(--n-size);
- flex-shrink: 0;
- flex-grow: 0;
- user-select: none;
- -webkit-user-select: none;
- `
- ),
- O(
- 'checkbox-box',
- `
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- height: var(--n-size);
- width: var(--n-size);
- display: inline-block;
- box-sizing: border-box;
- border-radius: var(--n-border-radius);
- background-color: var(--n-color);
- transition: background-color 0.3s var(--n-bezier);
- `,
- [
- V(
- 'border',
- `
- transition:
- border-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- border-radius: inherit;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- border: var(--n-border);
- `
- ),
- O(
- 'checkbox-icon',
- `
- display: flex;
- align-items: center;
- justify-content: center;
- position: absolute;
- left: 1px;
- right: 1px;
- top: 1px;
- bottom: 1px;
- `,
- [
- F(
- '.check-icon, .line-icon',
- `
- width: 100%;
- fill: var(--n-check-mark-color);
- opacity: 0;
- transform: scale(0.5);
- transform-origin: center;
- transition:
- fill 0.3s var(--n-bezier),
- transform 0.3s var(--n-bezier),
- opacity 0.3s var(--n-bezier),
- border-color 0.3s var(--n-bezier);
- `
- ),
- br({ left: '1px', top: '1px' })
- ]
- )
- ]
- ),
- V(
- 'label',
- `
- color: var(--n-text-color);
- transition: color .3s var(--n-bezier);
- user-select: none;
- -webkit-user-select: none;
- padding: var(--n-label-padding);
- font-weight: var(--n-label-font-weight);
- `,
- [F('&:empty', { display: 'none' })]
- )
- ]
- ),
- xl(
- O(
- 'checkbox',
- `
- --n-merged-color-table: var(--n-color-table-modal);
- `
- )
- ),
- Ps(
- O(
- 'checkbox',
- `
- --n-merged-color-table: var(--n-color-table-popover);
- `
- )
- )
- ]),
- RK = Object.assign(Object.assign({}, Ke.props), {
- size: String,
- checked: { type: [Boolean, String, Number], default: void 0 },
- defaultChecked: { type: [Boolean, String, Number], default: !1 },
- value: [String, Number],
- disabled: { type: Boolean, default: void 0 },
- indeterminate: Boolean,
- label: String,
- focusable: { type: Boolean, default: !0 },
- checkedValue: { type: [Boolean, String, Number], default: !0 },
- uncheckedValue: { type: [Boolean, String, Number], default: !1 },
- 'onUpdate:checked': [Function, Array],
- onUpdateChecked: [Function, Array],
- privateInsideTable: Boolean,
- onChange: [Function, Array]
- }),
- Zu = ke({
- name: 'Checkbox',
- props: RK,
- setup(e) {
- const t = Z(null),
- {
- mergedClsPrefixRef: n,
- inlineThemeDisabled: r,
- mergedRtlRef: o
- } = yt(e),
- i = ei(e, {
- mergedSize(P) {
- const { size: T } = e;
- if (T !== void 0) return T;
- if (c) {
- const { value: E } = c.mergedSizeRef;
- if (E !== void 0) return E;
- }
- if (P) {
- const { mergedSize: E } = P;
- if (E !== void 0) return E.value;
- }
- return 'medium';
- },
- mergedDisabled(P) {
- const { disabled: T } = e;
- if (T !== void 0) return T;
- if (c) {
- if (c.disabledRef.value) return !0;
- const {
- maxRef: { value: E },
- checkedCountRef: z
- } = c;
- if (E !== void 0 && z.value >= E && !p.value) return !0;
- const {
- minRef: { value: k }
- } = c;
- if (k !== void 0 && z.value <= k && p.value) return !0;
- }
- return P ? P.disabled.value : !1;
- }
- }),
- { mergedDisabledRef: a, mergedSizeRef: s } = i,
- c = Ze(jk, null),
- d = Z(e.defaultChecked),
- f = Ie(e, 'checked'),
- v = En(f, d),
- p = kt(() => {
- if (c) {
- const P = c.valueSetRef.value;
- return P && e.value !== void 0 ? P.has(e.value) : !1;
- } else return v.value === e.checkedValue;
- }),
- m = Ke('Checkbox', '-checkbox', _K, ky, e, n);
- function g(P) {
- if (c && e.value !== void 0) c.toggleCheckbox(!p.value, e.value);
- else {
- const { onChange: T, 'onUpdate:checked': E, onUpdateChecked: z } = e,
- { nTriggerFormInput: k, nTriggerFormChange: M } = i,
- A = p.value ? e.uncheckedValue : e.checkedValue;
- E && Me(E, A, P),
- z && Me(z, A, P),
- T && Me(T, A, P),
- k(),
- M(),
- (d.value = A);
- }
- }
- function w(P) {
- a.value || g(P);
- }
- function x(P) {
- if (!a.value)
- switch (P.key) {
- case ' ':
- case 'Enter':
- g(P);
- }
- }
- function y(P) {
- switch (P.key) {
- case ' ':
- P.preventDefault();
- }
- }
- const C = {
- focus: () => {
- var P;
- (P = t.value) === null || P === void 0 || P.focus();
- },
- blur: () => {
- var P;
- (P = t.value) === null || P === void 0 || P.blur();
- }
- },
- R = cr('Checkbox', o, n),
- S = I(() => {
- const { value: P } = s,
- {
- common: { cubicBezierEaseInOut: T },
- self: {
- borderRadius: E,
- color: z,
- colorChecked: k,
- colorDisabled: M,
- colorTableHeader: A,
- colorTableHeaderModal: D,
- colorTableHeaderPopover: L,
- checkMarkColor: H,
- checkMarkColorDisabled: B,
- border: q,
- borderFocus: X,
- borderDisabled: te,
- borderChecked: G,
- boxShadowFocus: Q,
- textColor: re,
- textColorDisabled: se,
- checkMarkColorDisabledChecked: pe,
- colorDisabledChecked: ce,
- borderDisabledChecked: xe,
- labelPadding: ve,
- labelLineHeight: be,
- labelFontWeight: Ce,
- [Ee('fontSize', P)]: ge,
- [Ee('size', P)]: Ae
- }
- } = m.value;
- return {
- '--n-label-line-height': be,
- '--n-label-font-weight': Ce,
- '--n-size': Ae,
- '--n-bezier': T,
- '--n-border-radius': E,
- '--n-border': q,
- '--n-border-checked': G,
- '--n-border-focus': X,
- '--n-border-disabled': te,
- '--n-border-disabled-checked': xe,
- '--n-box-shadow-focus': Q,
- '--n-color': z,
- '--n-color-checked': k,
- '--n-color-table': A,
- '--n-color-table-modal': D,
- '--n-color-table-popover': L,
- '--n-color-disabled': M,
- '--n-color-disabled-checked': ce,
- '--n-text-color': re,
- '--n-text-color-disabled': se,
- '--n-check-mark-color': H,
- '--n-check-mark-color-disabled': B,
- '--n-check-mark-color-disabled-checked': pe,
- '--n-font-size': ge,
- '--n-label-padding': ve
- };
- }),
- _ = r
- ? Mt(
- 'checkbox',
- I(() => s.value[0]),
- S,
- e
- )
- : void 0;
- return Object.assign(i, C, {
- rtlEnabled: R,
- selfRef: t,
- mergedClsPrefix: n,
- mergedDisabled: a,
- renderedChecked: p,
- mergedTheme: m,
- labelId: pi(),
- handleClick: w,
- handleKeyUp: x,
- handleKeyDown: y,
- cssVars: r ? void 0 : S,
- themeClass: _ == null ? void 0 : _.themeClass,
- onRender: _ == null ? void 0 : _.onRender
- });
- },
- render() {
- var e;
- const {
- $slots: t,
- renderedChecked: n,
- mergedDisabled: r,
- indeterminate: o,
- privateInsideTable: i,
- cssVars: a,
- labelId: s,
- label: c,
- mergedClsPrefix: d,
- focusable: f,
- handleKeyUp: v,
- handleKeyDown: p,
- handleClick: m
- } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'div',
- {
- ref: 'selfRef',
- class: [
- `${d}-checkbox`,
- this.themeClass,
- this.rtlEnabled && `${d}-checkbox--rtl`,
- n && `${d}-checkbox--checked`,
- r && `${d}-checkbox--disabled`,
- o && `${d}-checkbox--indeterminate`,
- i && `${d}-checkbox--inside-table`
- ],
- tabindex: r || !f ? void 0 : 0,
- role: 'checkbox',
- 'aria-checked': o ? 'mixed' : n,
- 'aria-labelledby': s,
- style: a,
- onKeyup: v,
- onKeydown: p,
- onClick: m,
- onMousedown: () => {
- Tn(
- 'selectstart',
- window,
- g => {
- g.preventDefault();
- },
- { once: !0 }
- );
- }
- },
- h(
- 'div',
- { class: `${d}-checkbox-box-wrapper` },
- ' ',
- h(
- 'div',
- { class: `${d}-checkbox-box` },
- h(Ji, null, {
- default: () =>
- this.indeterminate
- ? h(
- 'div',
- { key: 'indeterminate', class: `${d}-checkbox-icon` },
- CK
- )
- : h(
- 'div',
- { key: 'check', class: `${d}-checkbox-icon` },
- wK
- )
- }),
- h('div', { class: `${d}-checkbox-box__border` })
- )
- ),
- c !== null || t.default
- ? h(
- 'span',
- { class: `${d}-checkbox__label`, id: s },
- t.default ? t.default() : c
- )
- : null
- )
- );
- }
- }),
- PK = {
- abstract: Boolean,
- bordered: { type: Boolean, default: void 0 },
- clsPrefix: String,
- locale: Object,
- dateLocale: Object,
- namespace: String,
- rtl: Array,
- tag: { type: String, default: 'div' },
- hljs: Object,
- katex: Object,
- theme: Object,
- themeOverrides: Object,
- componentOptions: Object,
- icons: Object,
- breakpoints: Object,
- preflightStyleDisabled: Boolean,
- inlineThemeDisabled: { type: Boolean, default: void 0 },
- as: {
- type: String,
- validator: () => (
- Io('config-provider', '`as` is deprecated, please use `tag` instead.'),
- !0
- ),
- default: void 0
- }
- },
- Ty = ke({
- name: 'ConfigProvider',
- alias: ['App'],
- props: PK,
- setup(e) {
- const t = Ze(Ca, null),
- n = I(() => {
- const { theme: g } = e;
- if (g === null) return;
- const w = t == null ? void 0 : t.mergedThemeRef.value;
- return g === void 0 ? w : w === void 0 ? g : Object.assign({}, w, g);
- }),
- r = I(() => {
- const { themeOverrides: g } = e;
- if (g !== null) {
- if (g === void 0)
- return t == null ? void 0 : t.mergedThemeOverridesRef.value;
- {
- const w = t == null ? void 0 : t.mergedThemeOverridesRef.value;
- return w === void 0 ? g : jd({}, w, g);
- }
- }
- }),
- o = kt(() => {
- const { namespace: g } = e;
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedNamespaceRef.value
- : g;
- }),
- i = kt(() => {
- const { bordered: g } = e;
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedBorderedRef.value
- : g;
- }),
- a = I(() => {
- const { icons: g } = e;
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedIconsRef.value
- : g;
- }),
- s = I(() => {
- const { componentOptions: g } = e;
- return g !== void 0
- ? g
- : t == null
- ? void 0
- : t.mergedComponentPropsRef.value;
- }),
- c = I(() => {
- const { clsPrefix: g } = e;
- return g !== void 0
- ? g
- : t == null
- ? void 0
- : t.mergedClsPrefixRef.value;
- }),
- d = I(() => {
- var g;
- const { rtl: w } = e;
- if (w === void 0) return t == null ? void 0 : t.mergedRtlRef.value;
- const x = {};
- for (const y of w)
- (x[y.name] = Tc(y)),
- (g = y.peers) === null ||
- g === void 0 ||
- g.forEach(C => {
- C.name in x || (x[C.name] = Tc(C));
- });
- return x;
- }),
- f = I(
- () =>
- e.breakpoints || (t == null ? void 0 : t.mergedBreakpointsRef.value)
- ),
- v =
- e.inlineThemeDisabled || (t == null ? void 0 : t.inlineThemeDisabled),
- p =
- e.preflightStyleDisabled ||
- (t == null ? void 0 : t.preflightStyleDisabled),
- m = I(() => {
- const { value: g } = n,
- { value: w } = r,
- x = w && Object.keys(w).length !== 0,
- y = g == null ? void 0 : g.name;
- return y
- ? x
- ? `${y}-${Su(JSON.stringify(r.value))}`
- : y
- : x
- ? Su(JSON.stringify(r.value))
- : '';
- });
- return (
- Rt(Ca, {
- mergedThemeHashRef: m,
- mergedBreakpointsRef: f,
- mergedRtlRef: d,
- mergedIconsRef: a,
- mergedComponentPropsRef: s,
- mergedBorderedRef: i,
- mergedNamespaceRef: o,
- mergedClsPrefixRef: c,
- mergedLocaleRef: I(() => {
- const { locale: g } = e;
- if (g !== null)
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedLocaleRef.value
- : g;
- }),
- mergedDateLocaleRef: I(() => {
- const { dateLocale: g } = e;
- if (g !== null)
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedDateLocaleRef.value
- : g;
- }),
- mergedHljsRef: I(() => {
- const { hljs: g } = e;
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedHljsRef.value
- : g;
- }),
- mergedKatexRef: I(() => {
- const { katex: g } = e;
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedKatexRef.value
- : g;
- }),
- mergedThemeRef: n,
- mergedThemeOverridesRef: r,
- inlineThemeDisabled: v || !1,
- preflightStyleDisabled: p || !1
- }),
- {
- mergedClsPrefix: c,
- mergedBordered: i,
- mergedNamespace: o,
- mergedTheme: n,
- mergedThemeOverrides: r
- }
- );
- },
- render() {
- var e, t, n, r;
- return this.abstract
- ? (r = (n = this.$slots).default) === null || r === void 0
- ? void 0
- : r.call(n)
- : h(
- this.as || this.tag,
- { class: `${this.mergedClsPrefix || JP}-config-provider` },
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e)
- );
- }
- });
- function kK(e) {
- const { boxShadow2: t } = e;
- return { menuBoxShadow: t };
- }
- const TK = {
- name: 'Popselect',
- common: Nt,
- peers: { Popover: od, InternalSelectMenu: Ry },
- self: kK
- },
- $y = TK,
- Uk = 'n-popselect',
- $K = O(
- 'popselect-menu',
- `
- box-shadow: var(--n-menu-box-shadow);
- `
- ),
- Oy = {
- multiple: Boolean,
- value: { type: [String, Number, Array], default: null },
- cancelable: Boolean,
- options: { type: Array, default: () => [] },
- size: { type: String, default: 'medium' },
- scrollable: Boolean,
- 'onUpdate:value': [Function, Array],
- onUpdateValue: [Function, Array],
- onMouseenter: Function,
- onMouseleave: Function,
- renderLabel: Function,
- showCheckmark: { type: Boolean, default: void 0 },
- nodeProps: Function,
- virtualScroll: Boolean,
- onChange: [Function, Array]
- },
- OS = Ki(Oy),
- OK = ke({
- name: 'PopselectPanel',
- props: Oy,
- setup(e) {
- const t = Ze(Uk),
- { mergedClsPrefixRef: n, inlineThemeDisabled: r } = yt(e),
- o = Ke('Popselect', '-pop-select', $K, $y, t.props, n),
- i = I(() => rd(e.options, Mk('value', 'children')));
- function a(p, m) {
- const { onUpdateValue: g, 'onUpdate:value': w, onChange: x } = e;
- g && Me(g, p, m), w && Me(w, p, m), x && Me(x, p, m);
- }
- function s(p) {
- d(p.key);
- }
- function c(p) {
- Mo(p, 'action') || p.preventDefault();
- }
- function d(p) {
- const {
- value: { getNode: m }
- } = i;
- if (e.multiple)
- if (Array.isArray(e.value)) {
- const g = [],
- w = [];
- let x = !0;
- e.value.forEach(y => {
- if (y === p) {
- x = !1;
- return;
- }
- const C = m(y);
- C && (g.push(C.key), w.push(C.rawNode));
- }),
- x && (g.push(p), w.push(m(p).rawNode)),
- a(g, w);
- } else {
- const g = m(p);
- g && a([p], [g.rawNode]);
- }
- else if (e.value === p && e.cancelable) a(null, null);
- else {
- const g = m(p);
- g && a(p, g.rawNode);
- const { 'onUpdate:show': w, onUpdateShow: x } = t.props;
- w && Me(w, !1), x && Me(x, !1), t.setShow(!1);
- }
- mn(() => {
- t.syncPosition();
- });
- }
- $t(Ie(e, 'options'), () => {
- mn(() => {
- t.syncPosition();
- });
- });
- const f = I(() => {
- const {
- self: { menuBoxShadow: p }
- } = o.value;
- return { '--n-menu-box-shadow': p };
- }),
- v = r ? Mt('select', void 0, f, t.props) : void 0;
- return {
- mergedTheme: t.mergedThemeRef,
- mergedClsPrefix: n,
- treeMate: i,
- handleToggle: s,
- handleMenuMousedown: c,
- cssVars: r ? void 0 : f,
- themeClass: v == null ? void 0 : v.themeClass,
- onRender: v == null ? void 0 : v.onRender
- };
- },
- render() {
- var e;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- Rk,
- {
- clsPrefix: this.mergedClsPrefix,
- focusable: !0,
- nodeProps: this.nodeProps,
- class: [`${this.mergedClsPrefix}-popselect-menu`, this.themeClass],
- style: this.cssVars,
- theme: this.mergedTheme.peers.InternalSelectMenu,
- themeOverrides: this.mergedTheme.peerOverrides.InternalSelectMenu,
- multiple: this.multiple,
- treeMate: this.treeMate,
- size: this.size,
- value: this.value,
- virtualScroll: this.virtualScroll,
- scrollable: this.scrollable,
- renderLabel: this.renderLabel,
- onToggle: this.handleToggle,
- onMouseenter: this.onMouseenter,
- onMouseleave: this.onMouseenter,
- onMousedown: this.handleMenuMousedown,
- showCheckmark: this.showCheckmark
- },
- {
- action: () => {
- var t, n;
- return (
- ((n = (t = this.$slots).action) === null || n === void 0
- ? void 0
- : n.call(t)) || []
- );
- },
- empty: () => {
- var t, n;
- return (
- ((n = (t = this.$slots).empty) === null || n === void 0
- ? void 0
- : n.call(t)) || []
- );
- }
- }
- )
- );
- }
- }),
- zK = Object.assign(
- Object.assign(
- Object.assign(
- Object.assign({}, Ke.props),
- Xc(Ic, ['showArrow', 'arrow'])
- ),
- {
- placement: Object.assign(Object.assign({}, Ic.placement), {
- default: 'bottom'
- }),
- trigger: { type: String, default: 'hover' }
- }
- ),
- Oy
- ),
- EK = ke({
- name: 'Popselect',
- props: zK,
- inheritAttrs: !1,
- __popover__: !0,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e),
- n = Ke('Popselect', '-popselect', void 0, $y, e, t),
- r = Z(null);
- function o() {
- var s;
- (s = r.value) === null || s === void 0 || s.syncPosition();
- }
- function i(s) {
- var c;
- (c = r.value) === null || c === void 0 || c.setShow(s);
- }
- return (
- Rt(Uk, { props: e, mergedThemeRef: n, syncPosition: o, setShow: i }),
- Object.assign(Object.assign({}, { syncPosition: o, setShow: i }), {
- popoverInstRef: r,
- mergedTheme: n
- })
- );
- },
- render() {
- const { mergedTheme: e } = this,
- t = {
- theme: e.peers.Popover,
- themeOverrides: e.peerOverrides.Popover,
- builtinThemeOverrides: { padding: '0' },
- ref: 'popoverInstRef',
- internalRenderBody: (n, r, o, i, a) => {
- const { $attrs: s } = this;
- return h(
- OK,
- Object.assign(
- {},
- s,
- { class: [s.class, n], style: [s.style, o] },
- fi(this.$props, OS),
- {
- ref: zR(r),
- onMouseenter: Jd([i, s.onMouseenter]),
- onMouseleave: Jd([a, s.onMouseleave])
- }
- ),
- {
- action: () => {
- var c, d;
- return (d = (c = this.$slots).action) === null || d === void 0
- ? void 0
- : d.call(c);
- },
- empty: () => {
- var c, d;
- return (d = (c = this.$slots).empty) === null || d === void 0
- ? void 0
- : d.call(c);
- }
- }
- );
- }
- };
- return h(
- id,
- Object.assign({}, Xc(this.$props, OS), t, {
- internalDeactivateImmediately: !0
- }),
- {
- trigger: () => {
- var n, r;
- return (r = (n = this.$slots).default) === null || r === void 0
- ? void 0
- : r.call(n);
- }
- }
- );
- }
- });
- function AK(e) {
- const { boxShadow2: t } = e;
- return { menuBoxShadow: t };
- }
- const MK = {
- name: 'Select',
- common: Nt,
- peers: { InternalSelection: zk, InternalSelectMenu: Ry },
- self: AK
- },
- Vk = MK,
- IK = F([
- O(
- 'select',
- `
- z-index: auto;
- outline: none;
- width: 100%;
- position: relative;
- `
- ),
- O(
- 'select-menu',
- `
- margin: 4px 0;
- box-shadow: var(--n-menu-box-shadow);
- `,
- [
- gi({
- originalTransition:
- 'background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)'
- })
- ]
- )
- ]),
- DK = Object.assign(Object.assign({}, Ke.props), {
- to: Yr.propTo,
- bordered: { type: Boolean, default: void 0 },
- clearable: Boolean,
- clearFilterAfterSelect: { type: Boolean, default: !0 },
- options: { type: Array, default: () => [] },
- defaultValue: { type: [String, Number, Array], default: null },
- keyboard: { type: Boolean, default: !0 },
- value: [String, Number, Array],
- placeholder: String,
- menuProps: Object,
- multiple: Boolean,
- size: String,
- filterable: Boolean,
- disabled: { type: Boolean, default: void 0 },
- remote: Boolean,
- loading: Boolean,
- filter: Function,
- placement: { type: String, default: 'bottom-start' },
- widthMode: { type: String, default: 'trigger' },
- tag: Boolean,
- onCreate: Function,
- fallbackOption: { type: [Function, Boolean], default: void 0 },
- show: { type: Boolean, default: void 0 },
- showArrow: { type: Boolean, default: !0 },
- maxTagCount: [Number, String],
- consistentMenuWidth: { type: Boolean, default: !0 },
- virtualScroll: { type: Boolean, default: !0 },
- labelField: { type: String, default: 'label' },
- valueField: { type: String, default: 'value' },
- childrenField: { type: String, default: 'children' },
- renderLabel: Function,
- renderOption: Function,
- renderTag: Function,
- 'onUpdate:value': [Function, Array],
- inputProps: Object,
- nodeProps: Function,
- ignoreComposition: { type: Boolean, default: !0 },
- showOnFocus: Boolean,
- onUpdateValue: [Function, Array],
- onBlur: [Function, Array],
- onClear: [Function, Array],
- onFocus: [Function, Array],
- onScroll: [Function, Array],
- onSearch: [Function, Array],
- onUpdateShow: [Function, Array],
- 'onUpdate:show': [Function, Array],
- displayDirective: { type: String, default: 'show' },
- resetMenuOnOptionsChange: { type: Boolean, default: !0 },
- status: String,
- showCheckmark: { type: Boolean, default: !0 },
- onChange: [Function, Array],
- items: Array
- }),
- Kk = ke({
- name: 'Select',
- props: DK,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- mergedBorderedRef: n,
- namespaceRef: r,
- inlineThemeDisabled: o
- } = yt(e),
- i = Ke('Select', '-select', IK, Vk, e, t),
- a = Z(e.defaultValue),
- s = Ie(e, 'value'),
- c = En(s, a),
- d = Z(!1),
- f = Z(''),
- v = I(() => {
- const { valueField: oe, childrenField: ze } = e,
- We = Mk(oe, ze);
- return rd(A.value, We);
- }),
- p = I(() => uV(k.value, e.valueField, e.childrenField)),
- m = Z(!1),
- g = En(Ie(e, 'show'), m),
- w = Z(null),
- x = Z(null),
- y = Z(null),
- { localeRef: C } = Ta('Select'),
- R = I(() => {
- var oe;
- return (oe = e.placeholder) !== null && oe !== void 0
- ? oe
- : C.value.placeholder;
- }),
- S = xs(e, ['items', 'options']),
- _ = [],
- P = Z([]),
- T = Z([]),
- E = Z(new Map()),
- z = I(() => {
- const { fallbackOption: oe } = e;
- if (oe === void 0) {
- const { labelField: ze, valueField: We } = e;
- return lt => ({ [ze]: String(lt), [We]: lt });
- }
- return oe === !1 ? !1 : ze => Object.assign(oe(ze), { value: ze });
- }),
- k = I(() => T.value.concat(P.value).concat(S.value)),
- M = I(() => {
- const { filter: oe } = e;
- if (oe) return oe;
- const { labelField: ze, valueField: We } = e;
- return (lt, st) => {
- if (!st) return !1;
- const me = st[ze];
- if (typeof me == 'string') return Tm(lt, me);
- const He = st[We];
- return typeof He == 'string'
- ? Tm(lt, He)
- : typeof He == 'number'
- ? Tm(lt, String(He))
- : !1;
- };
- }),
- A = I(() => {
- if (e.remote) return S.value;
- {
- const { value: oe } = k,
- { value: ze } = f;
- return !ze.length || !e.filterable
- ? oe
- : dV(oe, M.value, ze, e.childrenField);
- }
- });
- function D(oe) {
- const ze = e.remote,
- { value: We } = E,
- { value: lt } = p,
- { value: st } = z,
- me = [];
- return (
- oe.forEach(He => {
- if (lt.has(He)) me.push(lt.get(He));
- else if (ze && We.has(He)) me.push(We.get(He));
- else if (st) {
- const tt = st(He);
- tt && me.push(tt);
- }
- }),
- me
- );
- }
- const L = I(() => {
- if (e.multiple) {
- const { value: oe } = c;
- return Array.isArray(oe) ? D(oe) : [];
- }
- return null;
- }),
- H = I(() => {
- const { value: oe } = c;
- return !e.multiple && !Array.isArray(oe)
- ? oe === null
- ? null
- : D([oe])[0] || null
- : null;
- }),
- B = ei(e),
- { mergedSizeRef: q, mergedDisabledRef: X, mergedStatusRef: te } = B;
- function G(oe, ze) {
- const { onChange: We, 'onUpdate:value': lt, onUpdateValue: st } = e,
- { nTriggerFormChange: me, nTriggerFormInput: He } = B;
- We && Me(We, oe, ze),
- st && Me(st, oe, ze),
- lt && Me(lt, oe, ze),
- (a.value = oe),
- me(),
- He();
- }
- function Q(oe) {
- const { onBlur: ze } = e,
- { nTriggerFormBlur: We } = B;
- ze && Me(ze, oe), We();
- }
- function re() {
- const { onClear: oe } = e;
- oe && Me(oe);
- }
- function se(oe) {
- const { onFocus: ze, showOnFocus: We } = e,
- { nTriggerFormFocus: lt } = B;
- ze && Me(ze, oe), lt(), We && be();
- }
- function pe(oe) {
- const { onSearch: ze } = e;
- ze && Me(ze, oe);
- }
- function ce(oe) {
- const { onScroll: ze } = e;
- ze && Me(ze, oe);
- }
- function xe() {
- var oe;
- const { remote: ze, multiple: We } = e;
- if (ze) {
- const { value: lt } = E;
- if (We) {
- const { valueField: st } = e;
- (oe = L.value) === null ||
- oe === void 0 ||
- oe.forEach(me => {
- lt.set(me[st], me);
- });
- } else {
- const st = H.value;
- st && lt.set(st[e.valueField], st);
- }
- }
- }
- function ve(oe) {
- const { onUpdateShow: ze, 'onUpdate:show': We } = e;
- ze && Me(ze, oe), We && Me(We, oe), (m.value = oe);
- }
- function be() {
- X.value || (ve(!0), (m.value = !0), e.filterable && Lt());
- }
- function Ce() {
- ve(!1);
- }
- function ge() {
- (f.value = ''), (T.value = _);
- }
- const Ae = Z(!1);
- function j() {
- e.filterable && (Ae.value = !0);
- }
- function ee() {
- e.filterable && ((Ae.value = !1), g.value || ge());
- }
- function ne() {
- X.value || (g.value ? (e.filterable ? Lt() : Ce()) : be());
- }
- function fe(oe) {
- var ze, We;
- (!(
- (We =
- (ze = y.value) === null || ze === void 0 ? void 0 : ze.selfRef) ===
- null || We === void 0
- ) &&
- We.contains(oe.relatedTarget)) ||
- ((d.value = !1), Q(oe), Ce());
- }
- function ie(oe) {
- se(oe), (d.value = !0);
- }
- function W(oe) {
- d.value = !0;
- }
- function ae(oe) {
- var ze;
- (!((ze = w.value) === null || ze === void 0) &&
- ze.$el.contains(oe.relatedTarget)) ||
- ((d.value = !1), Q(oe), Ce());
- }
- function he() {
- var oe;
- (oe = w.value) === null || oe === void 0 || oe.focus(), Ce();
- }
- function _e(oe) {
- var ze;
- g.value &&
- ((!((ze = w.value) === null || ze === void 0) &&
- ze.$el.contains(xa(oe))) ||
- Ce());
- }
- function le(oe) {
- if (!Array.isArray(oe)) return [];
- if (z.value) return Array.from(oe);
- {
- const { remote: ze } = e,
- { value: We } = p;
- if (ze) {
- const { value: lt } = E;
- return oe.filter(st => We.has(st) || lt.has(st));
- } else return oe.filter(lt => We.has(lt));
- }
- }
- function Re(oe) {
- Ne(oe.rawNode);
- }
- function Ne(oe) {
- if (X.value) return;
- const {
- tag: ze,
- remote: We,
- clearFilterAfterSelect: lt,
- valueField: st
- } = e;
- if (ze && !We) {
- const { value: me } = T,
- He = me[0] || null;
- if (He) {
- const tt = P.value;
- tt.length ? tt.push(He) : (P.value = [He]), (T.value = _);
- }
- }
- if ((We && E.value.set(oe[st], oe), e.multiple)) {
- const me = le(c.value),
- He = me.findIndex(tt => tt === oe[st]);
- if (~He) {
- if ((me.splice(He, 1), ze && !We)) {
- const tt = Ge(oe[st]);
- ~tt && (P.value.splice(tt, 1), lt && (f.value = ''));
- }
- } else me.push(oe[st]), lt && (f.value = '');
- G(me, D(me));
- } else {
- if (ze && !We) {
- const me = Ge(oe[st]);
- ~me ? (P.value = [P.value[me]]) : (P.value = _);
- }
- wt(), Ce(), G(oe[st], oe);
- }
- }
- function Ge(oe) {
- return P.value.findIndex(We => We[e.valueField] === oe);
- }
- function it(oe) {
- g.value || be();
- const { value: ze } = oe.target;
- f.value = ze;
- const { tag: We, remote: lt } = e;
- if ((pe(ze), We && !lt)) {
- if (!ze) {
- T.value = _;
- return;
- }
- const { onCreate: st } = e,
- me = st ? st(ze) : { [e.labelField]: ze, [e.valueField]: ze },
- { valueField: He } = e;
- S.value.some(tt => tt[He] === me[He]) ||
- P.value.some(tt => tt[He] === me[He])
- ? (T.value = _)
- : (T.value = [me]);
- }
- }
- function dt(oe) {
- oe.stopPropagation();
- const { multiple: ze } = e;
- !ze && e.filterable && Ce(), re(), ze ? G([], []) : G(null, null);
- }
- function xt(oe) {
- !Mo(oe, 'action') && !Mo(oe, 'empty') && oe.preventDefault();
- }
- function De(oe) {
- ce(oe);
- }
- function ut(oe) {
- var ze, We, lt, st, me;
- if (!e.keyboard) {
- oe.preventDefault();
- return;
- }
- switch (oe.key) {
- case ' ':
- if (e.filterable) break;
- oe.preventDefault();
- case 'Enter':
- if (
- !(!((ze = w.value) === null || ze === void 0) && ze.isComposing)
- ) {
- if (g.value) {
- const He =
- (We = y.value) === null || We === void 0
- ? void 0
- : We.getPendingTmNode();
- He ? Re(He) : e.filterable || (Ce(), wt());
- } else if ((be(), e.tag && Ae.value)) {
- const He = T.value[0];
- if (He) {
- const tt = He[e.valueField],
- { value: pt } = c;
- (e.multiple &&
- Array.isArray(pt) &&
- pt.some(Pe => Pe === tt)) ||
- Ne(He);
- }
- }
- }
- oe.preventDefault();
- break;
- case 'ArrowUp':
- if ((oe.preventDefault(), e.loading)) return;
- g.value && ((lt = y.value) === null || lt === void 0 || lt.prev());
- break;
- case 'ArrowDown':
- if ((oe.preventDefault(), e.loading)) return;
- g.value
- ? (st = y.value) === null || st === void 0 || st.next()
- : be();
- break;
- case 'Escape':
- g.value && (Ru(oe), Ce()),
- (me = w.value) === null || me === void 0 || me.focus();
- break;
- }
- }
- function wt() {
- var oe;
- (oe = w.value) === null || oe === void 0 || oe.focus();
- }
- function Lt() {
- var oe;
- (oe = w.value) === null || oe === void 0 || oe.focusInput();
- }
- function ot() {
- var oe;
- g.value &&
- ((oe = x.value) === null || oe === void 0 || oe.syncPosition());
- }
- xe(), $t(Ie(e, 'options'), xe);
- const ct = {
- focus: () => {
- var oe;
- (oe = w.value) === null || oe === void 0 || oe.focus();
- },
- blur: () => {
- var oe;
- (oe = w.value) === null || oe === void 0 || oe.blur();
- }
- },
- Xe = I(() => {
- const {
- self: { menuBoxShadow: oe }
- } = i.value;
- return { '--n-menu-box-shadow': oe };
- }),
- Qe = o ? Mt('select', void 0, Xe, e) : void 0;
- return Object.assign(Object.assign({}, ct), {
- mergedStatus: te,
- mergedClsPrefix: t,
- mergedBordered: n,
- namespace: r,
- treeMate: v,
- isMounted: yi(),
- triggerRef: w,
- menuRef: y,
- pattern: f,
- uncontrolledShow: m,
- mergedShow: g,
- adjustedTo: Yr(e),
- uncontrolledValue: a,
- mergedValue: c,
- followerRef: x,
- localizedPlaceholder: R,
- selectedOption: H,
- selectedOptions: L,
- mergedSize: q,
- mergedDisabled: X,
- focused: d,
- activeWithoutMenuOpen: Ae,
- inlineThemeDisabled: o,
- onTriggerInputFocus: j,
- onTriggerInputBlur: ee,
- handleTriggerOrMenuResize: ot,
- handleMenuFocus: W,
- handleMenuBlur: ae,
- handleMenuTabOut: he,
- handleTriggerClick: ne,
- handleToggle: Re,
- handleDeleteOption: Ne,
- handlePatternInput: it,
- handleClear: dt,
- handleTriggerBlur: fe,
- handleTriggerFocus: ie,
- handleKeydown: ut,
- handleMenuAfterLeave: ge,
- handleMenuClickOutside: _e,
- handleMenuScroll: De,
- handleMenuKeydown: ut,
- handleMenuMousedown: xt,
- mergedTheme: i,
- cssVars: o ? void 0 : Xe,
- themeClass: Qe == null ? void 0 : Qe.themeClass,
- onRender: Qe == null ? void 0 : Qe.onRender
- });
- },
- render() {
- return h(
- 'div',
- { class: `${this.mergedClsPrefix}-select` },
- h(Qc, null, {
- default: () => [
- h(Jc, null, {
- default: () =>
- h(
- ZU,
- {
- ref: 'triggerRef',
- inlineThemeDisabled: this.inlineThemeDisabled,
- status: this.mergedStatus,
- inputProps: this.inputProps,
- clsPrefix: this.mergedClsPrefix,
- showArrow: this.showArrow,
- maxTagCount: this.maxTagCount,
- bordered: this.mergedBordered,
- active: this.activeWithoutMenuOpen || this.mergedShow,
- pattern: this.pattern,
- placeholder: this.localizedPlaceholder,
- selectedOption: this.selectedOption,
- selectedOptions: this.selectedOptions,
- multiple: this.multiple,
- renderTag: this.renderTag,
- renderLabel: this.renderLabel,
- filterable: this.filterable,
- clearable: this.clearable,
- disabled: this.mergedDisabled,
- size: this.mergedSize,
- theme: this.mergedTheme.peers.InternalSelection,
- labelField: this.labelField,
- valueField: this.valueField,
- themeOverrides:
- this.mergedTheme.peerOverrides.InternalSelection,
- loading: this.loading,
- focused: this.focused,
- onClick: this.handleTriggerClick,
- onDeleteOption: this.handleDeleteOption,
- onPatternInput: this.handlePatternInput,
- onClear: this.handleClear,
- onBlur: this.handleTriggerBlur,
- onFocus: this.handleTriggerFocus,
- onKeydown: this.handleKeydown,
- onPatternBlur: this.onTriggerInputBlur,
- onPatternFocus: this.onTriggerInputFocus,
- onResize: this.handleTriggerOrMenuResize,
- ignoreComposition: this.ignoreComposition
- },
- {
- arrow: () => {
- var e, t;
- return [
- (t = (e = this.$slots).arrow) === null || t === void 0
- ? void 0
- : t.call(e)
- ];
- }
- }
- )
- }),
- h(
- ed,
- {
- ref: 'followerRef',
- show: this.mergedShow,
- to: this.adjustedTo,
- teleportDisabled: this.adjustedTo === Yr.tdkey,
- containerClass: this.namespace,
- width: this.consistentMenuWidth ? 'target' : void 0,
- minWidth: 'target',
- placement: this.placement
- },
- {
- default: () =>
- h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- appear: this.isMounted,
- onAfterLeave: this.handleMenuAfterLeave
- },
- {
- default: () => {
- var e, t, n;
- return this.mergedShow ||
- this.displayDirective === 'show'
- ? ((e = this.onRender) === null ||
- e === void 0 ||
- e.call(this),
- Er(
- h(
- Rk,
- Object.assign({}, this.menuProps, {
- ref: 'menuRef',
- onResize: this.handleTriggerOrMenuResize,
- inlineThemeDisabled: this.inlineThemeDisabled,
- virtualScroll:
- this.consistentMenuWidth &&
- this.virtualScroll,
- class: [
- `${this.mergedClsPrefix}-select-menu`,
- this.themeClass,
- (t = this.menuProps) === null ||
- t === void 0
- ? void 0
- : t.class
- ],
- clsPrefix: this.mergedClsPrefix,
- focusable: !0,
- labelField: this.labelField,
- valueField: this.valueField,
- autoPending: !0,
- nodeProps: this.nodeProps,
- theme:
- this.mergedTheme.peers.InternalSelectMenu,
- themeOverrides:
- this.mergedTheme.peerOverrides
- .InternalSelectMenu,
- treeMate: this.treeMate,
- multiple: this.multiple,
- size: 'medium',
- renderOption: this.renderOption,
- renderLabel: this.renderLabel,
- value: this.mergedValue,
- style: [
- (n = this.menuProps) === null ||
- n === void 0
- ? void 0
- : n.style,
- this.cssVars
- ],
- onToggle: this.handleToggle,
- onScroll: this.handleMenuScroll,
- onFocus: this.handleMenuFocus,
- onBlur: this.handleMenuBlur,
- onKeydown: this.handleMenuKeydown,
- onTabOut: this.handleMenuTabOut,
- onMousedown: this.handleMenuMousedown,
- show: this.mergedShow,
- showCheckmark: this.showCheckmark,
- resetMenuOnOptionsChange:
- this.resetMenuOnOptionsChange
- }),
- {
- empty: () => {
- var r, o;
- return [
- (o = (r = this.$slots).empty) === null ||
- o === void 0
- ? void 0
- : o.call(r)
- ];
- },
- action: () => {
- var r, o;
- return [
- (o = (r = this.$slots).action) === null ||
- o === void 0
- ? void 0
- : o.call(r)
- ];
- }
- }
- ),
- this.displayDirective === 'show'
- ? [
- [vi, this.mergedShow],
- [
- wa,
- this.handleMenuClickOutside,
- void 0,
- { capture: !0 }
- ]
- ]
- : [
- [
- wa,
- this.handleMenuClickOutside,
- void 0,
- { capture: !0 }
- ]
- ]
- ))
- : null;
- }
- }
- )
- }
- )
- ]
- })
- );
- }
- }),
- FK = {
- itemPaddingSmall: '0 4px',
- itemMarginSmall: '0 0 0 8px',
- itemMarginSmallRtl: '0 8px 0 0',
- itemPaddingMedium: '0 4px',
- itemMarginMedium: '0 0 0 8px',
- itemMarginMediumRtl: '0 8px 0 0',
- itemPaddingLarge: '0 4px',
- itemMarginLarge: '0 0 0 8px',
- itemMarginLargeRtl: '0 8px 0 0',
- buttonIconSizeSmall: '14px',
- buttonIconSizeMedium: '16px',
- buttonIconSizeLarge: '18px',
- inputWidthSmall: '60px',
- selectWidthSmall: 'unset',
- inputMarginSmall: '0 0 0 8px',
- inputMarginSmallRtl: '0 8px 0 0',
- selectMarginSmall: '0 0 0 8px',
- prefixMarginSmall: '0 8px 0 0',
- suffixMarginSmall: '0 0 0 8px',
- inputWidthMedium: '60px',
- selectWidthMedium: 'unset',
- inputMarginMedium: '0 0 0 8px',
- inputMarginMediumRtl: '0 8px 0 0',
- selectMarginMedium: '0 0 0 8px',
- prefixMarginMedium: '0 8px 0 0',
- suffixMarginMedium: '0 0 0 8px',
- inputWidthLarge: '60px',
- selectWidthLarge: 'unset',
- inputMarginLarge: '0 0 0 8px',
- inputMarginLargeRtl: '0 8px 0 0',
- selectMarginLarge: '0 0 0 8px',
- prefixMarginLarge: '0 8px 0 0',
- suffixMarginLarge: '0 0 0 8px'
- },
- BK = e => {
- const {
- textColor2: t,
- primaryColor: n,
- primaryColorHover: r,
- primaryColorPressed: o,
- inputColorDisabled: i,
- textColorDisabled: a,
- borderColor: s,
- borderRadius: c,
- fontSizeTiny: d,
- fontSizeSmall: f,
- fontSizeMedium: v,
- heightTiny: p,
- heightSmall: m,
- heightMedium: g
- } = e;
- return Object.assign(Object.assign({}, FK), {
- buttonColor: '#0000',
- buttonColorHover: '#0000',
- buttonColorPressed: '#0000',
- buttonBorder: `1px solid ${s}`,
- buttonBorderHover: `1px solid ${s}`,
- buttonBorderPressed: `1px solid ${s}`,
- buttonIconColor: t,
- buttonIconColorHover: t,
- buttonIconColorPressed: t,
- itemTextColor: t,
- itemTextColorHover: r,
- itemTextColorPressed: o,
- itemTextColorActive: n,
- itemTextColorDisabled: a,
- itemColor: '#0000',
- itemColorHover: '#0000',
- itemColorPressed: '#0000',
- itemColorActive: '#0000',
- itemColorActiveHover: '#0000',
- itemColorDisabled: i,
- itemBorder: '1px solid #0000',
- itemBorderHover: '1px solid #0000',
- itemBorderPressed: '1px solid #0000',
- itemBorderActive: `1px solid ${n}`,
- itemBorderDisabled: `1px solid ${s}`,
- itemBorderRadius: c,
- itemSizeSmall: p,
- itemSizeMedium: m,
- itemSizeLarge: g,
- itemFontSizeSmall: d,
- itemFontSizeMedium: f,
- itemFontSizeLarge: v,
- jumperFontSizeSmall: d,
- jumperFontSizeMedium: f,
- jumperFontSizeLarge: v,
- jumperTextColor: t,
- jumperTextColorDisabled: a
- });
- },
- LK = {
- name: 'Pagination',
- common: Nt,
- peers: { Select: Vk, Input: Xu, Popselect: $y },
- self: BK
- },
- qk = LK;
- function NK(e, t, n) {
- let r = !1,
- o = !1,
- i = 1,
- a = t;
- if (t === 1)
- return {
- hasFastBackward: !1,
- hasFastForward: !1,
- fastForwardTo: a,
- fastBackwardTo: i,
- items: [
- {
- type: 'page',
- label: 1,
- active: e === 1,
- mayBeFastBackward: !1,
- mayBeFastForward: !1
- }
- ]
- };
- if (t === 2)
- return {
- hasFastBackward: !1,
- hasFastForward: !1,
- fastForwardTo: a,
- fastBackwardTo: i,
- items: [
- {
- type: 'page',
- label: 1,
- active: e === 1,
- mayBeFastBackward: !1,
- mayBeFastForward: !1
- },
- {
- type: 'page',
- label: 2,
- active: e === 2,
- mayBeFastBackward: !0,
- mayBeFastForward: !1
- }
- ]
- };
- const s = 1,
- c = t;
- let d = e,
- f = e;
- const v = (n - 5) / 2;
- (f += Math.ceil(v)),
- (f = Math.min(Math.max(f, s + n - 3), c - 2)),
- (d -= Math.floor(v)),
- (d = Math.max(Math.min(d, c - n + 3), s + 2));
- let p = !1,
- m = !1;
- d > s + 2 && (p = !0), f < c - 2 && (m = !0);
- const g = [];
- g.push({
- type: 'page',
- label: 1,
- active: e === 1,
- mayBeFastBackward: !1,
- mayBeFastForward: !1
- }),
- p
- ? ((r = !0),
- (i = d - 1),
- g.push({
- type: 'fast-backward',
- active: !1,
- label: void 0,
- options: zS(s + 1, d - 1)
- }))
- : c >= s + 1 &&
- g.push({
- type: 'page',
- label: s + 1,
- mayBeFastBackward: !0,
- mayBeFastForward: !1,
- active: e === s + 1
- });
- for (let w = d; w <= f; ++w)
- g.push({
- type: 'page',
- label: w,
- mayBeFastBackward: !1,
- mayBeFastForward: !1,
- active: e === w
- });
- return (
- m
- ? ((o = !0),
- (a = f + 1),
- g.push({
- type: 'fast-forward',
- active: !1,
- label: void 0,
- options: zS(f + 1, c - 1)
- }))
- : f === c - 2 &&
- g[g.length - 1].label !== c - 1 &&
- g.push({
- type: 'page',
- mayBeFastForward: !0,
- mayBeFastBackward: !1,
- label: c - 1,
- active: e === c - 1
- }),
- g[g.length - 1].label !== c &&
- g.push({
- type: 'page',
- mayBeFastForward: !1,
- mayBeFastBackward: !1,
- label: c,
- active: e === c
- }),
- {
- hasFastBackward: r,
- hasFastForward: o,
- fastBackwardTo: i,
- fastForwardTo: a,
- items: g
- }
- );
- }
- function zS(e, t) {
- const n = [];
- for (let r = e; r <= t; ++r) n.push({ label: `${r}`, value: r });
- return n;
- }
- const ES = `
- background: var(--n-item-color-hover);
- color: var(--n-item-text-color-hover);
- border: var(--n-item-border-hover);
- `,
- AS = [
- U(
- 'button',
- `
- background: var(--n-button-color-hover);
- border: var(--n-button-border-hover);
- color: var(--n-button-icon-color-hover);
- `
- )
- ],
- HK = O(
- 'pagination',
- `
- display: flex;
- vertical-align: middle;
- font-size: var(--n-item-font-size);
- flex-wrap: nowrap;
- `,
- [
- O(
- 'pagination-prefix',
- `
- display: flex;
- align-items: center;
- margin: var(--n-prefix-margin);
- `
- ),
- O(
- 'pagination-suffix',
- `
- display: flex;
- align-items: center;
- margin: var(--n-suffix-margin);
- `
- ),
- F(
- '> *:not(:first-child)',
- `
- margin: var(--n-item-margin);
- `
- ),
- O(
- 'select',
- `
- width: var(--n-select-width);
- `
- ),
- F('&.transition-disabled', [
- O('pagination-item', 'transition: none!important;')
- ]),
- O(
- 'pagination-quick-jumper',
- `
- white-space: nowrap;
- display: flex;
- color: var(--n-jumper-text-color);
- transition: color .3s var(--n-bezier);
- align-items: center;
- font-size: var(--n-jumper-font-size);
- `,
- [
- O(
- 'input',
- `
- margin: var(--n-input-margin);
- width: var(--n-input-width);
- `
- )
- ]
- ),
- O(
- 'pagination-item',
- `
- position: relative;
- cursor: pointer;
- user-select: none;
- -webkit-user-select: none;
- display: flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- min-width: var(--n-item-size);
- height: var(--n-item-size);
- padding: var(--n-item-padding);
- background-color: var(--n-item-color);
- color: var(--n-item-text-color);
- border-radius: var(--n-item-border-radius);
- border: var(--n-item-border);
- fill: var(--n-button-icon-color);
- transition:
- color .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- fill .3s var(--n-bezier);
- `,
- [
- U(
- 'button',
- `
- background: var(--n-button-color);
- color: var(--n-button-icon-color);
- border: var(--n-button-border);
- padding: 0;
- `,
- [
- O(
- 'base-icon',
- `
- font-size: var(--n-button-icon-size);
- `
- )
- ]
- ),
- jt('disabled', [
- U('hover', ES, AS),
- F('&:hover', ES, AS),
- F(
- '&:active',
- `
- background: var(--n-item-color-pressed);
- color: var(--n-item-text-color-pressed);
- border: var(--n-item-border-pressed);
- `,
- [
- U(
- 'button',
- `
- background: var(--n-button-color-pressed);
- border: var(--n-button-border-pressed);
- color: var(--n-button-icon-color-pressed);
- `
- )
- ]
- ),
- U(
- 'active',
- `
- background: var(--n-item-color-active);
- color: var(--n-item-text-color-active);
- border: var(--n-item-border-active);
- `,
- [
- F(
- '&:hover',
- `
- background: var(--n-item-color-active-hover);
- `
- )
- ]
- )
- ]),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- color: var(--n-item-text-color-disabled);
- `,
- [
- U(
- 'active, button',
- `
- background-color: var(--n-item-color-disabled);
- border: var(--n-item-border-disabled);
- `
- )
- ]
- )
- ]
- ),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- `,
- [
- O(
- 'pagination-quick-jumper',
- `
- color: var(--n-jumper-text-color-disabled);
- `
- )
- ]
- ),
- U(
- 'simple',
- `
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- `,
- [
- O('pagination-quick-jumper', [
- O(
- 'input',
- `
- margin: 0;
- `
- )
- ])
- ]
- )
- ]
- ),
- jK = Object.assign(Object.assign({}, Ke.props), {
- simple: Boolean,
- page: Number,
- defaultPage: { type: Number, default: 1 },
- itemCount: Number,
- pageCount: Number,
- defaultPageCount: { type: Number, default: 1 },
- showSizePicker: Boolean,
- pageSize: Number,
- defaultPageSize: Number,
- pageSizes: {
- type: Array,
- default() {
- return [10];
- }
- },
- showQuickJumper: Boolean,
- size: { type: String, default: 'medium' },
- disabled: Boolean,
- pageSlot: { type: Number, default: 9 },
- selectProps: Object,
- prev: Function,
- next: Function,
- goto: Function,
- prefix: Function,
- suffix: Function,
- label: Function,
- displayOrder: {
- type: Array,
- default: ['pages', 'size-picker', 'quick-jumper']
- },
- to: Yr.propTo,
- 'onUpdate:page': [Function, Array],
- onUpdatePage: [Function, Array],
- 'onUpdate:pageSize': [Function, Array],
- onUpdatePageSize: [Function, Array],
- onPageSizeChange: [Function, Array],
- onChange: [Function, Array]
- }),
- Yk = ke({
- name: 'Pagination',
- props: jK,
- setup(e) {
- const {
- mergedComponentPropsRef: t,
- mergedClsPrefixRef: n,
- inlineThemeDisabled: r,
- mergedRtlRef: o
- } = yt(e),
- i = Ke('Pagination', '-pagination', HK, qk, e, n),
- { localeRef: a } = Ta('Pagination'),
- s = Z(null),
- c = Z(e.defaultPage),
- f = Z(
- (() => {
- const { defaultPageSize: ge } = e;
- if (ge !== void 0) return ge;
- const Ae = e.pageSizes[0];
- return typeof Ae == 'number' ? Ae : Ae.value || 10;
- })()
- ),
- v = En(Ie(e, 'page'), c),
- p = En(Ie(e, 'pageSize'), f),
- m = I(() => {
- const { itemCount: ge } = e;
- if (ge !== void 0) return Math.max(1, Math.ceil(ge / p.value));
- const { pageCount: Ae } = e;
- return Ae !== void 0 ? Math.max(Ae, 1) : 1;
- }),
- g = Z('');
- Bn(() => {
- e.simple, (g.value = String(v.value));
- });
- const w = Z(!1),
- x = Z(!1),
- y = Z(!1),
- C = Z(!1),
- R = () => {
- e.disabled || ((w.value = !0), B());
- },
- S = () => {
- e.disabled || ((w.value = !1), B());
- },
- _ = () => {
- (x.value = !0), B();
- },
- P = () => {
- (x.value = !1), B();
- },
- T = ge => {
- q(ge);
- },
- E = I(() => NK(v.value, m.value, e.pageSlot));
- Bn(() => {
- E.value.hasFastBackward
- ? E.value.hasFastForward || ((w.value = !1), (y.value = !1))
- : ((x.value = !1), (C.value = !1));
- });
- const z = I(() => {
- const ge = a.value.selectionSuffix;
- return e.pageSizes.map(Ae =>
- typeof Ae == 'number' ? { label: `${Ae} / ${ge}`, value: Ae } : Ae
- );
- }),
- k = I(() => {
- var ge, Ae;
- return (
- ((Ae =
- (ge = t == null ? void 0 : t.value) === null || ge === void 0
- ? void 0
- : ge.Pagination) === null || Ae === void 0
- ? void 0
- : Ae.inputSize) || Zw(e.size)
- );
- }),
- M = I(() => {
- var ge, Ae;
- return (
- ((Ae =
- (ge = t == null ? void 0 : t.value) === null || ge === void 0
- ? void 0
- : ge.Pagination) === null || Ae === void 0
- ? void 0
- : Ae.selectSize) || Zw(e.size)
- );
- }),
- A = I(() => (v.value - 1) * p.value),
- D = I(() => {
- const ge = v.value * p.value - 1,
- { itemCount: Ae } = e;
- return Ae !== void 0 && ge > Ae - 1 ? Ae - 1 : ge;
- }),
- L = I(() => {
- const { itemCount: ge } = e;
- return ge !== void 0 ? ge : (e.pageCount || 1) * p.value;
- }),
- H = cr('Pagination', o, n),
- B = () => {
- mn(() => {
- var ge;
- const { value: Ae } = s;
- Ae &&
- (Ae.classList.add('transition-disabled'),
- (ge = s.value) === null || ge === void 0 || ge.offsetWidth,
- Ae.classList.remove('transition-disabled'));
- });
- };
- function q(ge) {
- if (ge === v.value) return;
- const {
- 'onUpdate:page': Ae,
- onUpdatePage: j,
- onChange: ee,
- simple: ne
- } = e;
- Ae && Me(Ae, ge),
- j && Me(j, ge),
- ee && Me(ee, ge),
- (c.value = ge),
- ne && (g.value = String(ge));
- }
- function X(ge) {
- if (ge === p.value) return;
- const {
- 'onUpdate:pageSize': Ae,
- onUpdatePageSize: j,
- onPageSizeChange: ee
- } = e;
- Ae && Me(Ae, ge),
- j && Me(j, ge),
- ee && Me(ee, ge),
- (f.value = ge),
- m.value < v.value && q(m.value);
- }
- function te() {
- if (e.disabled) return;
- const ge = Math.min(v.value + 1, m.value);
- q(ge);
- }
- function G() {
- if (e.disabled) return;
- const ge = Math.max(v.value - 1, 1);
- q(ge);
- }
- function Q() {
- if (e.disabled) return;
- const ge = Math.min(E.value.fastForwardTo, m.value);
- q(ge);
- }
- function re() {
- if (e.disabled) return;
- const ge = Math.max(E.value.fastBackwardTo, 1);
- q(ge);
- }
- function se(ge) {
- X(ge);
- }
- function pe() {
- const ge = parseInt(g.value);
- Number.isNaN(ge) ||
- (q(Math.max(1, Math.min(ge, m.value))), e.simple || (g.value = ''));
- }
- function ce() {
- pe();
- }
- function xe(ge) {
- if (!e.disabled)
- switch (ge.type) {
- case 'page':
- q(ge.label);
- break;
- case 'fast-backward':
- re();
- break;
- case 'fast-forward':
- Q();
- break;
- }
- }
- function ve(ge) {
- g.value = ge.replace(/\D+/g, '');
- }
- Bn(() => {
- v.value, p.value, B();
- });
- const be = I(() => {
- const { size: ge } = e,
- {
- self: {
- buttonBorder: Ae,
- buttonBorderHover: j,
- buttonBorderPressed: ee,
- buttonIconColor: ne,
- buttonIconColorHover: fe,
- buttonIconColorPressed: ie,
- itemTextColor: W,
- itemTextColorHover: ae,
- itemTextColorPressed: he,
- itemTextColorActive: _e,
- itemTextColorDisabled: le,
- itemColor: Re,
- itemColorHover: Ne,
- itemColorPressed: Ge,
- itemColorActive: it,
- itemColorActiveHover: dt,
- itemColorDisabled: xt,
- itemBorder: De,
- itemBorderHover: ut,
- itemBorderPressed: wt,
- itemBorderActive: Lt,
- itemBorderDisabled: ot,
- itemBorderRadius: ct,
- jumperTextColor: Xe,
- jumperTextColorDisabled: Qe,
- buttonColor: oe,
- buttonColorHover: ze,
- buttonColorPressed: We,
- [Ee('itemPadding', ge)]: lt,
- [Ee('itemMargin', ge)]: st,
- [Ee('inputWidth', ge)]: me,
- [Ee('selectWidth', ge)]: He,
- [Ee('inputMargin', ge)]: tt,
- [Ee('selectMargin', ge)]: pt,
- [Ee('jumperFontSize', ge)]: Pe,
- [Ee('prefixMargin', ge)]: Ve,
- [Ee('suffixMargin', ge)]: nt,
- [Ee('itemSize', ge)]: Ot,
- [Ee('buttonIconSize', ge)]: $n,
- [Ee('itemFontSize', ge)]: jn,
- [`${Ee('itemMargin', ge)}Rtl`]: Zt,
- [`${Ee('inputMargin', ge)}Rtl`]: Se
- },
- common: { cubicBezierEaseInOut: je }
- } = i.value;
- return {
- '--n-prefix-margin': Ve,
- '--n-suffix-margin': nt,
- '--n-item-font-size': jn,
- '--n-select-width': He,
- '--n-select-margin': pt,
- '--n-input-width': me,
- '--n-input-margin': tt,
- '--n-input-margin-rtl': Se,
- '--n-item-size': Ot,
- '--n-item-text-color': W,
- '--n-item-text-color-disabled': le,
- '--n-item-text-color-hover': ae,
- '--n-item-text-color-active': _e,
- '--n-item-text-color-pressed': he,
- '--n-item-color': Re,
- '--n-item-color-hover': Ne,
- '--n-item-color-disabled': xt,
- '--n-item-color-active': it,
- '--n-item-color-active-hover': dt,
- '--n-item-color-pressed': Ge,
- '--n-item-border': De,
- '--n-item-border-hover': ut,
- '--n-item-border-disabled': ot,
- '--n-item-border-active': Lt,
- '--n-item-border-pressed': wt,
- '--n-item-padding': lt,
- '--n-item-border-radius': ct,
- '--n-bezier': je,
- '--n-jumper-font-size': Pe,
- '--n-jumper-text-color': Xe,
- '--n-jumper-text-color-disabled': Qe,
- '--n-item-margin': st,
- '--n-item-margin-rtl': Zt,
- '--n-button-icon-size': $n,
- '--n-button-icon-color': ne,
- '--n-button-icon-color-hover': fe,
- '--n-button-icon-color-pressed': ie,
- '--n-button-color-hover': ze,
- '--n-button-color': oe,
- '--n-button-color-pressed': We,
- '--n-button-border': Ae,
- '--n-button-border-hover': j,
- '--n-button-border-pressed': ee
- };
- }),
- Ce = r
- ? Mt(
- 'pagination',
- I(() => {
- let ge = '';
- const { size: Ae } = e;
- return (ge += Ae[0]), ge;
- }),
- be,
- e
- )
- : void 0;
- return {
- rtlEnabled: H,
- mergedClsPrefix: n,
- locale: a,
- selfRef: s,
- mergedPage: v,
- pageItems: I(() => E.value.items),
- mergedItemCount: L,
- jumperValue: g,
- pageSizeOptions: z,
- mergedPageSize: p,
- inputSize: k,
- selectSize: M,
- mergedTheme: i,
- mergedPageCount: m,
- startIndex: A,
- endIndex: D,
- showFastForwardMenu: y,
- showFastBackwardMenu: C,
- fastForwardActive: w,
- fastBackwardActive: x,
- handleMenuSelect: T,
- handleFastForwardMouseenter: R,
- handleFastForwardMouseleave: S,
- handleFastBackwardMouseenter: _,
- handleFastBackwardMouseleave: P,
- handleJumperInput: ve,
- handleBackwardClick: G,
- handleForwardClick: te,
- handlePageItemClick: xe,
- handleSizePickerChange: se,
- handleQuickJumperChange: ce,
- cssVars: r ? void 0 : be,
- themeClass: Ce == null ? void 0 : Ce.themeClass,
- onRender: Ce == null ? void 0 : Ce.onRender
- };
- },
- render() {
- const {
- $slots: e,
- mergedClsPrefix: t,
- disabled: n,
- cssVars: r,
- mergedPage: o,
- mergedPageCount: i,
- pageItems: a,
- showSizePicker: s,
- showQuickJumper: c,
- mergedTheme: d,
- locale: f,
- inputSize: v,
- selectSize: p,
- mergedPageSize: m,
- pageSizeOptions: g,
- jumperValue: w,
- simple: x,
- prev: y,
- next: C,
- prefix: R,
- suffix: S,
- label: _,
- goto: P,
- handleJumperInput: T,
- handleSizePickerChange: E,
- handleBackwardClick: z,
- handlePageItemClick: k,
- handleForwardClick: M,
- handleQuickJumperChange: A,
- onRender: D
- } = this;
- D == null || D();
- const L = e.prefix || R,
- H = e.suffix || S,
- B = y || e.prev,
- q = C || e.next,
- X = _ || e.label;
- return h(
- 'div',
- {
- ref: 'selfRef',
- class: [
- `${t}-pagination`,
- this.themeClass,
- this.rtlEnabled && `${t}-pagination--rtl`,
- n && `${t}-pagination--disabled`,
- x && `${t}-pagination--simple`
- ],
- style: r
- },
- L
- ? h(
- 'div',
- { class: `${t}-pagination-prefix` },
- L({
- page: o,
- pageSize: m,
- pageCount: i,
- startIndex: this.startIndex,
- endIndex: this.endIndex,
- itemCount: this.mergedItemCount
- })
- )
- : null,
- this.displayOrder.map(te => {
- switch (te) {
- case 'pages':
- return h(
- on,
- null,
- h(
- 'div',
- {
- class: [
- `${t}-pagination-item`,
- !B && `${t}-pagination-item--button`,
- (o <= 1 || o > i || n) && `${t}-pagination-item--disabled`
- ],
- onClick: z
- },
- B
- ? B({
- page: o,
- pageSize: m,
- pageCount: i,
- startIndex: this.startIndex,
- endIndex: this.endIndex,
- itemCount: this.mergedItemCount
- })
- : h(
- At,
- { clsPrefix: t },
- {
- default: () =>
- this.rtlEnabled ? h(ml, null) : h(vl, null)
- }
- )
- ),
- x
- ? h(
- on,
- null,
- h(
- 'div',
- { class: `${t}-pagination-quick-jumper` },
- h(Gi, {
- value: w,
- onUpdateValue: T,
- size: v,
- placeholder: '',
- disabled: n,
- theme: d.peers.Input,
- themeOverrides: d.peerOverrides.Input,
- onChange: A
- })
- ),
- ' / ',
- i
- )
- : a.map((G, Q) => {
- let re, se, pe;
- const { type: ce } = G;
- switch (ce) {
- case 'page':
- const ve = G.label;
- X
- ? (re = X({
- type: 'page',
- node: ve,
- active: G.active
- }))
- : (re = ve);
- break;
- case 'fast-forward':
- const be = this.fastForwardActive
- ? h(
- At,
- { clsPrefix: t },
- {
- default: () =>
- this.rtlEnabled ? h(pl, null) : h(gl, null)
- }
- )
- : h(
- At,
- { clsPrefix: t },
- { default: () => h(yS, null) }
- );
- X
- ? (re = X({
- type: 'fast-forward',
- node: be,
- active:
- this.fastForwardActive ||
- this.showFastForwardMenu
- }))
- : (re = be),
- (se = this.handleFastForwardMouseenter),
- (pe = this.handleFastForwardMouseleave);
- break;
- case 'fast-backward':
- const Ce = this.fastBackwardActive
- ? h(
- At,
- { clsPrefix: t },
- {
- default: () =>
- this.rtlEnabled ? h(gl, null) : h(pl, null)
- }
- )
- : h(
- At,
- { clsPrefix: t },
- { default: () => h(yS, null) }
- );
- X
- ? (re = X({
- type: 'fast-backward',
- node: Ce,
- active:
- this.fastBackwardActive ||
- this.showFastBackwardMenu
- }))
- : (re = Ce),
- (se = this.handleFastBackwardMouseenter),
- (pe = this.handleFastBackwardMouseleave);
- break;
- }
- const xe = h(
- 'div',
- {
- key: Q,
- class: [
- `${t}-pagination-item`,
- G.active && `${t}-pagination-item--active`,
- ce !== 'page' &&
- ((ce === 'fast-backward' &&
- this.showFastBackwardMenu) ||
- (ce === 'fast-forward' &&
- this.showFastForwardMenu)) &&
- `${t}-pagination-item--hover`,
- n && `${t}-pagination-item--disabled`,
- ce === 'page' && `${t}-pagination-item--clickable`
- ],
- onClick: () => {
- k(G);
- },
- onMouseenter: se,
- onMouseleave: pe
- },
- re
- );
- if (
- ce === 'page' &&
- !G.mayBeFastBackward &&
- !G.mayBeFastForward
- )
- return xe;
- {
- const ve =
- G.type === 'page'
- ? G.mayBeFastBackward
- ? 'fast-backward'
- : 'fast-forward'
- : G.type;
- return h(
- EK,
- {
- to: this.to,
- key: ve,
- disabled: n,
- trigger: 'hover',
- virtualScroll: !0,
- style: { width: '60px' },
- theme: d.peers.Popselect,
- themeOverrides: d.peerOverrides.Popselect,
- builtinThemeOverrides: {
- peers: {
- InternalSelectMenu: {
- height: 'calc(var(--n-option-height) * 4.6)'
- }
- }
- },
- nodeProps: () => ({
- style: { justifyContent: 'center' }
- }),
- show:
- ce === 'page'
- ? !1
- : ce === 'fast-backward'
- ? this.showFastBackwardMenu
- : this.showFastForwardMenu,
- onUpdateShow: be => {
- ce !== 'page' &&
- (be
- ? ce === 'fast-backward'
- ? (this.showFastBackwardMenu = be)
- : (this.showFastForwardMenu = be)
- : ((this.showFastBackwardMenu = !1),
- (this.showFastForwardMenu = !1)));
- },
- options: G.type !== 'page' ? G.options : [],
- onUpdateValue: this.handleMenuSelect,
- scrollable: !0,
- showCheckmark: !1
- },
- { default: () => xe }
- );
- }
- }),
- h(
- 'div',
- {
- class: [
- `${t}-pagination-item`,
- !q && `${t}-pagination-item--button`,
- {
- [`${t}-pagination-item--disabled`]: o < 1 || o >= i || n
- }
- ],
- onClick: M
- },
- q
- ? q({
- page: o,
- pageSize: m,
- pageCount: i,
- itemCount: this.mergedItemCount,
- startIndex: this.startIndex,
- endIndex: this.endIndex
- })
- : h(
- At,
- { clsPrefix: t },
- {
- default: () =>
- this.rtlEnabled ? h(vl, null) : h(ml, null)
- }
- )
- )
- );
- case 'size-picker':
- return !x && s
- ? h(
- Kk,
- Object.assign(
- {
- consistentMenuWidth: !1,
- placeholder: '',
- showCheckmark: !1,
- to: this.to
- },
- this.selectProps,
- {
- size: p,
- options: g,
- value: m,
- disabled: n,
- theme: d.peers.Select,
- themeOverrides: d.peerOverrides.Select,
- onUpdateValue: E
- }
- )
- )
- : null;
- case 'quick-jumper':
- return !x && c
- ? h(
- 'div',
- { class: `${t}-pagination-quick-jumper` },
- P ? P() : Kt(this.$slots.goto, () => [f.goto]),
- h(Gi, {
- value: w,
- onUpdateValue: T,
- size: v,
- placeholder: '',
- disabled: n,
- theme: d.peers.Input,
- themeOverrides: d.peerOverrides.Input,
- onChange: A
- })
- )
- : null;
- default:
- return null;
- }
- }),
- H
- ? h(
- 'div',
- { class: `${t}-pagination-suffix` },
- H({
- page: o,
- pageSize: m,
- pageCount: i,
- startIndex: this.startIndex,
- endIndex: this.endIndex,
- itemCount: this.mergedItemCount
- })
- )
- : null
- );
- }
- }),
- WK = { padding: '8px 14px' },
- UK = e => {
- const { borderRadius: t, boxShadow2: n, baseColor: r } = e;
- return Object.assign(Object.assign({}, WK), {
- borderRadius: t,
- boxShadow: n,
- color: Et(r, 'rgba(0, 0, 0, .85)'),
- textColor: r
- });
- },
- VK = { name: 'Tooltip', common: Nt, peers: { Popover: od }, self: UK },
- Mp = VK,
- KK = { name: 'Ellipsis', common: Nt, peers: { Tooltip: Mp } },
- Gk = KK,
- qK = {
- radioSizeSmall: '14px',
- radioSizeMedium: '16px',
- radioSizeLarge: '18px',
- labelPadding: '0 8px',
- labelFontWeight: '400'
- },
- YK = e => {
- const {
- borderColor: t,
- primaryColor: n,
- baseColor: r,
- textColorDisabled: o,
- inputColorDisabled: i,
- textColor2: a,
- opacityDisabled: s,
- borderRadius: c,
- fontSizeSmall: d,
- fontSizeMedium: f,
- fontSizeLarge: v,
- heightSmall: p,
- heightMedium: m,
- heightLarge: g,
- lineHeight: w
- } = e;
- return Object.assign(Object.assign({}, qK), {
- labelLineHeight: w,
- buttonHeightSmall: p,
- buttonHeightMedium: m,
- buttonHeightLarge: g,
- fontSizeSmall: d,
- fontSizeMedium: f,
- fontSizeLarge: v,
- boxShadow: `inset 0 0 0 1px ${t}`,
- boxShadowActive: `inset 0 0 0 1px ${n}`,
- boxShadowFocus: `inset 0 0 0 1px ${n}, 0 0 0 2px ${zt(n, {
- alpha: 0.2
- })}`,
- boxShadowHover: `inset 0 0 0 1px ${n}`,
- boxShadowDisabled: `inset 0 0 0 1px ${t}`,
- color: r,
- colorDisabled: i,
- colorActive: '#0000',
- textColor: a,
- textColorDisabled: o,
- dotColorActive: n,
- dotColorDisabled: t,
- buttonBorderColor: t,
- buttonBorderColorActive: n,
- buttonBorderColorHover: t,
- buttonColor: r,
- buttonColorActive: r,
- buttonTextColor: a,
- buttonTextColorActive: n,
- buttonTextColorHover: n,
- opacityDisabled: s,
- buttonBoxShadowFocus: `inset 0 0 0 1px ${n}, 0 0 0 2px ${zt(n, {
- alpha: 0.3
- })}`,
- buttonBoxShadowHover: 'inset 0 0 0 1px #0000',
- buttonBoxShadow: 'inset 0 0 0 1px #0000',
- buttonBorderRadius: c
- });
- },
- GK = { name: 'Radio', common: Nt, self: YK },
- zy = GK,
- XK = {
- padding: '4px 0',
- optionIconSizeSmall: '14px',
- optionIconSizeMedium: '16px',
- optionIconSizeLarge: '16px',
- optionIconSizeHuge: '18px',
- optionSuffixWidthSmall: '14px',
- optionSuffixWidthMedium: '14px',
- optionSuffixWidthLarge: '16px',
- optionSuffixWidthHuge: '16px',
- optionIconSuffixWidthSmall: '32px',
- optionIconSuffixWidthMedium: '32px',
- optionIconSuffixWidthLarge: '36px',
- optionIconSuffixWidthHuge: '36px',
- optionPrefixWidthSmall: '14px',
- optionPrefixWidthMedium: '14px',
- optionPrefixWidthLarge: '16px',
- optionPrefixWidthHuge: '16px',
- optionIconPrefixWidthSmall: '36px',
- optionIconPrefixWidthMedium: '36px',
- optionIconPrefixWidthLarge: '40px',
- optionIconPrefixWidthHuge: '40px'
- },
- ZK = e => {
- const {
- primaryColor: t,
- textColor2: n,
- dividerColor: r,
- hoverColor: o,
- popoverColor: i,
- invertedColor: a,
- borderRadius: s,
- fontSizeSmall: c,
- fontSizeMedium: d,
- fontSizeLarge: f,
- fontSizeHuge: v,
- heightSmall: p,
- heightMedium: m,
- heightLarge: g,
- heightHuge: w,
- textColor3: x,
- opacityDisabled: y
- } = e;
- return Object.assign(Object.assign({}, XK), {
- optionHeightSmall: p,
- optionHeightMedium: m,
- optionHeightLarge: g,
- optionHeightHuge: w,
- borderRadius: s,
- fontSizeSmall: c,
- fontSizeMedium: d,
- fontSizeLarge: f,
- fontSizeHuge: v,
- optionTextColor: n,
- optionTextColorHover: n,
- optionTextColorActive: t,
- optionTextColorChildActive: t,
- color: i,
- dividerColor: r,
- suffixColor: n,
- prefixColor: n,
- optionColorHover: o,
- optionColorActive: zt(t, { alpha: 0.1 }),
- groupHeaderTextColor: x,
- optionTextColorInverted: '#BBB',
- optionTextColorHoverInverted: '#FFF',
- optionTextColorActiveInverted: '#FFF',
- optionTextColorChildActiveInverted: '#FFF',
- colorInverted: a,
- dividerColorInverted: '#BBB',
- suffixColorInverted: '#BBB',
- prefixColorInverted: '#BBB',
- optionColorHoverInverted: t,
- optionColorActiveInverted: t,
- groupHeaderTextColorInverted: '#AAA',
- optionOpacityDisabled: y
- });
- },
- QK = { name: 'Dropdown', common: Nt, peers: { Popover: od }, self: ZK },
- Ey = QK,
- JK = {
- thPaddingSmall: '8px',
- thPaddingMedium: '12px',
- thPaddingLarge: '12px',
- tdPaddingSmall: '8px',
- tdPaddingMedium: '12px',
- tdPaddingLarge: '12px',
- sorterSize: '15px',
- resizableContainerSize: '8px',
- resizableSize: '2px',
- filterSize: '15px',
- paginationMargin: '12px 0 0 0',
- emptyPadding: '48px 0',
- actionPadding: '8px 12px',
- actionButtonMargin: '0 8px 0 0'
- },
- eq = e => {
- const {
- cardColor: t,
- modalColor: n,
- popoverColor: r,
- textColor2: o,
- textColor1: i,
- tableHeaderColor: a,
- tableColorHover: s,
- iconColor: c,
- primaryColor: d,
- fontWeightStrong: f,
- borderRadius: v,
- lineHeight: p,
- fontSizeSmall: m,
- fontSizeMedium: g,
- fontSizeLarge: w,
- dividerColor: x,
- heightSmall: y,
- opacityDisabled: C,
- tableColorStriped: R
- } = e;
- return Object.assign(Object.assign({}, JK), {
- actionDividerColor: x,
- lineHeight: p,
- borderRadius: v,
- fontSizeSmall: m,
- fontSizeMedium: g,
- fontSizeLarge: w,
- borderColor: Et(t, x),
- tdColorHover: Et(t, s),
- tdColorStriped: Et(t, R),
- thColor: Et(t, a),
- thColorHover: Et(Et(t, a), s),
- tdColor: t,
- tdTextColor: o,
- thTextColor: i,
- thFontWeight: f,
- thButtonColorHover: s,
- thIconColor: c,
- thIconColorActive: d,
- borderColorModal: Et(n, x),
- tdColorHoverModal: Et(n, s),
- tdColorStripedModal: Et(n, R),
- thColorModal: Et(n, a),
- thColorHoverModal: Et(Et(n, a), s),
- tdColorModal: n,
- borderColorPopover: Et(r, x),
- tdColorHoverPopover: Et(r, s),
- tdColorStripedPopover: Et(r, R),
- thColorPopover: Et(r, a),
- thColorHoverPopover: Et(Et(r, a), s),
- tdColorPopover: r,
- boxShadowBefore: 'inset -12px 0 8px -12px rgba(0, 0, 0, .18)',
- boxShadowAfter: 'inset 12px 0 8px -12px rgba(0, 0, 0, .18)',
- loadingColor: d,
- loadingSize: y,
- opacityLoading: C
- });
- },
- tq = {
- name: 'DataTable',
- common: Nt,
- peers: {
- Button: As,
- Checkbox: ky,
- Radio: zy,
- Pagination: qk,
- Scrollbar: ea,
- Empty: Ap,
- Popover: od,
- Ellipsis: Gk,
- Dropdown: Ey
- },
- self: eq
- },
- nq = tq,
- rq = Object.assign(Object.assign({}, Ic), Ke.props),
- Ip = ke({
- name: 'Tooltip',
- props: rq,
- __popover__: !0,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e),
- n = Ke('Tooltip', '-tooltip', void 0, Mp, e, t),
- r = Z(null);
- return Object.assign(
- Object.assign(
- {},
- {
- syncPosition() {
- r.value.syncPosition();
- },
- setShow(i) {
- r.value.setShow(i);
- }
- }
- ),
- {
- popoverRef: r,
- mergedTheme: n,
- popoverThemeOverrides: I(() => n.value.self)
- }
- );
- },
- render() {
- const { mergedTheme: e, internalExtraClass: t } = this;
- return h(
- id,
- Object.assign(Object.assign({}, this.$props), {
- theme: e.peers.Popover,
- themeOverrides: e.peerOverrides.Popover,
- builtinThemeOverrides: this.popoverThemeOverrides,
- internalExtraClass: t.concat('tooltip'),
- ref: 'popoverRef'
- }),
- this.$slots
- );
- }
- }),
- oq = O('ellipsis', { overflow: 'hidden' }, [
- jt(
- 'line-clamp',
- `
- white-space: nowrap;
- display: inline-block;
- vertical-align: bottom;
- max-width: 100%;
- `
- ),
- U(
- 'line-clamp',
- `
- display: -webkit-inline-box;
- -webkit-box-orient: vertical;
- `
- ),
- U(
- 'cursor-pointer',
- `
- cursor: pointer;
- `
- )
- ]);
- function MS(e) {
- return `${e}-ellipsis--line-clamp`;
- }
- function IS(e, t) {
- return `${e}-ellipsis--cursor-${t}`;
- }
- const iq = Object.assign(Object.assign({}, Ke.props), {
- expandTrigger: String,
- lineClamp: [Number, String],
- tooltip: { type: [Boolean, Object], default: !0 }
- }),
- Xk = ke({
- name: 'Ellipsis',
- inheritAttrs: !1,
- props: iq,
- setup(e, { slots: t, attrs: n }) {
- const { mergedClsPrefixRef: r } = yt(e),
- o = Ke('Ellipsis', '-ellipsis', oq, Gk, e, r),
- i = Z(null),
- a = Z(null),
- s = Z(null),
- c = Z(!1),
- d = I(() => {
- const { lineClamp: x } = e,
- { value: y } = c;
- return x !== void 0
- ? { textOverflow: '', '-webkit-line-clamp': y ? '' : x }
- : { textOverflow: y ? '' : 'ellipsis', '-webkit-line-clamp': '' };
- });
- function f() {
- let x = !1;
- const { value: y } = c;
- if (y) return !0;
- const { value: C } = i;
- if (C) {
- const { lineClamp: R } = e;
- if ((m(C), R !== void 0)) x = C.scrollHeight <= C.offsetHeight;
- else {
- const { value: S } = a;
- S &&
- (x =
- S.getBoundingClientRect().width <=
- C.getBoundingClientRect().width);
- }
- g(C, x);
- }
- return x;
- }
- const v = I(() =>
- e.expandTrigger === 'click'
- ? () => {
- var x;
- const { value: y } = c;
- y && ((x = s.value) === null || x === void 0 || x.setShow(!1)),
- (c.value = !y);
- }
- : void 0
- );
- qc(() => {
- var x;
- e.tooltip && ((x = s.value) === null || x === void 0 || x.setShow(!1));
- });
- const p = () =>
- h(
- 'span',
- Object.assign(
- {},
- qr(n, {
- class: [
- `${r.value}-ellipsis`,
- e.lineClamp !== void 0 ? MS(r.value) : void 0,
- e.expandTrigger === 'click' ? IS(r.value, 'pointer') : void 0
- ],
- style: d.value
- }),
- {
- ref: 'triggerRef',
- onClick: v.value,
- onMouseenter: e.expandTrigger === 'click' ? f : void 0
- }
- ),
- e.lineClamp ? t : h('span', { ref: 'triggerInnerRef' }, t)
- );
- function m(x) {
- if (!x) return;
- const y = d.value,
- C = MS(r.value);
- e.lineClamp !== void 0 ? w(x, C, 'add') : w(x, C, 'remove');
- for (const R in y) x.style[R] !== y[R] && (x.style[R] = y[R]);
- }
- function g(x, y) {
- const C = IS(r.value, 'pointer');
- e.expandTrigger === 'click' && !y ? w(x, C, 'add') : w(x, C, 'remove');
- }
- function w(x, y, C) {
- C === 'add'
- ? x.classList.contains(y) || x.classList.add(y)
- : x.classList.contains(y) && x.classList.remove(y);
- }
- return {
- mergedTheme: o,
- triggerRef: i,
- triggerInnerRef: a,
- tooltipRef: s,
- handleClick: v,
- renderTrigger: p,
- getTooltipDisabled: f
- };
- },
- render() {
- var e;
- const { tooltip: t, renderTrigger: n, $slots: r } = this;
- if (t) {
- const { mergedTheme: o } = this;
- return h(
- Ip,
- Object.assign({ ref: 'tooltipRef', placement: 'top' }, t, {
- getDisabled: this.getTooltipDisabled,
- theme: o.peers.Tooltip,
- themeOverrides: o.peerOverrides.Tooltip
- }),
- {
- trigger: n,
- default: (e = r.tooltip) !== null && e !== void 0 ? e : r.default
- }
- );
- } else return n();
- }
- }),
- aq = ke({
- name: 'DataTableRenderSorter',
- props: {
- render: { type: Function, required: !0 },
- order: { type: [String, Boolean], default: !1 }
- },
- render() {
- const { render: e, order: t } = this;
- return e({ order: t });
- }
- }),
- lq = Object.assign(Object.assign({}, Ke.props), {
- onUnstableColumnResize: Function,
- pagination: { type: [Object, Boolean], default: !1 },
- paginateSinglePage: { type: Boolean, default: !0 },
- minHeight: [Number, String],
- maxHeight: [Number, String],
- columns: { type: Array, default: () => [] },
- rowClassName: [String, Function],
- rowProps: Function,
- rowKey: Function,
- summary: [Function],
- data: { type: Array, default: () => [] },
- loading: Boolean,
- bordered: { type: Boolean, default: void 0 },
- bottomBordered: { type: Boolean, default: void 0 },
- striped: Boolean,
- scrollX: [Number, String],
- defaultCheckedRowKeys: { type: Array, default: () => [] },
- checkedRowKeys: Array,
- singleLine: { type: Boolean, default: !0 },
- singleColumn: Boolean,
- size: { type: String, default: 'medium' },
- remote: Boolean,
- defaultExpandedRowKeys: { type: Array, default: [] },
- defaultExpandAll: Boolean,
- expandedRowKeys: Array,
- stickyExpandedRows: Boolean,
- virtualScroll: Boolean,
- tableLayout: { type: String, default: 'auto' },
- allowCheckingNotLoaded: Boolean,
- cascade: { type: Boolean, default: !0 },
- childrenKey: { type: String, default: 'children' },
- indent: { type: Number, default: 16 },
- flexHeight: Boolean,
- summaryPlacement: { type: String, default: 'bottom' },
- paginationBehaviorOnFilter: { type: String, default: 'current' },
- scrollbarProps: Object,
- renderCell: Function,
- renderExpandIcon: Function,
- spinProps: { type: Object, default: {} },
- onLoad: Function,
- 'onUpdate:page': [Function, Array],
- onUpdatePage: [Function, Array],
- 'onUpdate:pageSize': [Function, Array],
- onUpdatePageSize: [Function, Array],
- 'onUpdate:sorter': [Function, Array],
- onUpdateSorter: [Function, Array],
- 'onUpdate:filters': [Function, Array],
- onUpdateFilters: [Function, Array],
- 'onUpdate:checkedRowKeys': [Function, Array],
- onUpdateCheckedRowKeys: [Function, Array],
- 'onUpdate:expandedRowKeys': [Function, Array],
- onUpdateExpandedRowKeys: [Function, Array],
- onScroll: Function,
- onPageChange: [Function, Array],
- onPageSizeChange: [Function, Array],
- onSorterChange: [Function, Array],
- onFiltersChange: [Function, Array],
- onCheckedRowKeysChange: [Function, Array]
- }),
- wi = 'n-data-table',
- sq = ke({
- name: 'SortIcon',
- props: { column: { type: Object, required: !0 } },
- setup(e) {
- const { mergedComponentPropsRef: t } = yt(),
- { mergedSortStateRef: n, mergedClsPrefixRef: r } = Ze(wi),
- o = I(() => n.value.find(c => c.columnKey === e.column.key)),
- i = I(() => o.value !== void 0),
- a = I(() => {
- const { value: c } = o;
- return c && i.value ? c.order : !1;
- }),
- s = I(() => {
- var c, d;
- return (
- ((d =
- (c = t == null ? void 0 : t.value) === null || c === void 0
- ? void 0
- : c.DataTable) === null || d === void 0
- ? void 0
- : d.renderSorter) || e.column.renderSorter
- );
- });
- return {
- mergedClsPrefix: r,
- active: i,
- mergedSortOrder: a,
- mergedRenderSorter: s
- };
- },
- render() {
- const {
- mergedRenderSorter: e,
- mergedSortOrder: t,
- mergedClsPrefix: n
- } = this,
- { renderSorterIcon: r } = this.column;
- return e
- ? h(aq, { render: e, order: t })
- : h(
- 'span',
- {
- class: [
- `${n}-data-table-sorter`,
- t === 'ascend' && `${n}-data-table-sorter--asc`,
- t === 'descend' && `${n}-data-table-sorter--desc`
- ]
- },
- r
- ? r({ order: t })
- : h(At, { clsPrefix: n }, { default: () => h(yW, null) })
- );
- }
- }),
- cq = ke({
- name: 'DataTableRenderFilter',
- props: {
- render: { type: Function, required: !0 },
- active: { type: Boolean, default: !1 },
- show: { type: Boolean, default: !1 }
- },
- render() {
- const { render: e, active: t, show: n } = this;
- return e({ active: t, show: n });
- }
- }),
- dq = {
- name: String,
- value: { type: [String, Number, Boolean], default: 'on' },
- checked: { type: Boolean, default: void 0 },
- defaultChecked: Boolean,
- disabled: { type: Boolean, default: void 0 },
- label: String,
- size: String,
- onUpdateChecked: [Function, Array],
- 'onUpdate:checked': [Function, Array],
- checkedValue: { type: Boolean, default: void 0 }
- },
- Zk = 'n-radio-group';
- function uq(e) {
- const t = ei(e, {
- mergedSize(C) {
- const { size: R } = e;
- if (R !== void 0) return R;
- if (a) {
- const {
- mergedSizeRef: { value: S }
- } = a;
- if (S !== void 0) return S;
- }
- return C ? C.mergedSize.value : 'medium';
- },
- mergedDisabled(C) {
- return !!(
- e.disabled ||
- (a != null && a.disabledRef.value) ||
- (C != null && C.disabled.value)
- );
- }
- }),
- { mergedSizeRef: n, mergedDisabledRef: r } = t,
- o = Z(null),
- i = Z(null),
- a = Ze(Zk, null),
- s = Z(e.defaultChecked),
- c = Ie(e, 'checked'),
- d = En(c, s),
- f = kt(() => (a ? a.valueRef.value === e.value : d.value)),
- v = kt(() => {
- const { name: C } = e;
- if (C !== void 0) return C;
- if (a) return a.nameRef.value;
- }),
- p = Z(!1);
- function m() {
- if (a) {
- const { doUpdateValue: C } = a,
- { value: R } = e;
- Me(C, R);
- } else {
- const { onUpdateChecked: C, 'onUpdate:checked': R } = e,
- { nTriggerFormInput: S, nTriggerFormChange: _ } = t;
- C && Me(C, !0), R && Me(R, !0), S(), _(), (s.value = !0);
- }
- }
- function g() {
- r.value || f.value || m();
- }
- function w() {
- g();
- }
- function x() {
- p.value = !1;
- }
- function y() {
- p.value = !0;
- }
- return {
- mergedClsPrefix: a ? a.mergedClsPrefixRef : yt(e).mergedClsPrefixRef,
- inputRef: o,
- labelRef: i,
- mergedName: v,
- mergedDisabled: r,
- uncontrolledChecked: s,
- renderSafeChecked: f,
- focus: p,
- mergedSize: n,
- handleRadioInputChange: w,
- handleRadioInputBlur: x,
- handleRadioInputFocus: y
- };
- }
- const fq = O(
- 'radio',
- `
- line-height: var(--n-label-line-height);
- outline: none;
- position: relative;
- user-select: none;
- -webkit-user-select: none;
- display: inline-flex;
- align-items: flex-start;
- flex-wrap: nowrap;
- font-size: var(--n-font-size);
- word-break: break-word;
- `,
- [
- U('checked', [
- V(
- 'dot',
- `
- background-color: var(--n-color-active);
- `
- )
- ]),
- V(
- 'dot-wrapper',
- `
- position: relative;
- flex-shrink: 0;
- flex-grow: 0;
- width: var(--n-radio-size);
- `
- ),
- O(
- 'radio-input',
- `
- position: absolute;
- border: 0;
- border-radius: inherit;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- opacity: 0;
- z-index: 1;
- cursor: pointer;
- `
- ),
- V(
- 'dot',
- `
- position: absolute;
- top: 50%;
- left: 0;
- transform: translateY(-50%);
- height: var(--n-radio-size);
- width: var(--n-radio-size);
- background: var(--n-color);
- box-shadow: var(--n-box-shadow);
- border-radius: 50%;
- transition:
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- `,
- [
- F(
- '&::before',
- `
- content: "";
- opacity: 0;
- position: absolute;
- left: 4px;
- top: 4px;
- height: calc(100% - 8px);
- width: calc(100% - 8px);
- border-radius: 50%;
- transform: scale(.8);
- background: var(--n-dot-color-active);
- transition:
- opacity .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- transform .3s var(--n-bezier);
- `
- ),
- U('checked', { boxShadow: 'var(--n-box-shadow-active)' }, [
- F(
- '&::before',
- `
- opacity: 1;
- transform: scale(1);
- `
- )
- ])
- ]
- ),
- V(
- 'label',
- `
- color: var(--n-text-color);
- padding: var(--n-label-padding);
- font-weight: var(--n-label-font-weight);
- display: inline-block;
- transition: color .3s var(--n-bezier);
- `
- ),
- jt(
- 'disabled',
- `
- cursor: pointer;
- `,
- [
- F('&:hover', [V('dot', { boxShadow: 'var(--n-box-shadow-hover)' })]),
- U('focus', [
- F('&:not(:active)', [
- V('dot', { boxShadow: 'var(--n-box-shadow-focus)' })
- ])
- ])
- ]
- ),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- `,
- [
- V(
- 'dot',
- {
- boxShadow: 'var(--n-box-shadow-disabled)',
- backgroundColor: 'var(--n-color-disabled)'
- },
- [
- F('&::before', {
- backgroundColor: 'var(--n-dot-color-disabled)'
- }),
- U(
- 'checked',
- `
- opacity: 1;
- `
- )
- ]
- ),
- V('label', { color: 'var(--n-text-color-disabled)' }),
- O(
- 'radio-input',
- `
- cursor: not-allowed;
- `
- )
- ]
- )
- ]
- ),
- Ay = ke({
- name: 'Radio',
- props: Object.assign(Object.assign({}, Ke.props), dq),
- setup(e) {
- const t = uq(e),
- n = Ke('Radio', '-radio', fq, zy, e, t.mergedClsPrefix),
- r = I(() => {
- const {
- mergedSize: { value: d }
- } = t,
- {
- common: { cubicBezierEaseInOut: f },
- self: {
- boxShadow: v,
- boxShadowActive: p,
- boxShadowDisabled: m,
- boxShadowFocus: g,
- boxShadowHover: w,
- color: x,
- colorDisabled: y,
- colorActive: C,
- textColor: R,
- textColorDisabled: S,
- dotColorActive: _,
- dotColorDisabled: P,
- labelPadding: T,
- labelLineHeight: E,
- labelFontWeight: z,
- [Ee('fontSize', d)]: k,
- [Ee('radioSize', d)]: M
- }
- } = n.value;
- return {
- '--n-bezier': f,
- '--n-label-line-height': E,
- '--n-label-font-weight': z,
- '--n-box-shadow': v,
- '--n-box-shadow-active': p,
- '--n-box-shadow-disabled': m,
- '--n-box-shadow-focus': g,
- '--n-box-shadow-hover': w,
- '--n-color': x,
- '--n-color-active': C,
- '--n-color-disabled': y,
- '--n-dot-color-active': _,
- '--n-dot-color-disabled': P,
- '--n-font-size': k,
- '--n-radio-size': M,
- '--n-text-color': R,
- '--n-text-color-disabled': S,
- '--n-label-padding': T
- };
- }),
- {
- inlineThemeDisabled: o,
- mergedClsPrefixRef: i,
- mergedRtlRef: a
- } = yt(e),
- s = cr('Radio', a, i),
- c = o
- ? Mt(
- 'radio',
- I(() => t.mergedSize.value[0]),
- r,
- e
- )
- : void 0;
- return Object.assign(t, {
- rtlEnabled: s,
- cssVars: o ? void 0 : r,
- themeClass: c == null ? void 0 : c.themeClass,
- onRender: c == null ? void 0 : c.onRender
- });
- },
- render() {
- const { $slots: e, mergedClsPrefix: t, onRender: n, label: r } = this;
- return (
- n == null || n(),
- h(
- 'label',
- {
- class: [
- `${t}-radio`,
- this.themeClass,
- {
- [`${t}-radio--rtl`]: this.rtlEnabled,
- [`${t}-radio--disabled`]: this.mergedDisabled,
- [`${t}-radio--checked`]: this.renderSafeChecked,
- [`${t}-radio--focus`]: this.focus
- }
- ],
- style: this.cssVars
- },
- h('input', {
- ref: 'inputRef',
- type: 'radio',
- class: `${t}-radio-input`,
- value: this.value,
- name: this.mergedName,
- checked: this.renderSafeChecked,
- disabled: this.mergedDisabled,
- onChange: this.handleRadioInputChange,
- onFocus: this.handleRadioInputFocus,
- onBlur: this.handleRadioInputBlur
- }),
- h(
- 'div',
- { class: `${t}-radio__dot-wrapper` },
- ' ',
- h('div', {
- class: [
- `${t}-radio__dot`,
- this.renderSafeChecked && `${t}-radio__dot--checked`
- ]
- })
- ),
- cn(e.default, o =>
- !o && !r
- ? null
- : h(
- 'div',
- { ref: 'labelRef', class: `${t}-radio__label` },
- o || r
- )
- )
- )
- );
- }
- }),
- hq = O(
- 'radio-group',
- `
- display: inline-block;
- font-size: var(--n-font-size);
- `,
- [
- V(
- 'splitor',
- `
- display: inline-block;
- vertical-align: bottom;
- width: 1px;
- transition:
- background-color .3s var(--n-bezier),
- opacity .3s var(--n-bezier);
- background: var(--n-button-border-color);
- `,
- [
- U('checked', {
- backgroundColor: 'var(--n-button-border-color-active)'
- }),
- U('disabled', { opacity: 'var(--n-opacity-disabled)' })
- ]
- ),
- U(
- 'button-group',
- `
- white-space: nowrap;
- height: var(--n-height);
- line-height: var(--n-height);
- `,
- [
- O('radio-button', {
- height: 'var(--n-height)',
- lineHeight: 'var(--n-height)'
- }),
- V('splitor', { height: 'var(--n-height)' })
- ]
- ),
- O(
- 'radio-button',
- `
- vertical-align: bottom;
- outline: none;
- position: relative;
- user-select: none;
- -webkit-user-select: none;
- display: inline-block;
- box-sizing: border-box;
- padding-left: 14px;
- padding-right: 14px;
- white-space: nowrap;
- transition:
- background-color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- color: var(--n-button-text-color);
- border-top: 1px solid var(--n-button-border-color);
- border-bottom: 1px solid var(--n-button-border-color);
- `,
- [
- O(
- 'radio-input',
- `
- pointer-events: none;
- position: absolute;
- border: 0;
- border-radius: inherit;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- opacity: 0;
- z-index: 1;
- `
- ),
- V(
- 'state-border',
- `
- z-index: 1;
- pointer-events: none;
- position: absolute;
- box-shadow: var(--n-button-box-shadow);
- transition: box-shadow .3s var(--n-bezier);
- left: -1px;
- bottom: -1px;
- right: -1px;
- top: -1px;
- `
- ),
- F(
- '&:first-child',
- `
- border-top-left-radius: var(--n-button-border-radius);
- border-bottom-left-radius: var(--n-button-border-radius);
- border-left: 1px solid var(--n-button-border-color);
- `,
- [
- V(
- 'state-border',
- `
- border-top-left-radius: var(--n-button-border-radius);
- border-bottom-left-radius: var(--n-button-border-radius);
- `
- )
- ]
- ),
- F(
- '&:last-child',
- `
- border-top-right-radius: var(--n-button-border-radius);
- border-bottom-right-radius: var(--n-button-border-radius);
- border-right: 1px solid var(--n-button-border-color);
- `,
- [
- V(
- 'state-border',
- `
- border-top-right-radius: var(--n-button-border-radius);
- border-bottom-right-radius: var(--n-button-border-radius);
- `
- )
- ]
- ),
- jt(
- 'disabled',
- `
- cursor: pointer;
- `,
- [
- F('&:hover', [
- V(
- 'state-border',
- `
- transition: box-shadow .3s var(--n-bezier);
- box-shadow: var(--n-button-box-shadow-hover);
- `
- ),
- jt('checked', { color: 'var(--n-button-text-color-hover)' })
- ]),
- U('focus', [
- F('&:not(:active)', [
- V('state-border', {
- boxShadow: 'var(--n-button-box-shadow-focus)'
- })
- ])
- ])
- ]
- ),
- U(
- 'checked',
- `
- background: var(--n-button-color-active);
- color: var(--n-button-text-color-active);
- border-color: var(--n-button-border-color-active);
- `
- ),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- opacity: var(--n-opacity-disabled);
- `
- )
- ]
- )
- ]
- );
- function vq(e, t, n) {
- var r;
- const o = [];
- let i = !1;
- for (let a = 0; a < e.length; ++a) {
- const s = e[a],
- c = (r = s.type) === null || r === void 0 ? void 0 : r.name;
- c === 'RadioButton' && (i = !0);
- const d = s.props;
- if (c !== 'RadioButton') {
- o.push(s);
- continue;
- }
- if (a === 0) o.push(s);
- else {
- const f = o[o.length - 1].props,
- v = t === f.value,
- p = f.disabled,
- m = t === d.value,
- g = d.disabled,
- w = (v ? 2 : 0) + (p ? 0 : 1),
- x = (m ? 2 : 0) + (g ? 0 : 1),
- y = {
- [`${n}-radio-group__splitor--disabled`]: p,
- [`${n}-radio-group__splitor--checked`]: v
- },
- C = {
- [`${n}-radio-group__splitor--disabled`]: g,
- [`${n}-radio-group__splitor--checked`]: m
- },
- R = w < x ? C : y;
- o.push(h('div', { class: [`${n}-radio-group__splitor`, R] }), s);
- }
- }
- return { children: o, isButtonGroup: i };
- }
- const pq = Object.assign(Object.assign({}, Ke.props), {
- name: String,
- value: [String, Number, Boolean],
- defaultValue: { type: [String, Number, Boolean], default: null },
- size: String,
- disabled: { type: Boolean, default: void 0 },
- 'onUpdate:value': [Function, Array],
- onUpdateValue: [Function, Array]
- }),
- Qk = ke({
- name: 'RadioGroup',
- props: pq,
- setup(e) {
- const t = Z(null),
- {
- mergedSizeRef: n,
- mergedDisabledRef: r,
- nTriggerFormChange: o,
- nTriggerFormInput: i,
- nTriggerFormBlur: a,
- nTriggerFormFocus: s
- } = ei(e),
- {
- mergedClsPrefixRef: c,
- inlineThemeDisabled: d,
- mergedRtlRef: f
- } = yt(e),
- v = Ke('Radio', '-radio-group', hq, zy, e, c),
- p = Z(e.defaultValue),
- m = Ie(e, 'value'),
- g = En(m, p);
- function w(_) {
- const { onUpdateValue: P, 'onUpdate:value': T } = e;
- P && Me(P, _), T && Me(T, _), (p.value = _), o(), i();
- }
- function x(_) {
- const { value: P } = t;
- P && (P.contains(_.relatedTarget) || s());
- }
- function y(_) {
- const { value: P } = t;
- P && (P.contains(_.relatedTarget) || a());
- }
- Rt(Zk, {
- mergedClsPrefixRef: c,
- nameRef: Ie(e, 'name'),
- valueRef: g,
- disabledRef: r,
- mergedSizeRef: n,
- doUpdateValue: w
- });
- const C = cr('Radio', f, c),
- R = I(() => {
- const { value: _ } = n,
- {
- common: { cubicBezierEaseInOut: P },
- self: {
- buttonBorderColor: T,
- buttonBorderColorActive: E,
- buttonBorderRadius: z,
- buttonBoxShadow: k,
- buttonBoxShadowFocus: M,
- buttonBoxShadowHover: A,
- buttonColorActive: D,
- buttonTextColor: L,
- buttonTextColorActive: H,
- buttonTextColorHover: B,
- opacityDisabled: q,
- [Ee('buttonHeight', _)]: X,
- [Ee('fontSize', _)]: te
- }
- } = v.value;
- return {
- '--n-font-size': te,
- '--n-bezier': P,
- '--n-button-border-color': T,
- '--n-button-border-color-active': E,
- '--n-button-border-radius': z,
- '--n-button-box-shadow': k,
- '--n-button-box-shadow-focus': M,
- '--n-button-box-shadow-hover': A,
- '--n-button-color-active': D,
- '--n-button-text-color': L,
- '--n-button-text-color-hover': B,
- '--n-button-text-color-active': H,
- '--n-height': X,
- '--n-opacity-disabled': q
- };
- }),
- S = d
- ? Mt(
- 'radio-group',
- I(() => n.value[0]),
- R,
- e
- )
- : void 0;
- return {
- selfElRef: t,
- rtlEnabled: C,
- mergedClsPrefix: c,
- mergedValue: g,
- handleFocusout: y,
- handleFocusin: x,
- cssVars: d ? void 0 : R,
- themeClass: S == null ? void 0 : S.themeClass,
- onRender: S == null ? void 0 : S.onRender
- };
- },
- render() {
- var e;
- const {
- mergedValue: t,
- mergedClsPrefix: n,
- handleFocusin: r,
- handleFocusout: o
- } = this,
- { children: i, isButtonGroup: a } = vq(hi(Wu(this)), t, n);
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'div',
- {
- onFocusin: r,
- onFocusout: o,
- ref: 'selfElRef',
- class: [
- `${n}-radio-group`,
- this.rtlEnabled && `${n}-radio-group--rtl`,
- this.themeClass,
- a && `${n}-radio-group--button-group`
- ],
- style: this.cssVars
- },
- i
- )
- );
- }
- }),
- Jk = 40,
- e3 = 40;
- function DS(e) {
- if (e.type === 'selection') return e.width === void 0 ? Jk : Lr(e.width);
- if (e.type === 'expand') return e.width === void 0 ? e3 : Lr(e.width);
- if (!('children' in e))
- return typeof e.width == 'string' ? Lr(e.width) : e.width;
- }
- function gq(e) {
- var t, n;
- if (e.type === 'selection')
- return vn((t = e.width) !== null && t !== void 0 ? t : Jk);
- if (e.type === 'expand')
- return vn((n = e.width) !== null && n !== void 0 ? n : e3);
- if (!('children' in e)) return vn(e.width);
- }
- function si(e) {
- return e.type === 'selection'
- ? '__n_selection__'
- : e.type === 'expand'
- ? '__n_expand__'
- : e.key;
- }
- function FS(e) {
- return e && (typeof e == 'object' ? Object.assign({}, e) : e);
- }
- function mq(e) {
- return e === 'ascend' ? 1 : e === 'descend' ? -1 : 0;
- }
- function bq(e, t, n) {
- return (
- n !== void 0 && (e = Math.min(e, typeof n == 'number' ? n : parseFloat(n))),
- t !== void 0 && (e = Math.max(e, typeof t == 'number' ? t : parseFloat(t))),
- e
- );
- }
- function yq(e, t) {
- if (t !== void 0) return { width: t, minWidth: t, maxWidth: t };
- const n = gq(e),
- { minWidth: r, maxWidth: o } = e;
- return { width: n, minWidth: vn(r) || n, maxWidth: vn(o) };
- }
- function xq(e, t, n) {
- return typeof n == 'function' ? n(e, t) : n || '';
- }
- function Am(e) {
- return (
- e.filterOptionValues !== void 0 ||
- (e.filterOptionValue === void 0 && e.defaultFilterOptionValues !== void 0)
- );
- }
- function Mm(e) {
- return 'children' in e ? !1 : !!e.sorter;
- }
- function t3(e) {
- return 'children' in e && e.children.length ? !1 : !!e.resizable;
- }
- function BS(e) {
- return 'children' in e
- ? !1
- : !!e.filter && (!!e.filterOptions || !!e.renderFilterMenu);
- }
- function LS(e) {
- if (e) {
- if (e === 'descend') return 'ascend';
- } else return 'descend';
- return !1;
- }
- function wq(e, t) {
- return e.sorter === void 0
- ? null
- : t === null || t.columnKey !== e.key
- ? { columnKey: e.key, sorter: e.sorter, order: LS(!1) }
- : Object.assign(Object.assign({}, t), { order: LS(t.order) });
- }
- function n3(e, t) {
- return t.find(n => n.columnKey === e.key && n.order) !== void 0;
- }
- const Cq = ke({
- name: 'DataTableFilterMenu',
- props: {
- column: { type: Object, required: !0 },
- radioGroupName: { type: String, required: !0 },
- multiple: { type: Boolean, required: !0 },
- value: { type: [Array, String, Number], default: null },
- options: { type: Array, required: !0 },
- onConfirm: { type: Function, required: !0 },
- onClear: { type: Function, required: !0 },
- onChange: { type: Function, required: !0 }
- },
- setup(e) {
- const { mergedClsPrefixRef: t, mergedThemeRef: n, localeRef: r } = Ze(wi),
- o = Z(e.value),
- i = I(() => {
- const { value: v } = o;
- return Array.isArray(v) ? v : null;
- }),
- a = I(() => {
- const { value: v } = o;
- return Am(e.column)
- ? (Array.isArray(v) && v.length && v[0]) || null
- : Array.isArray(v)
- ? null
- : v;
- });
- function s(v) {
- e.onChange(v);
- }
- function c(v) {
- e.multiple && Array.isArray(v)
- ? (o.value = v)
- : Am(e.column) && !Array.isArray(v)
- ? (o.value = [v])
- : (o.value = v);
- }
- function d() {
- s(o.value), e.onConfirm();
- }
- function f() {
- e.multiple || Am(e.column) ? s([]) : s(null), e.onClear();
- }
- return {
- mergedClsPrefix: t,
- mergedTheme: n,
- locale: r,
- checkboxGroupValue: i,
- radioGroupValue: a,
- handleChange: c,
- handleConfirmClick: d,
- handleClearClick: f
- };
- },
- render() {
- const { mergedTheme: e, locale: t, mergedClsPrefix: n } = this;
- return h(
- 'div',
- { class: `${n}-data-table-filter-menu` },
- h(yr, null, {
- default: () => {
- const { checkboxGroupValue: r, handleChange: o } = this;
- return this.multiple
- ? h(
- Wk,
- {
- value: r,
- class: `${n}-data-table-filter-menu__group`,
- onUpdateValue: o
- },
- {
- default: () =>
- this.options.map(i =>
- h(
- Zu,
- {
- key: i.value,
- theme: e.peers.Checkbox,
- themeOverrides: e.peerOverrides.Checkbox,
- value: i.value
- },
- { default: () => i.label }
- )
- )
- }
- )
- : h(
- Qk,
- {
- name: this.radioGroupName,
- class: `${n}-data-table-filter-menu__group`,
- value: this.radioGroupValue,
- onUpdateValue: this.handleChange
- },
- {
- default: () =>
- this.options.map(i =>
- h(
- Ay,
- {
- key: i.value,
- value: i.value,
- theme: e.peers.Radio,
- themeOverrides: e.peerOverrides.Radio
- },
- { default: () => i.label }
- )
- )
- }
- );
- }
- }),
- h(
- 'div',
- { class: `${n}-data-table-filter-menu__action` },
- h(
- nr,
- {
- size: 'tiny',
- theme: e.peers.Button,
- themeOverrides: e.peerOverrides.Button,
- onClick: this.handleClearClick
- },
- { default: () => t.clear }
- ),
- h(
- nr,
- {
- theme: e.peers.Button,
- themeOverrides: e.peerOverrides.Button,
- type: 'primary',
- size: 'tiny',
- onClick: this.handleConfirmClick
- },
- { default: () => t.confirm }
- )
- )
- );
- }
- });
- function Sq(e, t, n) {
- const r = Object.assign({}, e);
- return (r[t] = n), r;
- }
- const _q = ke({
- name: 'DataTableFilterButton',
- props: {
- column: { type: Object, required: !0 },
- options: { type: Array, default: () => [] }
- },
- setup(e) {
- const { mergedComponentPropsRef: t } = yt(),
- {
- mergedThemeRef: n,
- mergedClsPrefixRef: r,
- mergedFilterStateRef: o,
- filterMenuCssVarsRef: i,
- paginationBehaviorOnFilterRef: a,
- doUpdatePage: s,
- doUpdateFilters: c
- } = Ze(wi),
- d = Z(!1),
- f = o,
- v = I(() => e.column.filterMultiple !== !1),
- p = I(() => {
- const C = f.value[e.column.key];
- if (C === void 0) {
- const { value: R } = v;
- return R ? [] : null;
- }
- return C;
- }),
- m = I(() => {
- const { value: C } = p;
- return Array.isArray(C) ? C.length > 0 : C !== null;
- }),
- g = I(() => {
- var C, R;
- return (
- ((R =
- (C = t == null ? void 0 : t.value) === null || C === void 0
- ? void 0
- : C.DataTable) === null || R === void 0
- ? void 0
- : R.renderFilter) || e.column.renderFilter
- );
- });
- function w(C) {
- const R = Sq(f.value, e.column.key, C);
- c(R, e.column), a.value === 'first' && s(1);
- }
- function x() {
- d.value = !1;
- }
- function y() {
- d.value = !1;
- }
- return {
- mergedTheme: n,
- mergedClsPrefix: r,
- active: m,
- showPopover: d,
- mergedRenderFilter: g,
- filterMultiple: v,
- mergedFilterValue: p,
- filterMenuCssVars: i,
- handleFilterChange: w,
- handleFilterMenuConfirm: y,
- handleFilterMenuCancel: x
- };
- },
- render() {
- const {
- mergedTheme: e,
- mergedClsPrefix: t,
- handleFilterMenuCancel: n
- } = this;
- return h(
- id,
- {
- show: this.showPopover,
- onUpdateShow: r => (this.showPopover = r),
- trigger: 'click',
- theme: e.peers.Popover,
- themeOverrides: e.peerOverrides.Popover,
- placement: 'bottom',
- style: { padding: 0 }
- },
- {
- trigger: () => {
- const { mergedRenderFilter: r } = this;
- if (r)
- return h(cq, {
- 'data-data-table-filter': !0,
- render: r,
- active: this.active,
- show: this.showPopover
- });
- const { renderFilterIcon: o } = this.column;
- return h(
- 'div',
- {
- 'data-data-table-filter': !0,
- class: [
- `${t}-data-table-filter`,
- {
- [`${t}-data-table-filter--active`]: this.active,
- [`${t}-data-table-filter--show`]: this.showPopover
- }
- ]
- },
- o
- ? o({ active: this.active, show: this.showPopover })
- : h(At, { clsPrefix: t }, { default: () => h(RW, null) })
- );
- },
- default: () => {
- const { renderFilterMenu: r } = this.column;
- return r
- ? r({ hide: n })
- : h(Cq, {
- style: this.filterMenuCssVars,
- radioGroupName: String(this.column.key),
- multiple: this.filterMultiple,
- value: this.mergedFilterValue,
- options: this.options,
- column: this.column,
- onChange: this.handleFilterChange,
- onClear: this.handleFilterMenuCancel,
- onConfirm: this.handleFilterMenuConfirm
- });
- }
- }
- );
- }
- }),
- Rq = ke({
- name: 'ColumnResizeButton',
- props: {
- onResizeStart: Function,
- onResize: Function,
- onResizeEnd: Function
- },
- setup(e) {
- const { mergedClsPrefixRef: t } = Ze(wi),
- n = Z(!1);
- let r = 0;
- function o(c) {
- return c.clientX;
- }
- function i(c) {
- var d;
- const f = n.value;
- (r = o(c)),
- (n.value = !0),
- f ||
- (Tn('mousemove', window, a),
- Tn('mouseup', window, s),
- (d = e.onResizeStart) === null || d === void 0 || d.call(e));
- }
- function a(c) {
- var d;
- (d = e.onResize) === null || d === void 0 || d.call(e, o(c) - r);
- }
- function s() {
- var c;
- (n.value = !1),
- (c = e.onResizeEnd) === null || c === void 0 || c.call(e),
- pn('mousemove', window, a),
- pn('mouseup', window, s);
- }
- return (
- qn(() => {
- pn('mousemove', window, a), pn('mouseup', window, s);
- }),
- { mergedClsPrefix: t, active: n, handleMousedown: i }
- );
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h('span', {
- 'data-data-table-resizable': !0,
- class: [
- `${e}-data-table-resize-button`,
- this.active && `${e}-data-table-resize-button--active`
- ],
- onMousedown: this.handleMousedown
- });
- }
- }),
- r3 = ke({
- name: 'DropdownDivider',
- props: { clsPrefix: { type: String, required: !0 } },
- render() {
- return h('div', { class: `${this.clsPrefix}-dropdown-divider` });
- }
- }),
- Pq = e => {
- const {
- textColorBase: t,
- opacity1: n,
- opacity2: r,
- opacity3: o,
- opacity4: i,
- opacity5: a
- } = e;
- return {
- color: t,
- opacity1Depth: n,
- opacity2Depth: r,
- opacity3Depth: o,
- opacity4Depth: i,
- opacity5Depth: a
- };
- },
- kq = { name: 'Icon', common: Nt, self: Pq },
- Tq = kq,
- $q = O(
- 'icon',
- `
- height: 1em;
- width: 1em;
- line-height: 1em;
- text-align: center;
- display: inline-block;
- position: relative;
- fill: currentColor;
- transform: translateZ(0);
- `,
- [
- U('color-transition', { transition: 'color .3s var(--n-bezier)' }),
- U('depth', { color: 'var(--n-color)' }, [
- F('svg', {
- opacity: 'var(--n-opacity)',
- transition: 'opacity .3s var(--n-bezier)'
- })
- ]),
- F('svg', { height: '1em', width: '1em' })
- ]
- ),
- Oq = Object.assign(Object.assign({}, Ke.props), {
- depth: [String, Number],
- size: [Number, String],
- color: String,
- component: Object
- }),
- o3 = ke({
- _n_icon__: !0,
- name: 'Icon',
- inheritAttrs: !1,
- props: Oq,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Icon', '-icon', $q, Tq, e, t),
- o = I(() => {
- const { depth: a } = e,
- {
- common: { cubicBezierEaseInOut: s },
- self: c
- } = r.value;
- if (a !== void 0) {
- const { color: d, [`opacity${a}Depth`]: f } = c;
- return { '--n-bezier': s, '--n-color': d, '--n-opacity': f };
- }
- return { '--n-bezier': s, '--n-color': '', '--n-opacity': '' };
- }),
- i = n
- ? Mt(
- 'icon',
- I(() => `${e.depth || 'd'}`),
- o,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- mergedStyle: I(() => {
- const { size: a, color: s } = e;
- return { fontSize: vn(a), color: s };
- }),
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- const {
- $parent: t,
- depth: n,
- mergedClsPrefix: r,
- component: o,
- onRender: i,
- themeClass: a
- } = this;
- return (
- !((e = t == null ? void 0 : t.$options) === null || e === void 0) &&
- e._n_icon__ &&
- Io('icon', "don't wrap `n-icon` inside `n-icon`"),
- i == null || i(),
- h(
- 'i',
- qr(this.$attrs, {
- role: 'img',
- class: [
- `${r}-icon`,
- a,
- {
- [`${r}-icon--depth`]: n,
- [`${r}-icon--color-transition`]: n !== void 0
- }
- ],
- style: [this.cssVars, this.mergedStyle]
- }),
- o ? h(o) : this.$slots
- )
- );
- }
- }),
- My = 'n-dropdown-menu',
- Dp = 'n-dropdown',
- NS = 'n-dropdown-option';
- function Xb(e, t) {
- return e.type === 'submenu' || (e.type === void 0 && e[t] !== void 0);
- }
- function zq(e) {
- return e.type === 'group';
- }
- function i3(e) {
- return e.type === 'divider';
- }
- function Eq(e) {
- return e.type === 'render';
- }
- const a3 = ke({
- name: 'DropdownOption',
- props: {
- clsPrefix: { type: String, required: !0 },
- tmNode: { type: Object, required: !0 },
- parentKey: { type: [String, Number], default: null },
- placement: { type: String, default: 'right-start' },
- props: Object,
- scrollable: Boolean
- },
- setup(e) {
- const t = Ze(Dp),
- {
- hoverKeyRef: n,
- keyboardKeyRef: r,
- lastToggledSubmenuKeyRef: o,
- pendingKeyPathRef: i,
- activeKeyPathRef: a,
- animatedRef: s,
- mergedShowRef: c,
- renderLabelRef: d,
- renderIconRef: f,
- labelFieldRef: v,
- childrenFieldRef: p,
- renderOptionRef: m,
- nodePropsRef: g,
- menuPropsRef: w
- } = t,
- x = Ze(NS, null),
- y = Ze(My),
- C = Ze(Zc),
- R = I(() => e.tmNode.rawNode),
- S = I(() => {
- const { value: q } = p;
- return Xb(e.tmNode.rawNode, q);
- }),
- _ = I(() => {
- const { disabled: q } = e.tmNode;
- return q;
- }),
- P = I(() => {
- if (!S.value) return !1;
- const { key: q, disabled: X } = e.tmNode;
- if (X) return !1;
- const { value: te } = n,
- { value: G } = r,
- { value: Q } = o,
- { value: re } = i;
- return te !== null
- ? re.includes(q)
- : G !== null
- ? re.includes(q) && re[re.length - 1] !== q
- : Q !== null
- ? re.includes(q)
- : !1;
- }),
- T = I(() => r.value === null && !s.value),
- E = tD(P, 300, T),
- z = I(() => !!(x != null && x.enteringSubmenuRef.value)),
- k = Z(!1);
- Rt(NS, { enteringSubmenuRef: k });
- function M() {
- k.value = !0;
- }
- function A() {
- k.value = !1;
- }
- function D() {
- const { parentKey: q, tmNode: X } = e;
- X.disabled ||
- (c.value && ((o.value = q), (r.value = null), (n.value = X.key)));
- }
- function L() {
- const { tmNode: q } = e;
- q.disabled || (c.value && n.value !== q.key && D());
- }
- function H(q) {
- if (e.tmNode.disabled || !c.value) return;
- const { relatedTarget: X } = q;
- X &&
- !Mo({ target: X }, 'dropdownOption') &&
- !Mo({ target: X }, 'scrollbarRail') &&
- (n.value = null);
- }
- function B() {
- const { value: q } = S,
- { tmNode: X } = e;
- c.value &&
- !q &&
- !X.disabled &&
- (t.doSelect(X.key, X.rawNode), t.doUpdateShow(!1));
- }
- return {
- labelField: v,
- renderLabel: d,
- renderIcon: f,
- siblingHasIcon: y.showIconRef,
- siblingHasSubmenu: y.hasSubmenuRef,
- menuProps: w,
- popoverBody: C,
- animated: s,
- mergedShowSubmenu: I(() => E.value && !z.value),
- rawNode: R,
- hasSubmenu: S,
- pending: kt(() => {
- const { value: q } = i,
- { key: X } = e.tmNode;
- return q.includes(X);
- }),
- childActive: kt(() => {
- const { value: q } = a,
- { key: X } = e.tmNode,
- te = q.findIndex(G => X === G);
- return te === -1 ? !1 : te < q.length - 1;
- }),
- active: kt(() => {
- const { value: q } = a,
- { key: X } = e.tmNode,
- te = q.findIndex(G => X === G);
- return te === -1 ? !1 : te === q.length - 1;
- }),
- mergedDisabled: _,
- renderOption: m,
- nodeProps: g,
- handleClick: B,
- handleMouseMove: L,
- handleMouseEnter: D,
- handleMouseLeave: H,
- handleSubmenuBeforeEnter: M,
- handleSubmenuAfterEnter: A
- };
- },
- render() {
- var e, t;
- const {
- animated: n,
- rawNode: r,
- mergedShowSubmenu: o,
- clsPrefix: i,
- siblingHasIcon: a,
- siblingHasSubmenu: s,
- renderLabel: c,
- renderIcon: d,
- renderOption: f,
- nodeProps: v,
- props: p,
- scrollable: m
- } = this;
- let g = null;
- if (o) {
- const C =
- (e = this.menuProps) === null || e === void 0
- ? void 0
- : e.call(this, r, r.children);
- g = h(
- l3,
- Object.assign({}, C, {
- clsPrefix: i,
- scrollable: this.scrollable,
- tmNodes: this.tmNode.children,
- parentKey: this.tmNode.key
- })
- );
- }
- const w = {
- class: [
- `${i}-dropdown-option-body`,
- this.pending && `${i}-dropdown-option-body--pending`,
- this.active && `${i}-dropdown-option-body--active`,
- this.childActive && `${i}-dropdown-option-body--child-active`,
- this.mergedDisabled && `${i}-dropdown-option-body--disabled`
- ],
- onMousemove: this.handleMouseMove,
- onMouseenter: this.handleMouseEnter,
- onMouseleave: this.handleMouseLeave,
- onClick: this.handleClick
- },
- x = v == null ? void 0 : v(r),
- y = h(
- 'div',
- Object.assign(
- {
- class: [`${i}-dropdown-option`, x == null ? void 0 : x.class],
- 'data-dropdown-option': !0
- },
- x
- ),
- h('div', qr(w, p), [
- h(
- 'div',
- {
- class: [
- `${i}-dropdown-option-body__prefix`,
- a && `${i}-dropdown-option-body__prefix--show-icon`
- ]
- },
- [d ? d(r) : _n(r.icon)]
- ),
- h(
- 'div',
- {
- 'data-dropdown-option': !0,
- class: `${i}-dropdown-option-body__label`
- },
- c
- ? c(r)
- : _n(
- (t = r[this.labelField]) !== null && t !== void 0
- ? t
- : r.title
- )
- ),
- h(
- 'div',
- {
- 'data-dropdown-option': !0,
- class: [
- `${i}-dropdown-option-body__suffix`,
- s && `${i}-dropdown-option-body__suffix--has-submenu`
- ]
- },
- this.hasSubmenu
- ? h(o3, null, { default: () => h(Cy, null) })
- : null
- )
- ]),
- this.hasSubmenu
- ? h(Qc, null, {
- default: () => [
- h(Jc, null, {
- default: () =>
- h(
- 'div',
- { class: `${i}-dropdown-offset-container` },
- h(
- ed,
- {
- show: this.mergedShowSubmenu,
- placement: this.placement,
- to: (m && this.popoverBody) || void 0,
- teleportDisabled: !m
- },
- {
- default: () =>
- h(
- 'div',
- { class: `${i}-dropdown-menu-wrapper` },
- n
- ? h(
- Kn,
- {
- onBeforeEnter:
- this.handleSubmenuBeforeEnter,
- onAfterEnter:
- this.handleSubmenuAfterEnter,
- name: 'fade-in-scale-up-transition',
- appear: !0
- },
- { default: () => g }
- )
- : g
- )
- }
- )
- )
- })
- ]
- })
- : null
- );
- return f ? f({ node: y, option: r }) : y;
- }
- }),
- Aq = ke({
- name: 'DropdownGroupHeader',
- props: {
- clsPrefix: { type: String, required: !0 },
- tmNode: { type: Object, required: !0 }
- },
- setup() {
- const { showIconRef: e, hasSubmenuRef: t } = Ze(My),
- {
- renderLabelRef: n,
- labelFieldRef: r,
- nodePropsRef: o,
- renderOptionRef: i
- } = Ze(Dp);
- return {
- labelField: r,
- showIcon: e,
- hasSubmenu: t,
- renderLabel: n,
- nodeProps: o,
- renderOption: i
- };
- },
- render() {
- var e;
- const {
- clsPrefix: t,
- hasSubmenu: n,
- showIcon: r,
- nodeProps: o,
- renderLabel: i,
- renderOption: a
- } = this,
- { rawNode: s } = this.tmNode,
- c = h(
- 'div',
- Object.assign(
- { class: `${t}-dropdown-option` },
- o == null ? void 0 : o(s)
- ),
- h(
- 'div',
- {
- class: `${t}-dropdown-option-body ${t}-dropdown-option-body--group`
- },
- h(
- 'div',
- {
- 'data-dropdown-option': !0,
- class: [
- `${t}-dropdown-option-body__prefix`,
- r && `${t}-dropdown-option-body__prefix--show-icon`
- ]
- },
- _n(s.icon)
- ),
- h(
- 'div',
- {
- class: `${t}-dropdown-option-body__label`,
- 'data-dropdown-option': !0
- },
- i
- ? i(s)
- : _n(
- (e = s.title) !== null && e !== void 0
- ? e
- : s[this.labelField]
- )
- ),
- h('div', {
- class: [
- `${t}-dropdown-option-body__suffix`,
- n && `${t}-dropdown-option-body__suffix--has-submenu`
- ],
- 'data-dropdown-option': !0
- })
- )
- );
- return a ? a({ node: c, option: s }) : c;
- }
- }),
- Mq = ke({
- name: 'NDropdownGroup',
- props: {
- clsPrefix: { type: String, required: !0 },
- tmNode: { type: Object, required: !0 },
- parentKey: { type: [String, Number], default: null }
- },
- render() {
- const { tmNode: e, parentKey: t, clsPrefix: n } = this,
- { children: r } = e;
- return h(
- on,
- null,
- h(Aq, { clsPrefix: n, tmNode: e, key: e.key }),
- r == null
- ? void 0
- : r.map(o => {
- const { rawNode: i } = o;
- return i.show === !1
- ? null
- : i3(i)
- ? h(r3, { clsPrefix: n, key: o.key })
- : o.isGroup
- ? (Io(
- 'dropdown',
- '`group` node is not allowed to be put in `group` node.'
- ),
- null)
- : h(a3, { clsPrefix: n, tmNode: o, parentKey: t, key: o.key });
- })
- );
- }
- }),
- Iq = ke({
- name: 'DropdownRenderOption',
- props: { tmNode: { type: Object, required: !0 } },
- render() {
- const {
- rawNode: { render: e, props: t }
- } = this.tmNode;
- return h('div', t, [e == null ? void 0 : e()]);
- }
- }),
- l3 = ke({
- name: 'DropdownMenu',
- props: {
- scrollable: Boolean,
- showArrow: Boolean,
- arrowStyle: [String, Object],
- clsPrefix: { type: String, required: !0 },
- tmNodes: { type: Array, default: () => [] },
- parentKey: { type: [String, Number], default: null }
- },
- setup(e) {
- const { renderIconRef: t, childrenFieldRef: n } = Ze(Dp);
- Rt(My, {
- showIconRef: I(() => {
- const o = t.value;
- return e.tmNodes.some(i => {
- var a;
- if (i.isGroup)
- return (a = i.children) === null || a === void 0
- ? void 0
- : a.some(({ rawNode: c }) => (o ? o(c) : c.icon));
- const { rawNode: s } = i;
- return o ? o(s) : s.icon;
- });
- }),
- hasSubmenuRef: I(() => {
- const { value: o } = n;
- return e.tmNodes.some(i => {
- var a;
- if (i.isGroup)
- return (a = i.children) === null || a === void 0
- ? void 0
- : a.some(({ rawNode: c }) => Xb(c, o));
- const { rawNode: s } = i;
- return Xb(s, o);
- });
- })
- });
- const r = Z(null);
- return Rt(Vu, null), Rt(Ku, null), Rt(Zc, r), { bodyRef: r };
- },
- render() {
- const { parentKey: e, clsPrefix: t, scrollable: n } = this,
- r = this.tmNodes.map(o => {
- const { rawNode: i } = o;
- return i.show === !1
- ? null
- : Eq(i)
- ? h(Iq, { tmNode: o, key: o.key })
- : i3(i)
- ? h(r3, { clsPrefix: t, key: o.key })
- : zq(i)
- ? h(Mq, { clsPrefix: t, tmNode: o, parentKey: e, key: o.key })
- : h(a3, {
- clsPrefix: t,
- tmNode: o,
- parentKey: e,
- key: o.key,
- props: i.props,
- scrollable: n
- });
- });
- return h(
- 'div',
- {
- class: [`${t}-dropdown-menu`, n && `${t}-dropdown-menu--scrollable`],
- ref: 'bodyRef'
- },
- n
- ? h(
- vv,
- { contentClass: `${t}-dropdown-menu__content` },
- { default: () => r }
- )
- : r,
- this.showArrow
- ? Tk({ clsPrefix: t, arrowStyle: this.arrowStyle })
- : null
- );
- }
- }),
- Dq = O(
- 'dropdown-menu',
- `
- transform-origin: var(--v-transform-origin);
- background-color: var(--n-color);
- border-radius: var(--n-border-radius);
- box-shadow: var(--n-box-shadow);
- position: relative;
- transition:
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- `,
- [
- gi(),
- O(
- 'dropdown-option',
- `
- position: relative;
- `,
- [
- F(
- 'a',
- `
- text-decoration: none;
- color: inherit;
- outline: none;
- `,
- [
- F(
- '&::before',
- `
- content: "";
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `
- )
- ]
- ),
- O(
- 'dropdown-option-body',
- `
- display: flex;
- cursor: pointer;
- position: relative;
- height: var(--n-option-height);
- line-height: var(--n-option-height);
- font-size: var(--n-font-size);
- color: var(--n-option-text-color);
- transition: color .3s var(--n-bezier);
- `,
- [
- F(
- '&::before',
- `
- content: "";
- position: absolute;
- top: 0;
- bottom: 0;
- left: 4px;
- right: 4px;
- transition: background-color .3s var(--n-bezier);
- border-radius: var(--n-border-radius);
- `
- ),
- jt('disabled', [
- U(
- 'pending',
- `
- color: var(--n-option-text-color-hover);
- `,
- [
- V(
- 'prefix, suffix',
- `
- color: var(--n-option-text-color-hover);
- `
- ),
- F(
- '&::before',
- 'background-color: var(--n-option-color-hover);'
- )
- ]
- ),
- U(
- 'active',
- `
- color: var(--n-option-text-color-active);
- `,
- [
- V(
- 'prefix, suffix',
- `
- color: var(--n-option-text-color-active);
- `
- ),
- F(
- '&::before',
- 'background-color: var(--n-option-color-active);'
- )
- ]
- ),
- U(
- 'child-active',
- `
- color: var(--n-option-text-color-child-active);
- `,
- [
- V(
- 'prefix, suffix',
- `
- color: var(--n-option-text-color-child-active);
- `
- )
- ]
- )
- ]),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- opacity: var(--n-option-opacity-disabled);
- `
- ),
- U(
- 'group',
- `
- font-size: calc(var(--n-font-size) - 1px);
- color: var(--n-group-header-text-color);
- `,
- [
- V(
- 'prefix',
- `
- width: calc(var(--n-option-prefix-width) / 2);
- `,
- [
- U(
- 'show-icon',
- `
- width: calc(var(--n-option-icon-prefix-width) / 2);
- `
- )
- ]
- )
- ]
- ),
- V(
- 'prefix',
- `
- width: var(--n-option-prefix-width);
- display: flex;
- justify-content: center;
- align-items: center;
- color: var(--n-prefix-color);
- transition: color .3s var(--n-bezier);
- z-index: 1;
- `,
- [
- U(
- 'show-icon',
- `
- width: var(--n-option-icon-prefix-width);
- `
- ),
- O(
- 'icon',
- `
- font-size: var(--n-option-icon-size);
- `
- )
- ]
- ),
- V(
- 'label',
- `
- white-space: nowrap;
- flex: 1;
- z-index: 1;
- `
- ),
- V(
- 'suffix',
- `
- box-sizing: border-box;
- flex-grow: 0;
- flex-shrink: 0;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- min-width: var(--n-option-suffix-width);
- padding: 0 8px;
- transition: color .3s var(--n-bezier);
- color: var(--n-suffix-color);
- z-index: 1;
- `,
- [
- U(
- 'has-submenu',
- `
- width: var(--n-option-icon-suffix-width);
- `
- ),
- O(
- 'icon',
- `
- font-size: var(--n-option-icon-size);
- `
- )
- ]
- ),
- O('dropdown-menu', 'pointer-events: all;')
- ]
- ),
- O(
- 'dropdown-offset-container',
- `
- pointer-events: none;
- position: absolute;
- left: 0;
- right: 0;
- top: -4px;
- bottom: -4px;
- `
- )
- ]
- ),
- O(
- 'dropdown-divider',
- `
- transition: background-color .3s var(--n-bezier);
- background-color: var(--n-divider-color);
- height: 1px;
- margin: 4px 0;
- `
- ),
- O(
- 'dropdown-menu-wrapper',
- `
- transform-origin: var(--v-transform-origin);
- width: fit-content;
- `
- ),
- F('>', [
- O(
- 'scrollbar',
- `
- height: inherit;
- max-height: inherit;
- `
- )
- ]),
- jt(
- 'scrollable',
- `
- padding: var(--n-padding);
- `
- ),
- U('scrollable', [
- V(
- 'content',
- `
- padding: var(--n-padding);
- `
- )
- ])
- ]
- ),
- Fq = {
- animated: { type: Boolean, default: !0 },
- keyboard: { type: Boolean, default: !0 },
- size: { type: String, default: 'medium' },
- inverted: Boolean,
- placement: { type: String, default: 'bottom' },
- onSelect: [Function, Array],
- options: { type: Array, default: () => [] },
- menuProps: Function,
- showArrow: Boolean,
- renderLabel: Function,
- renderIcon: Function,
- renderOption: Function,
- nodeProps: Function,
- labelField: { type: String, default: 'label' },
- keyField: { type: String, default: 'key' },
- childrenField: { type: String, default: 'children' },
- value: [String, Number]
- },
- Bq = Object.keys(Ic),
- Lq = Object.assign(Object.assign(Object.assign({}, Ic), Fq), Ke.props),
- Iy = ke({
- name: 'Dropdown',
- inheritAttrs: !1,
- props: Lq,
- setup(e) {
- const t = Z(!1),
- n = En(Ie(e, 'show'), t),
- r = I(() => {
- const { keyField: A, childrenField: D } = e;
- return rd(e.options, {
- getKey(L) {
- return L[A];
- },
- getDisabled(L) {
- return L.disabled === !0;
- },
- getIgnored(L) {
- return L.type === 'divider' || L.type === 'render';
- },
- getChildren(L) {
- return L[D];
- }
- });
- }),
- o = I(() => r.value.treeNodes),
- i = Z(null),
- a = Z(null),
- s = Z(null),
- c = I(() => {
- var A, D, L;
- return (L =
- (D = (A = i.value) !== null && A !== void 0 ? A : a.value) !==
- null && D !== void 0
- ? D
- : s.value) !== null && L !== void 0
- ? L
- : null;
- }),
- d = I(() => r.value.getPath(c.value).keyPath),
- f = I(() => r.value.getPath(e.value).keyPath),
- v = kt(() => e.keyboard && n.value);
- X0(
- {
- keydown: {
- ArrowUp: { prevent: !0, handler: _ },
- ArrowRight: { prevent: !0, handler: S },
- ArrowDown: { prevent: !0, handler: P },
- ArrowLeft: { prevent: !0, handler: R },
- Enter: { prevent: !0, handler: T },
- Escape: C
- }
- },
- v
- );
- const { mergedClsPrefixRef: p, inlineThemeDisabled: m } = yt(e),
- g = Ke('Dropdown', '-dropdown', Dq, Ey, e, p);
- Rt(Dp, {
- labelFieldRef: Ie(e, 'labelField'),
- childrenFieldRef: Ie(e, 'childrenField'),
- renderLabelRef: Ie(e, 'renderLabel'),
- renderIconRef: Ie(e, 'renderIcon'),
- hoverKeyRef: i,
- keyboardKeyRef: a,
- lastToggledSubmenuKeyRef: s,
- pendingKeyPathRef: d,
- activeKeyPathRef: f,
- animatedRef: Ie(e, 'animated'),
- mergedShowRef: n,
- nodePropsRef: Ie(e, 'nodeProps'),
- renderOptionRef: Ie(e, 'renderOption'),
- menuPropsRef: Ie(e, 'menuProps'),
- doSelect: w,
- doUpdateShow: x
- }),
- $t(n, A => {
- !e.animated && !A && y();
- });
- function w(A, D) {
- const { onSelect: L } = e;
- L && Me(L, A, D);
- }
- function x(A) {
- const { 'onUpdate:show': D, onUpdateShow: L } = e;
- D && Me(D, A), L && Me(L, A), (t.value = A);
- }
- function y() {
- (i.value = null), (a.value = null), (s.value = null);
- }
- function C() {
- x(!1);
- }
- function R() {
- z('left');
- }
- function S() {
- z('right');
- }
- function _() {
- z('up');
- }
- function P() {
- z('down');
- }
- function T() {
- const A = E();
- A != null && A.isLeaf && n.value && (w(A.key, A.rawNode), x(!1));
- }
- function E() {
- var A;
- const { value: D } = r,
- { value: L } = c;
- return !D || L === null
- ? null
- : (A = D.getNode(L)) !== null && A !== void 0
- ? A
- : null;
- }
- function z(A) {
- const { value: D } = c,
- {
- value: { getFirstAvailableNode: L }
- } = r;
- let H = null;
- if (D === null) {
- const B = L();
- B !== null && (H = B.key);
- } else {
- const B = E();
- if (B) {
- let q;
- switch (A) {
- case 'down':
- q = B.getNext();
- break;
- case 'up':
- q = B.getPrev();
- break;
- case 'right':
- q = B.getChild();
- break;
- case 'left':
- q = B.getParent();
- break;
- }
- q && (H = q.key);
- }
- }
- H !== null && ((i.value = null), (a.value = H));
- }
- const k = I(() => {
- const { size: A, inverted: D } = e,
- {
- common: { cubicBezierEaseInOut: L },
- self: H
- } = g.value,
- {
- padding: B,
- dividerColor: q,
- borderRadius: X,
- optionOpacityDisabled: te,
- [Ee('optionIconSuffixWidth', A)]: G,
- [Ee('optionSuffixWidth', A)]: Q,
- [Ee('optionIconPrefixWidth', A)]: re,
- [Ee('optionPrefixWidth', A)]: se,
- [Ee('fontSize', A)]: pe,
- [Ee('optionHeight', A)]: ce,
- [Ee('optionIconSize', A)]: xe
- } = H,
- ve = {
- '--n-bezier': L,
- '--n-font-size': pe,
- '--n-padding': B,
- '--n-border-radius': X,
- '--n-option-height': ce,
- '--n-option-prefix-width': se,
- '--n-option-icon-prefix-width': re,
- '--n-option-suffix-width': Q,
- '--n-option-icon-suffix-width': G,
- '--n-option-icon-size': xe,
- '--n-divider-color': q,
- '--n-option-opacity-disabled': te
- };
- return (
- D
- ? ((ve['--n-color'] = H.colorInverted),
- (ve['--n-option-color-hover'] = H.optionColorHoverInverted),
- (ve['--n-option-color-active'] = H.optionColorActiveInverted),
- (ve['--n-option-text-color'] = H.optionTextColorInverted),
- (ve['--n-option-text-color-hover'] =
- H.optionTextColorHoverInverted),
- (ve['--n-option-text-color-active'] =
- H.optionTextColorActiveInverted),
- (ve['--n-option-text-color-child-active'] =
- H.optionTextColorChildActiveInverted),
- (ve['--n-prefix-color'] = H.prefixColorInverted),
- (ve['--n-suffix-color'] = H.suffixColorInverted),
- (ve['--n-group-header-text-color'] =
- H.groupHeaderTextColorInverted))
- : ((ve['--n-color'] = H.color),
- (ve['--n-option-color-hover'] = H.optionColorHover),
- (ve['--n-option-color-active'] = H.optionColorActive),
- (ve['--n-option-text-color'] = H.optionTextColor),
- (ve['--n-option-text-color-hover'] = H.optionTextColorHover),
- (ve['--n-option-text-color-active'] = H.optionTextColorActive),
- (ve['--n-option-text-color-child-active'] =
- H.optionTextColorChildActive),
- (ve['--n-prefix-color'] = H.prefixColor),
- (ve['--n-suffix-color'] = H.suffixColor),
- (ve['--n-group-header-text-color'] = H.groupHeaderTextColor)),
- ve
- );
- }),
- M = m
- ? Mt(
- 'dropdown',
- I(() => `${e.size[0]}${e.inverted ? 'i' : ''}`),
- k,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: p,
- mergedTheme: g,
- tmNodes: o,
- mergedShow: n,
- handleAfterLeave: () => {
- e.animated && y();
- },
- doUpdateShow: x,
- cssVars: m ? void 0 : k,
- themeClass: M == null ? void 0 : M.themeClass,
- onRender: M == null ? void 0 : M.onRender
- };
- },
- render() {
- const e = (r, o, i, a, s) => {
- var c;
- const { mergedClsPrefix: d, menuProps: f } = this;
- (c = this.onRender) === null || c === void 0 || c.call(this);
- const v =
- (f == null
- ? void 0
- : f(
- void 0,
- this.tmNodes.map(m => m.rawNode)
- )) || {},
- p = {
- ref: zR(o),
- class: [r, `${d}-dropdown`, this.themeClass],
- clsPrefix: d,
- tmNodes: this.tmNodes,
- style: [i, this.cssVars],
- showArrow: this.showArrow,
- arrowStyle: this.arrowStyle,
- scrollable: this.scrollable,
- onMouseenter: a,
- onMouseleave: s
- };
- return h(l3, qr(this.$attrs, p, v));
- },
- { mergedTheme: t } = this,
- n = {
- show: this.mergedShow,
- theme: t.peers.Popover,
- themeOverrides: t.peerOverrides.Popover,
- internalOnAfterLeave: this.handleAfterLeave,
- internalRenderBody: e,
- onUpdateShow: this.doUpdateShow,
- 'onUpdate:show': void 0
- };
- return h(id, Object.assign({}, fi(this.$props, Bq), n), {
- trigger: () => {
- var r, o;
- return (o = (r = this.$slots).default) === null || o === void 0
- ? void 0
- : o.call(r);
- }
- });
- }
- }),
- s3 = '_n_all__',
- c3 = '_n_none__';
- function Nq(e, t, n, r) {
- return e
- ? o => {
- for (const i of e)
- switch (o) {
- case s3:
- n(!0);
- return;
- case c3:
- r(!0);
- return;
- default:
- if (typeof i == 'object' && i.key === o) {
- i.onSelect(t.value);
- return;
- }
- }
- }
- : () => {};
- }
- function Hq(e, t) {
- return e
- ? e.map(n => {
- switch (n) {
- case 'all':
- return { label: t.checkTableAll, key: s3 };
- case 'none':
- return { label: t.uncheckTableAll, key: c3 };
- default:
- return n;
- }
- })
- : [];
- }
- const jq = ke({
- name: 'DataTableSelectionMenu',
- props: { clsPrefix: { type: String, required: !0 } },
- setup(e) {
- const {
- props: t,
- localeRef: n,
- checkOptionsRef: r,
- rawPaginatedDataRef: o,
- doCheckAll: i,
- doUncheckAll: a
- } = Ze(wi),
- s = I(() => Nq(r.value, o, i, a)),
- c = I(() => Hq(r.value, n.value));
- return () => {
- var d, f, v, p;
- const { clsPrefix: m } = e;
- return h(
- Iy,
- {
- theme:
- (f = (d = t.theme) === null || d === void 0 ? void 0 : d.peers) ===
- null || f === void 0
- ? void 0
- : f.Dropdown,
- themeOverrides:
- (p =
- (v = t.themeOverrides) === null || v === void 0
- ? void 0
- : v.peers) === null || p === void 0
- ? void 0
- : p.Dropdown,
- options: c.value,
- onSelect: s.value
- },
- {
- default: () =>
- h(
- At,
- { clsPrefix: m, class: `${m}-data-table-check-extra` },
- { default: () => h(yk, null) }
- )
- }
- );
- };
- }
- });
- function Im(e) {
- return typeof e.title == 'function' ? e.title(e) : e.title;
- }
- const d3 = ke({
- name: 'DataTableHeader',
- props: { discrete: { type: Boolean, default: !0 } },
- setup() {
- const {
- mergedClsPrefixRef: e,
- scrollXRef: t,
- fixedColumnLeftMapRef: n,
- fixedColumnRightMapRef: r,
- mergedCurrentPageRef: o,
- allRowsCheckedRef: i,
- someRowsCheckedRef: a,
- rowsRef: s,
- colsRef: c,
- mergedThemeRef: d,
- checkOptionsRef: f,
- mergedSortStateRef: v,
- componentId: p,
- scrollPartRef: m,
- mergedTableLayoutRef: g,
- headerCheckboxDisabledRef: w,
- onUnstableColumnResize: x,
- doUpdateResizableWidth: y,
- handleTableHeaderScroll: C,
- deriveNextSorter: R,
- doUncheckAll: S,
- doCheckAll: _
- } = Ze(wi),
- P = Z({});
- function T(H) {
- const B = P.value[H];
- return B == null ? void 0 : B.getBoundingClientRect().width;
- }
- function E() {
- i.value ? S() : _();
- }
- function z(H, B) {
- if (Mo(H, 'dataTableFilter') || Mo(H, 'dataTableResizable') || !Mm(B))
- return;
- const q = v.value.find(te => te.columnKey === B.key) || null,
- X = wq(B, q);
- R(X);
- }
- function k() {
- m.value = 'head';
- }
- function M() {
- m.value = 'body';
- }
- const A = new Map();
- function D(H) {
- A.set(H.key, T(H.key));
- }
- function L(H, B) {
- const q = A.get(H.key);
- if (q === void 0) return;
- const X = q + B,
- te = bq(X, H.minWidth, H.maxWidth);
- x(X, te, H, T), y(H, te);
- }
- return {
- cellElsRef: P,
- componentId: p,
- mergedSortState: v,
- mergedClsPrefix: e,
- scrollX: t,
- fixedColumnLeftMap: n,
- fixedColumnRightMap: r,
- currentPage: o,
- allRowsChecked: i,
- someRowsChecked: a,
- rows: s,
- cols: c,
- mergedTheme: d,
- checkOptions: f,
- mergedTableLayout: g,
- headerCheckboxDisabled: w,
- handleMouseenter: k,
- handleMouseleave: M,
- handleCheckboxUpdateChecked: E,
- handleColHeaderClick: z,
- handleTableHeaderScroll: C,
- handleColumnResizeStart: D,
- handleColumnResize: L
- };
- },
- render() {
- const {
- cellElsRef: e,
- mergedClsPrefix: t,
- fixedColumnLeftMap: n,
- fixedColumnRightMap: r,
- currentPage: o,
- allRowsChecked: i,
- someRowsChecked: a,
- rows: s,
- cols: c,
- mergedTheme: d,
- checkOptions: f,
- componentId: v,
- discrete: p,
- mergedTableLayout: m,
- headerCheckboxDisabled: g,
- mergedSortState: w,
- handleColHeaderClick: x,
- handleCheckboxUpdateChecked: y,
- handleColumnResizeStart: C,
- handleColumnResize: R
- } = this,
- S = h(
- 'thead',
- { class: `${t}-data-table-thead`, 'data-n-id': v },
- s.map(z =>
- h(
- 'tr',
- { class: `${t}-data-table-tr` },
- z.map(({ column: k, colSpan: M, rowSpan: A, isLast: D }) => {
- var L, H;
- const B = si(k),
- { ellipsis: q } = k,
- X = () =>
- k.type === 'selection'
- ? k.multiple !== !1
- ? h(
- on,
- null,
- h(Zu, {
- key: o,
- privateInsideTable: !0,
- checked: i,
- indeterminate: a,
- disabled: g,
- onUpdateChecked: y
- }),
- f ? h(jq, { clsPrefix: t }) : null
- )
- : null
- : h(
- on,
- null,
- h(
- 'div',
- { class: `${t}-data-table-th__title-wrapper` },
- h(
- 'div',
- { class: `${t}-data-table-th__title` },
- q === !0 || (q && !q.tooltip)
- ? h(
- 'div',
- { class: `${t}-data-table-th__ellipsis` },
- Im(k)
- )
- : q && typeof q == 'object'
- ? h(
- Xk,
- Object.assign({}, q, {
- theme: d.peers.Ellipsis,
- themeOverrides: d.peerOverrides.Ellipsis
- }),
- { default: () => Im(k) }
- )
- : Im(k)
- ),
- Mm(k) ? h(sq, { column: k }) : null
- ),
- BS(k)
- ? h(_q, { column: k, options: k.filterOptions })
- : null,
- t3(k)
- ? h(Rq, {
- onResizeStart: () => {
- C(k);
- },
- onResize: Q => {
- R(k, Q);
- }
- })
- : null
- ),
- te = B in n,
- G = B in r;
- return h(
- 'th',
- {
- ref: Q => (e[B] = Q),
- key: B,
- style: {
- textAlign: k.titleAlign || k.align,
- left: lr(
- (L = n[B]) === null || L === void 0 ? void 0 : L.start
- ),
- right: lr(
- (H = r[B]) === null || H === void 0 ? void 0 : H.start
- )
- },
- colspan: M,
- rowspan: A,
- 'data-col-key': B,
- class: [
- `${t}-data-table-th`,
- (te || G) &&
- `${t}-data-table-th--fixed-${te ? 'left' : 'right'}`,
- {
- [`${t}-data-table-th--hover`]: n3(k, w),
- [`${t}-data-table-th--filterable`]: BS(k),
- [`${t}-data-table-th--sortable`]: Mm(k),
- [`${t}-data-table-th--selection`]:
- k.type === 'selection',
- [`${t}-data-table-th--last`]: D
- },
- k.className
- ],
- onClick:
- k.type !== 'selection' &&
- k.type !== 'expand' &&
- !('children' in k)
- ? Q => {
- x(Q, k);
- }
- : void 0
- },
- X()
- );
- })
- )
- )
- );
- if (!p) return S;
- const {
- handleTableHeaderScroll: _,
- handleMouseenter: P,
- handleMouseleave: T,
- scrollX: E
- } = this;
- return h(
- 'div',
- {
- class: `${t}-data-table-base-table-header`,
- onScroll: _,
- onMouseenter: P,
- onMouseleave: T
- },
- h(
- 'table',
- {
- ref: 'body',
- class: `${t}-data-table-table`,
- style: { minWidth: vn(E), tableLayout: m }
- },
- h(
- 'colgroup',
- null,
- c.map(z => h('col', { key: z.key, style: z.style }))
- ),
- S
- )
- );
- }
- }),
- Wq = ke({
- name: 'DataTableCell',
- props: {
- clsPrefix: { type: String, required: !0 },
- row: { type: Object, required: !0 },
- index: { type: Number, required: !0 },
- column: { type: Object, required: !0 },
- isSummary: Boolean,
- mergedTheme: { type: Object, required: !0 },
- renderCell: Function
- },
- render() {
- const { isSummary: e, column: t, row: n, renderCell: r } = this;
- let o;
- const { render: i, key: a, ellipsis: s } = t;
- if (
- (i && !e
- ? (o = i(n, this.index))
- : e
- ? (o = n[a].value)
- : (o = r ? r($u(n, a), n, t) : $u(n, a)),
- s)
- )
- if (typeof s == 'object') {
- const { mergedTheme: c } = this;
- return h(
- Xk,
- Object.assign({}, s, {
- theme: c.peers.Ellipsis,
- themeOverrides: c.peerOverrides.Ellipsis
- }),
- { default: () => o }
- );
- } else
- return h(
- 'span',
- { class: `${this.clsPrefix}-data-table-td__ellipsis` },
- o
- );
- return o;
- }
- }),
- HS = ke({
- name: 'DataTableExpandTrigger',
- props: {
- clsPrefix: { type: String, required: !0 },
- expanded: Boolean,
- loading: Boolean,
- onClick: { type: Function, required: !0 },
- renderExpandIcon: { type: Function }
- },
- render() {
- const { clsPrefix: e } = this;
- return h(
- 'div',
- {
- class: [
- `${e}-data-table-expand-trigger`,
- this.expanded && `${e}-data-table-expand-trigger--expanded`
- ],
- onClick: this.onClick
- },
- h(Ji, null, {
- default: () =>
- this.loading
- ? h(Oa, {
- key: 'loading',
- clsPrefix: this.clsPrefix,
- radius: 85,
- strokeWidth: 15,
- scale: 0.88
- })
- : this.renderExpandIcon
- ? this.renderExpandIcon({ expanded: this.expanded })
- : h(
- At,
- { clsPrefix: e, key: 'base-icon' },
- { default: () => h(Cy, null) }
- )
- })
- );
- }
- }),
- Uq = ke({
- name: 'DataTableBodyCheckbox',
- props: {
- rowKey: { type: [String, Number], required: !0 },
- disabled: { type: Boolean, required: !0 },
- onUpdateChecked: { type: Function, required: !0 }
- },
- setup(e) {
- const { mergedCheckedRowKeySetRef: t, mergedInderminateRowKeySetRef: n } =
- Ze(wi);
- return () => {
- const { rowKey: r } = e;
- return h(Zu, {
- privateInsideTable: !0,
- disabled: e.disabled,
- indeterminate: n.value.has(r),
- checked: t.value.has(r),
- onUpdateChecked: e.onUpdateChecked
- });
- };
- }
- }),
- Vq = ke({
- name: 'DataTableBodyRadio',
- props: {
- rowKey: { type: [String, Number], required: !0 },
- disabled: { type: Boolean, required: !0 },
- onUpdateChecked: { type: Function, required: !0 }
- },
- setup(e) {
- const { mergedCheckedRowKeySetRef: t, componentId: n } = Ze(wi);
- return () => {
- const { rowKey: r } = e;
- return h(Ay, {
- name: n,
- disabled: e.disabled,
- checked: t.value.has(r),
- onUpdateChecked: e.onUpdateChecked
- });
- };
- }
- });
- function Kq(e, t) {
- const n = [];
- function r(o, i) {
- o.forEach(a => {
- a.children && t.has(a.key)
- ? (n.push({ tmNode: a, striped: !1, key: a.key, index: i }),
- r(a.children, i))
- : n.push({ key: a.key, tmNode: a, striped: !1, index: i });
- });
- }
- return (
- e.forEach(o => {
- n.push(o);
- const { children: i } = o.tmNode;
- i && t.has(o.key) && r(i, o.index);
- }),
- n
- );
- }
- const qq = ke({
- props: {
- clsPrefix: { type: String, required: !0 },
- id: { type: String, required: !0 },
- cols: { type: Array, required: !0 },
- onMouseenter: Function,
- onMouseleave: Function
- },
- render() {
- const {
- clsPrefix: e,
- id: t,
- cols: n,
- onMouseenter: r,
- onMouseleave: o
- } = this;
- return h(
- 'table',
- {
- style: { tableLayout: 'fixed' },
- class: `${e}-data-table-table`,
- onMouseenter: r,
- onMouseleave: o
- },
- h(
- 'colgroup',
- null,
- n.map(i => h('col', { key: i.key, style: i.style }))
- ),
- h(
- 'tbody',
- { 'data-n-id': t, class: `${e}-data-table-tbody` },
- this.$slots
- )
- );
- }
- }),
- Yq = ke({
- name: 'DataTableBody',
- props: {
- onResize: Function,
- showHeader: Boolean,
- flexHeight: Boolean,
- bodyStyle: Object
- },
- setup(e) {
- const {
- slots: t,
- bodyWidthRef: n,
- mergedExpandedRowKeysRef: r,
- mergedClsPrefixRef: o,
- mergedThemeRef: i,
- scrollXRef: a,
- colsRef: s,
- paginatedDataRef: c,
- rawPaginatedDataRef: d,
- fixedColumnLeftMapRef: f,
- fixedColumnRightMapRef: v,
- mergedCurrentPageRef: p,
- rowClassNameRef: m,
- leftActiveFixedColKeyRef: g,
- leftActiveFixedChildrenColKeysRef: w,
- rightActiveFixedColKeyRef: x,
- rightActiveFixedChildrenColKeysRef: y,
- renderExpandRef: C,
- hoverKeyRef: R,
- summaryRef: S,
- mergedSortStateRef: _,
- virtualScrollRef: P,
- componentId: T,
- scrollPartRef: E,
- mergedTableLayoutRef: z,
- childTriggerColIndexRef: k,
- indentRef: M,
- rowPropsRef: A,
- maxHeightRef: D,
- stripedRef: L,
- loadingRef: H,
- onLoadRef: B,
- loadingKeySetRef: q,
- expandableRef: X,
- stickyExpandedRowsRef: te,
- renderExpandIconRef: G,
- summaryPlacementRef: Q,
- treeMateRef: re,
- scrollbarPropsRef: se,
- setHeaderScrollLeft: pe,
- doUpdateExpandedRowKeys: ce,
- handleTableBodyScroll: xe,
- doCheck: ve,
- doUncheck: be,
- renderCell: Ce
- } = Ze(wi),
- ge = Z(null),
- Ae = Z(null),
- j = Z(null),
- ee = kt(() => c.value.length === 0),
- ne = kt(() => e.showHeader || !ee.value),
- fe = kt(() => e.showHeader || ee.value);
- let ie = '';
- const W = I(() => new Set(r.value));
- function ae(ot) {
- var ct;
- return (ct = re.value.getNode(ot)) === null || ct === void 0
- ? void 0
- : ct.rawNode;
- }
- function he(ot, ct, Xe) {
- const Qe = ae(ot.key);
- if (!Qe) {
- Io('data-table', `fail to get row data with key ${ot.key}`);
- return;
- }
- if (Xe) {
- const oe = c.value.findIndex(ze => ze.key === ie);
- if (oe !== -1) {
- const ze = c.value.findIndex(me => me.key === ot.key),
- We = Math.min(oe, ze),
- lt = Math.max(oe, ze),
- st = [];
- c.value.slice(We, lt + 1).forEach(me => {
- me.disabled || st.push(me.key);
- }),
- ct ? ve(st, !1, Qe) : be(st, Qe),
- (ie = ot.key);
- return;
- }
- }
- ct ? ve(ot.key, !1, Qe) : be(ot.key, Qe), (ie = ot.key);
- }
- function _e(ot) {
- const ct = ae(ot.key);
- if (!ct) {
- Io('data-table', `fail to get row data with key ${ot.key}`);
- return;
- }
- ve(ot.key, !0, ct);
- }
- function le() {
- if (!ne.value) {
- const { value: ct } = j;
- return ct || null;
- }
- if (P.value) return it();
- const { value: ot } = ge;
- return ot ? ot.containerRef : null;
- }
- function Re(ot, ct) {
- var Xe;
- if (q.value.has(ot)) return;
- const { value: Qe } = r,
- oe = Qe.indexOf(ot),
- ze = Array.from(Qe);
- ~oe
- ? (ze.splice(oe, 1), ce(ze))
- : ct && !ct.isLeaf && !ct.shallowLoaded
- ? (q.value.add(ot),
- (Xe = B.value) === null ||
- Xe === void 0 ||
- Xe.call(B, ct.rawNode)
- .then(() => {
- const { value: We } = r,
- lt = Array.from(We);
- ~lt.indexOf(ot) || lt.push(ot), ce(lt);
- })
- .finally(() => {
- q.value.delete(ot);
- }))
- : (ze.push(ot), ce(ze));
- }
- function Ne() {
- R.value = null;
- }
- function Ge() {
- E.value = 'body';
- }
- function it() {
- const { value: ot } = Ae;
- return ot == null ? void 0 : ot.listElRef;
- }
- function dt() {
- const { value: ot } = Ae;
- return ot == null ? void 0 : ot.itemsElRef;
- }
- function xt(ot) {
- var ct;
- xe(ot), (ct = ge.value) === null || ct === void 0 || ct.sync();
- }
- function De(ot) {
- var ct;
- const { onResize: Xe } = e;
- Xe && Xe(ot), (ct = ge.value) === null || ct === void 0 || ct.sync();
- }
- const ut = {
- getScrollContainer: le,
- scrollTo(ot, ct) {
- var Xe, Qe;
- P.value
- ? (Xe = Ae.value) === null || Xe === void 0 || Xe.scrollTo(ot, ct)
- : (Qe = ge.value) === null ||
- Qe === void 0 ||
- Qe.scrollTo(ot, ct);
- }
- },
- wt = F([
- ({ props: ot }) => {
- const ct = Qe =>
- Qe === null
- ? null
- : F(
- `[data-n-id="${ot.componentId}"] [data-col-key="${Qe}"]::after`,
- { boxShadow: 'var(--n-box-shadow-after)' }
- ),
- Xe = Qe =>
- Qe === null
- ? null
- : F(
- `[data-n-id="${ot.componentId}"] [data-col-key="${Qe}"]::before`,
- { boxShadow: 'var(--n-box-shadow-before)' }
- );
- return F([
- ct(ot.leftActiveFixedColKey),
- Xe(ot.rightActiveFixedColKey),
- ot.leftActiveFixedChildrenColKeys.map(Qe => ct(Qe)),
- ot.rightActiveFixedChildrenColKeys.map(Qe => Xe(Qe))
- ]);
- }
- ]);
- let Lt = !1;
- return (
- Bn(() => {
- const { value: ot } = g,
- { value: ct } = w,
- { value: Xe } = x,
- { value: Qe } = y;
- if (!Lt && ot === null && Xe === null) return;
- const oe = {
- leftActiveFixedColKey: ot,
- leftActiveFixedChildrenColKeys: ct,
- rightActiveFixedColKey: Xe,
- rightActiveFixedChildrenColKeys: Qe,
- componentId: T
- };
- wt.mount({ id: `n-${T}`, force: !0, props: oe, anchorMetaName: Ac }),
- (Lt = !0);
- }),
- Nu(() => {
- wt.unmount({ id: `n-${T}` });
- }),
- Object.assign(
- {
- bodyWidth: n,
- summaryPlacement: Q,
- dataTableSlots: t,
- componentId: T,
- scrollbarInstRef: ge,
- virtualListRef: Ae,
- emptyElRef: j,
- summary: S,
- mergedClsPrefix: o,
- mergedTheme: i,
- scrollX: a,
- cols: s,
- loading: H,
- bodyShowHeaderOnly: fe,
- shouldDisplaySomeTablePart: ne,
- empty: ee,
- paginatedDataAndInfo: I(() => {
- const { value: ot } = L;
- let ct = !1;
- return {
- data: c.value.map(
- ot
- ? (Qe, oe) => (
- Qe.isLeaf || (ct = !0),
- {
- tmNode: Qe,
- key: Qe.key,
- striped: oe % 2 === 1,
- index: oe
- }
- )
- : (Qe, oe) => (
- Qe.isLeaf || (ct = !0),
- { tmNode: Qe, key: Qe.key, striped: !1, index: oe }
- )
- ),
- hasChildren: ct
- };
- }),
- rawPaginatedData: d,
- fixedColumnLeftMap: f,
- fixedColumnRightMap: v,
- currentPage: p,
- rowClassName: m,
- renderExpand: C,
- mergedExpandedRowKeySet: W,
- hoverKey: R,
- mergedSortState: _,
- virtualScroll: P,
- mergedTableLayout: z,
- childTriggerColIndex: k,
- indent: M,
- rowProps: A,
- maxHeight: D,
- loadingKeySet: q,
- expandable: X,
- stickyExpandedRows: te,
- renderExpandIcon: G,
- scrollbarProps: se,
- setHeaderScrollLeft: pe,
- handleMouseenterTable: Ge,
- handleVirtualListScroll: xt,
- handleVirtualListResize: De,
- handleMouseleaveTable: Ne,
- virtualListContainer: it,
- virtualListContent: dt,
- handleTableBodyScroll: xe,
- handleCheckboxUpdateChecked: he,
- handleRadioUpdateChecked: _e,
- handleUpdateExpanded: Re,
- renderCell: Ce
- },
- ut
- )
- );
- },
- render() {
- const {
- mergedTheme: e,
- scrollX: t,
- mergedClsPrefix: n,
- virtualScroll: r,
- maxHeight: o,
- mergedTableLayout: i,
- flexHeight: a,
- loadingKeySet: s,
- onResize: c,
- setHeaderScrollLeft: d
- } = this,
- f = t !== void 0 || o !== void 0 || a,
- v = !f && i === 'auto',
- p = t !== void 0 || v,
- m = { minWidth: vn(t) || '100%' };
- t && (m.width = '100%');
- const g = h(
- yr,
- Object.assign({}, this.scrollbarProps, {
- ref: 'scrollbarInstRef',
- scrollable: f || v,
- class: `${n}-data-table-base-table-body`,
- style: this.bodyStyle,
- theme: e.peers.Scrollbar,
- themeOverrides: e.peerOverrides.Scrollbar,
- contentStyle: m,
- container: r ? this.virtualListContainer : void 0,
- content: r ? this.virtualListContent : void 0,
- horizontalRailStyle: { zIndex: 3 },
- verticalRailStyle: { zIndex: 3 },
- xScrollable: p,
- onScroll: r ? void 0 : this.handleTableBodyScroll,
- internalOnUpdateScrollLeft: d,
- onResize: c
- }),
- {
- default: () => {
- const w = {},
- x = {},
- {
- cols: y,
- paginatedDataAndInfo: C,
- mergedTheme: R,
- fixedColumnLeftMap: S,
- fixedColumnRightMap: _,
- currentPage: P,
- rowClassName: T,
- mergedSortState: E,
- mergedExpandedRowKeySet: z,
- stickyExpandedRows: k,
- componentId: M,
- childTriggerColIndex: A,
- expandable: D,
- rowProps: L,
- handleMouseenterTable: H,
- handleMouseleaveTable: B,
- renderExpand: q,
- summary: X,
- handleCheckboxUpdateChecked: te,
- handleRadioUpdateChecked: G,
- handleUpdateExpanded: Q
- } = this,
- { length: re } = y;
- let se;
- const { data: pe, hasChildren: ce } = C,
- xe = ce ? Kq(pe, z) : pe;
- if (X) {
- const ne = X(this.rawPaginatedData);
- if (Array.isArray(ne)) {
- const fe = ne.map((ie, W) => ({
- isSummaryRow: !0,
- key: `__n_summary__${W}`,
- tmNode: { rawNode: ie, disabled: !0 },
- index: -1
- }));
- se =
- this.summaryPlacement === 'top'
- ? [...fe, ...xe]
- : [...xe, ...fe];
- } else {
- const fe = {
- isSummaryRow: !0,
- key: '__n_summary__',
- tmNode: { rawNode: ne, disabled: !0 },
- index: -1
- };
- se =
- this.summaryPlacement === 'top' ? [fe, ...xe] : [...xe, fe];
- }
- } else se = xe;
- const ve = ce ? { width: lr(this.indent) } : void 0,
- be = [];
- se.forEach(ne => {
- q && z.has(ne.key) && (!D || D(ne.tmNode.rawNode))
- ? be.push(ne, {
- isExpandedRow: !0,
- key: `${ne.key}-expand`,
- tmNode: ne.tmNode,
- index: ne.index
- })
- : be.push(ne);
- });
- const { length: Ce } = be,
- ge = {};
- pe.forEach(({ tmNode: ne }, fe) => {
- ge[fe] = ne.key;
- });
- const Ae = k ? this.bodyWidth : null,
- j = Ae === null ? void 0 : `${Ae}px`,
- ee = (ne, fe, ie) => {
- const { index: W } = ne;
- if ('isExpandedRow' in ne) {
- const {
- tmNode: { key: xt, rawNode: De }
- } = ne;
- return h(
- 'tr',
- { class: `${n}-data-table-tr`, key: `${xt}__expand` },
- h(
- 'td',
- {
- class: [
- `${n}-data-table-td`,
- `${n}-data-table-td--last-col`,
- fe + 1 === Ce && `${n}-data-table-td--last-row`
- ],
- colspan: re
- },
- k
- ? h(
- 'div',
- {
- class: `${n}-data-table-expand`,
- style: { width: j }
- },
- q(De, W)
- )
- : q(De, W)
- )
- );
- }
- const ae = 'isSummaryRow' in ne,
- he = !ae && ne.striped,
- { tmNode: _e, key: le } = ne,
- { rawNode: Re } = _e,
- Ne = z.has(le),
- Ge = L ? L(Re, W) : void 0,
- it = typeof T == 'string' ? T : xq(Re, W, T);
- return h(
- 'tr',
- Object.assign(
- {
- onMouseenter: () => {
- this.hoverKey = le;
- },
- key: le,
- class: [
- `${n}-data-table-tr`,
- ae && `${n}-data-table-tr--summary`,
- he && `${n}-data-table-tr--striped`,
- it
- ]
- },
- Ge
- ),
- y.map((xt, De) => {
- var ut, wt, Lt, ot, ct;
- if (fe in w) {
- const Ve = w[fe],
- nt = Ve.indexOf(De);
- if (~nt) return Ve.splice(nt, 1), null;
- }
- const { column: Xe } = xt,
- Qe = si(xt),
- { rowSpan: oe, colSpan: ze } = Xe,
- We = ae
- ? ((ut = ne.tmNode.rawNode[Qe]) === null ||
- ut === void 0
- ? void 0
- : ut.colSpan) || 1
- : ze
- ? ze(Re, W)
- : 1,
- lt = ae
- ? ((wt = ne.tmNode.rawNode[Qe]) === null ||
- wt === void 0
- ? void 0
- : wt.rowSpan) || 1
- : oe
- ? oe(Re, W)
- : 1,
- st = De + We === re,
- me = fe + lt === Ce,
- He = lt > 1;
- if ((He && (x[fe] = { [De]: [] }), We > 1 || He))
- for (let Ve = fe; Ve < fe + lt; ++Ve) {
- He && x[fe][De].push(ge[Ve]);
- for (let nt = De; nt < De + We; ++nt)
- (Ve === fe && nt === De) ||
- (Ve in w ? w[Ve].push(nt) : (w[Ve] = [nt]));
- }
- const tt = He ? this.hoverKey : null,
- { cellProps: pt } = Xe,
- Pe = pt == null ? void 0 : pt(Re, W);
- return h(
- 'td',
- Object.assign({}, Pe, {
- key: Qe,
- style: [
- {
- textAlign: Xe.align || void 0,
- left: lr(
- (Lt = S[Qe]) === null || Lt === void 0
- ? void 0
- : Lt.start
- ),
- right: lr(
- (ot = _[Qe]) === null || ot === void 0
- ? void 0
- : ot.start
- )
- },
- (Pe == null ? void 0 : Pe.style) || ''
- ],
- colspan: We,
- rowspan: ie ? void 0 : lt,
- 'data-col-key': Qe,
- class: [
- `${n}-data-table-td`,
- Xe.className,
- Pe == null ? void 0 : Pe.class,
- ae && `${n}-data-table-td--summary`,
- ((tt !== null && x[fe][De].includes(tt)) ||
- n3(Xe, E)) &&
- `${n}-data-table-td--hover`,
- Xe.fixed && `${n}-data-table-td--fixed-${Xe.fixed}`,
- Xe.align && `${n}-data-table-td--${Xe.align}-align`,
- Xe.type === 'selection' &&
- `${n}-data-table-td--selection`,
- Xe.type === 'expand' && `${n}-data-table-td--expand`,
- st && `${n}-data-table-td--last-col`,
- me && `${n}-data-table-td--last-row`
- ]
- }),
- ce && De === A
- ? [
- TR(
- ae ? 0 : ne.tmNode.level,
- h('div', {
- class: `${n}-data-table-indent`,
- style: ve
- })
- ),
- ae || ne.tmNode.isLeaf
- ? h('div', {
- class: `${n}-data-table-expand-placeholder`
- })
- : h(HS, {
- class: `${n}-data-table-expand-trigger`,
- clsPrefix: n,
- expanded: Ne,
- renderExpandIcon: this.renderExpandIcon,
- loading: s.has(ne.key),
- onClick: () => {
- Q(le, ne.tmNode);
- }
- })
- ]
- : null,
- Xe.type === 'selection'
- ? ae
- ? null
- : Xe.multiple === !1
- ? h(Vq, {
- key: P,
- rowKey: le,
- disabled: ne.tmNode.disabled,
- onUpdateChecked: () => {
- G(ne.tmNode);
- }
- })
- : h(Uq, {
- key: P,
- rowKey: le,
- disabled: ne.tmNode.disabled,
- onUpdateChecked: (Ve, nt) => {
- te(ne.tmNode, Ve, nt.shiftKey);
- }
- })
- : Xe.type === 'expand'
- ? ae
- ? null
- : !Xe.expandable ||
- (!(
- (ct = Xe.expandable) === null || ct === void 0
- ) &&
- ct.call(Xe, Re))
- ? h(HS, {
- clsPrefix: n,
- expanded: Ne,
- renderExpandIcon: this.renderExpandIcon,
- onClick: () => {
- Q(le, null);
- }
- })
- : null
- : h(Wq, {
- clsPrefix: n,
- index: W,
- row: Re,
- column: Xe,
- isSummary: ae,
- mergedTheme: R,
- renderCell: this.renderCell
- })
- );
- })
- );
- };
- return r
- ? h(
- Ec,
- {
- ref: 'virtualListRef',
- items: be,
- itemSize: 28,
- visibleItemsTag: qq,
- visibleItemsProps: {
- clsPrefix: n,
- id: M,
- cols: y,
- onMouseenter: H,
- onMouseleave: B
- },
- showScrollbar: !1,
- onResize: this.handleVirtualListResize,
- onScroll: this.handleVirtualListScroll,
- itemsStyle: m,
- itemResizable: !0
- },
- { default: ({ item: ne, index: fe }) => ee(ne, fe, !0) }
- )
- : h(
- 'table',
- {
- class: `${n}-data-table-table`,
- onMouseleave: B,
- onMouseenter: H,
- style: { tableLayout: this.mergedTableLayout }
- },
- h(
- 'colgroup',
- null,
- y.map(ne => h('col', { key: ne.key, style: ne.style }))
- ),
- this.showHeader ? h(d3, { discrete: !1 }) : null,
- this.empty
- ? null
- : h(
- 'tbody',
- { 'data-n-id': M, class: `${n}-data-table-tbody` },
- be.map((ne, fe) => ee(ne, fe, !1))
- )
- );
- }
- }
- );
- if (this.empty) {
- const w = () =>
- h(
- 'div',
- {
- class: [
- `${n}-data-table-empty`,
- this.loading && `${n}-data-table-empty--hide`
- ],
- style: this.bodyStyle,
- ref: 'emptyElRef'
- },
- Kt(this.dataTableSlots.empty, () => [
- h(_y, {
- theme: this.mergedTheme.peers.Empty,
- themeOverrides: this.mergedTheme.peerOverrides.Empty
- })
- ])
- );
- return this.shouldDisplaySomeTablePart
- ? h(on, null, g, w())
- : h(qi, { onResize: this.onResize }, { default: w });
- }
- return g;
- }
- }),
- Gq = ke({
- setup() {
- const {
- mergedClsPrefixRef: e,
- rightFixedColumnsRef: t,
- leftFixedColumnsRef: n,
- bodyWidthRef: r,
- maxHeightRef: o,
- minHeightRef: i,
- flexHeightRef: a,
- syncScrollState: s
- } = Ze(wi),
- c = Z(null),
- d = Z(null),
- f = Z(null),
- v = Z(!(n.value.length || t.value.length)),
- p = I(() => ({ maxHeight: vn(o.value), minHeight: vn(i.value) }));
- function m(y) {
- (r.value = y.contentRect.width), s(), v.value || (v.value = !0);
- }
- function g() {
- const { value: y } = c;
- return y ? y.$el : null;
- }
- function w() {
- const { value: y } = d;
- return y ? y.getScrollContainer() : null;
- }
- const x = {
- getBodyElement: w,
- getHeaderElement: g,
- scrollTo(y, C) {
- var R;
- (R = d.value) === null || R === void 0 || R.scrollTo(y, C);
- }
- };
- return (
- Bn(() => {
- const { value: y } = f;
- if (!y) return;
- const C = `${e.value}-data-table-base-table--transition-disabled`;
- v.value
- ? setTimeout(() => {
- y.classList.remove(C);
- }, 0)
- : y.classList.add(C);
- }),
- Object.assign(
- {
- maxHeight: o,
- mergedClsPrefix: e,
- selfElRef: f,
- headerInstRef: c,
- bodyInstRef: d,
- bodyStyle: p,
- flexHeight: a,
- handleBodyResize: m
- },
- x
- )
- );
- },
- render() {
- const { mergedClsPrefix: e, maxHeight: t, flexHeight: n } = this,
- r = t === void 0 && !n;
- return h(
- 'div',
- { class: `${e}-data-table-base-table`, ref: 'selfElRef' },
- r ? null : h(d3, { ref: 'headerInstRef' }),
- h(Yq, {
- ref: 'bodyInstRef',
- bodyStyle: this.bodyStyle,
- showHeader: r,
- flexHeight: n,
- onResize: this.handleBodyResize
- })
- );
- }
- });
- function Xq(e, t) {
- const { paginatedDataRef: n, treeMateRef: r, selectionColumnRef: o } = t,
- i = Z(e.defaultCheckedRowKeys),
- a = I(() => {
- var _;
- const { checkedRowKeys: P } = e,
- T = P === void 0 ? i.value : P;
- return ((_ = o.value) === null || _ === void 0 ? void 0 : _.multiple) ===
- !1
- ? { checkedKeys: T.slice(0, 1), indeterminateKeys: [] }
- : r.value.getCheckedKeys(T, {
- cascade: e.cascade,
- allowNotLoaded: e.allowCheckingNotLoaded
- });
- }),
- s = I(() => a.value.checkedKeys),
- c = I(() => a.value.indeterminateKeys),
- d = I(() => new Set(s.value)),
- f = I(() => new Set(c.value)),
- v = I(() => {
- const { value: _ } = d;
- return n.value.reduce((P, T) => {
- const { key: E, disabled: z } = T;
- return P + (!z && _.has(E) ? 1 : 0);
- }, 0);
- }),
- p = I(() => n.value.filter(_ => _.disabled).length),
- m = I(() => {
- const { length: _ } = n.value,
- { value: P } = f;
- return (
- (v.value > 0 && v.value < _ - p.value) ||
- n.value.some(T => P.has(T.key))
- );
- }),
- g = I(() => {
- const { length: _ } = n.value;
- return v.value !== 0 && v.value === _ - p.value;
- }),
- w = I(() => n.value.length === 0);
- function x(_, P, T) {
- const {
- 'onUpdate:checkedRowKeys': E,
- onUpdateCheckedRowKeys: z,
- onCheckedRowKeysChange: k
- } = e,
- M = [],
- {
- value: { getNode: A }
- } = r;
- _.forEach(D => {
- var L;
- const H = (L = A(D)) === null || L === void 0 ? void 0 : L.rawNode;
- M.push(H);
- }),
- E && Me(E, _, M, { row: P, action: T }),
- z && Me(z, _, M, { row: P, action: T }),
- k && Me(k, _, M, { row: P, action: T }),
- (i.value = _);
- }
- function y(_, P = !1, T) {
- if (!e.loading) {
- if (P) {
- x(Array.isArray(_) ? _.slice(0, 1) : [_], T, 'check');
- return;
- }
- x(
- r.value.check(_, s.value, {
- cascade: e.cascade,
- allowNotLoaded: e.allowCheckingNotLoaded
- }).checkedKeys,
- T,
- 'check'
- );
- }
- }
- function C(_, P) {
- e.loading ||
- x(
- r.value.uncheck(_, s.value, {
- cascade: e.cascade,
- allowNotLoaded: e.allowCheckingNotLoaded
- }).checkedKeys,
- P,
- 'uncheck'
- );
- }
- function R(_ = !1) {
- const { value: P } = o;
- if (!P || e.loading) return;
- const T = [];
- (_ ? r.value.treeNodes : n.value).forEach(E => {
- E.disabled || T.push(E.key);
- }),
- x(
- r.value.check(T, s.value, {
- cascade: !0,
- allowNotLoaded: e.allowCheckingNotLoaded
- }).checkedKeys,
- void 0,
- 'checkAll'
- );
- }
- function S(_ = !1) {
- const { value: P } = o;
- if (!P || e.loading) return;
- const T = [];
- (_ ? r.value.treeNodes : n.value).forEach(E => {
- E.disabled || T.push(E.key);
- }),
- x(
- r.value.uncheck(T, s.value, {
- cascade: !0,
- allowNotLoaded: e.allowCheckingNotLoaded
- }).checkedKeys,
- void 0,
- 'uncheckAll'
- );
- }
- return {
- mergedCheckedRowKeySetRef: d,
- mergedCheckedRowKeysRef: s,
- mergedInderminateRowKeySetRef: f,
- someRowsCheckedRef: m,
- allRowsCheckedRef: g,
- headerCheckboxDisabledRef: w,
- doUpdateCheckedRowKeys: x,
- doCheckAll: R,
- doUncheckAll: S,
- doCheck: y,
- doUncheck: C
- };
- }
- function Rh(e) {
- return typeof e == 'object' && typeof e.multiple == 'number'
- ? e.multiple
- : !1;
- }
- function Zq(e, t) {
- return t &&
- (e === void 0 ||
- e === 'default' ||
- (typeof e == 'object' && e.compare === 'default'))
- ? Qq(t)
- : typeof e == 'function'
- ? e
- : e && typeof e == 'object' && e.compare && e.compare !== 'default'
- ? e.compare
- : !1;
- }
- function Qq(e) {
- return (t, n) => {
- const r = t[e],
- o = n[e];
- return typeof r == 'number' && typeof o == 'number'
- ? r - o
- : typeof r == 'string' && typeof o == 'string'
- ? r.localeCompare(o)
- : 0;
- };
- }
- function Jq(e, { dataRelatedColsRef: t, filteredDataRef: n }) {
- const r = [];
- t.value.forEach(m => {
- var g;
- m.sorter !== void 0 &&
- p(r, {
- columnKey: m.key,
- sorter: m.sorter,
- order: (g = m.defaultSortOrder) !== null && g !== void 0 ? g : !1
- });
- });
- const o = Z(r),
- i = I(() => {
- const m = t.value.filter(
- x =>
- x.type !== 'selection' &&
- x.sorter !== void 0 &&
- (x.sortOrder === 'ascend' ||
- x.sortOrder === 'descend' ||
- x.sortOrder === !1)
- ),
- g = m.filter(x => x.sortOrder !== !1);
- if (g.length)
- return g.map(x => ({
- columnKey: x.key,
- order: x.sortOrder,
- sorter: x.sorter
- }));
- if (m.length) return [];
- const { value: w } = o;
- return Array.isArray(w) ? w : w ? [w] : [];
- }),
- a = I(() => {
- const m = i.value.slice().sort((g, w) => {
- const x = Rh(g.sorter) || 0;
- return (Rh(w.sorter) || 0) - x;
- });
- return m.length
- ? n.value.slice().sort((w, x) => {
- let y = 0;
- return (
- m.some(C => {
- const { columnKey: R, sorter: S, order: _ } = C,
- P = Zq(S, R);
- return P && _ && ((y = P(w.rawNode, x.rawNode)), y !== 0)
- ? ((y = y * mq(_)), !0)
- : !1;
- }),
- y
- );
- })
- : n.value;
- });
- function s(m) {
- let g = i.value.slice();
- return m && Rh(m.sorter) !== !1
- ? ((g = g.filter(w => Rh(w.sorter) !== !1)), p(g, m), g)
- : m || null;
- }
- function c(m) {
- const g = s(m);
- d(g);
- }
- function d(m) {
- const { 'onUpdate:sorter': g, onUpdateSorter: w, onSorterChange: x } = e;
- g && Me(g, m), w && Me(w, m), x && Me(x, m), (o.value = m);
- }
- function f(m, g = 'ascend') {
- if (!m) v();
- else {
- const w = t.value.find(
- y => y.type !== 'selection' && y.type !== 'expand' && y.key === m
- );
- if (!(w != null && w.sorter)) return;
- const x = w.sorter;
- c({ columnKey: m, sorter: x, order: g });
- }
- }
- function v() {
- d(null);
- }
- function p(m, g) {
- const w = m.findIndex(
- x => (g == null ? void 0 : g.columnKey) && x.columnKey === g.columnKey
- );
- w !== void 0 && w >= 0 ? (m[w] = g) : m.push(g);
- }
- return {
- clearSorter: v,
- sort: f,
- sortedDataRef: a,
- mergedSortStateRef: i,
- deriveNextSorter: c
- };
- }
- function eY(e, { dataRelatedColsRef: t }) {
- const n = I(() => {
- const G = Q => {
- for (let re = 0; re < Q.length; ++re) {
- const se = Q[re];
- if ('children' in se) return G(se.children);
- if (se.type === 'selection') return se;
- }
- return null;
- };
- return G(e.columns);
- }),
- r = I(() => {
- const { childrenKey: G } = e;
- return rd(e.data, {
- ignoreEmptyChildren: !0,
- getKey: e.rowKey,
- getChildren: Q => Q[G],
- getDisabled: Q => {
- var re, se;
- return !!(
- !(
- (se =
- (re = n.value) === null || re === void 0
- ? void 0
- : re.disabled) === null || se === void 0
- ) && se.call(re, Q)
- );
- }
- });
- }),
- o = kt(() => {
- const { columns: G } = e,
- { length: Q } = G;
- let re = null;
- for (let se = 0; se < Q; ++se) {
- const pe = G[se];
- if ((!pe.type && re === null && (re = se), 'tree' in pe && pe.tree))
- return se;
- }
- return re || 0;
- }),
- i = Z({}),
- a = Z(1),
- s = Z(10),
- c = I(() => {
- const G = t.value.filter(
- se =>
- se.filterOptionValues !== void 0 || se.filterOptionValue !== void 0
- ),
- Q = {};
- return (
- G.forEach(se => {
- var pe;
- se.type === 'selection' ||
- se.type === 'expand' ||
- (se.filterOptionValues === void 0
- ? (Q[se.key] =
- (pe = se.filterOptionValue) !== null && pe !== void 0
- ? pe
- : null)
- : (Q[se.key] = se.filterOptionValues));
- }),
- Object.assign(FS(i.value), Q)
- );
- }),
- d = I(() => {
- const G = c.value,
- { columns: Q } = e;
- function re(ce) {
- return (xe, ve) => !!~String(ve[ce]).indexOf(String(xe));
- }
- const {
- value: { treeNodes: se }
- } = r,
- pe = [];
- return (
- Q.forEach(ce => {
- ce.type === 'selection' ||
- ce.type === 'expand' ||
- 'children' in ce ||
- pe.push([ce.key, ce]);
- }),
- se
- ? se.filter(ce => {
- const { rawNode: xe } = ce;
- for (const [ve, be] of pe) {
- let Ce = G[ve];
- if (
- Ce == null ||
- (Array.isArray(Ce) || (Ce = [Ce]), !Ce.length)
- )
- continue;
- const ge = be.filter === 'default' ? re(ve) : be.filter;
- if (be && typeof ge == 'function')
- if (be.filterMode === 'and') {
- if (Ce.some(Ae => !ge(Ae, xe))) return !1;
- } else {
- if (Ce.some(Ae => ge(Ae, xe))) continue;
- return !1;
- }
- }
- return !0;
- })
- : []
- );
- }),
- {
- sortedDataRef: f,
- deriveNextSorter: v,
- mergedSortStateRef: p,
- sort: m,
- clearSorter: g
- } = Jq(e, { dataRelatedColsRef: t, filteredDataRef: d });
- t.value.forEach(G => {
- var Q;
- if (G.filter) {
- const re = G.defaultFilterOptionValues;
- G.filterMultiple
- ? (i.value[G.key] = re || [])
- : re !== void 0
- ? (i.value[G.key] = re === null ? [] : re)
- : (i.value[G.key] =
- (Q = G.defaultFilterOptionValue) !== null && Q !== void 0
- ? Q
- : null);
- }
- });
- const w = I(() => {
- const { pagination: G } = e;
- if (G !== !1) return G.page;
- }),
- x = I(() => {
- const { pagination: G } = e;
- if (G !== !1) return G.pageSize;
- }),
- y = En(w, a),
- C = En(x, s),
- R = kt(() => {
- const G = y.value;
- return e.remote
- ? G
- : Math.max(1, Math.min(Math.ceil(d.value.length / C.value), G));
- }),
- S = I(() => {
- const { pagination: G } = e;
- if (G) {
- const { pageCount: Q } = G;
- if (Q !== void 0) return Q;
- }
- }),
- _ = I(() => {
- if (e.remote) return r.value.treeNodes;
- if (!e.pagination) return f.value;
- const G = C.value,
- Q = (R.value - 1) * G;
- return f.value.slice(Q, Q + G);
- }),
- P = I(() => _.value.map(G => G.rawNode));
- function T(G) {
- const { pagination: Q } = e;
- if (Q) {
- const { onChange: re, 'onUpdate:page': se, onUpdatePage: pe } = Q;
- re && Me(re, G), pe && Me(pe, G), se && Me(se, G), M(G);
- }
- }
- function E(G) {
- const { pagination: Q } = e;
- if (Q) {
- const {
- onPageSizeChange: re,
- 'onUpdate:pageSize': se,
- onUpdatePageSize: pe
- } = Q;
- re && Me(re, G), pe && Me(pe, G), se && Me(se, G), A(G);
- }
- }
- const z = I(() => {
- if (e.remote) {
- const { pagination: G } = e;
- if (G) {
- const { itemCount: Q } = G;
- if (Q !== void 0) return Q;
- }
- return;
- }
- return d.value.length;
- }),
- k = I(() =>
- Object.assign(Object.assign({}, e.pagination), {
- onChange: void 0,
- onUpdatePage: void 0,
- onUpdatePageSize: void 0,
- onPageSizeChange: void 0,
- 'onUpdate:page': T,
- 'onUpdate:pageSize': E,
- page: R.value,
- pageSize: C.value,
- pageCount: z.value === void 0 ? S.value : void 0,
- itemCount: z.value
- })
- );
- function M(G) {
- const { 'onUpdate:page': Q, onPageChange: re, onUpdatePage: se } = e;
- se && Me(se, G), Q && Me(Q, G), re && Me(re, G), (a.value = G);
- }
- function A(G) {
- const {
- 'onUpdate:pageSize': Q,
- onPageSizeChange: re,
- onUpdatePageSize: se
- } = e;
- re && Me(re, G), se && Me(se, G), Q && Me(Q, G), (s.value = G);
- }
- function D(G, Q) {
- const {
- onUpdateFilters: re,
- 'onUpdate:filters': se,
- onFiltersChange: pe
- } = e;
- re && Me(re, G, Q), se && Me(se, G, Q), pe && Me(pe, G, Q), (i.value = G);
- }
- function L(G, Q, re, se) {
- var pe;
- (pe = e.onUnstableColumnResize) === null ||
- pe === void 0 ||
- pe.call(e, G, Q, re, se);
- }
- function H(G) {
- M(G);
- }
- function B() {
- q();
- }
- function q() {
- X({});
- }
- function X(G) {
- te(G);
- }
- function te(G) {
- G ? G && (i.value = FS(G)) : (i.value = {});
- }
- return {
- treeMateRef: r,
- mergedCurrentPageRef: R,
- mergedPaginationRef: k,
- paginatedDataRef: _,
- rawPaginatedDataRef: P,
- mergedFilterStateRef: c,
- mergedSortStateRef: p,
- hoverKeyRef: Z(null),
- selectionColumnRef: n,
- childTriggerColIndexRef: o,
- doUpdateFilters: D,
- deriveNextSorter: v,
- doUpdatePageSize: A,
- doUpdatePage: M,
- onUnstableColumnResize: L,
- filter: te,
- filters: X,
- clearFilter: B,
- clearFilters: q,
- clearSorter: g,
- page: H,
- sort: m
- };
- }
- function tY(
- e,
- {
- mainTableInstRef: t,
- mergedCurrentPageRef: n,
- bodyWidthRef: r,
- scrollPartRef: o
- }
- ) {
- let i = 0;
- const a = Z(null),
- s = Z([]),
- c = Z(null),
- d = Z([]),
- f = I(() => vn(e.scrollX)),
- v = I(() => e.columns.filter(z => z.fixed === 'left')),
- p = I(() => e.columns.filter(z => z.fixed === 'right')),
- m = I(() => {
- const z = {};
- let k = 0;
- function M(A) {
- A.forEach(D => {
- const L = { start: k, end: 0 };
- (z[si(D)] = L),
- 'children' in D
- ? (M(D.children), (L.end = k))
- : ((k += DS(D) || 0), (L.end = k));
- });
- }
- return M(v.value), z;
- }),
- g = I(() => {
- const z = {};
- let k = 0;
- function M(A) {
- for (let D = A.length - 1; D >= 0; --D) {
- const L = A[D],
- H = { start: k, end: 0 };
- (z[si(L)] = H),
- 'children' in L
- ? (M(L.children), (H.end = k))
- : ((k += DS(L) || 0), (H.end = k));
- }
- }
- return M(p.value), z;
- });
- function w() {
- var z, k;
- const { value: M } = v;
- let A = 0;
- const { value: D } = m;
- let L = null;
- for (let H = 0; H < M.length; ++H) {
- const B = si(M[H]);
- if (
- i >
- (((z = D[B]) === null || z === void 0 ? void 0 : z.start) || 0) - A
- )
- (L = B),
- (A = ((k = D[B]) === null || k === void 0 ? void 0 : k.end) || 0);
- else break;
- }
- a.value = L;
- }
- function x() {
- s.value = [];
- let z = e.columns.find(k => si(k) === a.value);
- for (; z && 'children' in z; ) {
- const k = z.children.length;
- if (k === 0) break;
- const M = z.children[k - 1];
- s.value.push(si(M)), (z = M);
- }
- }
- function y() {
- var z, k;
- const { value: M } = p,
- A = Number(e.scrollX),
- { value: D } = r;
- if (D === null) return;
- let L = 0,
- H = null;
- const { value: B } = g;
- for (let q = M.length - 1; q >= 0; --q) {
- const X = si(M[q]);
- if (
- Math.round(
- i +
- (((z = B[X]) === null || z === void 0 ? void 0 : z.start) || 0) +
- D -
- L
- ) < A
- )
- (H = X),
- (L = ((k = B[X]) === null || k === void 0 ? void 0 : k.end) || 0);
- else break;
- }
- c.value = H;
- }
- function C() {
- d.value = [];
- let z = e.columns.find(k => si(k) === c.value);
- for (; z && 'children' in z && z.children.length; ) {
- const k = z.children[0];
- d.value.push(si(k)), (z = k);
- }
- }
- function R() {
- const z = t.value ? t.value.getHeaderElement() : null,
- k = t.value ? t.value.getBodyElement() : null;
- return { header: z, body: k };
- }
- function S() {
- const { body: z } = R();
- z && (z.scrollTop = 0);
- }
- function _() {
- o.value === 'head' && Oc(T);
- }
- function P(z) {
- var k;
- (k = e.onScroll) === null || k === void 0 || k.call(e, z),
- o.value === 'body' && Oc(T);
- }
- function T() {
- const { header: z, body: k } = R();
- if (!k) return;
- const { value: M } = r;
- if (M === null) return;
- const { value: A } = o;
- if (e.maxHeight || e.flexHeight) {
- if (!z) return;
- A === 'head'
- ? ((i = z.scrollLeft), (k.scrollLeft = i))
- : ((i = k.scrollLeft), (z.scrollLeft = i));
- } else i = k.scrollLeft;
- w(), x(), y(), C();
- }
- function E(z) {
- const { header: k } = R();
- k && ((k.scrollLeft = z), T());
- }
- return (
- $t(n, () => {
- S();
- }),
- {
- styleScrollXRef: f,
- fixedColumnLeftMapRef: m,
- fixedColumnRightMapRef: g,
- leftFixedColumnsRef: v,
- rightFixedColumnsRef: p,
- leftActiveFixedColKeyRef: a,
- leftActiveFixedChildrenColKeysRef: s,
- rightActiveFixedColKeyRef: c,
- rightActiveFixedChildrenColKeysRef: d,
- syncScrollState: T,
- handleTableBodyScroll: P,
- handleTableHeaderScroll: _,
- setHeaderScrollLeft: E
- }
- );
- }
- function nY() {
- const e = Z({});
- function t(o) {
- return e.value[o];
- }
- function n(o, i) {
- t3(o) && 'key' in o && (e.value[o.key] = i);
- }
- function r() {
- e.value = {};
- }
- return {
- getResizableWidth: t,
- doUpdateResizableWidth: n,
- clearResizableWidth: r
- };
- }
- function rY(e, t) {
- const n = [],
- r = [],
- o = [],
- i = new WeakMap();
- let a = -1,
- s = 0,
- c = !1;
- function d(p, m) {
- m > a && ((n[m] = []), (a = m));
- for (const g of p)
- if ('children' in g) d(g.children, m + 1);
- else {
- const w = 'key' in g ? g.key : void 0;
- r.push({
- key: si(g),
- style: yq(g, w !== void 0 ? vn(t(w)) : void 0),
- column: g
- }),
- (s += 1),
- c || (c = !!g.ellipsis),
- o.push(g);
- }
- }
- d(e, 0);
- let f = 0;
- function v(p, m) {
- let g = 0;
- p.forEach((w, x) => {
- var y;
- if ('children' in w) {
- const C = f,
- R = { column: w, colSpan: 0, rowSpan: 1, isLast: !1 };
- v(w.children, m + 1),
- w.children.forEach(S => {
- var _, P;
- R.colSpan +=
- (P =
- (_ = i.get(S)) === null || _ === void 0
- ? void 0
- : _.colSpan) !== null && P !== void 0
- ? P
- : 0;
- }),
- C + R.colSpan === s && (R.isLast = !0),
- i.set(w, R),
- n[m].push(R);
- } else {
- if (f < g) {
- f += 1;
- return;
- }
- let C = 1;
- 'titleColSpan' in w &&
- (C = (y = w.titleColSpan) !== null && y !== void 0 ? y : 1),
- C > 1 && (g = f + C);
- const R = f + C === s,
- S = { column: w, colSpan: C, rowSpan: a - m + 1, isLast: R };
- i.set(w, S), n[m].push(S), (f += 1);
- }
- });
- }
- return v(e, 0), { hasEllipsis: c, rows: n, cols: r, dataRelatedCols: o };
- }
- function oY(e, t) {
- const n = I(() => rY(e.columns, t));
- return {
- rowsRef: I(() => n.value.rows),
- colsRef: I(() => n.value.cols),
- hasEllipsisRef: I(() => n.value.hasEllipsis),
- dataRelatedColsRef: I(() => n.value.dataRelatedCols)
- };
- }
- function iY(e, t) {
- const n = kt(() => {
- for (const d of e.columns) if (d.type === 'expand') return d.renderExpand;
- }),
- r = kt(() => {
- let d;
- for (const f of e.columns)
- if (f.type === 'expand') {
- d = f.expandable;
- break;
- }
- return d;
- }),
- o = Z(
- e.defaultExpandAll
- ? n != null && n.value
- ? (() => {
- const d = [];
- return (
- t.value.treeNodes.forEach(f => {
- var v;
- !((v = r.value) === null || v === void 0) &&
- v.call(r, f.rawNode) &&
- d.push(f.key);
- }),
- d
- );
- })()
- : t.value.getNonLeafKeys()
- : e.defaultExpandedRowKeys
- ),
- i = Ie(e, 'expandedRowKeys'),
- a = Ie(e, 'stickyExpandedRows'),
- s = En(i, o);
- function c(d) {
- const { onUpdateExpandedRowKeys: f, 'onUpdate:expandedRowKeys': v } = e;
- f && Me(f, d), v && Me(v, d), (o.value = d);
- }
- return {
- stickyExpandedRowsRef: a,
- mergedExpandedRowKeysRef: s,
- renderExpandRef: n,
- expandableRef: r,
- doUpdateExpandedRowKeys: c
- };
- }
- const jS = lY(),
- aY = F([
- O(
- 'data-table',
- `
- width: 100%;
- font-size: var(--n-font-size);
- display: flex;
- flex-direction: column;
- position: relative;
- --n-merged-th-color: var(--n-th-color);
- --n-merged-td-color: var(--n-td-color);
- --n-merged-border-color: var(--n-border-color);
- --n-merged-th-color-hover: var(--n-th-color-hover);
- --n-merged-td-color-hover: var(--n-td-color-hover);
- --n-merged-td-color-striped: var(--n-td-color-striped);
- `,
- [
- O(
- 'data-table-wrapper',
- `
- flex-grow: 1;
- display: flex;
- flex-direction: column;
- `
- ),
- U('flex-height', [
- F('>', [
- O('data-table-wrapper', [
- F('>', [
- O(
- 'data-table-base-table',
- `
- display: flex;
- flex-direction: column;
- flex-grow: 1;
- `,
- [
- F('>', [
- O('data-table-base-table-body', 'flex-basis: 0;', [
- F('&:last-child', 'flex-grow: 1;')
- ])
- ])
- ]
- )
- ])
- ])
- ])
- ]),
- F('>', [
- O(
- 'data-table-loading-wrapper',
- `
- color: var(--n-loading-color);
- font-size: var(--n-loading-size);
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- transition: color .3s var(--n-bezier);
- display: flex;
- align-items: center;
- justify-content: center;
- `,
- [gi({ originalTransform: 'translateX(-50%) translateY(-50%)' })]
- )
- ]),
- O(
- 'data-table-expand-placeholder',
- `
- margin-right: 8px;
- display: inline-block;
- width: 16px;
- height: 1px;
- `
- ),
- O(
- 'data-table-indent',
- `
- display: inline-block;
- height: 1px;
- `
- ),
- O(
- 'data-table-expand-trigger',
- `
- display: inline-flex;
- margin-right: 8px;
- cursor: pointer;
- font-size: 16px;
- vertical-align: -0.2em;
- position: relative;
- width: 16px;
- height: 16px;
- color: var(--n-td-text-color);
- transition: color .3s var(--n-bezier);
- `,
- [
- U('expanded', [
- O('icon', 'transform: rotate(90deg);', [
- br({ originalTransform: 'rotate(90deg)' })
- ]),
- O('base-icon', 'transform: rotate(90deg);', [
- br({ originalTransform: 'rotate(90deg)' })
- ])
- ]),
- O(
- 'base-loading',
- `
- color: var(--n-loading-color);
- transition: color .3s var(--n-bezier);
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `,
- [br()]
- ),
- O(
- 'icon',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `,
- [br()]
- ),
- O(
- 'base-icon',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `,
- [br()]
- )
- ]
- ),
- O(
- 'data-table-thead',
- `
- transition: background-color .3s var(--n-bezier);
- background-color: var(--n-merged-th-color);
- `
- ),
- O(
- 'data-table-tr',
- `
- box-sizing: border-box;
- background-clip: padding-box;
- transition: background-color .3s var(--n-bezier);
- `,
- [
- O(
- 'data-table-expand',
- `
- position: sticky;
- left: 0;
- overflow: hidden;
- margin: calc(var(--n-th-padding) * -1);
- padding: var(--n-th-padding);
- box-sizing: border-box;
- `
- ),
- U(
- 'striped',
- 'background-color: var(--n-merged-td-color-striped);',
- [
- O(
- 'data-table-td',
- 'background-color: var(--n-merged-td-color-striped);'
- )
- ]
- ),
- jt('summary', [
- F(
- '&:hover',
- 'background-color: var(--n-merged-td-color-hover);',
- [
- F('>', [
- O(
- 'data-table-td',
- 'background-color: var(--n-merged-td-color-hover);'
- )
- ])
- ]
- )
- ])
- ]
- ),
- O(
- 'data-table-th',
- `
- padding: var(--n-th-padding);
- position: relative;
- text-align: start;
- box-sizing: border-box;
- background-color: var(--n-merged-th-color);
- border-color: var(--n-merged-border-color);
- border-bottom: 1px solid var(--n-merged-border-color);
- color: var(--n-th-text-color);
- transition:
- border-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- font-weight: var(--n-th-font-weight);
- `,
- [
- U(
- 'filterable',
- `
- padding-right: 36px;
- `,
- [
- U(
- 'sortable',
- `
- padding-right: calc(var(--n-th-padding) + 36px);
- `
- )
- ]
- ),
- jS,
- U(
- 'selection',
- `
- padding: 0;
- text-align: center;
- line-height: 0;
- z-index: 3;
- `
- ),
- V(
- 'title-wrapper',
- `
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- max-width: 100%;
- `,
- [
- V(
- 'title',
- `
- flex: 1;
- min-width: 0;
- `
- )
- ]
- ),
- V(
- 'ellipsis',
- `
- display: inline-block;
- vertical-align: bottom;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- max-width: 100%;
- `
- ),
- U(
- 'hover',
- `
- background-color: var(--n-merged-th-color-hover);
- `
- ),
- U(
- 'sortable',
- `
- cursor: pointer;
- `,
- [
- V(
- 'ellipsis',
- `
- max-width: calc(100% - 18px);
- `
- ),
- F(
- '&:hover',
- `
- background-color: var(--n-merged-th-color-hover);
- `
- )
- ]
- ),
- O(
- 'data-table-sorter',
- `
- height: var(--n-sorter-size);
- width: var(--n-sorter-size);
- margin-left: 4px;
- position: relative;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- vertical-align: -0.2em;
- color: var(--n-th-icon-color);
- transition: color .3s var(--n-bezier);
- `,
- [
- O('base-icon', 'transition: transform .3s var(--n-bezier)'),
- U('desc', [
- O(
- 'base-icon',
- `
- transform: rotate(0deg);
- `
- )
- ]),
- U('asc', [
- O(
- 'base-icon',
- `
- transform: rotate(-180deg);
- `
- )
- ]),
- U(
- 'asc, desc',
- `
- color: var(--n-th-icon-color-active);
- `
- )
- ]
- ),
- O(
- 'data-table-resize-button',
- `
- width: var(--n-resizable-container-size);
- position: absolute;
- top: 0;
- right: calc(var(--n-resizable-container-size) / 2);
- bottom: 0;
- cursor: col-resize;
- user-select: none;
- `,
- [
- F(
- '&::after',
- `
- width: var(--n-resizable-size);
- height: 50%;
- position: absolute;
- top: 50%;
- left: calc(var(--n-resizable-container-size) / 2);
- bottom: 0;
- background-color: var(--n-merged-border-color);
- transform: translateY(-50%);
- transition: background-color .3s var(--n-bezier);
- z-index: 1;
- content: '';
- `
- ),
- U('active', [
- F(
- '&::after',
- `
- background-color: var(--n-th-icon-color-active);
- `
- )
- ]),
- F(
- '&:hover::after',
- `
- background-color: var(--n-th-icon-color-active);
- `
- )
- ]
- ),
- O(
- 'data-table-filter',
- `
- position: absolute;
- z-index: auto;
- right: 0;
- width: 36px;
- top: 0;
- bottom: 0;
- cursor: pointer;
- display: flex;
- justify-content: center;
- align-items: center;
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- font-size: var(--n-filter-size);
- color: var(--n-th-icon-color);
- `,
- [
- F(
- '&:hover',
- `
- background-color: var(--n-th-button-color-hover);
- `
- ),
- U(
- 'show',
- `
- background-color: var(--n-th-button-color-hover);
- `
- ),
- U(
- 'active',
- `
- background-color: var(--n-th-button-color-hover);
- color: var(--n-th-icon-color-active);
- `
- )
- ]
- )
- ]
- ),
- O(
- 'data-table-td',
- `
- padding: var(--n-td-padding);
- text-align: start;
- box-sizing: border-box;
- border: none;
- background-color: var(--n-merged-td-color);
- color: var(--n-td-text-color);
- border-bottom: 1px solid var(--n-merged-border-color);
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `,
- [
- U('expand', [
- O(
- 'data-table-expand-trigger',
- `
- margin-right: 0;
- `
- )
- ]),
- U(
- 'last-row',
- `
- border-bottom: 0 solid var(--n-merged-border-color);
- `,
- [
- F(
- '&::after',
- `
- bottom: 0 !important;
- `
- ),
- F(
- '&::before',
- `
- bottom: 0 !important;
- `
- )
- ]
- ),
- U(
- 'summary',
- `
- background-color: var(--n-merged-th-color);
- `
- ),
- U(
- 'hover',
- `
- background-color: var(--n-merged-td-color-hover);
- `
- ),
- V(
- 'ellipsis',
- `
- display: inline-block;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- max-width: 100%;
- vertical-align: bottom;
- `
- ),
- U(
- 'selection, expand',
- `
- text-align: center;
- padding: 0;
- line-height: 0;
- `
- ),
- jS
- ]
- ),
- O(
- 'data-table-empty',
- `
- box-sizing: border-box;
- padding: var(--n-empty-padding);
- flex-grow: 1;
- flex-shrink: 0;
- opacity: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: opacity .3s var(--n-bezier);
- `,
- [
- U(
- 'hide',
- `
- opacity: 0;
- `
- )
- ]
- ),
- V(
- 'pagination',
- `
- margin: var(--n-pagination-margin);
- display: flex;
- justify-content: flex-end;
- `
- ),
- O(
- 'data-table-wrapper',
- `
- position: relative;
- opacity: 1;
- transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier);
- border-top-left-radius: var(--n-border-radius);
- border-top-right-radius: var(--n-border-radius);
- line-height: var(--n-line-height);
- `
- ),
- U('loading', [
- O(
- 'data-table-wrapper',
- `
- opacity: var(--n-opacity-loading);
- pointer-events: none;
- `
- )
- ]),
- U('single-column', [
- O(
- 'data-table-td',
- `
- border-bottom: 0 solid var(--n-merged-border-color);
- `,
- [
- F(
- '&::after, &::before',
- `
- bottom: 0 !important;
- `
- )
- ]
- )
- ]),
- jt('single-line', [
- O(
- 'data-table-th',
- `
- border-right: 1px solid var(--n-merged-border-color);
- `,
- [
- U(
- 'last',
- `
- border-right: 0 solid var(--n-merged-border-color);
- `
- )
- ]
- ),
- O(
- 'data-table-td',
- `
- border-right: 1px solid var(--n-merged-border-color);
- `,
- [
- U(
- 'last-col',
- `
- border-right: 0 solid var(--n-merged-border-color);
- `
- )
- ]
- )
- ]),
- U('bordered', [
- O(
- 'data-table-wrapper',
- `
- border: 1px solid var(--n-merged-border-color);
- border-bottom-left-radius: var(--n-border-radius);
- border-bottom-right-radius: var(--n-border-radius);
- overflow: hidden;
- `
- )
- ]),
- O('data-table-base-table', [
- U('transition-disabled', [
- O('data-table-th', [F('&::after, &::before', 'transition: none;')]),
- O('data-table-td', [F('&::after, &::before', 'transition: none;')])
- ])
- ]),
- U('bottom-bordered', [
- O('data-table-td', [
- U(
- 'last-row',
- `
- border-bottom: 1px solid var(--n-merged-border-color);
- `
- )
- ])
- ]),
- O(
- 'data-table-table',
- `
- font-variant-numeric: tabular-nums;
- width: 100%;
- word-break: break-word;
- transition: background-color .3s var(--n-bezier);
- border-collapse: separate;
- border-spacing: 0;
- background-color: var(--n-merged-td-color);
- `
- ),
- O(
- 'data-table-base-table-header',
- `
- border-top-left-radius: calc(var(--n-border-radius) - 1px);
- border-top-right-radius: calc(var(--n-border-radius) - 1px);
- z-index: 3;
- overflow: scroll;
- flex-shrink: 0;
- transition: border-color .3s var(--n-bezier);
- scrollbar-width: none;
- `,
- [
- F(
- '&::-webkit-scrollbar',
- `
- width: 0;
- height: 0;
- `
- )
- ]
- ),
- O(
- 'data-table-check-extra',
- `
- transition: color .3s var(--n-bezier);
- color: var(--n-th-icon-color);
- position: absolute;
- font-size: 14px;
- right: -4px;
- top: 50%;
- transform: translateY(-50%);
- z-index: 1;
- `
- )
- ]
- ),
- O('data-table-filter-menu', [
- O(
- 'scrollbar',
- `
- max-height: 240px;
- `
- ),
- V(
- 'group',
- `
- display: flex;
- flex-direction: column;
- padding: 12px 12px 0 12px;
- `,
- [
- O(
- 'checkbox',
- `
- margin-bottom: 12px;
- margin-right: 0;
- `
- ),
- O(
- 'radio',
- `
- margin-bottom: 12px;
- margin-right: 0;
- `
- )
- ]
- ),
- V(
- 'action',
- `
- padding: var(--n-action-padding);
- display: flex;
- flex-wrap: nowrap;
- justify-content: space-evenly;
- border-top: 1px solid var(--n-action-divider-color);
- `,
- [
- O('button', [
- F(
- '&:not(:last-child)',
- `
- margin: var(--n-action-button-margin);
- `
- ),
- F(
- '&:last-child',
- `
- margin-right: 0;
- `
- )
- ])
- ]
- ),
- O(
- 'divider',
- `
- margin: 0 !important;
- `
- )
- ]),
- xl(
- O(
- 'data-table',
- `
- --n-merged-th-color: var(--n-th-color-modal);
- --n-merged-td-color: var(--n-td-color-modal);
- --n-merged-border-color: var(--n-border-color-modal);
- --n-merged-th-color-hover: var(--n-th-color-hover-modal);
- --n-merged-td-color-hover: var(--n-td-color-hover-modal);
- --n-merged-td-color-striped: var(--n-td-color-striped-modal);
- `
- )
- ),
- Ps(
- O(
- 'data-table',
- `
- --n-merged-th-color: var(--n-th-color-popover);
- --n-merged-td-color: var(--n-td-color-popover);
- --n-merged-border-color: var(--n-border-color-popover);
- --n-merged-th-color-hover: var(--n-th-color-hover-popover);
- --n-merged-td-color-hover: var(--n-td-color-hover-popover);
- --n-merged-td-color-striped: var(--n-td-color-striped-popover);
- `
- )
- )
- ]);
- function lY() {
- return [
- U(
- 'fixed-left',
- `
- left: 0;
- position: sticky;
- z-index: 2;
- `,
- [
- F(
- '&::after',
- `
- pointer-events: none;
- content: "";
- width: 36px;
- display: inline-block;
- position: absolute;
- top: 0;
- bottom: -1px;
- transition: box-shadow .2s var(--n-bezier);
- right: -36px;
- `
- )
- ]
- ),
- U(
- 'fixed-right',
- `
- right: 0;
- position: sticky;
- z-index: 1;
- `,
- [
- F(
- '&::before',
- `
- pointer-events: none;
- content: "";
- width: 36px;
- display: inline-block;
- position: absolute;
- top: 0;
- bottom: -1px;
- transition: box-shadow .2s var(--n-bezier);
- left: -36px;
- `
- )
- ]
- )
- ];
- }
- const sY = ke({
- name: 'DataTable',
- alias: ['AdvancedTable'],
- props: lq,
- setup(e, { slots: t }) {
- const {
- mergedBorderedRef: n,
- mergedClsPrefixRef: r,
- inlineThemeDisabled: o
- } = yt(e),
- i = I(() => {
- const { bottomBordered: Xe } = e;
- return n.value ? !1 : Xe !== void 0 ? Xe : !0;
- }),
- a = Ke('DataTable', '-data-table', aY, nq, e, r),
- s = Z(null),
- c = Z('body');
- qc(() => {
- c.value = 'body';
- });
- const d = Z(null),
- {
- getResizableWidth: f,
- clearResizableWidth: v,
- doUpdateResizableWidth: p
- } = nY(),
- {
- rowsRef: m,
- colsRef: g,
- dataRelatedColsRef: w,
- hasEllipsisRef: x
- } = oY(e, f),
- {
- treeMateRef: y,
- mergedCurrentPageRef: C,
- paginatedDataRef: R,
- rawPaginatedDataRef: S,
- selectionColumnRef: _,
- hoverKeyRef: P,
- mergedPaginationRef: T,
- mergedFilterStateRef: E,
- mergedSortStateRef: z,
- childTriggerColIndexRef: k,
- doUpdatePage: M,
- doUpdateFilters: A,
- onUnstableColumnResize: D,
- deriveNextSorter: L,
- filter: H,
- filters: B,
- clearFilter: q,
- clearFilters: X,
- clearSorter: te,
- page: G,
- sort: Q
- } = eY(e, { dataRelatedColsRef: w }),
- {
- doCheckAll: re,
- doUncheckAll: se,
- doCheck: pe,
- doUncheck: ce,
- headerCheckboxDisabledRef: xe,
- someRowsCheckedRef: ve,
- allRowsCheckedRef: be,
- mergedCheckedRowKeySetRef: Ce,
- mergedInderminateRowKeySetRef: ge
- } = Xq(e, {
- selectionColumnRef: _,
- treeMateRef: y,
- paginatedDataRef: R
- }),
- {
- stickyExpandedRowsRef: Ae,
- mergedExpandedRowKeysRef: j,
- renderExpandRef: ee,
- expandableRef: ne,
- doUpdateExpandedRowKeys: fe
- } = iY(e, y),
- {
- handleTableBodyScroll: ie,
- handleTableHeaderScroll: W,
- syncScrollState: ae,
- setHeaderScrollLeft: he,
- leftActiveFixedColKeyRef: _e,
- leftActiveFixedChildrenColKeysRef: le,
- rightActiveFixedColKeyRef: Re,
- rightActiveFixedChildrenColKeysRef: Ne,
- leftFixedColumnsRef: Ge,
- rightFixedColumnsRef: it,
- fixedColumnLeftMapRef: dt,
- fixedColumnRightMapRef: xt
- } = tY(e, {
- scrollPartRef: c,
- bodyWidthRef: s,
- mainTableInstRef: d,
- mergedCurrentPageRef: C
- }),
- { localeRef: De } = Ta('DataTable'),
- ut = I(() =>
- e.virtualScroll || e.flexHeight || e.maxHeight !== void 0 || x.value
- ? 'fixed'
- : e.tableLayout
- );
- Rt(wi, {
- props: e,
- treeMateRef: y,
- renderExpandIconRef: Ie(e, 'renderExpandIcon'),
- loadingKeySetRef: Z(new Set()),
- slots: t,
- indentRef: Ie(e, 'indent'),
- childTriggerColIndexRef: k,
- bodyWidthRef: s,
- componentId: pi(),
- hoverKeyRef: P,
- mergedClsPrefixRef: r,
- mergedThemeRef: a,
- scrollXRef: I(() => e.scrollX),
- rowsRef: m,
- colsRef: g,
- paginatedDataRef: R,
- leftActiveFixedColKeyRef: _e,
- leftActiveFixedChildrenColKeysRef: le,
- rightActiveFixedColKeyRef: Re,
- rightActiveFixedChildrenColKeysRef: Ne,
- leftFixedColumnsRef: Ge,
- rightFixedColumnsRef: it,
- fixedColumnLeftMapRef: dt,
- fixedColumnRightMapRef: xt,
- mergedCurrentPageRef: C,
- someRowsCheckedRef: ve,
- allRowsCheckedRef: be,
- mergedSortStateRef: z,
- mergedFilterStateRef: E,
- loadingRef: Ie(e, 'loading'),
- rowClassNameRef: Ie(e, 'rowClassName'),
- mergedCheckedRowKeySetRef: Ce,
- mergedExpandedRowKeysRef: j,
- mergedInderminateRowKeySetRef: ge,
- localeRef: De,
- scrollPartRef: c,
- expandableRef: ne,
- stickyExpandedRowsRef: Ae,
- rowKeyRef: Ie(e, 'rowKey'),
- renderExpandRef: ee,
- summaryRef: Ie(e, 'summary'),
- virtualScrollRef: Ie(e, 'virtualScroll'),
- rowPropsRef: Ie(e, 'rowProps'),
- stripedRef: Ie(e, 'striped'),
- checkOptionsRef: I(() => {
- const { value: Xe } = _;
- return Xe == null ? void 0 : Xe.options;
- }),
- rawPaginatedDataRef: S,
- filterMenuCssVarsRef: I(() => {
- const {
- self: {
- actionDividerColor: Xe,
- actionPadding: Qe,
- actionButtonMargin: oe
- }
- } = a.value;
- return {
- '--n-action-padding': Qe,
- '--n-action-button-margin': oe,
- '--n-action-divider-color': Xe
- };
- }),
- onLoadRef: Ie(e, 'onLoad'),
- mergedTableLayoutRef: ut,
- maxHeightRef: Ie(e, 'maxHeight'),
- minHeightRef: Ie(e, 'minHeight'),
- flexHeightRef: Ie(e, 'flexHeight'),
- headerCheckboxDisabledRef: xe,
- paginationBehaviorOnFilterRef: Ie(e, 'paginationBehaviorOnFilter'),
- summaryPlacementRef: Ie(e, 'summaryPlacement'),
- scrollbarPropsRef: Ie(e, 'scrollbarProps'),
- syncScrollState: ae,
- doUpdatePage: M,
- doUpdateFilters: A,
- getResizableWidth: f,
- onUnstableColumnResize: D,
- clearResizableWidth: v,
- doUpdateResizableWidth: p,
- deriveNextSorter: L,
- doCheck: pe,
- doUncheck: ce,
- doCheckAll: re,
- doUncheckAll: se,
- doUpdateExpandedRowKeys: fe,
- handleTableHeaderScroll: W,
- handleTableBodyScroll: ie,
- setHeaderScrollLeft: he,
- renderCell: Ie(e, 'renderCell')
- });
- const wt = {
- filter: H,
- filters: B,
- clearFilters: X,
- clearSorter: te,
- page: G,
- sort: Q,
- clearFilter: q,
- scrollTo: (Xe, Qe) => {
- var oe;
- (oe = d.value) === null || oe === void 0 || oe.scrollTo(Xe, Qe);
- }
- },
- Lt = I(() => {
- const { size: Xe } = e,
- {
- common: { cubicBezierEaseInOut: Qe },
- self: {
- borderColor: oe,
- tdColorHover: ze,
- thColor: We,
- thColorHover: lt,
- tdColor: st,
- tdTextColor: me,
- thTextColor: He,
- thFontWeight: tt,
- thButtonColorHover: pt,
- thIconColor: Pe,
- thIconColorActive: Ve,
- filterSize: nt,
- borderRadius: Ot,
- lineHeight: $n,
- tdColorModal: jn,
- thColorModal: Zt,
- borderColorModal: Se,
- thColorHoverModal: je,
- tdColorHoverModal: Ct,
- borderColorPopover: qt,
- thColorPopover: we,
- tdColorPopover: Fe,
- tdColorHoverPopover: rt,
- thColorHoverPopover: ft,
- paginationMargin: gt,
- emptyPadding: bn,
- boxShadowAfter: ln,
- boxShadowBefore: $e,
- sorterSize: Je,
- resizableContainerSize: vt,
- resizableSize: Wt,
- loadingColor: dn,
- loadingSize: nn,
- opacityLoading: kr,
- tdColorStriped: Yt,
- tdColorStripedModal: On,
- tdColorStripedPopover: Co,
- [Ee('fontSize', Xe)]: Lo,
- [Ee('thPadding', Xe)]: No,
- [Ee('tdPadding', Xe)]: So
- }
- } = a.value;
- return {
- '--n-font-size': Lo,
- '--n-th-padding': No,
- '--n-td-padding': So,
- '--n-bezier': Qe,
- '--n-border-radius': Ot,
- '--n-line-height': $n,
- '--n-border-color': oe,
- '--n-border-color-modal': Se,
- '--n-border-color-popover': qt,
- '--n-th-color': We,
- '--n-th-color-hover': lt,
- '--n-th-color-modal': Zt,
- '--n-th-color-hover-modal': je,
- '--n-th-color-popover': we,
- '--n-th-color-hover-popover': ft,
- '--n-td-color': st,
- '--n-td-color-hover': ze,
- '--n-td-color-modal': jn,
- '--n-td-color-hover-modal': Ct,
- '--n-td-color-popover': Fe,
- '--n-td-color-hover-popover': rt,
- '--n-th-text-color': He,
- '--n-td-text-color': me,
- '--n-th-font-weight': tt,
- '--n-th-button-color-hover': pt,
- '--n-th-icon-color': Pe,
- '--n-th-icon-color-active': Ve,
- '--n-filter-size': nt,
- '--n-pagination-margin': gt,
- '--n-empty-padding': bn,
- '--n-box-shadow-before': $e,
- '--n-box-shadow-after': ln,
- '--n-sorter-size': Je,
- '--n-resizable-container-size': vt,
- '--n-resizable-size': Wt,
- '--n-loading-size': nn,
- '--n-loading-color': dn,
- '--n-opacity-loading': kr,
- '--n-td-color-striped': Yt,
- '--n-td-color-striped-modal': On,
- '--n-td-color-striped-popover': Co
- };
- }),
- ot = o
- ? Mt(
- 'data-table',
- I(() => e.size[0]),
- Lt,
- e
- )
- : void 0,
- ct = I(() => {
- if (!e.pagination) return !1;
- if (e.paginateSinglePage) return !0;
- const Xe = T.value,
- { pageCount: Qe } = Xe;
- return Qe !== void 0
- ? Qe > 1
- : Xe.itemCount && Xe.pageSize && Xe.itemCount > Xe.pageSize;
- });
- return Object.assign(
- {
- mainTableInstRef: d,
- mergedClsPrefix: r,
- mergedTheme: a,
- paginatedData: R,
- mergedBordered: n,
- mergedBottomBordered: i,
- mergedPagination: T,
- mergedShowPagination: ct,
- cssVars: o ? void 0 : Lt,
- themeClass: ot == null ? void 0 : ot.themeClass,
- onRender: ot == null ? void 0 : ot.onRender
- },
- wt
- );
- },
- render() {
- const {
- mergedClsPrefix: e,
- themeClass: t,
- onRender: n,
- $slots: r,
- spinProps: o
- } = this;
- return (
- n == null || n(),
- h(
- 'div',
- {
- class: [
- `${e}-data-table`,
- t,
- {
- [`${e}-data-table--bordered`]: this.mergedBordered,
- [`${e}-data-table--bottom-bordered`]: this.mergedBottomBordered,
- [`${e}-data-table--single-line`]: this.singleLine,
- [`${e}-data-table--single-column`]: this.singleColumn,
- [`${e}-data-table--loading`]: this.loading,
- [`${e}-data-table--flex-height`]: this.flexHeight
- }
- ],
- style: this.cssVars
- },
- h(
- 'div',
- { class: `${e}-data-table-wrapper` },
- h(Gq, { ref: 'mainTableInstRef' })
- ),
- this.mergedShowPagination
- ? h(
- 'div',
- { class: `${e}-data-table__pagination` },
- h(
- Yk,
- Object.assign(
- {
- theme: this.mergedTheme.peers.Pagination,
- themeOverrides: this.mergedTheme.peerOverrides.Pagination,
- disabled: this.loading
- },
- this.mergedPagination
- )
- )
- )
- : null,
- h(
- Kn,
- { name: 'fade-in-scale-up-transition' },
- {
- default: () =>
- this.loading
- ? h(
- 'div',
- { class: `${e}-data-table-loading-wrapper` },
- Kt(r.loading, () => [
- h(
- Oa,
- Object.assign({ clsPrefix: e, strokeWidth: 20 }, o)
- )
- ])
- )
- : null
- }
- )
- )
- );
- }
- }),
- cY = {
- itemFontSize: '12px',
- itemHeight: '36px',
- itemWidth: '52px',
- panelActionPadding: '8px 0'
- },
- dY = e => {
- const {
- popoverColor: t,
- textColor2: n,
- primaryColor: r,
- hoverColor: o,
- dividerColor: i,
- opacityDisabled: a,
- boxShadow2: s,
- borderRadius: c,
- iconColor: d,
- iconColorDisabled: f
- } = e;
- return Object.assign(Object.assign({}, cY), {
- panelColor: t,
- panelBoxShadow: s,
- panelDividerColor: i,
- itemTextColor: n,
- itemTextColorActive: r,
- itemColorHover: o,
- itemOpacityDisabled: a,
- itemBorderRadius: c,
- borderRadius: c,
- iconColor: d,
- iconColorDisabled: f
- });
- },
- uY = {
- name: 'TimePicker',
- common: Nt,
- peers: { Scrollbar: ea, Button: As, Input: Xu },
- self: dY
- },
- u3 = uY,
- fY = {
- itemSize: '24px',
- itemCellWidth: '38px',
- itemCellHeight: '32px',
- scrollItemWidth: '80px',
- scrollItemHeight: '40px',
- panelExtraFooterPadding: '8px 12px',
- panelActionPadding: '8px 12px',
- calendarTitlePadding: '0',
- calendarTitleHeight: '28px',
- arrowSize: '14px',
- panelHeaderPadding: '8px 12px',
- calendarDaysHeight: '32px',
- calendarTitleGridTempateColumns: '28px 28px 1fr 28px 28px',
- calendarLeftPaddingDate: '6px 12px 4px 12px',
- calendarLeftPaddingDatetime: '4px 12px',
- calendarLeftPaddingDaterange: '6px 12px 4px 12px',
- calendarLeftPaddingDatetimerange: '4px 12px',
- calendarLeftPaddingMonth: '0',
- calendarLeftPaddingYear: '0',
- calendarLeftPaddingQuarter: '0',
- calendarLeftPaddingMonthrange: '0',
- calendarLeftPaddingQuarterrange: '0',
- calendarLeftPaddingYearrange: '0',
- calendarRightPaddingDate: '6px 12px 4px 12px',
- calendarRightPaddingDatetime: '4px 12px',
- calendarRightPaddingDaterange: '6px 12px 4px 12px',
- calendarRightPaddingDatetimerange: '4px 12px',
- calendarRightPaddingMonth: '0',
- calendarRightPaddingYear: '0',
- calendarRightPaddingQuarter: '0',
- calendarRightPaddingMonthrange: '0',
- calendarRightPaddingQuarterrange: '0',
- calendarRightPaddingYearrange: '0'
- },
- hY = e => {
- const {
- hoverColor: t,
- fontSize: n,
- textColor2: r,
- textColorDisabled: o,
- popoverColor: i,
- primaryColor: a,
- borderRadiusSmall: s,
- iconColor: c,
- iconColorDisabled: d,
- textColor1: f,
- dividerColor: v,
- boxShadow2: p,
- borderRadius: m,
- fontWeightStrong: g
- } = e;
- return Object.assign(Object.assign({}, fY), {
- itemFontSize: n,
- calendarDaysFontSize: n,
- calendarTitleFontSize: n,
- itemTextColor: r,
- itemTextColorDisabled: o,
- itemTextColorActive: i,
- itemTextColorCurrent: a,
- itemColorIncluded: zt(a, { alpha: 0.1 }),
- itemColorHover: t,
- itemColorDisabled: t,
- itemColorActive: a,
- itemBorderRadius: s,
- panelColor: i,
- panelTextColor: r,
- arrowColor: c,
- calendarTitleTextColor: f,
- calendarTitleColorHover: t,
- calendarDaysTextColor: r,
- panelHeaderDividerColor: v,
- calendarDaysDividerColor: v,
- calendarDividerColor: v,
- panelActionDividerColor: v,
- panelBoxShadow: p,
- panelBorderRadius: m,
- calendarTitleFontWeight: g,
- scrollItemBorderRadius: m,
- iconColor: c,
- iconColorDisabled: d
- });
- },
- vY = {
- name: 'DatePicker',
- common: Nt,
- peers: { Input: Xu, Button: As, TimePicker: u3, Scrollbar: ea },
- self: hY
- },
- pY = vY;
- function gY(e, t) {
- const n = I(() => {
- const { isTimeDisabled: f } = e,
- { value: v } = t;
- if (!(v === null || Array.isArray(v))) return f == null ? void 0 : f(v);
- }),
- r = I(() => {
- var f;
- return (f = n.value) === null || f === void 0 ? void 0 : f.isHourDisabled;
- }),
- o = I(() => {
- var f;
- return (f = n.value) === null || f === void 0
- ? void 0
- : f.isMinuteDisabled;
- }),
- i = I(() => {
- var f;
- return (f = n.value) === null || f === void 0
- ? void 0
- : f.isSecondDisabled;
- }),
- a = I(() => {
- const { type: f, isDateDisabled: v } = e,
- { value: p } = t;
- return p === null ||
- Array.isArray(p) ||
- !['date', 'datetime'].includes(f) ||
- !v
- ? !1
- : v(p);
- }),
- s = I(() => {
- const { type: f } = e,
- { value: v } = t;
- if (v === null || f === 'datetime' || Array.isArray(v)) return !1;
- const p = new Date(v),
- m = p.getHours(),
- g = p.getMinutes(),
- w = p.getMinutes();
- return (
- (r.value ? r.value(m) : !1) ||
- (o.value ? o.value(g, m) : !1) ||
- (i.value ? i.value(w, g, m) : !1)
- );
- }),
- c = I(() => a.value || s.value);
- return {
- isValueInvalidRef: I(() => {
- const { type: f } = e;
- return f === 'date' ? a.value : f === 'datetime' ? c.value : !1;
- }),
- isDateInvalidRef: a,
- isTimeInvalidRef: s,
- isDateTimeInvalidRef: c,
- isHourDisabledRef: r,
- isMinuteDisabledRef: o,
- isSecondDisabledRef: i
- };
- }
- function mY(e, t) {
- const n = I(() => {
- const { isTimeDisabled: v } = e,
- { value: p } = t;
- return !Array.isArray(p) || !v
- ? [void 0, void 0]
- : [
- v == null ? void 0 : v(p[0], 'start', p),
- v == null ? void 0 : v(p[1], 'end', p)
- ];
- }),
- r = {
- isStartHourDisabledRef: I(() => {
- var v;
- return (v = n.value[0]) === null || v === void 0
- ? void 0
- : v.isHourDisabled;
- }),
- isEndHourDisabledRef: I(() => {
- var v;
- return (v = n.value[1]) === null || v === void 0
- ? void 0
- : v.isHourDisabled;
- }),
- isStartMinuteDisabledRef: I(() => {
- var v;
- return (v = n.value[0]) === null || v === void 0
- ? void 0
- : v.isMinuteDisabled;
- }),
- isEndMinuteDisabledRef: I(() => {
- var v;
- return (v = n.value[1]) === null || v === void 0
- ? void 0
- : v.isMinuteDisabled;
- }),
- isStartSecondDisabledRef: I(() => {
- var v;
- return (v = n.value[0]) === null || v === void 0
- ? void 0
- : v.isSecondDisabled;
- }),
- isEndSecondDisabledRef: I(() => {
- var v;
- return (v = n.value[1]) === null || v === void 0
- ? void 0
- : v.isSecondDisabled;
- })
- },
- o = I(() => {
- const { type: v, isDateDisabled: p } = e,
- { value: m } = t;
- return m === null ||
- !Array.isArray(m) ||
- !['daterange', 'datetimerange'].includes(v) ||
- !p
- ? !1
- : p(m[0], 'start', m);
- }),
- i = I(() => {
- const { type: v, isDateDisabled: p } = e,
- { value: m } = t;
- return m === null ||
- !Array.isArray(m) ||
- !['daterange', 'datetimerange'].includes(v) ||
- !p
- ? !1
- : p(m[1], 'end', m);
- }),
- a = I(() => {
- const { type: v } = e,
- { value: p } = t;
- if (p === null || !Array.isArray(p) || v !== 'datetimerange') return !1;
- const m = rl(p[0]),
- g = cv(p[0]),
- w = dv(p[0]),
- {
- isStartHourDisabledRef: x,
- isStartMinuteDisabledRef: y,
- isStartSecondDisabledRef: C
- } = r;
- return (
- (x.value ? x.value(m) : !1) ||
- (y.value ? y.value(g, m) : !1) ||
- (C.value ? C.value(w, g, m) : !1)
- );
- }),
- s = I(() => {
- const { type: v } = e,
- { value: p } = t;
- if (p === null || !Array.isArray(p) || v !== 'datetimerange') return !1;
- const m = rl(p[1]),
- g = cv(p[1]),
- w = dv(p[1]),
- {
- isEndHourDisabledRef: x,
- isEndMinuteDisabledRef: y,
- isEndSecondDisabledRef: C
- } = r;
- return (
- (x.value ? x.value(m) : !1) ||
- (y.value ? y.value(g, m) : !1) ||
- (C.value ? C.value(w, g, m) : !1)
- );
- }),
- c = I(() => o.value || a.value),
- d = I(() => i.value || s.value),
- f = I(() => c.value || d.value);
- return Object.assign(Object.assign({}, r), {
- isStartDateInvalidRef: o,
- isEndDateInvalidRef: i,
- isStartTimeInvalidRef: a,
- isEndTimeInvalidRef: s,
- isStartValueInvalidRef: c,
- isEndValueInvalidRef: d,
- isRangeInvalidRef: f
- });
- }
- const Fp = 'n-date-picker';
- var Nn =
- typeof globalThis < 'u'
- ? globalThis
- : typeof window < 'u'
- ? window
- : typeof global < 'u'
- ? global
- : typeof self < 'u'
- ? self
- : {};
- function Qu(e) {
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, 'default')
- ? e.default
- : e;
- }
- function bY(e) {
- if (e.__esModule) return e;
- var t = e.default;
- if (typeof t == 'function') {
- var n = function r() {
- if (this instanceof r) {
- var o = [null];
- o.push.apply(o, arguments);
- var i = Function.bind.apply(t, o);
- return new i();
- }
- return t.apply(this, arguments);
- };
- n.prototype = t.prototype;
- } else n = {};
- return (
- Object.defineProperty(n, '__esModule', { value: !0 }),
- Object.keys(e).forEach(function (r) {
- var o = Object.getOwnPropertyDescriptor(e, r);
- Object.defineProperty(
- n,
- r,
- o.get
- ? o
- : {
- enumerable: !0,
- get: function () {
- return e[r];
- }
- }
- );
- }),
- n
- );
- }
- var mv = {},
- yY = {
- get exports() {
- return mv;
- },
- set exports(e) {
- mv = e;
- }
- },
- Qn = {},
- xY = {
- get exports() {
- return Qn;
- },
- set exports(e) {
- Qn = e;
- }
- };
- (function (e) {
- function t(n) {
- return n && n.__esModule ? n : { default: n };
- }
- (e.exports = t), (e.exports.__esModule = !0), (e.exports.default = e.exports);
- })(xY);
- var bv = {},
- wY = {
- get exports() {
- return bv;
- },
- set exports(e) {
- bv = e;
- }
- };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r, o) {
- if (r == null)
- throw new TypeError(
- 'assign requires that input parameter not be null or undefined'
- );
- for (var i in o)
- Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
- return r;
- }
- e.exports = t.default;
- })(wY, bv);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = o);
- var r = n(bv);
- function o(i) {
- return (0, r.default)({}, i);
- }
- e.exports = t.default;
- })(yY, mv);
- const CY = Qu(mv);
- var yv = {},
- SY = {
- get exports() {
- return yv;
- },
- set exports(e) {
- yv = e;
- }
- },
- xv = {},
- _Y = {
- get exports() {
- return xv;
- },
- set exports(e) {
- xv = e;
- }
- },
- wv = {},
- RY = {
- get exports() {
- return wv;
- },
- set exports(e) {
- wv = e;
- }
- },
- Cv = {},
- PY = {
- get exports() {
- return Cv;
- },
- set exports(e) {
- Cv = e;
- }
- };
- (function (e) {
- function t(n) {
- return (
- (e.exports = t =
- typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
- ? function (r) {
- return typeof r;
- }
- : function (r) {
- return r &&
- typeof Symbol == 'function' &&
- r.constructor === Symbol &&
- r !== Symbol.prototype
- ? 'symbol'
- : typeof r;
- }),
- (e.exports.__esModule = !0),
- (e.exports.default = e.exports),
- t(n)
- );
- }
- (e.exports = t), (e.exports.__esModule = !0), (e.exports.default = e.exports);
- })(PY);
- var Ar = {},
- kY = {
- get exports() {
- return Ar;
- },
- set exports(e) {
- Ar = e;
- }
- };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r, o) {
- if (o.length < r)
- throw new TypeError(
- r +
- ' argument' +
- (r > 1 ? 's' : '') +
- ' required, but only ' +
- o.length +
- ' present'
- );
- }
- e.exports = t.default;
- })(kY, Ar);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = i);
- var r = n(Cv),
- o = n(Ar);
- function i(a) {
- return (
- (0, o.default)(1, arguments),
- a instanceof Date ||
- ((0, r.default)(a) === 'object' &&
- Object.prototype.toString.call(a) === '[object Date]')
- );
- }
- e.exports = t.default;
- })(RY, wv);
- var Do = {},
- TY = {
- get exports() {
- return Do;
- },
- set exports(e) {
- Do = e;
- }
- };
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = i);
- var r = n(Cv),
- o = n(Ar);
- function i(a) {
- (0, o.default)(1, arguments);
- var s = Object.prototype.toString.call(a);
- return a instanceof Date ||
- ((0, r.default)(a) === 'object' && s === '[object Date]')
- ? new Date(a.getTime())
- : typeof a == 'number' || s === '[object Number]'
- ? new Date(a)
- : ((typeof a == 'string' || s === '[object String]') &&
- typeof console < 'u' &&
- (console.warn(
- "Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"
- ),
- console.warn(new Error().stack)),
- new Date(NaN));
- }
- e.exports = t.default;
- })(TY, Do);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = a);
- var r = n(wv),
- o = n(Do),
- i = n(Ar);
- function a(s) {
- if (
- ((0, i.default)(1, arguments), !(0, r.default)(s) && typeof s != 'number')
- )
- return !1;
- var c = (0, o.default)(s);
- return !isNaN(Number(c));
- }
- e.exports = t.default;
- })(_Y, xv);
- var Sv = {},
- $Y = {
- get exports() {
- return Sv;
- },
- set exports(e) {
- Sv = e;
- }
- },
- _v = {},
- OY = {
- get exports() {
- return _v;
- },
- set exports(e) {
- _v = e;
- }
- },
- Xi = {},
- zY = {
- get exports() {
- return Xi;
- },
- set exports(e) {
- Xi = e;
- }
- };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r) {
- if (r === null || r === !0 || r === !1) return NaN;
- var o = Number(r);
- return isNaN(o) ? o : o < 0 ? Math.ceil(o) : Math.floor(o);
- }
- e.exports = t.default;
- })(zY, Xi);
- const EY = Qu(Xi);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = a);
- var r = n(Xi),
- o = n(Do),
- i = n(Ar);
- function a(s, c) {
- (0, i.default)(2, arguments);
- var d = (0, o.default)(s).getTime(),
- f = (0, r.default)(c);
- return new Date(d + f);
- }
- e.exports = t.default;
- })(OY, _v);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = a);
- var r = n(_v),
- o = n(Ar),
- i = n(Xi);
- function a(s, c) {
- (0, o.default)(2, arguments);
- var d = (0, i.default)(c);
- return (0, r.default)(s, -d);
- }
- e.exports = t.default;
- })($Y, Sv);
- var Rv = {},
- AY = {
- get exports() {
- return Rv;
- },
- set exports(e) {
- Rv = e;
- }
- },
- Pv = {},
- MY = {
- get exports() {
- return Pv;
- },
- set exports(e) {
- Pv = e;
- }
- };
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = a);
- var r = n(Do),
- o = n(Ar),
- i = 864e5;
- function a(s) {
- (0, o.default)(1, arguments);
- var c = (0, r.default)(s),
- d = c.getTime();
- c.setUTCMonth(0, 1), c.setUTCHours(0, 0, 0, 0);
- var f = c.getTime(),
- v = d - f;
- return Math.floor(v / i) + 1;
- }
- e.exports = t.default;
- })(MY, Pv);
- var kv = {},
- IY = {
- get exports() {
- return kv;
- },
- set exports(e) {
- kv = e;
- }
- },
- Dc = {},
- DY = {
- get exports() {
- return Dc;
- },
- set exports(e) {
- Dc = e;
- }
- };
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = i);
- var r = n(Do),
- o = n(Ar);
- function i(a) {
- (0, o.default)(1, arguments);
- var s = 1,
- c = (0, r.default)(a),
- d = c.getUTCDay(),
- f = (d < s ? 7 : 0) + d - s;
- return c.setUTCDate(c.getUTCDate() - f), c.setUTCHours(0, 0, 0, 0), c;
- }
- e.exports = t.default;
- })(DY, Dc);
- var Tv = {},
- FY = {
- get exports() {
- return Tv;
- },
- set exports(e) {
- Tv = e;
- }
- },
- zu = {},
- BY = {
- get exports() {
- return zu;
- },
- set exports(e) {
- zu = e;
- }
- };
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = a);
- var r = n(Do),
- o = n(Ar),
- i = n(Dc);
- function a(s) {
- (0, o.default)(1, arguments);
- var c = (0, r.default)(s),
- d = c.getUTCFullYear(),
- f = new Date(0);
- f.setUTCFullYear(d + 1, 0, 4), f.setUTCHours(0, 0, 0, 0);
- var v = (0, i.default)(f),
- p = new Date(0);
- p.setUTCFullYear(d, 0, 4), p.setUTCHours(0, 0, 0, 0);
- var m = (0, i.default)(p);
- return c.getTime() >= v.getTime()
- ? d + 1
- : c.getTime() >= m.getTime()
- ? d
- : d - 1;
- }
- e.exports = t.default;
- })(BY, zu);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = a);
- var r = n(zu),
- o = n(Dc),
- i = n(Ar);
- function a(s) {
- (0, i.default)(1, arguments);
- var c = (0, r.default)(s),
- d = new Date(0);
- d.setUTCFullYear(c, 0, 4), d.setUTCHours(0, 0, 0, 0);
- var f = (0, o.default)(d);
- return f;
- }
- e.exports = t.default;
- })(FY, Tv);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = c);
- var r = n(Do),
- o = n(Dc),
- i = n(Tv),
- a = n(Ar),
- s = 6048e5;
- function c(d) {
- (0, a.default)(1, arguments);
- var f = (0, r.default)(d),
- v = (0, o.default)(f).getTime() - (0, i.default)(f).getTime();
- return Math.round(v / s) + 1;
- }
- e.exports = t.default;
- })(IY, kv);
- var $v = {},
- LY = {
- get exports() {
- return $v;
- },
- set exports(e) {
- $v = e;
- }
- },
- Fc = {},
- NY = {
- get exports() {
- return Fc;
- },
- set exports(e) {
- Fc = e;
- }
- },
- Ms = {};
- Object.defineProperty(Ms, '__esModule', { value: !0 });
- Ms.getDefaultOptions = HY;
- Ms.setDefaultOptions = jY;
- var f3 = {};
- function HY() {
- return f3;
- }
- function jY(e) {
- f3 = e;
- }
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = s);
- var r = n(Do),
- o = n(Ar),
- i = n(Xi),
- a = Ms;
- function s(c, d) {
- var f, v, p, m, g, w, x, y;
- (0, o.default)(1, arguments);
- var C = (0, a.getDefaultOptions)(),
- R = (0, i.default)(
- (f =
- (v =
- (p =
- (m = d == null ? void 0 : d.weekStartsOn) !== null && m !== void 0
- ? m
- : d == null ||
- (g = d.locale) === null ||
- g === void 0 ||
- (w = g.options) === null ||
- w === void 0
- ? void 0
- : w.weekStartsOn) !== null && p !== void 0
- ? p
- : C.weekStartsOn) !== null && v !== void 0
- ? v
- : (x = C.locale) === null ||
- x === void 0 ||
- (y = x.options) === null ||
- y === void 0
- ? void 0
- : y.weekStartsOn) !== null && f !== void 0
- ? f
- : 0
- );
- if (!(R >= 0 && R <= 6))
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- var S = (0, r.default)(c),
- _ = S.getUTCDay(),
- P = (_ < R ? 7 : 0) + _ - R;
- return S.setUTCDate(S.getUTCDate() - P), S.setUTCHours(0, 0, 0, 0), S;
- }
- e.exports = t.default;
- })(NY, Fc);
- var Ov = {},
- WY = {
- get exports() {
- return Ov;
- },
- set exports(e) {
- Ov = e;
- }
- },
- Eu = {},
- UY = {
- get exports() {
- return Eu;
- },
- set exports(e) {
- Eu = e;
- }
- };
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = c);
- var r = n(Do),
- o = n(Ar),
- i = n(Fc),
- a = n(Xi),
- s = Ms;
- function c(d, f) {
- var v, p, m, g, w, x, y, C;
- (0, o.default)(1, arguments);
- var R = (0, r.default)(d),
- S = R.getUTCFullYear(),
- _ = (0, s.getDefaultOptions)(),
- P = (0, a.default)(
- (v =
- (p =
- (m =
- (g = f == null ? void 0 : f.firstWeekContainsDate) !== null &&
- g !== void 0
- ? g
- : f == null ||
- (w = f.locale) === null ||
- w === void 0 ||
- (x = w.options) === null ||
- x === void 0
- ? void 0
- : x.firstWeekContainsDate) !== null && m !== void 0
- ? m
- : _.firstWeekContainsDate) !== null && p !== void 0
- ? p
- : (y = _.locale) === null ||
- y === void 0 ||
- (C = y.options) === null ||
- C === void 0
- ? void 0
- : C.firstWeekContainsDate) !== null && v !== void 0
- ? v
- : 1
- );
- if (!(P >= 1 && P <= 7))
- throw new RangeError(
- 'firstWeekContainsDate must be between 1 and 7 inclusively'
- );
- var T = new Date(0);
- T.setUTCFullYear(S + 1, 0, P), T.setUTCHours(0, 0, 0, 0);
- var E = (0, i.default)(T, f),
- z = new Date(0);
- z.setUTCFullYear(S, 0, P), z.setUTCHours(0, 0, 0, 0);
- var k = (0, i.default)(z, f);
- return R.getTime() >= E.getTime()
- ? S + 1
- : R.getTime() >= k.getTime()
- ? S
- : S - 1;
- }
- e.exports = t.default;
- })(UY, Eu);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = c);
- var r = n(Eu),
- o = n(Ar),
- i = n(Fc),
- a = n(Xi),
- s = Ms;
- function c(d, f) {
- var v, p, m, g, w, x, y, C;
- (0, o.default)(1, arguments);
- var R = (0, s.getDefaultOptions)(),
- S = (0, a.default)(
- (v =
- (p =
- (m =
- (g = f == null ? void 0 : f.firstWeekContainsDate) !== null &&
- g !== void 0
- ? g
- : f == null ||
- (w = f.locale) === null ||
- w === void 0 ||
- (x = w.options) === null ||
- x === void 0
- ? void 0
- : x.firstWeekContainsDate) !== null && m !== void 0
- ? m
- : R.firstWeekContainsDate) !== null && p !== void 0
- ? p
- : (y = R.locale) === null ||
- y === void 0 ||
- (C = y.options) === null ||
- C === void 0
- ? void 0
- : C.firstWeekContainsDate) !== null && v !== void 0
- ? v
- : 1
- ),
- _ = (0, r.default)(d, f),
- P = new Date(0);
- P.setUTCFullYear(_, 0, S), P.setUTCHours(0, 0, 0, 0);
- var T = (0, i.default)(P, f);
- return T;
- }
- e.exports = t.default;
- })(WY, Ov);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = c);
- var r = n(Do),
- o = n(Fc),
- i = n(Ov),
- a = n(Ar),
- s = 6048e5;
- function c(d, f) {
- (0, a.default)(1, arguments);
- var v = (0, r.default)(d),
- p = (0, o.default)(v, f).getTime() - (0, i.default)(v, f).getTime();
- return Math.round(p / s) + 1;
- }
- e.exports = t.default;
- })(LY, $v);
- var Au = {},
- VY = {
- get exports() {
- return Au;
- },
- set exports(e) {
- Au = e;
- }
- };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r, o) {
- for (var i = r < 0 ? '-' : '', a = Math.abs(r).toString(); a.length < o; )
- a = '0' + a;
- return i + a;
- }
- e.exports = t.default;
- })(VY, Au);
- var zv = {},
- KY = {
- get exports() {
- return zv;
- },
- set exports(e) {
- zv = e;
- }
- };
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(Au),
- o = {
- y: function (s, c) {
- var d = s.getUTCFullYear(),
- f = d > 0 ? d : 1 - d;
- return (0, r.default)(c === 'yy' ? f % 100 : f, c.length);
- },
- M: function (s, c) {
- var d = s.getUTCMonth();
- return c === 'M' ? String(d + 1) : (0, r.default)(d + 1, 2);
- },
- d: function (s, c) {
- return (0, r.default)(s.getUTCDate(), c.length);
- },
- a: function (s, c) {
- var d = s.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
- switch (c) {
- case 'a':
- case 'aa':
- return d.toUpperCase();
- case 'aaa':
- return d;
- case 'aaaaa':
- return d[0];
- case 'aaaa':
- default:
- return d === 'am' ? 'a.m.' : 'p.m.';
- }
- },
- h: function (s, c) {
- return (0, r.default)(s.getUTCHours() % 12 || 12, c.length);
- },
- H: function (s, c) {
- return (0, r.default)(s.getUTCHours(), c.length);
- },
- m: function (s, c) {
- return (0, r.default)(s.getUTCMinutes(), c.length);
- },
- s: function (s, c) {
- return (0, r.default)(s.getUTCSeconds(), c.length);
- },
- S: function (s, c) {
- var d = c.length,
- f = s.getUTCMilliseconds(),
- v = Math.floor(f * Math.pow(10, d - 3));
- return (0, r.default)(v, c.length);
- }
- },
- i = o;
- (t.default = i), (e.exports = t.default);
- })(KY, zv);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(Pv),
- o = n(kv),
- i = n(zu),
- a = n($v),
- s = n(Eu),
- c = n(Au),
- d = n(zv),
- f = {
- am: 'am',
- pm: 'pm',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- v = {
- G: function (y, C, R) {
- var S = y.getUTCFullYear() > 0 ? 1 : 0;
- switch (C) {
- case 'G':
- case 'GG':
- case 'GGG':
- return R.era(S, { width: 'abbreviated' });
- case 'GGGGG':
- return R.era(S, { width: 'narrow' });
- case 'GGGG':
- default:
- return R.era(S, { width: 'wide' });
- }
- },
- y: function (y, C, R) {
- if (C === 'yo') {
- var S = y.getUTCFullYear(),
- _ = S > 0 ? S : 1 - S;
- return R.ordinalNumber(_, { unit: 'year' });
- }
- return d.default.y(y, C);
- },
- Y: function (y, C, R, S) {
- var _ = (0, s.default)(y, S),
- P = _ > 0 ? _ : 1 - _;
- if (C === 'YY') {
- var T = P % 100;
- return (0, c.default)(T, 2);
- }
- return C === 'Yo'
- ? R.ordinalNumber(P, { unit: 'year' })
- : (0, c.default)(P, C.length);
- },
- R: function (y, C) {
- var R = (0, i.default)(y);
- return (0, c.default)(R, C.length);
- },
- u: function (y, C) {
- var R = y.getUTCFullYear();
- return (0, c.default)(R, C.length);
- },
- Q: function (y, C, R) {
- var S = Math.ceil((y.getUTCMonth() + 1) / 3);
- switch (C) {
- case 'Q':
- return String(S);
- case 'QQ':
- return (0, c.default)(S, 2);
- case 'Qo':
- return R.ordinalNumber(S, { unit: 'quarter' });
- case 'QQQ':
- return R.quarter(S, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'QQQQQ':
- return R.quarter(S, { width: 'narrow', context: 'formatting' });
- case 'QQQQ':
- default:
- return R.quarter(S, { width: 'wide', context: 'formatting' });
- }
- },
- q: function (y, C, R) {
- var S = Math.ceil((y.getUTCMonth() + 1) / 3);
- switch (C) {
- case 'q':
- return String(S);
- case 'qq':
- return (0, c.default)(S, 2);
- case 'qo':
- return R.ordinalNumber(S, { unit: 'quarter' });
- case 'qqq':
- return R.quarter(S, {
- width: 'abbreviated',
- context: 'standalone'
- });
- case 'qqqqq':
- return R.quarter(S, { width: 'narrow', context: 'standalone' });
- case 'qqqq':
- default:
- return R.quarter(S, { width: 'wide', context: 'standalone' });
- }
- },
- M: function (y, C, R) {
- var S = y.getUTCMonth();
- switch (C) {
- case 'M':
- case 'MM':
- return d.default.M(y, C);
- case 'Mo':
- return R.ordinalNumber(S + 1, { unit: 'month' });
- case 'MMM':
- return R.month(S, { width: 'abbreviated', context: 'formatting' });
- case 'MMMMM':
- return R.month(S, { width: 'narrow', context: 'formatting' });
- case 'MMMM':
- default:
- return R.month(S, { width: 'wide', context: 'formatting' });
- }
- },
- L: function (y, C, R) {
- var S = y.getUTCMonth();
- switch (C) {
- case 'L':
- return String(S + 1);
- case 'LL':
- return (0, c.default)(S + 1, 2);
- case 'Lo':
- return R.ordinalNumber(S + 1, { unit: 'month' });
- case 'LLL':
- return R.month(S, { width: 'abbreviated', context: 'standalone' });
- case 'LLLLL':
- return R.month(S, { width: 'narrow', context: 'standalone' });
- case 'LLLL':
- default:
- return R.month(S, { width: 'wide', context: 'standalone' });
- }
- },
- w: function (y, C, R, S) {
- var _ = (0, a.default)(y, S);
- return C === 'wo'
- ? R.ordinalNumber(_, { unit: 'week' })
- : (0, c.default)(_, C.length);
- },
- I: function (y, C, R) {
- var S = (0, o.default)(y);
- return C === 'Io'
- ? R.ordinalNumber(S, { unit: 'week' })
- : (0, c.default)(S, C.length);
- },
- d: function (y, C, R) {
- return C === 'do'
- ? R.ordinalNumber(y.getUTCDate(), { unit: 'date' })
- : d.default.d(y, C);
- },
- D: function (y, C, R) {
- var S = (0, r.default)(y);
- return C === 'Do'
- ? R.ordinalNumber(S, { unit: 'dayOfYear' })
- : (0, c.default)(S, C.length);
- },
- E: function (y, C, R) {
- var S = y.getUTCDay();
- switch (C) {
- case 'E':
- case 'EE':
- case 'EEE':
- return R.day(S, { width: 'abbreviated', context: 'formatting' });
- case 'EEEEE':
- return R.day(S, { width: 'narrow', context: 'formatting' });
- case 'EEEEEE':
- return R.day(S, { width: 'short', context: 'formatting' });
- case 'EEEE':
- default:
- return R.day(S, { width: 'wide', context: 'formatting' });
- }
- },
- e: function (y, C, R, S) {
- var _ = y.getUTCDay(),
- P = (_ - S.weekStartsOn + 8) % 7 || 7;
- switch (C) {
- case 'e':
- return String(P);
- case 'ee':
- return (0, c.default)(P, 2);
- case 'eo':
- return R.ordinalNumber(P, { unit: 'day' });
- case 'eee':
- return R.day(_, { width: 'abbreviated', context: 'formatting' });
- case 'eeeee':
- return R.day(_, { width: 'narrow', context: 'formatting' });
- case 'eeeeee':
- return R.day(_, { width: 'short', context: 'formatting' });
- case 'eeee':
- default:
- return R.day(_, { width: 'wide', context: 'formatting' });
- }
- },
- c: function (y, C, R, S) {
- var _ = y.getUTCDay(),
- P = (_ - S.weekStartsOn + 8) % 7 || 7;
- switch (C) {
- case 'c':
- return String(P);
- case 'cc':
- return (0, c.default)(P, C.length);
- case 'co':
- return R.ordinalNumber(P, { unit: 'day' });
- case 'ccc':
- return R.day(_, { width: 'abbreviated', context: 'standalone' });
- case 'ccccc':
- return R.day(_, { width: 'narrow', context: 'standalone' });
- case 'cccccc':
- return R.day(_, { width: 'short', context: 'standalone' });
- case 'cccc':
- default:
- return R.day(_, { width: 'wide', context: 'standalone' });
- }
- },
- i: function (y, C, R) {
- var S = y.getUTCDay(),
- _ = S === 0 ? 7 : S;
- switch (C) {
- case 'i':
- return String(_);
- case 'ii':
- return (0, c.default)(_, C.length);
- case 'io':
- return R.ordinalNumber(_, { unit: 'day' });
- case 'iii':
- return R.day(S, { width: 'abbreviated', context: 'formatting' });
- case 'iiiii':
- return R.day(S, { width: 'narrow', context: 'formatting' });
- case 'iiiiii':
- return R.day(S, { width: 'short', context: 'formatting' });
- case 'iiii':
- default:
- return R.day(S, { width: 'wide', context: 'formatting' });
- }
- },
- a: function (y, C, R) {
- var S = y.getUTCHours(),
- _ = S / 12 >= 1 ? 'pm' : 'am';
- switch (C) {
- case 'a':
- case 'aa':
- return R.dayPeriod(_, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'aaa':
- return R.dayPeriod(_, {
- width: 'abbreviated',
- context: 'formatting'
- }).toLowerCase();
- case 'aaaaa':
- return R.dayPeriod(_, { width: 'narrow', context: 'formatting' });
- case 'aaaa':
- default:
- return R.dayPeriod(_, { width: 'wide', context: 'formatting' });
- }
- },
- b: function (y, C, R) {
- var S = y.getUTCHours(),
- _;
- switch (
- (S === 12
- ? (_ = f.noon)
- : S === 0
- ? (_ = f.midnight)
- : (_ = S / 12 >= 1 ? 'pm' : 'am'),
- C)
- ) {
- case 'b':
- case 'bb':
- return R.dayPeriod(_, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'bbb':
- return R.dayPeriod(_, {
- width: 'abbreviated',
- context: 'formatting'
- }).toLowerCase();
- case 'bbbbb':
- return R.dayPeriod(_, { width: 'narrow', context: 'formatting' });
- case 'bbbb':
- default:
- return R.dayPeriod(_, { width: 'wide', context: 'formatting' });
- }
- },
- B: function (y, C, R) {
- var S = y.getUTCHours(),
- _;
- switch (
- (S >= 17
- ? (_ = f.evening)
- : S >= 12
- ? (_ = f.afternoon)
- : S >= 4
- ? (_ = f.morning)
- : (_ = f.night),
- C)
- ) {
- case 'B':
- case 'BB':
- case 'BBB':
- return R.dayPeriod(_, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'BBBBB':
- return R.dayPeriod(_, { width: 'narrow', context: 'formatting' });
- case 'BBBB':
- default:
- return R.dayPeriod(_, { width: 'wide', context: 'formatting' });
- }
- },
- h: function (y, C, R) {
- if (C === 'ho') {
- var S = y.getUTCHours() % 12;
- return S === 0 && (S = 12), R.ordinalNumber(S, { unit: 'hour' });
- }
- return d.default.h(y, C);
- },
- H: function (y, C, R) {
- return C === 'Ho'
- ? R.ordinalNumber(y.getUTCHours(), { unit: 'hour' })
- : d.default.H(y, C);
- },
- K: function (y, C, R) {
- var S = y.getUTCHours() % 12;
- return C === 'Ko'
- ? R.ordinalNumber(S, { unit: 'hour' })
- : (0, c.default)(S, C.length);
- },
- k: function (y, C, R) {
- var S = y.getUTCHours();
- return (
- S === 0 && (S = 24),
- C === 'ko'
- ? R.ordinalNumber(S, { unit: 'hour' })
- : (0, c.default)(S, C.length)
- );
- },
- m: function (y, C, R) {
- return C === 'mo'
- ? R.ordinalNumber(y.getUTCMinutes(), { unit: 'minute' })
- : d.default.m(y, C);
- },
- s: function (y, C, R) {
- return C === 'so'
- ? R.ordinalNumber(y.getUTCSeconds(), { unit: 'second' })
- : d.default.s(y, C);
- },
- S: function (y, C) {
- return d.default.S(y, C);
- },
- X: function (y, C, R, S) {
- var _ = S._originalDate || y,
- P = _.getTimezoneOffset();
- if (P === 0) return 'Z';
- switch (C) {
- case 'X':
- return m(P);
- case 'XXXX':
- case 'XX':
- return g(P);
- case 'XXXXX':
- case 'XXX':
- default:
- return g(P, ':');
- }
- },
- x: function (y, C, R, S) {
- var _ = S._originalDate || y,
- P = _.getTimezoneOffset();
- switch (C) {
- case 'x':
- return m(P);
- case 'xxxx':
- case 'xx':
- return g(P);
- case 'xxxxx':
- case 'xxx':
- default:
- return g(P, ':');
- }
- },
- O: function (y, C, R, S) {
- var _ = S._originalDate || y,
- P = _.getTimezoneOffset();
- switch (C) {
- case 'O':
- case 'OO':
- case 'OOO':
- return 'GMT' + p(P, ':');
- case 'OOOO':
- default:
- return 'GMT' + g(P, ':');
- }
- },
- z: function (y, C, R, S) {
- var _ = S._originalDate || y,
- P = _.getTimezoneOffset();
- switch (C) {
- case 'z':
- case 'zz':
- case 'zzz':
- return 'GMT' + p(P, ':');
- case 'zzzz':
- default:
- return 'GMT' + g(P, ':');
- }
- },
- t: function (y, C, R, S) {
- var _ = S._originalDate || y,
- P = Math.floor(_.getTime() / 1e3);
- return (0, c.default)(P, C.length);
- },
- T: function (y, C, R, S) {
- var _ = S._originalDate || y,
- P = _.getTime();
- return (0, c.default)(P, C.length);
- }
- };
- function p(x, y) {
- var C = x > 0 ? '-' : '+',
- R = Math.abs(x),
- S = Math.floor(R / 60),
- _ = R % 60;
- if (_ === 0) return C + String(S);
- var P = y || '';
- return C + String(S) + P + (0, c.default)(_, 2);
- }
- function m(x, y) {
- if (x % 60 === 0) {
- var C = x > 0 ? '-' : '+';
- return C + (0, c.default)(Math.abs(x) / 60, 2);
- }
- return g(x, y);
- }
- function g(x, y) {
- var C = y || '',
- R = x > 0 ? '-' : '+',
- S = Math.abs(x),
- _ = (0, c.default)(Math.floor(S / 60), 2),
- P = (0, c.default)(S % 60, 2);
- return R + _ + C + P;
- }
- var w = v;
- (t.default = w), (e.exports = t.default);
- })(AY, Rv);
- var Ev = {},
- qY = {
- get exports() {
- return Ev;
- },
- set exports(e) {
- Ev = e;
- }
- };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var n = function (c, d) {
- switch (c) {
- case 'P':
- return d.date({ width: 'short' });
- case 'PP':
- return d.date({ width: 'medium' });
- case 'PPP':
- return d.date({ width: 'long' });
- case 'PPPP':
- default:
- return d.date({ width: 'full' });
- }
- },
- r = function (c, d) {
- switch (c) {
- case 'p':
- return d.time({ width: 'short' });
- case 'pp':
- return d.time({ width: 'medium' });
- case 'ppp':
- return d.time({ width: 'long' });
- case 'pppp':
- default:
- return d.time({ width: 'full' });
- }
- },
- o = function (c, d) {
- var f = c.match(/(P+)(p+)?/) || [],
- v = f[1],
- p = f[2];
- if (!p) return n(c, d);
- var m;
- switch (v) {
- case 'P':
- m = d.dateTime({ width: 'short' });
- break;
- case 'PP':
- m = d.dateTime({ width: 'medium' });
- break;
- case 'PPP':
- m = d.dateTime({ width: 'long' });
- break;
- case 'PPPP':
- default:
- m = d.dateTime({ width: 'full' });
- break;
- }
- return m.replace('{{date}}', n(v, d)).replace('{{time}}', r(p, d));
- },
- i = { p: r, P: o },
- a = i;
- (t.default = a), (e.exports = t.default);
- })(qY, Ev);
- var Mu = {},
- YY = {
- get exports() {
- return Mu;
- },
- set exports(e) {
- Mu = e;
- }
- };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r) {
- var o = new Date(
- Date.UTC(
- r.getFullYear(),
- r.getMonth(),
- r.getDate(),
- r.getHours(),
- r.getMinutes(),
- r.getSeconds(),
- r.getMilliseconds()
- )
- );
- return o.setUTCFullYear(r.getFullYear()), r.getTime() - o.getTime();
- }
- e.exports = t.default;
- })(YY, Mu);
- const WS = Qu(Mu);
- var Ju = {};
- Object.defineProperty(Ju, '__esModule', { value: !0 });
- Ju.isProtectedDayOfYearToken = ZY;
- Ju.isProtectedWeekYearToken = QY;
- Ju.throwProtectedError = JY;
- var GY = ['D', 'DD'],
- XY = ['YY', 'YYYY'];
- function ZY(e) {
- return GY.indexOf(e) !== -1;
- }
- function QY(e) {
- return XY.indexOf(e) !== -1;
- }
- function JY(e, t, n) {
- if (e === 'YYYY')
- throw new RangeError(
- 'Use `yyyy` instead of `YYYY` (in `'
- .concat(t, '`) for formatting years to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- if (e === 'YY')
- throw new RangeError(
- 'Use `yy` instead of `YY` (in `'
- .concat(t, '`) for formatting years to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- if (e === 'D')
- throw new RangeError(
- 'Use `d` instead of `D` (in `'
- .concat(t, '`) for formatting days of the month to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- if (e === 'DD')
- throw new RangeError(
- 'Use `dd` instead of `DD` (in `'
- .concat(t, '`) for formatting days of the month to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- }
- var Av = {},
- eG = {
- get exports() {
- return Av;
- },
- set exports(e) {
- Av = e;
- }
- },
- Mv = {},
- tG = {
- get exports() {
- return Mv;
- },
- set exports(e) {
- Mv = e;
- }
- },
- Iv = {},
- nG = {
- get exports() {
- return Iv;
- },
- set exports(e) {
- Iv = e;
- }
- };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var n = {
- lessThanXSeconds: {
- one: 'less than a second',
- other: 'less than {{count}} seconds'
- },
- xSeconds: { one: '1 second', other: '{{count}} seconds' },
- halfAMinute: 'half a minute',
- lessThanXMinutes: {
- one: 'less than a minute',
- other: 'less than {{count}} minutes'
- },
- xMinutes: { one: '1 minute', other: '{{count}} minutes' },
- aboutXHours: { one: 'about 1 hour', other: 'about {{count}} hours' },
- xHours: { one: '1 hour', other: '{{count}} hours' },
- xDays: { one: '1 day', other: '{{count}} days' },
- aboutXWeeks: { one: 'about 1 week', other: 'about {{count}} weeks' },
- xWeeks: { one: '1 week', other: '{{count}} weeks' },
- aboutXMonths: { one: 'about 1 month', other: 'about {{count}} months' },
- xMonths: { one: '1 month', other: '{{count}} months' },
- aboutXYears: { one: 'about 1 year', other: 'about {{count}} years' },
- xYears: { one: '1 year', other: '{{count}} years' },
- overXYears: { one: 'over 1 year', other: 'over {{count}} years' },
- almostXYears: { one: 'almost 1 year', other: 'almost {{count}} years' }
- },
- r = function (a, s, c) {
- var d,
- f = n[a];
- return (
- typeof f == 'string'
- ? (d = f)
- : s === 1
- ? (d = f.one)
- : (d = f.other.replace('{{count}}', s.toString())),
- c != null && c.addSuffix
- ? c.comparison && c.comparison > 0
- ? 'in ' + d
- : d + ' ago'
- : d
- );
- },
- o = r;
- (t.default = o), (e.exports = t.default);
- })(nG, Iv);
- var Dv = {},
- rG = {
- get exports() {
- return Dv;
- },
- set exports(e) {
- Dv = e;
- }
- },
- Fv = {},
- oG = {
- get exports() {
- return Fv;
- },
- set exports(e) {
- Fv = e;
- }
- };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r) {
- return function () {
- var o =
- arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
- i = o.width ? String(o.width) : r.defaultWidth,
- a = r.formats[i] || r.formats[r.defaultWidth];
- return a;
- };
- }
- e.exports = t.default;
- })(oG, Fv);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(Fv),
- o = {
- full: 'EEEE, MMMM do, y',
- long: 'MMMM do, y',
- medium: 'MMM d, y',
- short: 'MM/dd/yyyy'
- },
- i = {
- full: 'h:mm:ss a zzzz',
- long: 'h:mm:ss a z',
- medium: 'h:mm:ss a',
- short: 'h:mm a'
- },
- a = {
- full: "{{date}} 'at' {{time}}",
- long: "{{date}} 'at' {{time}}",
- medium: '{{date}}, {{time}}',
- short: '{{date}}, {{time}}'
- },
- s = {
- date: (0, r.default)({ formats: o, defaultWidth: 'full' }),
- time: (0, r.default)({ formats: i, defaultWidth: 'full' }),
- dateTime: (0, r.default)({ formats: a, defaultWidth: 'full' })
- },
- c = s;
- (t.default = c), (e.exports = t.default);
- })(rG, Dv);
- var Bv = {},
- iG = {
- get exports() {
- return Bv;
- },
- set exports(e) {
- Bv = e;
- }
- };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var n = {
- lastWeek: "'last' eeee 'at' p",
- yesterday: "'yesterday at' p",
- today: "'today at' p",
- tomorrow: "'tomorrow at' p",
- nextWeek: "eeee 'at' p",
- other: 'P'
- },
- r = function (a, s, c, d) {
- return n[a];
- },
- o = r;
- (t.default = o), (e.exports = t.default);
- })(iG, Bv);
- var Lv = {},
- aG = {
- get exports() {
- return Lv;
- },
- set exports(e) {
- Lv = e;
- }
- },
- Nv = {},
- lG = {
- get exports() {
- return Nv;
- },
- set exports(e) {
- Nv = e;
- }
- };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r) {
- return function (o, i) {
- var a = i != null && i.context ? String(i.context) : 'standalone',
- s;
- if (a === 'formatting' && r.formattingValues) {
- var c = r.defaultFormattingWidth || r.defaultWidth,
- d = i != null && i.width ? String(i.width) : c;
- s = r.formattingValues[d] || r.formattingValues[c];
- } else {
- var f = r.defaultWidth,
- v = i != null && i.width ? String(i.width) : r.defaultWidth;
- s = r.values[v] || r.values[f];
- }
- var p = r.argumentCallback ? r.argumentCallback(o) : o;
- return s[p];
- };
- }
- e.exports = t.default;
- })(lG, Nv);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(Nv),
- o = {
- narrow: ['B', 'A'],
- abbreviated: ['BC', 'AD'],
- wide: ['Before Christ', 'Anno Domini']
- },
- i = {
- narrow: ['1', '2', '3', '4'],
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
- },
- a = {
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
- abbreviated: [
- 'Jan',
- 'Feb',
- 'Mar',
- 'Apr',
- 'May',
- 'Jun',
- 'Jul',
- 'Aug',
- 'Sep',
- 'Oct',
- 'Nov',
- 'Dec'
- ],
- wide: [
- 'January',
- 'February',
- 'March',
- 'April',
- 'May',
- 'June',
- 'July',
- 'August',
- 'September',
- 'October',
- 'November',
- 'December'
- ]
- },
- s = {
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
- short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
- wide: [
- 'Sunday',
- 'Monday',
- 'Tuesday',
- 'Wednesday',
- 'Thursday',
- 'Friday',
- 'Saturday'
- ]
- },
- c = {
- narrow: {
- am: 'a',
- pm: 'p',
- midnight: 'mi',
- noon: 'n',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- abbreviated: {
- am: 'AM',
- pm: 'PM',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- wide: {
- am: 'a.m.',
- pm: 'p.m.',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- }
- },
- d = {
- narrow: {
- am: 'a',
- pm: 'p',
- midnight: 'mi',
- noon: 'n',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- },
- abbreviated: {
- am: 'AM',
- pm: 'PM',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- },
- wide: {
- am: 'a.m.',
- pm: 'p.m.',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'in the morning',
- afternoon: 'in the afternoon',
- evening: 'in the evening',
- night: 'at night'
- }
- },
- f = function (g, w) {
- var x = Number(g),
- y = x % 100;
- if (y > 20 || y < 10)
- switch (y % 10) {
- case 1:
- return x + 'st';
- case 2:
- return x + 'nd';
- case 3:
- return x + 'rd';
- }
- return x + 'th';
- },
- v = {
- ordinalNumber: f,
- era: (0, r.default)({ values: o, defaultWidth: 'wide' }),
- quarter: (0, r.default)({
- values: i,
- defaultWidth: 'wide',
- argumentCallback: function (g) {
- return g - 1;
- }
- }),
- month: (0, r.default)({ values: a, defaultWidth: 'wide' }),
- day: (0, r.default)({ values: s, defaultWidth: 'wide' }),
- dayPeriod: (0, r.default)({
- values: c,
- defaultWidth: 'wide',
- formattingValues: d,
- defaultFormattingWidth: 'wide'
- })
- },
- p = v;
- (t.default = p), (e.exports = t.default);
- })(aG, Lv);
- var Hv = {},
- sG = {
- get exports() {
- return Hv;
- },
- set exports(e) {
- Hv = e;
- }
- },
- jv = {},
- cG = {
- get exports() {
- return jv;
- },
- set exports(e) {
- jv = e;
- }
- };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(i) {
- return function (a) {
- var s =
- arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- c = s.width,
- d = (c && i.matchPatterns[c]) || i.matchPatterns[i.defaultMatchWidth],
- f = a.match(d);
- if (!f) return null;
- var v = f[0],
- p = (c && i.parsePatterns[c]) || i.parsePatterns[i.defaultParseWidth],
- m = Array.isArray(p)
- ? o(p, function (x) {
- return x.test(v);
- })
- : r(p, function (x) {
- return x.test(v);
- }),
- g;
- (g = i.valueCallback ? i.valueCallback(m) : m),
- (g = s.valueCallback ? s.valueCallback(g) : g);
- var w = a.slice(v.length);
- return { value: g, rest: w };
- };
- }
- function r(i, a) {
- for (var s in i) if (i.hasOwnProperty(s) && a(i[s])) return s;
- }
- function o(i, a) {
- for (var s = 0; s < i.length; s++) if (a(i[s])) return s;
- }
- e.exports = t.default;
- })(cG, jv);
- var Wv = {},
- dG = {
- get exports() {
- return Wv;
- },
- set exports(e) {
- Wv = e;
- }
- };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r) {
- return function (o) {
- var i =
- arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- a = o.match(r.matchPattern);
- if (!a) return null;
- var s = a[0],
- c = o.match(r.parsePattern);
- if (!c) return null;
- var d = r.valueCallback ? r.valueCallback(c[0]) : c[0];
- d = i.valueCallback ? i.valueCallback(d) : d;
- var f = o.slice(s.length);
- return { value: d, rest: f };
- };
- }
- e.exports = t.default;
- })(dG, Wv);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(jv),
- o = n(Wv),
- i = /^(\d+)(th|st|nd|rd)?/i,
- a = /\d+/i,
- s = {
- narrow: /^(b|a)/i,
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
- wide: /^(before christ|before common era|anno domini|common era)/i
- },
- c = { any: [/^b/i, /^(a|c)/i] },
- d = {
- narrow: /^[1234]/i,
- abbreviated: /^q[1234]/i,
- wide: /^[1234](th|st|nd|rd)? quarter/i
- },
- f = { any: [/1/i, /2/i, /3/i, /4/i] },
- v = {
- narrow: /^[jfmasond]/i,
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
- },
- p = {
- narrow: [
- /^j/i,
- /^f/i,
- /^m/i,
- /^a/i,
- /^m/i,
- /^j/i,
- /^j/i,
- /^a/i,
- /^s/i,
- /^o/i,
- /^n/i,
- /^d/i
- ],
- any: [
- /^ja/i,
- /^f/i,
- /^mar/i,
- /^ap/i,
- /^may/i,
- /^jun/i,
- /^jul/i,
- /^au/i,
- /^s/i,
- /^o/i,
- /^n/i,
- /^d/i
- ]
- },
- m = {
- narrow: /^[smtwf]/i,
- short: /^(su|mo|tu|we|th|fr|sa)/i,
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
- },
- g = {
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
- },
- w = {
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
- },
- x = {
- any: {
- am: /^a/i,
- pm: /^p/i,
- midnight: /^mi/i,
- noon: /^no/i,
- morning: /morning/i,
- afternoon: /afternoon/i,
- evening: /evening/i,
- night: /night/i
- }
- },
- y = {
- ordinalNumber: (0, o.default)({
- matchPattern: i,
- parsePattern: a,
- valueCallback: function (S) {
- return parseInt(S, 10);
- }
- }),
- era: (0, r.default)({
- matchPatterns: s,
- defaultMatchWidth: 'wide',
- parsePatterns: c,
- defaultParseWidth: 'any'
- }),
- quarter: (0, r.default)({
- matchPatterns: d,
- defaultMatchWidth: 'wide',
- parsePatterns: f,
- defaultParseWidth: 'any',
- valueCallback: function (S) {
- return S + 1;
- }
- }),
- month: (0, r.default)({
- matchPatterns: v,
- defaultMatchWidth: 'wide',
- parsePatterns: p,
- defaultParseWidth: 'any'
- }),
- day: (0, r.default)({
- matchPatterns: m,
- defaultMatchWidth: 'wide',
- parsePatterns: g,
- defaultParseWidth: 'any'
- }),
- dayPeriod: (0, r.default)({
- matchPatterns: w,
- defaultMatchWidth: 'any',
- parsePatterns: x,
- defaultParseWidth: 'any'
- })
- },
- C = y;
- (t.default = C), (e.exports = t.default);
- })(sG, Hv);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(Iv),
- o = n(Dv),
- i = n(Bv),
- a = n(Lv),
- s = n(Hv),
- c = {
- code: 'en-US',
- formatDistance: r.default,
- formatLong: o.default,
- formatRelative: i.default,
- localize: a.default,
- match: s.default,
- options: { weekStartsOn: 0, firstWeekContainsDate: 1 }
- },
- d = c;
- (t.default = d), (e.exports = t.default);
- })(tG, Mv);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(Mv),
- o = r.default;
- (t.default = o), (e.exports = t.default);
- })(eG, Av);
- (function (e, t) {
- var n = Qn.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = R);
- var r = n(xv),
- o = n(Sv),
- i = n(Do),
- a = n(Rv),
- s = n(Ev),
- c = n(Mu),
- d = Ju,
- f = n(Xi),
- v = n(Ar),
- p = Ms,
- m = n(Av),
- g = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,
- w = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
- x = /^'([^]*?)'?$/,
- y = /''/g,
- C = /[a-zA-Z]/;
- function R(_, P, T) {
- var E, z, k, M, A, D, L, H, B, q, X, te, G, Q, re, se, pe, ce;
- (0, v.default)(2, arguments);
- var xe = String(P),
- ve = (0, p.getDefaultOptions)(),
- be =
- (E =
- (z = T == null ? void 0 : T.locale) !== null && z !== void 0
- ? z
- : ve.locale) !== null && E !== void 0
- ? E
- : m.default,
- Ce = (0, f.default)(
- (k =
- (M =
- (A =
- (D = T == null ? void 0 : T.firstWeekContainsDate) !== null &&
- D !== void 0
- ? D
- : T == null ||
- (L = T.locale) === null ||
- L === void 0 ||
- (H = L.options) === null ||
- H === void 0
- ? void 0
- : H.firstWeekContainsDate) !== null && A !== void 0
- ? A
- : ve.firstWeekContainsDate) !== null && M !== void 0
- ? M
- : (B = ve.locale) === null ||
- B === void 0 ||
- (q = B.options) === null ||
- q === void 0
- ? void 0
- : q.firstWeekContainsDate) !== null && k !== void 0
- ? k
- : 1
- );
- if (!(Ce >= 1 && Ce <= 7))
- throw new RangeError(
- 'firstWeekContainsDate must be between 1 and 7 inclusively'
- );
- var ge = (0, f.default)(
- (X =
- (te =
- (G =
- (Q = T == null ? void 0 : T.weekStartsOn) !== null && Q !== void 0
- ? Q
- : T == null ||
- (re = T.locale) === null ||
- re === void 0 ||
- (se = re.options) === null ||
- se === void 0
- ? void 0
- : se.weekStartsOn) !== null && G !== void 0
- ? G
- : ve.weekStartsOn) !== null && te !== void 0
- ? te
- : (pe = ve.locale) === null ||
- pe === void 0 ||
- (ce = pe.options) === null ||
- ce === void 0
- ? void 0
- : ce.weekStartsOn) !== null && X !== void 0
- ? X
- : 0
- );
- if (!(ge >= 0 && ge <= 6))
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- if (!be.localize)
- throw new RangeError('locale must contain localize property');
- if (!be.formatLong)
- throw new RangeError('locale must contain formatLong property');
- var Ae = (0, i.default)(_);
- if (!(0, r.default)(Ae)) throw new RangeError('Invalid time value');
- var j = (0, c.default)(Ae),
- ee = (0, o.default)(Ae, j),
- ne = {
- firstWeekContainsDate: Ce,
- weekStartsOn: ge,
- locale: be,
- _originalDate: Ae
- },
- fe = xe
- .match(w)
- .map(function (ie) {
- var W = ie[0];
- if (W === 'p' || W === 'P') {
- var ae = s.default[W];
- return ae(ie, be.formatLong);
- }
- return ie;
- })
- .join('')
- .match(g)
- .map(function (ie) {
- if (ie === "''") return "'";
- var W = ie[0];
- if (W === "'") return S(ie);
- var ae = a.default[W];
- if (ae)
- return (
- !(T != null && T.useAdditionalWeekYearTokens) &&
- (0, d.isProtectedWeekYearToken)(ie) &&
- (0, d.throwProtectedError)(ie, P, String(_)),
- !(T != null && T.useAdditionalDayOfYearTokens) &&
- (0, d.isProtectedDayOfYearToken)(ie) &&
- (0, d.throwProtectedError)(ie, P, String(_)),
- ae(ee, ie, be.localize, ne)
- );
- if (W.match(C))
- throw new RangeError(
- 'Format string contains an unescaped latin alphabet character `' +
- W +
- '`'
- );
- return ie;
- })
- .join('');
- return fe;
- }
- function S(_) {
- var P = _.match(x);
- return P ? P[1].replace(y, "'") : _;
- }
- e.exports = t.default;
- })(SY, yv);
- const uG = Qu(yv);
- function US(e, t, n) {
- var r = vG(e, n.timeZone, n.locale);
- return r.formatToParts ? fG(r, t) : hG(r, t);
- }
- function fG(e, t) {
- for (var n = e.formatToParts(t), r = n.length - 1; r >= 0; --r)
- if (n[r].type === 'timeZoneName') return n[r].value;
- }
- function hG(e, t) {
- var n = e.format(t).replace(/\u200E/g, ''),
- r = / [\w-+ ]+$/.exec(n);
- return r ? r[0].substr(1) : '';
- }
- function vG(e, t, n) {
- if (n && !n.code)
- throw new Error(
- "date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`"
- );
- return new Intl.DateTimeFormat(n ? [n.code, 'en-US'] : void 0, {
- timeZone: t,
- timeZoneName: e
- });
- }
- function pG(e, t) {
- var n = yG(t);
- return n.formatToParts ? mG(n, e) : bG(n, e);
- }
- var gG = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 };
- function mG(e, t) {
- try {
- for (var n = e.formatToParts(t), r = [], o = 0; o < n.length; o++) {
- var i = gG[n[o].type];
- i >= 0 && (r[i] = parseInt(n[o].value, 10));
- }
- return r;
- } catch (a) {
- if (a instanceof RangeError) return [NaN];
- throw a;
- }
- }
- function bG(e, t) {
- var n = e.format(t).replace(/\u200E/g, ''),
- r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
- return [r[3], r[1], r[2], r[4], r[5], r[6]];
- }
- var Dm = {};
- function yG(e) {
- if (!Dm[e]) {
- var t = new Intl.DateTimeFormat('en-US', {
- hour12: !1,
- timeZone: 'America/New_York',
- year: 'numeric',
- month: 'numeric',
- day: '2-digit',
- hour: '2-digit',
- minute: '2-digit',
- second: '2-digit'
- }).format(new Date('2014-06-25T04:00:00.123Z')),
- n =
- t === '06/25/2014, 00:00:00' || t === '06/25/2014 00:00:00';
- Dm[e] = n
- ? new Intl.DateTimeFormat('en-US', {
- hour12: !1,
- timeZone: e,
- year: 'numeric',
- month: 'numeric',
- day: '2-digit',
- hour: '2-digit',
- minute: '2-digit',
- second: '2-digit'
- })
- : new Intl.DateTimeFormat('en-US', {
- hourCycle: 'h23',
- timeZone: e,
- year: 'numeric',
- month: 'numeric',
- day: '2-digit',
- hour: '2-digit',
- minute: '2-digit',
- second: '2-digit'
- });
- }
- return Dm[e];
- }
- function h3(e, t, n, r, o, i, a) {
- var s = new Date(0);
- return s.setUTCFullYear(e, t, n), s.setUTCHours(r, o, i, a), s;
- }
- var VS = 36e5,
- xG = 6e4,
- Fm = {
- timezone: /([Z+-].*)$/,
- timezoneZ: /^(Z)$/,
- timezoneHH: /^([+-]\d{2})$/,
- timezoneHHMM: /^([+-]\d{2}):?(\d{2})$/
- };
- function Dy(e, t, n) {
- var r, o;
- if (!e || ((r = Fm.timezoneZ.exec(e)), r)) return 0;
- var i;
- if (((r = Fm.timezoneHH.exec(e)), r))
- return (i = parseInt(r[1], 10)), KS(i) ? -(i * VS) : NaN;
- if (((r = Fm.timezoneHHMM.exec(e)), r)) {
- i = parseInt(r[1], 10);
- var a = parseInt(r[2], 10);
- return KS(i, a) ? ((o = Math.abs(i) * VS + a * xG), i > 0 ? -o : o) : NaN;
- }
- if (SG(e)) {
- t = new Date(t || Date.now());
- var s = n ? t : wG(t),
- c = Zb(s, e),
- d = n ? c : CG(t, c, e);
- return -d;
- }
- return NaN;
- }
- function wG(e) {
- return h3(
- e.getFullYear(),
- e.getMonth(),
- e.getDate(),
- e.getHours(),
- e.getMinutes(),
- e.getSeconds(),
- e.getMilliseconds()
- );
- }
- function Zb(e, t) {
- var n = pG(e, t),
- r = h3(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime(),
- o = e.getTime(),
- i = o % 1e3;
- return (o -= i >= 0 ? i : 1e3 + i), r - o;
- }
- function CG(e, t, n) {
- var r = e.getTime(),
- o = r - t,
- i = Zb(new Date(o), n);
- if (t === i) return t;
- o -= i - t;
- var a = Zb(new Date(o), n);
- return i === a ? i : Math.max(i, a);
- }
- function KS(e, t) {
- return -23 <= e && e <= 23 && (t == null || (0 <= t && t <= 59));
- }
- var qS = {};
- function SG(e) {
- if (qS[e]) return !0;
- try {
- return new Intl.DateTimeFormat(void 0, { timeZone: e }), (qS[e] = !0), !0;
- } catch {
- return !1;
- }
- }
- var _G = 60 * 1e3,
- RG = {
- X: function (e, t, n, r) {
- var o = Bm(r.timeZone, r._originalDate || e);
- if (o === 0) return 'Z';
- switch (t) {
- case 'X':
- return YS(o);
- case 'XXXX':
- case 'XX':
- return mc(o);
- case 'XXXXX':
- case 'XXX':
- default:
- return mc(o, ':');
- }
- },
- x: function (e, t, n, r) {
- var o = Bm(r.timeZone, r._originalDate || e);
- switch (t) {
- case 'x':
- return YS(o);
- case 'xxxx':
- case 'xx':
- return mc(o);
- case 'xxxxx':
- case 'xxx':
- default:
- return mc(o, ':');
- }
- },
- O: function (e, t, n, r) {
- var o = Bm(r.timeZone, r._originalDate || e);
- switch (t) {
- case 'O':
- case 'OO':
- case 'OOO':
- return 'GMT' + PG(o, ':');
- case 'OOOO':
- default:
- return 'GMT' + mc(o, ':');
- }
- },
- z: function (e, t, n, r) {
- var o = r._originalDate || e;
- switch (t) {
- case 'z':
- case 'zz':
- case 'zzz':
- return US('short', o, r);
- case 'zzzz':
- default:
- return US('long', o, r);
- }
- }
- };
- function Bm(e, t) {
- var n = e ? Dy(e, t, !0) / _G : t.getTimezoneOffset();
- if (Number.isNaN(n))
- throw new RangeError('Invalid time zone specified: ' + e);
- return n;
- }
- function Uv(e, t) {
- for (var n = e < 0 ? '-' : '', r = Math.abs(e).toString(); r.length < t; )
- r = '0' + r;
- return n + r;
- }
- function mc(e, t) {
- var n = t || '',
- r = e > 0 ? '-' : '+',
- o = Math.abs(e),
- i = Uv(Math.floor(o / 60), 2),
- a = Uv(Math.floor(o % 60), 2);
- return r + i + n + a;
- }
- function YS(e, t) {
- if (e % 60 === 0) {
- var n = e > 0 ? '-' : '+';
- return n + Uv(Math.abs(e) / 60, 2);
- }
- return mc(e, t);
- }
- function PG(e, t) {
- var n = e > 0 ? '-' : '+',
- r = Math.abs(e),
- o = Math.floor(r / 60),
- i = r % 60;
- if (i === 0) return n + String(o);
- var a = t || '';
- return n + String(o) + a + Uv(i, 2);
- }
- const kG = RG;
- var TG =
- /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,
- Lm = 36e5,
- GS = 6e4,
- $G = 2,
- oo = {
- dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
- datePattern: /^([0-9W+-]+)(.*)/,
- plainTime: /:/,
- YY: /^(\d{2})$/,
- YYY: [/^([+-]\d{2})$/, /^([+-]\d{3})$/, /^([+-]\d{4})$/],
- YYYY: /^(\d{4})/,
- YYYYY: [/^([+-]\d{4})/, /^([+-]\d{5})/, /^([+-]\d{6})/],
- MM: /^-(\d{2})$/,
- DDD: /^-?(\d{3})$/,
- MMDD: /^-?(\d{2})-?(\d{2})$/,
- Www: /^-?W(\d{2})$/,
- WwwD: /^-?W(\d{2})-?(\d{1})$/,
- HH: /^(\d{2}([.,]\d*)?)$/,
- HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
- HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
- timeZone: TG
- };
- function v3(e, t) {
- if (arguments.length < 1)
- throw new TypeError(
- '1 argument required, but only ' + arguments.length + ' present'
- );
- if (e === null) return new Date(NaN);
- var n = t || {},
- r = n.additionalDigits == null ? $G : EY(n.additionalDigits);
- if (r !== 2 && r !== 1 && r !== 0)
- throw new RangeError('additionalDigits must be 0, 1 or 2');
- if (
- e instanceof Date ||
- (typeof e == 'object' &&
- Object.prototype.toString.call(e) === '[object Date]')
- )
- return new Date(e.getTime());
- if (
- typeof e == 'number' ||
- Object.prototype.toString.call(e) === '[object Number]'
- )
- return new Date(e);
- if (
- !(
- typeof e == 'string' ||
- Object.prototype.toString.call(e) === '[object String]'
- )
- )
- return new Date(NaN);
- var o = OG(e),
- i = zG(o.date, r),
- a = i.year,
- s = i.restDateString,
- c = EG(s, a);
- if (isNaN(c)) return new Date(NaN);
- if (c) {
- var d = c.getTime(),
- f = 0,
- v;
- if (o.time && ((f = AG(o.time)), isNaN(f))) return new Date(NaN);
- if (o.timeZone || n.timeZone) {
- if (((v = Dy(o.timeZone || n.timeZone, new Date(d + f))), isNaN(v)))
- return new Date(NaN);
- } else (v = WS(new Date(d + f))), (v = WS(new Date(d + f + v)));
- return new Date(d + f + v);
- } else return new Date(NaN);
- }
- function OG(e) {
- var t = {},
- n = oo.dateTimePattern.exec(e),
- r;
- if (
- (n
- ? ((t.date = n[1]), (r = n[3]))
- : ((n = oo.datePattern.exec(e)),
- n ? ((t.date = n[1]), (r = n[2])) : ((t.date = null), (r = e))),
- r)
- ) {
- var o = oo.timeZone.exec(r);
- o
- ? ((t.time = r.replace(o[1], '')), (t.timeZone = o[1].trim()))
- : (t.time = r);
- }
- return t;
- }
- function zG(e, t) {
- var n = oo.YYY[t],
- r = oo.YYYYY[t],
- o;
- if (((o = oo.YYYY.exec(e) || r.exec(e)), o)) {
- var i = o[1];
- return { year: parseInt(i, 10), restDateString: e.slice(i.length) };
- }
- if (((o = oo.YY.exec(e) || n.exec(e)), o)) {
- var a = o[1];
- return { year: parseInt(a, 10) * 100, restDateString: e.slice(a.length) };
- }
- return { year: null };
- }
- function EG(e, t) {
- if (t === null) return null;
- var n, r, o, i;
- if (e.length === 0) return (r = new Date(0)), r.setUTCFullYear(t), r;
- if (((n = oo.MM.exec(e)), n))
- return (
- (r = new Date(0)),
- (o = parseInt(n[1], 10) - 1),
- ZS(t, o) ? (r.setUTCFullYear(t, o), r) : new Date(NaN)
- );
- if (((n = oo.DDD.exec(e)), n)) {
- r = new Date(0);
- var a = parseInt(n[1], 10);
- return DG(t, a) ? (r.setUTCFullYear(t, 0, a), r) : new Date(NaN);
- }
- if (((n = oo.MMDD.exec(e)), n)) {
- (r = new Date(0)), (o = parseInt(n[1], 10) - 1);
- var s = parseInt(n[2], 10);
- return ZS(t, o, s) ? (r.setUTCFullYear(t, o, s), r) : new Date(NaN);
- }
- if (((n = oo.Www.exec(e)), n))
- return (i = parseInt(n[1], 10) - 1), QS(t, i) ? XS(t, i) : new Date(NaN);
- if (((n = oo.WwwD.exec(e)), n)) {
- i = parseInt(n[1], 10) - 1;
- var c = parseInt(n[2], 10) - 1;
- return QS(t, i, c) ? XS(t, i, c) : new Date(NaN);
- }
- return null;
- }
- function AG(e) {
- var t, n, r;
- if (((t = oo.HH.exec(e)), t))
- return (
- (n = parseFloat(t[1].replace(',', '.'))), Nm(n) ? (n % 24) * Lm : NaN
- );
- if (((t = oo.HHMM.exec(e)), t))
- return (
- (n = parseInt(t[1], 10)),
- (r = parseFloat(t[2].replace(',', '.'))),
- Nm(n, r) ? (n % 24) * Lm + r * GS : NaN
- );
- if (((t = oo.HHMMSS.exec(e)), t)) {
- (n = parseInt(t[1], 10)), (r = parseInt(t[2], 10));
- var o = parseFloat(t[3].replace(',', '.'));
- return Nm(n, r, o) ? (n % 24) * Lm + r * GS + o * 1e3 : NaN;
- }
- return null;
- }
- function XS(e, t, n) {
- (t = t || 0), (n = n || 0);
- var r = new Date(0);
- r.setUTCFullYear(e, 0, 4);
- var o = r.getUTCDay() || 7,
- i = t * 7 + n + 1 - o;
- return r.setUTCDate(r.getUTCDate() + i), r;
- }
- var MG = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
- IG = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
- function p3(e) {
- return e % 400 === 0 || (e % 4 === 0 && e % 100 !== 0);
- }
- function ZS(e, t, n) {
- if (t < 0 || t > 11) return !1;
- if (n != null) {
- if (n < 1) return !1;
- var r = p3(e);
- if ((r && n > IG[t]) || (!r && n > MG[t])) return !1;
- }
- return !0;
- }
- function DG(e, t) {
- if (t < 1) return !1;
- var n = p3(e);
- return !((n && t > 366) || (!n && t > 365));
- }
- function QS(e, t, n) {
- return !(t < 0 || t > 52 || (n != null && (n < 0 || n > 6)));
- }
- function Nm(e, t, n) {
- return !(
- (e != null && (e < 0 || e >= 25)) ||
- (t != null && (t < 0 || t >= 60)) ||
- (n != null && (n < 0 || n >= 60))
- );
- }
- var FG = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
- function BG(e, t, n) {
- var r = String(t),
- o = n || {},
- i = r.match(FG);
- if (i) {
- var a = v3(e, o);
- r = i.reduce(function (s, c) {
- if (c[0] === "'") return s;
- var d = s.indexOf(c),
- f = s[d - 1] === "'",
- v = s.replace(c, "'" + kG[c[0]](a, c, null, o) + "'");
- return f ? v.substring(0, d - 1) + v.substring(d + 1) : v;
- }, r);
- }
- return uG(e, r, o);
- }
- function LG(e, t, n) {
- var r = v3(e, n),
- o = Dy(t, r, !0),
- i = new Date(r.getTime() - o),
- a = new Date(0);
- return (
- a.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()),
- a.setHours(
- i.getUTCHours(),
- i.getUTCMinutes(),
- i.getUTCSeconds(),
- i.getUTCMilliseconds()
- ),
- a
- );
- }
- function NG(e, t, n, r) {
- var o = CY(r);
- return (o.timeZone = t), BG(LG(e, t), n, o);
- }
- const Wd = {
- amHours: [
- '00',
- '01',
- '02',
- '03',
- '04',
- '05',
- '06',
- '07',
- '08',
- '09',
- '10',
- '11'
- ],
- pmHours: [
- '12',
- '01',
- '02',
- '03',
- '04',
- '05',
- '06',
- '07',
- '08',
- '09',
- '10',
- '11'
- ],
- hours: [
- '00',
- '01',
- '02',
- '03',
- '04',
- '05',
- '06',
- '07',
- '08',
- '09',
- '10',
- '11',
- '12',
- '13',
- '14',
- '15',
- '16',
- '17',
- '18',
- '19',
- '20',
- '21',
- '22',
- '23'
- ],
- minutes: [
- '00',
- '01',
- '02',
- '03',
- '04',
- '05',
- '06',
- '07',
- '08',
- '09',
- '10',
- '11',
- '12',
- '13',
- '14',
- '15',
- '16',
- '17',
- '18',
- '19',
- '20',
- '21',
- '22',
- '23',
- '24',
- '25',
- '26',
- '27',
- '28',
- '29',
- '30',
- '31',
- '32',
- '33',
- '34',
- '35',
- '36',
- '37',
- '38',
- '39',
- '40',
- '41',
- '42',
- '43',
- '44',
- '45',
- '46',
- '47',
- '48',
- '49',
- '50',
- '51',
- '52',
- '53',
- '54',
- '55',
- '56',
- '57',
- '58',
- '59'
- ],
- seconds: [
- '00',
- '01',
- '02',
- '03',
- '04',
- '05',
- '06',
- '07',
- '08',
- '09',
- '10',
- '11',
- '12',
- '13',
- '14',
- '15',
- '16',
- '17',
- '18',
- '19',
- '20',
- '21',
- '22',
- '23',
- '24',
- '25',
- '26',
- '27',
- '28',
- '29',
- '30',
- '31',
- '32',
- '33',
- '34',
- '35',
- '36',
- '37',
- '38',
- '39',
- '40',
- '41',
- '42',
- '43',
- '44',
- '45',
- '46',
- '47',
- '48',
- '49',
- '50',
- '51',
- '52',
- '53',
- '54',
- '55',
- '56',
- '57',
- '58',
- '59'
- ],
- period: ['AM', 'PM']
- };
- function Hm(e) {
- return `00${e}`.slice(-2);
- }
- function Ud(e, t, n) {
- return Array.isArray(t)
- ? (n === 'am'
- ? t.filter(r => r < 12)
- : n === 'pm'
- ? t.filter(r => r >= 12).map(r => (r === 12 ? 12 : r - 12))
- : t
- ).map(r => Hm(r))
- : typeof t == 'number'
- ? n === 'am'
- ? e.filter(r => {
- const o = Number(r);
- return o < 12 && o % t === 0;
- })
- : n === 'pm'
- ? e
- .filter(r => {
- const o = Number(r);
- return o >= 12 && o % t === 0;
- })
- .map(r => {
- const o = Number(r);
- return Hm(o === 12 ? 12 : o - 12);
- })
- : e.filter(r => Number(r) % t === 0)
- : n === 'am'
- ? e.filter(r => Number(r) < 12)
- : n === 'pm'
- ? e
- .map(r => Number(r))
- .filter(r => Number(r) >= 12)
- .map(r => Hm(r === 12 ? 12 : r - 12))
- : e;
- }
- function Ph(e, t, n) {
- return n ? (typeof n == 'number' ? e % n === 0 : n.includes(e)) : !0;
- }
- function HG(e, t, n) {
- const r = Ud(Wd[t], n).map(Number);
- let o, i;
- for (let a = 0; a < r.length; ++a) {
- const s = r[a];
- if (s === e) return s;
- if (s > e) {
- i = s;
- break;
- }
- o = s;
- }
- return o === void 0
- ? (i ||
- io('time-picker', "Please set 'hours' or 'minutes' or 'seconds' props"),
- i)
- : i === void 0 || i - e > e - o
- ? o
- : i;
- }
- function jG(e) {
- return rl(e) < 12 ? 'am' : 'pm';
- }
- const g3 = 'n-time-picker',
- kh = ke({
- name: 'TimePickerPanelCol',
- props: {
- clsPrefix: { type: String, required: !0 },
- data: { type: Array, required: !0 },
- activeValue: { type: Number, default: null },
- onItemClick: Function
- },
- render() {
- const { activeValue: e, onItemClick: t, clsPrefix: n } = this;
- return this.data.map(r => {
- const { label: o, disabled: i, value: a } = r,
- s = e === a;
- return h(
- 'div',
- {
- key: o,
- 'data-active': s ? '' : null,
- class: [
- `${n}-time-picker-col__item`,
- s && `${n}-time-picker-col__item--active`,
- i && `${n}-time-picker-col__item--disabled`
- ],
- onClick:
- t && !i
- ? () => {
- t(a);
- }
- : void 0
- },
- o
- );
- });
- }
- }),
- WG = {
- actions: { type: Array, default: () => ['now', 'confirm'] },
- showHour: { type: Boolean, default: !0 },
- showMinute: { type: Boolean, default: !0 },
- showSecond: { type: Boolean, default: !0 },
- showPeriod: { type: Boolean, default: !0 },
- isHourInvalid: Boolean,
- isMinuteInvalid: Boolean,
- isSecondInvalid: Boolean,
- isAmPmInvalid: Boolean,
- isValueInvalid: Boolean,
- hourValue: { type: Number, default: null },
- minuteValue: { type: Number, default: null },
- secondValue: { type: Number, default: null },
- amPmValue: { type: String, default: null },
- isHourDisabled: Function,
- isMinuteDisabled: Function,
- isSecondDisabled: Function,
- onHourClick: { type: Function, required: !0 },
- onMinuteClick: { type: Function, required: !0 },
- onSecondClick: { type: Function, required: !0 },
- onAmPmClick: { type: Function, required: !0 },
- onNowClick: Function,
- nowText: String,
- confirmText: String,
- transitionDisabled: Boolean,
- onConfirmClick: Function,
- onFocusin: Function,
- onFocusout: Function,
- onFocusDetectorFocus: Function,
- onKeydown: Function,
- hours: [Number, Array],
- minutes: [Number, Array],
- seconds: [Number, Array],
- use12Hours: Boolean
- },
- UG = ke({
- name: 'TimePickerPanel',
- props: WG,
- setup(e) {
- const { mergedThemeRef: t, mergedClsPrefixRef: n } = Ze(g3),
- r = I(() => {
- const {
- isHourDisabled: s,
- hours: c,
- use12Hours: d,
- amPmValue: f
- } = e;
- if (d) {
- const v = f ?? jG(Date.now());
- return Ud(Wd.hours, c, v).map(p => {
- const m = Number(p),
- g = v === 'pm' && m !== 12 ? m + 12 : m;
- return { label: p, value: g, disabled: s ? s(g) : !1 };
- });
- } else
- return Ud(Wd.hours, c).map(v => ({
- label: v,
- value: Number(v),
- disabled: s ? s(Number(v)) : !1
- }));
- }),
- o = I(() => {
- const { isMinuteDisabled: s, minutes: c } = e;
- return Ud(Wd.minutes, c).map(d => ({
- label: d,
- value: Number(d),
- disabled: s ? s(Number(d), e.hourValue) : !1
- }));
- }),
- i = I(() => {
- const { isSecondDisabled: s, seconds: c } = e;
- return Ud(Wd.seconds, c).map(d => ({
- label: d,
- value: Number(d),
- disabled: s ? s(Number(d), e.minuteValue, e.hourValue) : !1
- }));
- }),
- a = I(() => {
- const { isHourDisabled: s } = e;
- let c = !0,
- d = !0;
- for (let f = 0; f < 12; ++f)
- if (!(s != null && s(f))) {
- c = !1;
- break;
- }
- for (let f = 12; f < 24; ++f)
- if (!(s != null && s(f))) {
- d = !1;
- break;
- }
- return [
- { label: 'AM', value: 'am', disabled: c },
- { label: 'PM', value: 'pm', disabled: d }
- ];
- });
- return {
- mergedTheme: t,
- mergedClsPrefix: n,
- hours: r,
- minutes: o,
- seconds: i,
- amPm: a,
- hourScrollRef: Z(null),
- minuteScrollRef: Z(null),
- secondScrollRef: Z(null),
- amPmScrollRef: Z(null)
- };
- },
- render() {
- var e, t, n;
- const { mergedClsPrefix: r, mergedTheme: o } = this;
- return h(
- 'div',
- {
- tabindex: 0,
- class: `${r}-time-picker-panel`,
- onFocusin: this.onFocusin,
- onFocusout: this.onFocusout,
- onKeydown: this.onKeydown
- },
- h(
- 'div',
- { class: `${r}-time-picker-cols` },
- this.showHour
- ? h(
- 'div',
- {
- class: [
- `${r}-time-picker-col`,
- this.isHourInvalid && `${r}-time-picker-col--invalid`,
- this.transitionDisabled &&
- `${r}-time-picker-col--transition-disabled`
- ]
- },
- h(
- yr,
- {
- ref: 'hourScrollRef',
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar
- },
- {
- default: () => [
- h(kh, {
- clsPrefix: r,
- data: this.hours,
- activeValue: this.hourValue,
- onItemClick: this.onHourClick
- }),
- h('div', { class: `${r}-time-picker-col__padding` })
- ]
- }
- )
- )
- : null,
- this.showMinute
- ? h(
- 'div',
- {
- class: [
- `${r}-time-picker-col`,
- this.transitionDisabled &&
- `${r}-time-picker-col--transition-disabled`,
- this.isMinuteInvalid && `${r}-time-picker-col--invalid`
- ]
- },
- h(
- yr,
- {
- ref: 'minuteScrollRef',
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar
- },
- {
- default: () => [
- h(kh, {
- clsPrefix: r,
- data: this.minutes,
- activeValue: this.minuteValue,
- onItemClick: this.onMinuteClick
- }),
- h('div', { class: `${r}-time-picker-col__padding` })
- ]
- }
- )
- )
- : null,
- this.showSecond
- ? h(
- 'div',
- {
- class: [
- `${r}-time-picker-col`,
- this.isSecondInvalid && `${r}-time-picker-col--invalid`,
- this.transitionDisabled &&
- `${r}-time-picker-col--transition-disabled`
- ]
- },
- h(
- yr,
- {
- ref: 'secondScrollRef',
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar
- },
- {
- default: () => [
- h(kh, {
- clsPrefix: r,
- data: this.seconds,
- activeValue: this.secondValue,
- onItemClick: this.onSecondClick
- }),
- h('div', { class: `${r}-time-picker-col__padding` })
- ]
- }
- )
- )
- : null,
- this.use12Hours
- ? h(
- 'div',
- {
- class: [
- `${r}-time-picker-col`,
- this.isAmPmInvalid && `${r}-time-picker-col--invalid`,
- this.transitionDisabled &&
- `${r}-time-picker-col--transition-disabled`
- ]
- },
- h(
- yr,
- {
- ref: 'amPmScrollRef',
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar
- },
- {
- default: () => [
- h(kh, {
- clsPrefix: r,
- data: this.amPm,
- activeValue: this.amPmValue,
- onItemClick: this.onAmPmClick
- }),
- h('div', { class: `${r}-time-picker-col__padding` })
- ]
- }
- )
- )
- : null
- ),
- !((e = this.actions) === null || e === void 0) && e.length
- ? h(
- 'div',
- { class: `${r}-time-picker-actions` },
- !((t = this.actions) === null || t === void 0) &&
- t.includes('now')
- ? h(
- nr,
- {
- size: 'tiny',
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- onClick: this.onNowClick
- },
- { default: () => this.nowText }
- )
- : null,
- !((n = this.actions) === null || n === void 0) &&
- n.includes('confirm')
- ? h(
- nr,
- {
- size: 'tiny',
- type: 'primary',
- class: `${r}-time-picker-actions__confirm`,
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- disabled: this.isValueInvalid,
- onClick: this.onConfirmClick
- },
- { default: () => this.confirmText }
- )
- : null
- )
- : null,
- h(_l, { onFocus: this.onFocusDetectorFocus })
- );
- }
- }),
- VG = F([
- O(
- 'time-picker',
- `
- z-index: auto;
- position: relative;
- `,
- [
- O(
- 'time-picker-icon',
- `
- color: var(--n-icon-color-override);
- transition: color .3s var(--n-bezier);
- `
- ),
- U('disabled', [
- O(
- 'time-picker-icon',
- `
- color: var(--n-icon-color-disabled-override);
- `
- )
- ])
- ]
- ),
- O(
- 'time-picker-panel',
- `
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- outline: none;
- font-size: var(--n-item-font-size);
- border-radius: var(--n-border-radius);
- margin: 4px 0;
- min-width: 104px;
- overflow: hidden;
- background-color: var(--n-panel-color);
- box-shadow: var(--n-panel-box-shadow);
- `,
- [
- gi(),
- O(
- 'time-picker-actions',
- `
- padding: var(--n-panel-action-padding);
- align-items: center;
- display: flex;
- justify-content: space-evenly;
- `
- ),
- O(
- 'time-picker-cols',
- `
- height: calc(var(--n-item-height) * 6);
- display: flex;
- position: relative;
- transition: border-color .3s var(--n-bezier);
- border-bottom: 1px solid var(--n-panel-divider-color);
- `
- ),
- O(
- 'time-picker-col',
- `
- flex-grow: 1;
- min-width: var(--n-item-width);
- height: calc(var(--n-item-height) * 6);
- flex-direction: column;
- transition: box-shadow .3s var(--n-bezier);
- `,
- [
- U('transition-disabled', [
- V('item', 'transition: none;', [
- F('&::before', 'transition: none;')
- ])
- ]),
- V(
- 'padding',
- `
- height: calc(var(--n-item-height) * 5);
- `
- ),
- F('&:first-child', 'min-width: calc(var(--n-item-width) + 4px);', [
- V('item', [F('&::before', 'left: 4px;')])
- ]),
- V(
- 'item',
- `
- cursor: pointer;
- height: var(--n-item-height);
- display: flex;
- align-items: center;
- justify-content: center;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- text-decoration-color .3s var(--n-bezier);
- background: #0000;
- text-decoration-color: #0000;
- color: var(--n-item-text-color);
- z-index: 0;
- box-sizing: border-box;
- padding-top: 4px;
- position: relative;
- `,
- [
- F(
- '&::before',
- `
- content: "";
- transition: background-color .3s var(--n-bezier);
- z-index: -1;
- position: absolute;
- left: 0;
- right: 4px;
- top: 4px;
- bottom: 0;
- border-radius: var(--n-item-border-radius);
- `
- ),
- jt('disabled', [
- F(
- '&:hover::before',
- `
- background-color: var(--n-item-color-hover);
- `
- )
- ]),
- U(
- 'active',
- `
- color: var(--n-item-text-color-active);
- `,
- [
- F(
- '&::before',
- `
- background-color: var(--n-item-color-hover);
- `
- )
- ]
- ),
- U(
- 'disabled',
- `
- opacity: var(--n-item-opacity-disabled);
- cursor: not-allowed;
- `
- )
- ]
- ),
- U('invalid', [
- V('item', [
- U(
- 'active',
- `
- text-decoration: line-through;
- text-decoration-color: var(--n-item-text-color-active);
- `
- )
- ])
- ])
- ]
- )
- ]
- )
- ]);
- function jm(e, t) {
- return e === void 0
- ? !0
- : Array.isArray(e)
- ? e.every(n => n >= 0 && n <= t)
- : e >= 0 && e <= t;
- }
- const KG = Object.assign(Object.assign({}, Ke.props), {
- to: Yr.propTo,
- bordered: { type: Boolean, default: void 0 },
- actions: Array,
- defaultValue: { type: Number, default: null },
- defaultFormattedValue: String,
- placeholder: String,
- placement: { type: String, default: 'bottom-start' },
- value: Number,
- format: { type: String, default: 'HH:mm:ss' },
- valueFormat: String,
- formattedValue: String,
- isHourDisabled: Function,
- size: String,
- isMinuteDisabled: Function,
- isSecondDisabled: Function,
- inputReadonly: Boolean,
- clearable: Boolean,
- status: String,
- 'onUpdate:value': [Function, Array],
- onUpdateValue: [Function, Array],
- 'onUpdate:show': [Function, Array],
- onUpdateShow: [Function, Array],
- onUpdateFormattedValue: [Function, Array],
- 'onUpdate:formattedValue': [Function, Array],
- onBlur: [Function, Array],
- onConfirm: [Function, Array],
- onClear: Function,
- onFocus: [Function, Array],
- timeZone: String,
- showIcon: { type: Boolean, default: !0 },
- disabled: { type: Boolean, default: void 0 },
- show: { type: Boolean, default: void 0 },
- hours: { type: [Number, Array], validator: e => jm(e, 23) },
- minutes: { type: [Number, Array], validator: e => jm(e, 59) },
- seconds: { type: [Number, Array], validator: e => jm(e, 59) },
- use12Hours: Boolean,
- stateful: { type: Boolean, default: !0 },
- onChange: [Function, Array]
- }),
- Vv = ke({
- name: 'TimePicker',
- props: KG,
- setup(e) {
- const {
- mergedBorderedRef: t,
- mergedClsPrefixRef: n,
- namespaceRef: r,
- inlineThemeDisabled: o
- } = yt(e),
- { localeRef: i, dateLocaleRef: a } = Ta('TimePicker'),
- s = ei(e),
- { mergedSizeRef: c, mergedDisabledRef: d, mergedStatusRef: f } = s,
- v = Ke('TimePicker', '-time-picker', VG, u3, e, n),
- p = X0(),
- m = Z(null),
- g = Z(null),
- w = I(() => ({ locale: a.value.locale }));
- function x(Pe) {
- return Pe === null
- ? null
- : xo(Pe, e.valueFormat || e.format, new Date(), w.value).getTime();
- }
- const { defaultValue: y, defaultFormattedValue: C } = e,
- R = Z(C !== void 0 ? x(C) : y),
- S = I(() => {
- const { formattedValue: Pe } = e;
- if (Pe !== void 0) return x(Pe);
- const { value: Ve } = e;
- return Ve !== void 0 ? Ve : R.value;
- }),
- _ = I(() => {
- const { timeZone: Pe } = e;
- return Pe
- ? (Ve, nt, Ot) => NG(Ve, Pe, nt, Ot)
- : (Ve, nt, Ot) => Xn(Ve, nt, Ot);
- }),
- P = Z('');
- $t(
- () => e.timeZone,
- () => {
- const Pe = S.value;
- P.value = Pe === null ? '' : _.value(Pe, e.format, w.value);
- },
- { immediate: !0 }
- );
- const T = Z(!1),
- E = Ie(e, 'show'),
- z = En(E, T),
- k = Z(S.value),
- M = Z(!1),
- A = I(() => i.value.now),
- D = I(() =>
- e.placeholder !== void 0 ? e.placeholder : i.value.placeholder
- ),
- L = I(() => i.value.negativeText),
- H = I(() => i.value.positiveText),
- B = I(() => /H|h|K|k/.test(e.format)),
- q = I(() => e.format.includes('m')),
- X = I(() => e.format.includes('s')),
- te = I(() => {
- const { isHourDisabled: Pe } = e;
- return ce.value === null
- ? !1
- : Ph(ce.value, 'hours', e.hours)
- ? Pe
- ? Pe(ce.value)
- : !1
- : !0;
- }),
- G = I(() => {
- const { value: Pe } = xe,
- { value: Ve } = ce;
- if (Pe === null || Ve === null) return !1;
- if (!Ph(Pe, 'minutes', e.minutes)) return !0;
- const { isMinuteDisabled: nt } = e;
- return nt ? nt(Pe, Ve) : !1;
- }),
- Q = I(() => {
- const { value: Pe } = xe,
- { value: Ve } = ce,
- { value: nt } = ve;
- if (nt === null || Pe === null || Ve === null) return !1;
- if (!Ph(nt, 'seconds', e.seconds)) return !0;
- const { isSecondDisabled: Ot } = e;
- return Ot ? Ot(nt, Pe, Ve) : !1;
- }),
- re = I(() => te.value || G.value || Q.value),
- se = I(() => e.format.length + 4),
- pe = I(() => {
- const { value: Pe } = S;
- return Pe === null ? null : rl(Pe) < 12 ? 'am' : 'pm';
- }),
- ce = I(() => {
- const { value: Pe } = S;
- return Pe === null ? null : Number(_.value(Pe, 'HH', w.value));
- }),
- xe = I(() => {
- const { value: Pe } = S;
- return Pe === null ? null : Number(_.value(Pe, 'mm', w.value));
- }),
- ve = I(() => {
- const { value: Pe } = S;
- return Pe === null ? null : Number(_.value(Pe, 'ss', w.value));
- });
- function be(Pe, Ve) {
- const { onUpdateFormattedValue: nt, 'onUpdate:formattedValue': Ot } = e;
- nt && Me(nt, Pe, Ve), Ot && Me(Ot, Pe, Ve);
- }
- function Ce(Pe) {
- return Pe === null ? null : _.value(Pe, e.valueFormat || e.format);
- }
- function ge(Pe) {
- const { onUpdateValue: Ve, 'onUpdate:value': nt, onChange: Ot } = e,
- { nTriggerFormChange: $n, nTriggerFormInput: jn } = s,
- Zt = Ce(Pe);
- Ve && Me(Ve, Pe, Zt),
- nt && Me(nt, Pe, Zt),
- Ot && Me(Ot, Pe, Zt),
- be(Zt, Pe),
- (R.value = Pe),
- $n(),
- jn();
- }
- function Ae(Pe) {
- const { onFocus: Ve } = e,
- { nTriggerFormFocus: nt } = s;
- Ve && Me(Ve, Pe), nt();
- }
- function j(Pe) {
- const { onBlur: Ve } = e,
- { nTriggerFormBlur: nt } = s;
- Ve && Me(Ve, Pe), nt();
- }
- function ee() {
- const { onConfirm: Pe } = e;
- Pe && Me(Pe, S.value, Ce(S.value));
- }
- function ne(Pe) {
- var Ve;
- Pe.stopPropagation(),
- ge(null),
- Ge(null),
- (Ve = e.onClear) === null || Ve === void 0 || Ve.call(e);
- }
- function fe() {
- Xe({ returnFocus: !0 });
- }
- function ie(Pe) {
- Pe.key === 'Escape' && z.value && Ru(Pe);
- }
- function W(Pe) {
- var Ve;
- switch (Pe.key) {
- case 'Escape':
- z.value && (Ru(Pe), Xe({ returnFocus: !0 }));
- break;
- case 'Tab':
- p.shift &&
- Pe.target ===
- ((Ve = g.value) === null || Ve === void 0 ? void 0 : Ve.$el) &&
- (Pe.preventDefault(), Xe({ returnFocus: !0 }));
- break;
- }
- }
- function ae() {
- (M.value = !0),
- mn(() => {
- M.value = !1;
- });
- }
- function he(Pe) {
- d.value || Mo(Pe, 'clear') || z.value || ot();
- }
- function _e(Pe) {
- typeof Pe != 'string' &&
- (S.value === null
- ? ge(ht(Zl(mW(new Date()), Pe)))
- : ge(ht(Zl(S.value, Pe))));
- }
- function le(Pe) {
- typeof Pe != 'string' &&
- (S.value === null
- ? ge(ht(Cm(XH(new Date()), Pe)))
- : ge(ht(Cm(S.value, Pe))));
- }
- function Re(Pe) {
- typeof Pe != 'string' &&
- (S.value === null
- ? ge(ht(Sm(yy(new Date()), Pe)))
- : ge(ht(Sm(S.value, Pe))));
- }
- function Ne(Pe) {
- const { value: Ve } = S;
- if (Ve === null) {
- const nt = new Date(),
- Ot = rl(nt);
- Pe === 'pm' && Ot < 12
- ? ge(ht(Zl(nt, Ot + 12)))
- : Pe === 'am' && Ot >= 12 && ge(ht(Zl(nt, Ot - 12))),
- ge(ht(nt));
- } else {
- const nt = rl(Ve);
- Pe === 'pm' && nt < 12
- ? ge(ht(Zl(Ve, nt + 12)))
- : Pe === 'am' && nt >= 12 && ge(ht(Zl(Ve, nt - 12)));
- }
- }
- function Ge(Pe) {
- Pe === void 0 && (Pe = S.value),
- Pe === null
- ? (P.value = '')
- : (P.value = _.value(Pe, e.format, w.value));
- }
- function it(Pe) {
- Lt(Pe) || Ae(Pe);
- }
- function dt(Pe) {
- var Ve;
- if (!Lt(Pe))
- if (z.value) {
- const nt =
- (Ve = g.value) === null || Ve === void 0 ? void 0 : Ve.$el;
- (nt != null && nt.contains(Pe.relatedTarget)) ||
- (Ge(), j(Pe), Xe({ returnFocus: !1 }));
- } else Ge(), j(Pe);
- }
- function xt() {
- d.value || z.value || ot();
- }
- function De() {
- d.value || (Ge(), Xe({ returnFocus: !1 }));
- }
- function ut() {
- if (!g.value) return;
- const {
- hourScrollRef: Pe,
- minuteScrollRef: Ve,
- secondScrollRef: nt,
- amPmScrollRef: Ot
- } = g.value;
- [Pe, Ve, nt, Ot].forEach($n => {
- var jn;
- if (!$n) return;
- const Zt =
- (jn = $n.contentRef) === null || jn === void 0
- ? void 0
- : jn.querySelector('[data-active]');
- Zt && $n.scrollTo({ top: Zt.offsetTop });
- });
- }
- function wt(Pe) {
- T.value = Pe;
- const { onUpdateShow: Ve, 'onUpdate:show': nt } = e;
- Ve && Me(Ve, Pe), nt && Me(nt, Pe);
- }
- function Lt(Pe) {
- var Ve, nt, Ot;
- return !!(
- (!(
- (nt =
- (Ve = m.value) === null || Ve === void 0
- ? void 0
- : Ve.wrapperElRef) === null || nt === void 0
- ) &&
- nt.contains(Pe.relatedTarget)) ||
- (!((Ot = g.value) === null || Ot === void 0) &&
- Ot.$el.contains(Pe.relatedTarget))
- );
- }
- function ot() {
- (k.value = S.value), wt(!0), mn(ut);
- }
- function ct(Pe) {
- var Ve, nt;
- z.value &&
- !(
- !(
- (nt =
- (Ve = m.value) === null || Ve === void 0
- ? void 0
- : Ve.wrapperElRef) === null || nt === void 0
- ) && nt.contains(xa(Pe))
- ) &&
- Xe({ returnFocus: !1 });
- }
- function Xe({ returnFocus: Pe }) {
- var Ve;
- z.value &&
- (wt(!1),
- Pe && ((Ve = m.value) === null || Ve === void 0 || Ve.focus()));
- }
- function Qe(Pe) {
- if (Pe === '') {
- ge(null);
- return;
- }
- const Ve = xo(Pe, e.format, new Date(), w.value);
- if (((P.value = Pe), Xo(Ve))) {
- const { value: nt } = S;
- if (nt !== null) {
- const Ot = Br(nt, {
- hours: rl(Ve),
- minutes: cv(Ve),
- seconds: dv(Ve)
- });
- ge(ht(Ot));
- } else ge(ht(Ve));
- }
- }
- function oe() {
- ge(k.value), wt(!1);
- }
- function ze() {
- const Pe = new Date(),
- Ve = { hours: rl, minutes: cv, seconds: dv },
- [nt, Ot, $n] = ['hours', 'minutes', 'seconds'].map(Zt =>
- !e[Zt] || Ph(Ve[Zt](Pe), Zt, e[Zt])
- ? Ve[Zt](Pe)
- : HG(Ve[Zt](Pe), Zt, e[Zt])
- ),
- jn = Sm(Cm(Zl(S.value ? S.value : ht(Pe), nt), Ot), $n);
- ge(ht(jn));
- }
- function We() {
- Ge(), ee(), Xe({ returnFocus: !0 });
- }
- function lt(Pe) {
- Lt(Pe) || (Ge(), j(Pe), Xe({ returnFocus: !1 }));
- }
- $t(S, Pe => {
- Ge(Pe), ae(), mn(ut);
- }),
- $t(z, () => {
- re.value && ge(k.value);
- }),
- Rt(g3, { mergedThemeRef: v, mergedClsPrefixRef: n });
- const st = {
- focus: () => {
- var Pe;
- (Pe = m.value) === null || Pe === void 0 || Pe.focus();
- },
- blur: () => {
- var Pe;
- (Pe = m.value) === null || Pe === void 0 || Pe.blur();
- }
- },
- me = I(() => {
- const {
- common: { cubicBezierEaseInOut: Pe },
- self: { iconColor: Ve, iconColorDisabled: nt }
- } = v.value;
- return {
- '--n-icon-color-override': Ve,
- '--n-icon-color-disabled-override': nt,
- '--n-bezier': Pe
- };
- }),
- He = o ? Mt('time-picker-trigger', void 0, me, e) : void 0,
- tt = I(() => {
- const {
- self: {
- panelColor: Pe,
- itemTextColor: Ve,
- itemTextColorActive: nt,
- itemColorHover: Ot,
- panelDividerColor: $n,
- panelBoxShadow: jn,
- itemOpacityDisabled: Zt,
- borderRadius: Se,
- itemFontSize: je,
- itemWidth: Ct,
- itemHeight: qt,
- panelActionPadding: we,
- itemBorderRadius: Fe
- },
- common: { cubicBezierEaseInOut: rt }
- } = v.value;
- return {
- '--n-bezier': rt,
- '--n-border-radius': Se,
- '--n-item-color-hover': Ot,
- '--n-item-font-size': je,
- '--n-item-height': qt,
- '--n-item-opacity-disabled': Zt,
- '--n-item-text-color': Ve,
- '--n-item-text-color-active': nt,
- '--n-item-width': Ct,
- '--n-panel-action-padding': we,
- '--n-panel-box-shadow': jn,
- '--n-panel-color': Pe,
- '--n-panel-divider-color': $n,
- '--n-item-border-radius': Fe
- };
- }),
- pt = o ? Mt('time-picker', void 0, tt, e) : void 0;
- return {
- focus: st.focus,
- blur: st.blur,
- mergedStatus: f,
- mergedBordered: t,
- mergedClsPrefix: n,
- namespace: r,
- uncontrolledValue: R,
- mergedValue: S,
- isMounted: yi(),
- inputInstRef: m,
- panelInstRef: g,
- adjustedTo: Yr(e),
- mergedShow: z,
- localizedNow: A,
- localizedPlaceholder: D,
- localizedNegativeText: L,
- localizedPositiveText: H,
- hourInFormat: B,
- minuteInFormat: q,
- secondInFormat: X,
- mergedAttrSize: se,
- displayTimeString: P,
- mergedSize: c,
- mergedDisabled: d,
- isValueInvalid: re,
- isHourInvalid: te,
- isMinuteInvalid: G,
- isSecondInvalid: Q,
- transitionDisabled: M,
- hourValue: ce,
- minuteValue: xe,
- secondValue: ve,
- amPmValue: pe,
- handleInputKeydown: ie,
- handleTimeInputFocus: it,
- handleTimeInputBlur: dt,
- handleNowClick: ze,
- handleConfirmClick: We,
- handleTimeInputUpdateValue: Qe,
- handleMenuFocusOut: lt,
- handleCancelClick: oe,
- handleClickOutside: ct,
- handleTimeInputActivate: xt,
- handleTimeInputDeactivate: De,
- handleHourClick: _e,
- handleMinuteClick: le,
- handleSecondClick: Re,
- handleAmPmClick: Ne,
- handleTimeInputClear: ne,
- handleFocusDetectorFocus: fe,
- handleMenuKeydown: W,
- handleTriggerClick: he,
- mergedTheme: v,
- triggerCssVars: o ? void 0 : me,
- triggerThemeClass: He == null ? void 0 : He.themeClass,
- triggerOnRender: He == null ? void 0 : He.onRender,
- cssVars: o ? void 0 : tt,
- themeClass: pt == null ? void 0 : pt.themeClass,
- onRender: pt == null ? void 0 : pt.onRender
- };
- },
- render() {
- const { mergedClsPrefix: e, $slots: t, triggerOnRender: n } = this;
- return (
- n == null || n(),
- h(
- 'div',
- {
- class: [`${e}-time-picker`, this.triggerThemeClass],
- style: this.triggerCssVars
- },
- h(Qc, null, {
- default: () => [
- h(Jc, null, {
- default: () =>
- h(
- Gi,
- {
- ref: 'inputInstRef',
- status: this.mergedStatus,
- value: this.displayTimeString,
- bordered: this.mergedBordered,
- passivelyActivated: !0,
- attrSize: this.mergedAttrSize,
- theme: this.mergedTheme.peers.Input,
- themeOverrides: this.mergedTheme.peerOverrides.Input,
- stateful: this.stateful,
- size: this.mergedSize,
- placeholder: this.localizedPlaceholder,
- clearable: this.clearable,
- disabled: this.mergedDisabled,
- textDecoration: this.isValueInvalid
- ? 'line-through'
- : void 0,
- onFocus: this.handleTimeInputFocus,
- onBlur: this.handleTimeInputBlur,
- onActivate: this.handleTimeInputActivate,
- onDeactivate: this.handleTimeInputDeactivate,
- onUpdateValue: this.handleTimeInputUpdateValue,
- onClear: this.handleTimeInputClear,
- internalDeactivateOnEnter: !0,
- internalForceFocus: this.mergedShow,
- readonly: this.inputReadonly || this.mergedDisabled,
- onClick: this.handleTriggerClick,
- onKeydown: this.handleInputKeydown
- },
- this.showIcon
- ? {
- [this.clearable
- ? 'clear-icon-placeholder'
- : 'suffix']: () =>
- h(
- At,
- { clsPrefix: e, class: `${e}-time-picker-icon` },
- {
- default: () => (t.icon ? t.icon() : h(TW, null))
- }
- )
- }
- : null
- )
- }),
- h(
- ed,
- {
- teleportDisabled: this.adjustedTo === Yr.tdkey,
- show: this.mergedShow,
- to: this.adjustedTo,
- containerClass: this.namespace,
- placement: this.placement
- },
- {
- default: () =>
- h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- appear: this.isMounted
- },
- {
- default: () => {
- var r;
- return this.mergedShow
- ? ((r = this.onRender) === null ||
- r === void 0 ||
- r.call(this),
- Er(
- h(UG, {
- ref: 'panelInstRef',
- actions: this.actions,
- class: this.themeClass,
- style: this.cssVars,
- seconds: this.seconds,
- minutes: this.minutes,
- hours: this.hours,
- transitionDisabled: this.transitionDisabled,
- hourValue: this.hourValue,
- showHour: this.hourInFormat,
- isHourInvalid: this.isHourInvalid,
- isHourDisabled: this.isHourDisabled,
- minuteValue: this.minuteValue,
- showMinute: this.minuteInFormat,
- isMinuteInvalid: this.isMinuteInvalid,
- isMinuteDisabled: this.isMinuteDisabled,
- secondValue: this.secondValue,
- amPmValue: this.amPmValue,
- showSecond: this.secondInFormat,
- isSecondInvalid: this.isSecondInvalid,
- isSecondDisabled: this.isSecondDisabled,
- isValueInvalid: this.isValueInvalid,
- nowText: this.localizedNow,
- confirmText: this.localizedPositiveText,
- use12Hours: this.use12Hours,
- onFocusout: this.handleMenuFocusOut,
- onKeydown: this.handleMenuKeydown,
- onHourClick: this.handleHourClick,
- onMinuteClick: this.handleMinuteClick,
- onSecondClick: this.handleSecondClick,
- onAmPmClick: this.handleAmPmClick,
- onNowClick: this.handleNowClick,
- onConfirmClick: this.handleConfirmClick,
- onFocusDetectorFocus:
- this.handleFocusDetectorFocus
- }),
- [
- [
- wa,
- this.handleClickOutside,
- void 0,
- { capture: !0 }
- ]
- ]
- ))
- : null;
- }
- }
- )
- }
- )
- ]
- })
- )
- );
- }
- }),
- qG = 'HH:mm:ss',
- m3 = {
- active: Boolean,
- dateFormat: String,
- timeFormat: { type: String, value: qG },
- value: { type: [Array, Number], default: null },
- shortcuts: Object,
- defaultTime: [Number, String, Array],
- onClear: Function,
- onConfirm: Function,
- onClose: Function,
- onTabOut: Function,
- onUpdateValue: { type: Function, required: !0 },
- themeClass: String,
- onRender: Function,
- panel: Boolean
- };
- function b3(e) {
- const {
- dateLocaleRef: t,
- timePickerSizeRef: n,
- timePickerPropsRef: r,
- localeRef: o,
- mergedClsPrefixRef: i,
- mergedThemeRef: a
- } = Ze(Fp),
- s = I(() => ({ locale: t.value.locale })),
- c = Z(null),
- d = X0();
- function f() {
- const { onClear: A } = e;
- A && A();
- }
- function v() {
- const { onConfirm: A, value: D } = e;
- A && A(D);
- }
- function p(A, D) {
- const { onUpdateValue: L } = e;
- L(A, D);
- }
- function m(A = !1) {
- const { onClose: D } = e;
- D && D(A);
- }
- function g() {
- const { onTabOut: A } = e;
- A && A();
- }
- function w() {
- p(null, !0), m(!0), f();
- }
- function x() {
- g();
- }
- function y() {
- (e.active || e.panel) &&
- mn(() => {
- const { value: A } = c;
- if (!A) return;
- const D = A.querySelectorAll('[data-n-date]');
- D.forEach(L => {
- L.classList.add('transition-disabled');
- }),
- A.offsetWidth,
- D.forEach(L => {
- L.classList.remove('transition-disabled');
- });
- });
- }
- function C(A) {
- A.key === 'Tab' &&
- A.target === c.value &&
- d.shift &&
- (A.preventDefault(), g());
- }
- function R(A) {
- const { value: D } = c;
- d.tab && A.target === D && D != null && D.contains(A.relatedTarget) && g();
- }
- let S = null,
- _ = !1;
- function P() {
- (S = e.value), (_ = !0);
- }
- function T() {
- _ = !1;
- }
- function E() {
- _ && (p(S, !1), (_ = !1));
- }
- function z(A) {
- return typeof A == 'function' ? A() : A;
- }
- const k = Z(!1);
- function M() {
- k.value = !k.value;
- }
- return {
- mergedTheme: a,
- mergedClsPrefix: i,
- dateFnsOptions: s,
- timePickerSize: n,
- timePickerProps: r,
- selfRef: c,
- locale: o,
- doConfirm: v,
- doClose: m,
- doUpdateValue: p,
- doTabOut: g,
- handleClearClick: w,
- handleFocusDetectorFocus: x,
- disableTransitionOneTick: y,
- handlePanelKeyDown: C,
- handlePanelFocus: R,
- cachePendingValue: P,
- clearPendingValue: T,
- restorePendingValue: E,
- getShortcutValue: z,
- handleShortcutMouseleave: E,
- showMonthYearPanel: k,
- handleOpenQuickSelectMonthPanel: M
- };
- }
- const Fy = Object.assign(Object.assign({}, m3), {
- actions: { type: Array, default: () => ['now', 'clear', 'confirm'] }
- });
- function By(e, t) {
- const n = b3(e),
- {
- isValueInvalidRef: r,
- isDateDisabledRef: o,
- isDateInvalidRef: i,
- isTimeInvalidRef: a,
- isDateTimeInvalidRef: s,
- isHourDisabledRef: c,
- isMinuteDisabledRef: d,
- isSecondDisabledRef: f,
- localeRef: v,
- firstDayOfWeekRef: p,
- datePickerSlots: m
- } = Ze(Fp),
- g = {
- isValueInvalid: r,
- isDateDisabled: o,
- isDateInvalid: i,
- isTimeInvalid: a,
- isDateTimeInvalid: s,
- isHourDisabled: c,
- isMinuteDisabled: d,
- isSecondDisabled: f
- },
- w = I(() => e.dateFormat || v.value.dateFormat),
- x = Z(
- e.value === null || Array.isArray(e.value) ? '' : Xn(e.value, w.value)
- ),
- y = Z(e.value === null || Array.isArray(e.value) ? Date.now() : e.value),
- C = Z(null),
- R = Z(null),
- S = Z(null),
- _ = Z(Date.now()),
- P = I(() => {
- var W;
- return Kb(
- y.value,
- e.value,
- _.value,
- (W = p.value) !== null && W !== void 0 ? W : v.value.firstDayOfWeek
- );
- }),
- T = I(() => {
- const { value: W } = e;
- return qb(y.value, Array.isArray(W) ? null : W, _.value);
- }),
- E = I(() => {
- const { value: W } = e;
- return Gb(Array.isArray(W) ? null : W, _.value);
- }),
- z = I(() => {
- const { value: W } = e;
- return Yb(y.value, Array.isArray(W) ? null : W, _.value);
- }),
- k = I(() =>
- P.value.slice(0, 7).map(W => {
- const { ts: ae } = W;
- return Xn(ae, v.value.dayFormat, n.dateFnsOptions.value);
- })
- ),
- M = I(() => Xn(y.value, v.value.monthFormat, n.dateFnsOptions.value)),
- A = I(() => Xn(y.value, v.value.yearFormat, n.dateFnsOptions.value));
- $t(y, (W, ae) => {
- (t === 'date' || t === 'datetime') &&
- (Ep(W, ae) || n.disableTransitionOneTick());
- }),
- $t(
- I(() => e.value),
- W => {
- W !== null && !Array.isArray(W)
- ? ((x.value = Xn(W, w.value, n.dateFnsOptions.value)), (y.value = W))
- : (x.value = '');
- }
- );
- function D(W) {
- return ht(
- t === 'datetime'
- ? yy(W)
- : t === 'month'
- ? ga(W)
- : t === 'year'
- ? py(W)
- : t === 'quarter'
- ? Ou(W)
- : lv(W)
- );
- }
- function L(W) {
- const {
- isDateDisabled: { value: ae }
- } = g;
- return ae ? ae(W) : !1;
- }
- function H(W) {
- const ae = xo(W, w.value, new Date(), n.dateFnsOptions.value);
- if (Xo(ae)) {
- if (e.value === null) n.doUpdateValue(ht(D(Date.now())), e.panel);
- else if (!Array.isArray(e.value)) {
- const he = Br(e.value, { year: er(ae), month: Yn(ae), date: li(ae) });
- n.doUpdateValue(ht(D(ht(he))), e.panel);
- }
- } else x.value = W;
- }
- function B() {
- const W = xo(x.value, w.value, new Date(), n.dateFnsOptions.value);
- if (Xo(W)) {
- if (e.value === null) n.doUpdateValue(ht(D(Date.now())), !1);
- else if (!Array.isArray(e.value)) {
- const ae = Br(e.value, { year: er(W), month: Yn(W), date: li(W) });
- n.doUpdateValue(ht(D(ht(ae))), !1);
- }
- } else re();
- }
- function q() {
- n.doUpdateValue(null, !0),
- (x.value = ''),
- n.doClose(!0),
- n.handleClearClick();
- }
- function X() {
- n.doUpdateValue(ht(D(Date.now())), !0);
- const W = Date.now();
- (y.value = W),
- n.doClose(!0),
- e.panel &&
- (t === 'month' || t === 'quarter' || t === 'year') &&
- (n.disableTransitionOneTick(), fe(W));
- }
- function te(W) {
- if (L(W.ts)) return;
- let ae;
- if (
- (e.value !== null && !Array.isArray(e.value)
- ? (ae = e.value)
- : (ae = Date.now()),
- t === 'datetime' &&
- e.defaultTime !== null &&
- !Array.isArray(e.defaultTime))
- ) {
- const he = Uh(e.defaultTime);
- he && (ae = ht(Br(ae, he)));
- }
- switch (
- ((ae = ht(
- W.type === 'quarter' && W.dateObject.quarter
- ? bW(mS(ae, W.dateObject.year), W.dateObject.quarter)
- : Br(ae, W.dateObject)
- )),
- n.doUpdateValue(D(ae), e.panel || t === 'date' || t === 'year'),
- t)
- ) {
- case 'date':
- n.doClose();
- break;
- case 'year':
- e.panel && n.disableTransitionOneTick(), n.doClose();
- break;
- case 'month':
- n.disableTransitionOneTick(), fe(ae);
- break;
- case 'quarter':
- n.disableTransitionOneTick(), fe(ae);
- break;
- }
- }
- function G(W, ae) {
- let he;
- e.value !== null && !Array.isArray(e.value)
- ? (he = e.value)
- : (he = Date.now()),
- (he = ht(
- W.type === 'month'
- ? xy(he, W.dateObject.month)
- : mS(he, W.dateObject.year)
- )),
- ae(he),
- fe(he);
- }
- function Q(W) {
- y.value = W;
- }
- function re(W) {
- if (e.value === null || Array.isArray(e.value)) {
- x.value = '';
- return;
- }
- W === void 0 && (W = e.value),
- (x.value = Xn(W, w.value, n.dateFnsOptions.value));
- }
- function se() {
- g.isDateInvalid.value || g.isTimeInvalid.value || (n.doConfirm(), pe());
- }
- function pe() {
- e.active && n.doClose();
- }
- function ce() {
- y.value = ht(Nb(y.value, 1));
- }
- function xe() {
- y.value = ht(Nb(y.value, -1));
- }
- function ve() {
- y.value = ht(Fr(y.value, 1));
- }
- function be() {
- y.value = ht(Fr(y.value, -1));
- }
- function Ce() {
- const { value: W } = C;
- return W == null ? void 0 : W.listElRef;
- }
- function ge() {
- const { value: W } = C;
- return W == null ? void 0 : W.itemsElRef;
- }
- function Ae(W) {
- var ae;
- (ae = R.value) === null || ae === void 0 || ae.sync();
- }
- function j(W) {
- W !== null && n.doUpdateValue(W, e.panel);
- }
- function ee(W) {
- n.cachePendingValue();
- const ae = n.getShortcutValue(W);
- typeof ae == 'number' && n.doUpdateValue(ae, !1);
- }
- function ne(W) {
- const ae = n.getShortcutValue(W);
- typeof ae == 'number' &&
- (n.doUpdateValue(ae, e.panel), n.clearPendingValue(), se());
- }
- function fe(W) {
- const { value: ae } = e;
- if (S.value) {
- const he = Yn(W === void 0 ? (ae === null ? Date.now() : ae) : W);
- S.value.scrollTo({ top: he * _s });
- }
- if (C.value) {
- const he = er(W === void 0 ? (ae === null ? Date.now() : ae) : W) - gv;
- C.value.scrollTo({ top: he * _s });
- }
- }
- const ie = { monthScrollbarRef: S, yearScrollbarRef: R, yearVlRef: C };
- return Object.assign(
- Object.assign(
- Object.assign(
- Object.assign(
- {
- dateArray: P,
- monthArray: T,
- yearArray: E,
- quarterArray: z,
- calendarYear: A,
- calendarMonth: M,
- weekdays: k,
- mergedIsDateDisabled: L,
- nextYear: ce,
- prevYear: xe,
- nextMonth: ve,
- prevMonth: be,
- handleNowClick: X,
- handleConfirmClick: se,
- handleSingleShortcutMouseenter: ee,
- handleSingleShortcutClick: ne
- },
- g
- ),
- n
- ),
- ie
- ),
- {
- handleDateClick: te,
- handleDateInputBlur: B,
- handleDateInput: H,
- handleTimePickerChange: j,
- clearSelectedDateTime: q,
- virtualListContainer: Ce,
- virtualListContent: ge,
- handleVirtualListScroll: Ae,
- timePickerSize: n.timePickerSize,
- dateInputValue: x,
- datePickerSlots: m,
- handleQuickMonthClick: G,
- justifyColumnsScrollState: fe,
- calendarValue: y,
- onUpdateCalendarValue: Q
- }
- );
- }
- const y3 = ke({
- name: 'MonthPanel',
- props: Object.assign(Object.assign({}, Fy), {
- type: { type: String, required: !0 },
- useAsQuickJump: Boolean
- }),
- setup(e) {
- const t = By(e, e.type),
- n = i => {
- switch (i.type) {
- case 'year':
- return i.dateObject.year;
- case 'month':
- return i.dateObject.month + 1;
- case 'quarter':
- return `Q${i.dateObject.quarter}`;
- }
- },
- { useAsQuickJump: r } = e,
- o = (i, a, s) => {
- const {
- mergedIsDateDisabled: c,
- handleDateClick: d,
- handleQuickMonthClick: f
- } = t;
- return h(
- 'div',
- {
- 'data-n-date': !0,
- key: a,
- class: [
- `${s}-date-panel-month-calendar__picker-col-item`,
- {
- [`${s}-date-panel-month-calendar__picker-col-item--current`]:
- i.isCurrent,
- [`${s}-date-panel-month-calendar__picker-col-item--selected`]:
- i.selected,
- [`${s}-date-panel-month-calendar__picker-col-item--disabled`]:
- !r && c(i.ts)
- }
- ],
- onClick: () => {
- r
- ? f(i, v => {
- e.onUpdateValue(v, !1);
- })
- : d(i);
- }
- },
- n(i)
- );
- };
- return (
- Hn(() => {
- t.justifyColumnsScrollState();
- }),
- Object.assign(Object.assign({}, t), { renderItem: o })
- );
- },
- render() {
- const {
- mergedClsPrefix: e,
- mergedTheme: t,
- shortcuts: n,
- actions: r,
- renderItem: o,
- type: i,
- onRender: a
- } = this;
- return (
- a == null || a(),
- h(
- 'div',
- {
- ref: 'selfRef',
- tabindex: 0,
- class: [
- `${e}-date-panel`,
- `${e}-date-panel--month`,
- !this.panel && `${e}-date-panel--shadow`,
- this.themeClass
- ],
- onFocus: this.handlePanelFocus,
- onKeydown: this.handlePanelKeyDown
- },
- h(
- 'div',
- { class: `${e}-date-panel-month-calendar` },
- h(
- yr,
- {
- ref: 'yearScrollbarRef',
- class: `${e}-date-panel-month-calendar__picker-col`,
- theme: t.peers.Scrollbar,
- themeOverrides: t.peerOverrides.Scrollbar,
- container: this.virtualListContainer,
- content: this.virtualListContent,
- horizontalRailStyle: { zIndex: 1 },
- verticalRailStyle: { zIndex: 1 }
- },
- {
- default: () =>
- h(
- Ec,
- {
- ref: 'yearVlRef',
- items: this.yearArray,
- itemSize: _s,
- showScrollbar: !1,
- keyField: 'ts',
- onScroll: this.handleVirtualListScroll,
- paddingBottom: 4
- },
- { default: ({ item: s, index: c }) => o(s, c, e) }
- )
- }
- ),
- i === 'month' || i === 'quarter'
- ? h(
- 'div',
- { class: `${e}-date-panel-month-calendar__picker-col` },
- h(
- yr,
- {
- ref: 'monthScrollbarRef',
- theme: t.peers.Scrollbar,
- themeOverrides: t.peerOverrides.Scrollbar
- },
- {
- default: () => [
- (i === 'month'
- ? this.monthArray
- : this.quarterArray
- ).map((s, c) => o(s, c, e)),
- h('div', {
- class: `${e}-date-panel-${i}-calendar__padding`
- })
- ]
- }
- )
- )
- : null
- ),
- this.datePickerSlots.footer
- ? h(
- 'div',
- { class: `${e}-date-panel-footer` },
- { default: this.datePickerSlots.footer }
- )
- : null,
- (r != null && r.length) || n
- ? h(
- 'div',
- { class: `${e}-date-panel-actions` },
- h(
- 'div',
- { class: `${e}-date-panel-actions__prefix` },
- n &&
- Object.keys(n).map(s => {
- const c = n[s];
- return Array.isArray(c)
- ? null
- : h(
- Wi,
- {
- size: 'tiny',
- onMouseenter: () => {
- this.handleSingleShortcutMouseenter(c);
- },
- onClick: () => {
- this.handleSingleShortcutClick(c);
- },
- onMouseleave: () => {
- this.handleShortcutMouseleave();
- }
- },
- { default: () => s }
- );
- })
- ),
- h(
- 'div',
- { class: `${e}-date-panel-actions__suffix` },
- r != null && r.includes('clear')
- ? h(
- nr,
- {
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleClearClick
- },
- { default: () => this.locale.clear }
- )
- : null,
- r != null && r.includes('now')
- ? h(
- nr,
- {
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleNowClick
- },
- { default: () => this.locale.now }
- )
- : null,
- r != null && r.includes('confirm')
- ? h(
- nr,
- {
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- size: 'tiny',
- type: 'primary',
- disabled: this.isDateInvalid,
- onClick: this.handleConfirmClick
- },
- { default: () => this.locale.confirm }
- )
- : null
- )
- )
- : null,
- h(_l, { onFocus: this.handleFocusDetectorFocus })
- )
- );
- }
- }),
- Bc = ke({
- props: {
- mergedClsPrefix: { type: String, required: !0 },
- value: Number,
- monthBeforeYear: { type: Boolean, required: !0 },
- calendarMonth: { type: String, required: !0 },
- calendarYear: { type: String, required: !0 },
- onUpdateValue: { type: Function, required: !0 }
- },
- setup() {
- const e = Z(null),
- t = Z(null),
- n = Z(!1);
- function r(i) {
- var a;
- n.value &&
- !(!((a = e.value) === null || a === void 0) && a.contains(xa(i))) &&
- (n.value = !1);
- }
- function o() {
- n.value = !n.value;
- }
- return {
- show: n,
- triggerRef: e,
- monthPanelRef: t,
- handleHeaderClick: o,
- handleClickOutside: r
- };
- },
- render() {
- const { handleClickOutside: e, mergedClsPrefix: t } = this;
- return h(
- 'div',
- { class: `${t}-date-panel-month__month-year`, ref: 'triggerRef' },
- h(Qc, null, {
- default: () => [
- h(Jc, null, {
- default: () =>
- h(
- 'div',
- {
- class: [
- `${t}-date-panel-month__text`,
- this.show && `${t}-date-panel-month__text--active`
- ],
- onClick: this.handleHeaderClick
- },
- this.monthBeforeYear
- ? [this.calendarMonth, ' ', this.calendarYear]
- : [this.calendarYear, ' ', this.calendarMonth]
- )
- }),
- h(
- ed,
- { show: this.show, teleportDisabled: !0 },
- {
- default: () =>
- h(
- Kn,
- { name: 'fade-in-scale-up-transition', appear: !0 },
- {
- default: () =>
- this.show
- ? Er(
- h(y3, {
- ref: 'monthPanelRef',
- onUpdateValue: this.onUpdateValue,
- actions: [],
- type: 'month',
- key: 'month',
- useAsQuickJump: !0,
- value: this.value
- }),
- [[wa, e, void 0, { capture: !0 }]]
- )
- : null
- }
- )
- }
- )
- ]
- })
- );
- }
- }),
- YG = ke({
- name: 'DateTimePanel',
- props: Fy,
- setup(e) {
- return By(e, 'datetime');
- },
- render() {
- var e, t, n, r;
- const {
- mergedClsPrefix: o,
- mergedTheme: i,
- shortcuts: a,
- timePickerProps: s,
- onRender: c,
- $slots: d
- } = this;
- return (
- c == null || c(),
- h(
- 'div',
- {
- ref: 'selfRef',
- tabindex: 0,
- class: [
- `${o}-date-panel`,
- `${o}-date-panel--datetime`,
- !this.panel && `${o}-date-panel--shadow`,
- this.themeClass
- ],
- onKeydown: this.handlePanelKeyDown,
- onFocus: this.handlePanelFocus
- },
- h(
- 'div',
- { class: `${o}-date-panel-header` },
- h(Gi, {
- value: this.dateInputValue,
- theme: i.peers.Input,
- themeOverrides: i.peerOverrides.Input,
- stateful: !1,
- size: this.timePickerSize,
- class: `${o}-date-panel-date-input`,
- textDecoration: this.isDateInvalid ? 'line-through' : '',
- placeholder: this.locale.selectDate,
- onBlur: this.handleDateInputBlur,
- onUpdateValue: this.handleDateInput
- }),
- h(
- Vv,
- Object.assign(
- {
- size: this.timePickerSize,
- placeholder: this.locale.selectTime,
- format: this.timeFormat
- },
- Array.isArray(s) ? void 0 : s,
- {
- showIcon: !1,
- to: !1,
- theme: i.peers.TimePicker,
- themeOverrides: i.peerOverrides.TimePicker,
- value: Array.isArray(this.value) ? null : this.value,
- isHourDisabled: this.isHourDisabled,
- isMinuteDisabled: this.isMinuteDisabled,
- isSecondDisabled: this.isSecondDisabled,
- onUpdateValue: this.handleTimePickerChange,
- stateful: !1
- }
- )
- )
- ),
- h(
- 'div',
- { class: `${o}-date-panel-calendar` },
- h(
- 'div',
- { class: `${o}-date-panel-month` },
- h(
- 'div',
- {
- class: `${o}-date-panel-month__fast-prev`,
- onClick: this.prevYear
- },
- Kt(d['prev-year'], () => [h(pl, null)])
- ),
- h(
- 'div',
- {
- class: `${o}-date-panel-month__prev`,
- onClick: this.prevMonth
- },
- Kt(d['prev-month'], () => [h(vl, null)])
- ),
- h(Bc, {
- monthBeforeYear: this.locale.monthBeforeYear,
- value: this.calendarValue,
- onUpdateValue: this.onUpdateCalendarValue,
- mergedClsPrefix: o,
- calendarMonth: this.calendarMonth,
- calendarYear: this.calendarYear
- }),
- h(
- 'div',
- {
- class: `${o}-date-panel-month__next`,
- onClick: this.nextMonth
- },
- Kt(d['next-month'], () => [h(ml, null)])
- ),
- h(
- 'div',
- {
- class: `${o}-date-panel-month__fast-next`,
- onClick: this.nextYear
- },
- Kt(d['next-year'], () => [h(gl, null)])
- )
- ),
- h(
- 'div',
- { class: `${o}-date-panel-weekdays` },
- this.weekdays.map(f =>
- h('div', { key: f, class: `${o}-date-panel-weekdays__day` }, f)
- )
- ),
- h(
- 'div',
- { class: `${o}-date-panel-dates` },
- this.dateArray.map((f, v) =>
- h(
- 'div',
- {
- 'data-n-date': !0,
- key: v,
- class: [
- `${o}-date-panel-date`,
- {
- [`${o}-date-panel-date--current`]: f.isCurrentDate,
- [`${o}-date-panel-date--selected`]: f.selected,
- [`${o}-date-panel-date--excluded`]: !f.inCurrentMonth,
- [`${o}-date-panel-date--disabled`]:
- this.mergedIsDateDisabled(f.ts)
- }
- ],
- onClick: () => {
- this.handleDateClick(f);
- }
- },
- h('div', { class: `${o}-date-panel-date__trigger` }),
- f.dateObject.date,
- f.isCurrentDate
- ? h('div', { class: `${o}-date-panel-date__sup` })
- : null
- )
- )
- )
- ),
- this.datePickerSlots.footer
- ? h(
- 'div',
- { class: `${o}-date-panel-footer` },
- this.datePickerSlots.footer()
- )
- : null,
- (!((e = this.actions) === null || e === void 0) && e.length) || a
- ? h(
- 'div',
- { class: `${o}-date-panel-actions` },
- h(
- 'div',
- { class: `${o}-date-panel-actions__prefix` },
- a &&
- Object.keys(a).map(f => {
- const v = a[f];
- return Array.isArray(v)
- ? null
- : h(
- Wi,
- {
- size: 'tiny',
- onMouseenter: () => {
- this.handleSingleShortcutMouseenter(v);
- },
- onClick: () => {
- this.handleSingleShortcutClick(v);
- },
- onMouseleave: () => {
- this.handleShortcutMouseleave();
- }
- },
- { default: () => f }
- );
- })
- ),
- h(
- 'div',
- { class: `${o}-date-panel-actions__suffix` },
- !((t = this.actions) === null || t === void 0) &&
- t.includes('clear')
- ? h(
- nr,
- {
- theme: i.peers.Button,
- themeOverrides: i.peerOverrides.Button,
- size: 'tiny',
- onClick: this.clearSelectedDateTime
- },
- { default: () => this.locale.clear }
- )
- : null,
- !((n = this.actions) === null || n === void 0) &&
- n.includes('now')
- ? h(
- nr,
- {
- theme: i.peers.Button,
- themeOverrides: i.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleNowClick
- },
- { default: () => this.locale.now }
- )
- : null,
- !((r = this.actions) === null || r === void 0) &&
- r.includes('confirm')
- ? h(
- nr,
- {
- theme: i.peers.Button,
- themeOverrides: i.peerOverrides.Button,
- size: 'tiny',
- type: 'primary',
- disabled: this.isDateInvalid,
- onClick: this.handleConfirmClick
- },
- { default: () => this.locale.confirm }
- )
- : null
- )
- )
- : null,
- h(_l, { onFocus: this.handleFocusDetectorFocus })
- )
- );
- }
- }),
- Ly = Object.assign(Object.assign({}, m3), {
- defaultCalendarStartTime: Number,
- defaultCalendarEndTime: Number,
- bindCalendarMonths: Boolean,
- actions: { type: Array, default: () => ['clear', 'confirm'] }
- });
- function Ny(e, t) {
- var n, r;
- const {
- isDateDisabledRef: o,
- isStartHourDisabledRef: i,
- isEndHourDisabledRef: a,
- isStartMinuteDisabledRef: s,
- isEndMinuteDisabledRef: c,
- isStartSecondDisabledRef: d,
- isEndSecondDisabledRef: f,
- isStartDateInvalidRef: v,
- isEndDateInvalidRef: p,
- isStartTimeInvalidRef: m,
- isEndTimeInvalidRef: g,
- isStartValueInvalidRef: w,
- isEndValueInvalidRef: x,
- isRangeInvalidRef: y,
- localeRef: C,
- rangesRef: R,
- closeOnSelectRef: S,
- updateValueOnCloseRef: _,
- firstDayOfWeekRef: P,
- datePickerSlots: T
- } = Ze(Fp),
- E = {
- isDateDisabled: o,
- isStartHourDisabled: i,
- isEndHourDisabled: a,
- isStartMinuteDisabled: s,
- isEndMinuteDisabled: c,
- isStartSecondDisabled: d,
- isEndSecondDisabled: f,
- isStartDateInvalid: v,
- isEndDateInvalid: p,
- isStartTimeInvalid: m,
- isEndTimeInvalid: g,
- isStartValueInvalid: w,
- isEndValueInvalid: x,
- isRangeInvalid: y
- },
- z = b3(e),
- k = Z(null),
- M = Z(null),
- A = Z(null),
- D = Z(null),
- L = Z(null),
- H = Z(null),
- B = Z(null),
- q = Z(null),
- { value: X } = e,
- te =
- (n = e.defaultCalendarStartTime) !== null && n !== void 0
- ? n
- : Array.isArray(X) && typeof X[0] == 'number'
- ? X[0]
- : Date.now(),
- G = Z(te),
- Q = Z(
- (r = e.defaultCalendarEndTime) !== null && r !== void 0
- ? r
- : Array.isArray(X) && typeof X[1] == 'number'
- ? X[1]
- : ht(Fr(te, 1))
- );
- dt(!0);
- const re = Z(Date.now()),
- se = Z(!1),
- pe = Z(0),
- ce = I(() => e.dateFormat || C.value.dateFormat),
- xe = Z(Array.isArray(X) ? Xn(X[0], ce.value, z.dateFnsOptions.value) : ''),
- ve = Z(Array.isArray(X) ? Xn(X[1], ce.value, z.dateFnsOptions.value) : ''),
- be = I(() => (se.value ? 'end' : 'start')),
- Ce = I(() => {
- var $e;
- return Kb(
- G.value,
- e.value,
- re.value,
- ($e = P.value) !== null && $e !== void 0 ? $e : C.value.firstDayOfWeek
- );
- }),
- ge = I(() => {
- var $e;
- return Kb(
- Q.value,
- e.value,
- re.value,
- ($e = P.value) !== null && $e !== void 0 ? $e : C.value.firstDayOfWeek
- );
- }),
- Ae = I(() =>
- Ce.value.slice(0, 7).map($e => {
- const { ts: Je } = $e;
- return Xn(Je, C.value.dayFormat, z.dateFnsOptions.value);
- })
- ),
- j = I(() => Xn(G.value, C.value.monthFormat, z.dateFnsOptions.value)),
- ee = I(() => Xn(Q.value, C.value.monthFormat, z.dateFnsOptions.value)),
- ne = I(() => Xn(G.value, C.value.yearFormat, z.dateFnsOptions.value)),
- fe = I(() => Xn(Q.value, C.value.yearFormat, z.dateFnsOptions.value)),
- ie = I(() => {
- const { value: $e } = e;
- return Array.isArray($e) ? $e[0] : null;
- }),
- W = I(() => {
- const { value: $e } = e;
- return Array.isArray($e) ? $e[1] : null;
- }),
- ae = I(() => {
- const { shortcuts: $e } = e;
- return $e || R.value;
- }),
- he = I(() => Gb(uc(e.value, 'start'), re.value)),
- _e = I(() => Gb(uc(e.value, 'end'), re.value)),
- le = I(() => {
- const $e = uc(e.value, 'start');
- return Yb($e ?? Date.now(), $e, re.value);
- }),
- Re = I(() => {
- const $e = uc(e.value, 'end');
- return Yb($e ?? Date.now(), $e, re.value);
- }),
- Ne = I(() => {
- const $e = uc(e.value, 'start');
- return qb($e ?? Date.now(), $e, re.value);
- }),
- Ge = I(() => {
- const $e = uc(e.value, 'end');
- return qb($e ?? Date.now(), $e, re.value);
- });
- $t(
- I(() => e.value),
- $e => {
- if ($e !== null && Array.isArray($e)) {
- const [Je, vt] = $e;
- (xe.value = Xn(Je, ce.value, z.dateFnsOptions.value)),
- (ve.value = Xn(vt, ce.value, z.dateFnsOptions.value)),
- se.value || We($e);
- } else (xe.value = ''), (ve.value = '');
- }
- );
- function it($e, Je) {
- (t === 'daterange' || t === 'datetimerange') &&
- (er($e) !== er(Je) || Yn($e) !== Yn(Je)) &&
- z.disableTransitionOneTick();
- }
- $t(G, it), $t(Q, it);
- function dt($e) {
- const Je = ga(G.value),
- vt = ga(Q.value);
- (e.bindCalendarMonths || Je >= vt) &&
- ($e ? (Q.value = ht(Fr(Je, 1))) : (G.value = ht(Fr(vt, -1))));
- }
- function xt() {
- (G.value = ht(Fr(G.value, 12))), dt(!0);
- }
- function De() {
- (G.value = ht(Fr(G.value, -12))), dt(!0);
- }
- function ut() {
- (G.value = ht(Fr(G.value, 1))), dt(!0);
- }
- function wt() {
- (G.value = ht(Fr(G.value, -1))), dt(!0);
- }
- function Lt() {
- (Q.value = ht(Fr(Q.value, 12))), dt(!1);
- }
- function ot() {
- (Q.value = ht(Fr(Q.value, -12))), dt(!1);
- }
- function ct() {
- (Q.value = ht(Fr(Q.value, 1))), dt(!1);
- }
- function Xe() {
- (Q.value = ht(Fr(Q.value, -1))), dt(!1);
- }
- function Qe($e) {
- (G.value = $e), dt(!0);
- }
- function oe($e) {
- (Q.value = $e), dt(!1);
- }
- function ze($e) {
- const Je = o.value;
- if (!Je) return !1;
- if (!Array.isArray(e.value) || be.value === 'start')
- return Je($e, 'start', null);
- {
- const { value: vt } = pe;
- return $e < pe.value
- ? Je($e, 'start', [vt, vt])
- : Je($e, 'end', [vt, vt]);
- }
- }
- function We($e) {
- if ($e === null) return;
- const [Je, vt] = $e;
- (G.value = Je),
- ga(vt) <= ga(Je) ? (Q.value = ht(ga(Fr(Je, 1)))) : (Q.value = ht(ga(vt)));
- }
- function lt($e) {
- if (!se.value)
- (se.value = !0), (pe.value = $e.ts), Pe($e.ts, $e.ts, 'done');
- else {
- se.value = !1;
- const { value: Je } = e;
- e.panel && Array.isArray(Je)
- ? Pe(Je[0], Je[1], 'done')
- : S.value && t === 'daterange' && (_.value ? He() : me());
- }
- }
- function st($e) {
- if (se.value) {
- if (ze($e.ts)) return;
- $e.ts >= pe.value
- ? Pe(pe.value, $e.ts, 'wipPreview')
- : Pe($e.ts, pe.value, 'wipPreview');
- }
- }
- function me() {
- y.value || (z.doConfirm(), He());
- }
- function He() {
- (se.value = !1), e.active && z.doClose();
- }
- function tt($e) {
- typeof $e != 'number' && ($e = ht($e)),
- e.value === null
- ? z.doUpdateValue([$e, $e], e.panel)
- : Array.isArray(e.value) &&
- z.doUpdateValue([$e, Math.max(e.value[1], $e)], e.panel);
- }
- function pt($e) {
- typeof $e != 'number' && ($e = ht($e)),
- e.value === null
- ? z.doUpdateValue([$e, $e], e.panel)
- : Array.isArray(e.value) &&
- z.doUpdateValue([Math.min(e.value[0], $e), $e], e.panel);
- }
- function Pe($e, Je, vt) {
- if ((typeof $e != 'number' && ($e = ht($e)), vt !== 'shortcutPreview')) {
- let Wt, dn;
- if (t === 'datetimerange') {
- const { defaultTime: nn } = e;
- Array.isArray(nn)
- ? ((Wt = Uh(nn[0])), (dn = Uh(nn[1])))
- : ((Wt = Uh(nn)), (dn = Wt));
- }
- Wt && ($e = ht(Br($e, Wt))), dn && (Je = ht(Br(Je, dn)));
- }
- z.doUpdateValue([$e, Je], e.panel && vt === 'done');
- }
- function Ve($e) {
- return ht(
- t === 'datetimerange' ? yy($e) : t === 'monthrange' ? ga($e) : lv($e)
- );
- }
- function nt($e) {
- const Je = xo($e, ce.value, new Date(), z.dateFnsOptions.value);
- if (Xo(Je))
- if (e.value) {
- if (Array.isArray(e.value)) {
- const vt = Br(e.value[0], {
- year: er(Je),
- month: Yn(Je),
- date: li(Je)
- });
- tt(Ve(ht(vt)));
- }
- } else {
- const vt = Br(new Date(), {
- year: er(Je),
- month: Yn(Je),
- date: li(Je)
- });
- tt(Ve(ht(vt)));
- }
- else xe.value = $e;
- }
- function Ot($e) {
- const Je = xo($e, ce.value, new Date(), z.dateFnsOptions.value);
- if (Xo(Je)) {
- if (e.value === null) {
- const vt = Br(new Date(), {
- year: er(Je),
- month: Yn(Je),
- date: li(Je)
- });
- pt(Ve(ht(vt)));
- } else if (Array.isArray(e.value)) {
- const vt = Br(e.value[1], {
- year: er(Je),
- month: Yn(Je),
- date: li(Je)
- });
- pt(Ve(ht(vt)));
- }
- } else ve.value = $e;
- }
- function $n() {
- const $e = xo(xe.value, ce.value, new Date(), z.dateFnsOptions.value),
- { value: Je } = e;
- if (Xo($e)) {
- if (Je === null) {
- const vt = Br(new Date(), {
- year: er($e),
- month: Yn($e),
- date: li($e)
- });
- tt(Ve(ht(vt)));
- } else if (Array.isArray(Je)) {
- const vt = Br(Je[0], { year: er($e), month: Yn($e), date: li($e) });
- tt(Ve(ht(vt)));
- }
- } else Zt();
- }
- function jn() {
- const $e = xo(ve.value, ce.value, new Date(), z.dateFnsOptions.value),
- { value: Je } = e;
- if (Xo($e)) {
- if (Je === null) {
- const vt = Br(new Date(), {
- year: er($e),
- month: Yn($e),
- date: li($e)
- });
- pt(Ve(ht(vt)));
- } else if (Array.isArray(Je)) {
- const vt = Br(Je[1], { year: er($e), month: Yn($e), date: li($e) });
- pt(Ve(ht(vt)));
- }
- } else Zt();
- }
- function Zt($e) {
- const { value: Je } = e;
- if (Je === null || !Array.isArray(Je)) {
- (xe.value = ''), (ve.value = '');
- return;
- }
- $e === void 0 && ($e = Je),
- (xe.value = Xn($e[0], ce.value, z.dateFnsOptions.value)),
- (ve.value = Xn($e[1], ce.value, z.dateFnsOptions.value));
- }
- function Se($e) {
- $e !== null && tt($e);
- }
- function je($e) {
- $e !== null && pt($e);
- }
- function Ct($e) {
- z.cachePendingValue();
- const Je = z.getShortcutValue($e);
- Array.isArray(Je) && Pe(Je[0], Je[1], 'shortcutPreview');
- }
- function qt($e) {
- const Je = z.getShortcutValue($e);
- Array.isArray(Je) &&
- (Pe(Je[0], Je[1], 'done'), z.clearPendingValue(), me());
- }
- function we($e, Je) {
- const vt = $e === void 0 ? e.value : $e;
- if ($e === void 0 || Je === 'start') {
- if (B.value) {
- const Wt = Array.isArray(vt) ? Yn(vt[0]) : Yn(Date.now());
- B.value.scrollTo({ debounce: !1, index: Wt, elSize: _s });
- }
- if (L.value) {
- const Wt = (Array.isArray(vt) ? er(vt[0]) : er(Date.now())) - gv;
- L.value.scrollTo({ index: Wt, debounce: !1 });
- }
- }
- if ($e === void 0 || Je === 'end') {
- if (q.value) {
- const Wt = Array.isArray(vt) ? Yn(vt[1]) : Yn(Date.now());
- q.value.scrollTo({ debounce: !1, index: Wt, elSize: _s });
- }
- if (H.value) {
- const Wt = (Array.isArray(vt) ? er(vt[1]) : er(Date.now())) - gv;
- H.value.scrollTo({ index: Wt, debounce: !1 });
- }
- }
- }
- function Fe($e, Je) {
- const { value: vt } = e,
- Wt = !Array.isArray(vt),
- dn =
- $e.type === 'year' && t !== 'yearrange'
- ? Wt
- ? Br($e.ts, {
- month: Yn(t === 'quarterrange' ? Ou(new Date()) : new Date())
- }).valueOf()
- : Br($e.ts, {
- month: Yn(
- t === 'quarterrange'
- ? Ou(vt[Je === 'start' ? 0 : 1])
- : vt[Je === 'start' ? 0 : 1]
- )
- }).valueOf()
- : $e.ts;
- if (Wt) {
- const Yt = Ve(dn),
- On = [Yt, Yt];
- z.doUpdateValue(On, e.panel),
- we(On, 'start'),
- we(On, 'end'),
- z.disableTransitionOneTick();
- return;
- }
- const nn = [vt[0], vt[1]];
- let kr = !1;
- switch (
- (Je === 'start'
- ? ((nn[0] = Ve(dn)), nn[0] > nn[1] && ((nn[1] = nn[0]), (kr = !0)))
- : ((nn[1] = Ve(dn)), nn[0] > nn[1] && ((nn[0] = nn[1]), (kr = !0))),
- z.doUpdateValue(nn, e.panel),
- t)
- ) {
- case 'monthrange':
- case 'quarterrange':
- z.disableTransitionOneTick(),
- kr ? (we(nn, 'start'), we(nn, 'end')) : we(nn, Je);
- break;
- case 'yearrange':
- z.disableTransitionOneTick(), we(nn, 'start'), we(nn, 'end');
- }
- }
- function rt() {
- var $e;
- ($e = A.value) === null || $e === void 0 || $e.sync();
- }
- function ft() {
- var $e;
- ($e = D.value) === null || $e === void 0 || $e.sync();
- }
- function gt($e) {
- var Je, vt;
- return $e === 'start'
- ? (Je = L.value) === null || Je === void 0
- ? void 0
- : Je.listElRef
- : (vt = H.value) === null || vt === void 0
- ? void 0
- : vt.listElRef;
- }
- function bn($e) {
- var Je, vt;
- return $e === 'start'
- ? (Je = L.value) === null || Je === void 0
- ? void 0
- : Je.itemsElRef
- : (vt = H.value) === null || vt === void 0
- ? void 0
- : vt.itemsElRef;
- }
- const ln = {
- startYearVlRef: L,
- endYearVlRef: H,
- startMonthScrollbarRef: B,
- endMonthScrollbarRef: q,
- startYearScrollbarRef: A,
- endYearScrollbarRef: D
- };
- return Object.assign(
- Object.assign(
- Object.assign(
- Object.assign(
- {
- startDatesElRef: k,
- endDatesElRef: M,
- handleDateClick: lt,
- handleColItemClick: Fe,
- handleDateMouseEnter: st,
- handleConfirmClick: me,
- startCalendarPrevYear: De,
- startCalendarPrevMonth: wt,
- startCalendarNextYear: xt,
- startCalendarNextMonth: ut,
- endCalendarPrevYear: ot,
- endCalendarPrevMonth: Xe,
- endCalendarNextMonth: ct,
- endCalendarNextYear: Lt,
- mergedIsDateDisabled: ze,
- changeStartEndTime: Pe,
- ranges: R,
- startCalendarMonth: j,
- startCalendarYear: ne,
- endCalendarMonth: ee,
- endCalendarYear: fe,
- weekdays: Ae,
- startDateArray: Ce,
- endDateArray: ge,
- startYearArray: he,
- startMonthArray: Ne,
- startQuarterArray: le,
- endYearArray: _e,
- endMonthArray: Ge,
- endQuarterArray: Re,
- isSelecting: se,
- handleRangeShortcutMouseenter: Ct,
- handleRangeShortcutClick: qt
- },
- z
- ),
- E
- ),
- ln
- ),
- {
- startDateDisplayString: xe,
- endDateInput: ve,
- timePickerSize: z.timePickerSize,
- startTimeValue: ie,
- endTimeValue: W,
- datePickerSlots: T,
- shortcuts: ae,
- startCalendarDateTime: G,
- endCalendarDateTime: Q,
- justifyColumnsScrollState: we,
- handleFocusDetectorFocus: z.handleFocusDetectorFocus,
- handleStartTimePickerChange: Se,
- handleEndTimePickerChange: je,
- handleStartDateInput: nt,
- handleStartDateInputBlur: $n,
- handleEndDateInput: Ot,
- handleEndDateInputBlur: jn,
- handleStartYearVlScroll: rt,
- handleEndYearVlScroll: ft,
- virtualListContainer: gt,
- virtualListContent: bn,
- onUpdateStartCalendarValue: Qe,
- onUpdateEndCalendarValue: oe
- }
- );
- }
- const GG = ke({
- name: 'DateTimeRangePanel',
- props: Ly,
- setup(e) {
- return Ny(e, 'datetimerange');
- },
- render() {
- var e, t, n;
- const {
- mergedClsPrefix: r,
- mergedTheme: o,
- shortcuts: i,
- timePickerProps: a,
- onRender: s,
- $slots: c
- } = this;
- return (
- s == null || s(),
- h(
- 'div',
- {
- ref: 'selfRef',
- tabindex: 0,
- class: [
- `${r}-date-panel`,
- `${r}-date-panel--datetimerange`,
- !this.panel && `${r}-date-panel--shadow`,
- this.themeClass
- ],
- onKeydown: this.handlePanelKeyDown,
- onFocus: this.handlePanelFocus
- },
- h(
- 'div',
- { class: `${r}-date-panel-header` },
- h(Gi, {
- value: this.startDateDisplayString,
- theme: o.peers.Input,
- themeOverrides: o.peerOverrides.Input,
- size: this.timePickerSize,
- stateful: !1,
- class: `${r}-date-panel-date-input`,
- textDecoration: this.isStartValueInvalid ? 'line-through' : '',
- placeholder: this.locale.selectDate,
- onBlur: this.handleStartDateInputBlur,
- onUpdateValue: this.handleStartDateInput
- }),
- h(
- Vv,
- Object.assign(
- {
- placeholder: this.locale.selectTime,
- format: this.timeFormat,
- size: this.timePickerSize
- },
- Array.isArray(a) ? a[0] : a,
- {
- value: this.startTimeValue,
- to: !1,
- showIcon: !1,
- disabled: this.isSelecting,
- theme: o.peers.TimePicker,
- themeOverrides: o.peerOverrides.TimePicker,
- stateful: !1,
- isHourDisabled: this.isStartHourDisabled,
- isMinuteDisabled: this.isStartMinuteDisabled,
- isSecondDisabled: this.isStartSecondDisabled,
- onUpdateValue: this.handleStartTimePickerChange
- }
- )
- ),
- h(Gi, {
- value: this.endDateInput,
- theme: o.peers.Input,
- themeOverrides: o.peerOverrides.Input,
- stateful: !1,
- size: this.timePickerSize,
- class: `${r}-date-panel-date-input`,
- textDecoration: this.isEndValueInvalid ? 'line-through' : '',
- placeholder: this.locale.selectDate,
- onBlur: this.handleEndDateInputBlur,
- onUpdateValue: this.handleEndDateInput
- }),
- h(
- Vv,
- Object.assign(
- {
- placeholder: this.locale.selectTime,
- format: this.timeFormat,
- size: this.timePickerSize
- },
- Array.isArray(a) ? a[1] : a,
- {
- disabled: this.isSelecting,
- showIcon: !1,
- theme: o.peers.TimePicker,
- themeOverrides: o.peerOverrides.TimePicker,
- to: !1,
- stateful: !1,
- value: this.endTimeValue,
- isHourDisabled: this.isEndHourDisabled,
- isMinuteDisabled: this.isEndMinuteDisabled,
- isSecondDisabled: this.isEndSecondDisabled,
- onUpdateValue: this.handleEndTimePickerChange
- }
- )
- )
- ),
- h(
- 'div',
- {
- ref: 'startDatesElRef',
- class: `${r}-date-panel-calendar ${r}-date-panel-calendar--start`
- },
- h(
- 'div',
- { class: `${r}-date-panel-month` },
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-prev`,
- onClick: this.startCalendarPrevYear
- },
- Kt(c['prev-year'], () => [h(pl, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__prev`,
- onClick: this.startCalendarPrevMonth
- },
- Kt(c['prev-month'], () => [h(vl, null)])
- ),
- h(Bc, {
- monthBeforeYear: this.locale.monthBeforeYear,
- value: this.startCalendarDateTime,
- onUpdateValue: this.onUpdateStartCalendarValue,
- mergedClsPrefix: r,
- calendarMonth: this.startCalendarMonth,
- calendarYear: this.startCalendarYear
- }),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__next`,
- onClick: this.startCalendarNextMonth
- },
- Kt(c['next-month'], () => [h(ml, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-next`,
- onClick: this.startCalendarNextYear
- },
- Kt(c['next-year'], () => [h(gl, null)])
- )
- ),
- h(
- 'div',
- { class: `${r}-date-panel-weekdays` },
- this.weekdays.map(d =>
- h('div', { key: d, class: `${r}-date-panel-weekdays__day` }, d)
- )
- ),
- h('div', { class: `${r}-date-panel__divider` }),
- h(
- 'div',
- { class: `${r}-date-panel-dates` },
- this.startDateArray.map((d, f) => {
- const v = this.mergedIsDateDisabled(d.ts);
- return h(
- 'div',
- {
- 'data-n-date': !0,
- key: f,
- class: [
- `${r}-date-panel-date`,
- {
- [`${r}-date-panel-date--excluded`]: !d.inCurrentMonth,
- [`${r}-date-panel-date--current`]: d.isCurrentDate,
- [`${r}-date-panel-date--selected`]: d.selected,
- [`${r}-date-panel-date--covered`]: d.inSpan,
- [`${r}-date-panel-date--start`]: d.startOfSpan,
- [`${r}-date-panel-date--end`]: d.endOfSpan,
- [`${r}-date-panel-date--disabled`]: v
- }
- ],
- onClick: v
- ? void 0
- : () => {
- this.handleDateClick(d);
- },
- onMouseenter: v
- ? void 0
- : () => {
- this.handleDateMouseEnter(d);
- }
- },
- h('div', { class: `${r}-date-panel-date__trigger` }),
- d.dateObject.date,
- d.isCurrentDate
- ? h('div', { class: `${r}-date-panel-date__sup` })
- : null
- );
- })
- )
- ),
- h('div', { class: `${r}-date-panel__vertical-divider` }),
- h(
- 'div',
- {
- ref: 'endDatesElRef',
- class: `${r}-date-panel-calendar ${r}-date-panel-calendar--end`
- },
- h(
- 'div',
- { class: `${r}-date-panel-month` },
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-prev`,
- onClick: this.endCalendarPrevYear
- },
- Kt(c['prev-year'], () => [h(pl, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__prev`,
- onClick: this.endCalendarPrevMonth
- },
- Kt(c['prev-month'], () => [h(vl, null)])
- ),
- h(Bc, {
- monthBeforeYear: this.locale.monthBeforeYear,
- value: this.endCalendarDateTime,
- onUpdateValue: this.onUpdateEndCalendarValue,
- mergedClsPrefix: r,
- calendarMonth: this.endCalendarMonth,
- calendarYear: this.endCalendarYear
- }),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__next`,
- onClick: this.endCalendarNextMonth
- },
- Kt(c['next-month'], () => [h(ml, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-next`,
- onClick: this.endCalendarNextYear
- },
- Kt(c['next-year'], () => [h(gl, null)])
- )
- ),
- h(
- 'div',
- { class: `${r}-date-panel-weekdays` },
- this.weekdays.map(d =>
- h('div', { key: d, class: `${r}-date-panel-weekdays__day` }, d)
- )
- ),
- h('div', { class: `${r}-date-panel__divider` }),
- h(
- 'div',
- { class: `${r}-date-panel-dates` },
- this.endDateArray.map((d, f) => {
- const v = this.mergedIsDateDisabled(d.ts);
- return h(
- 'div',
- {
- 'data-n-date': !0,
- key: f,
- class: [
- `${r}-date-panel-date`,
- {
- [`${r}-date-panel-date--excluded`]: !d.inCurrentMonth,
- [`${r}-date-panel-date--current`]: d.isCurrentDate,
- [`${r}-date-panel-date--selected`]: d.selected,
- [`${r}-date-panel-date--covered`]: d.inSpan,
- [`${r}-date-panel-date--start`]: d.startOfSpan,
- [`${r}-date-panel-date--end`]: d.endOfSpan,
- [`${r}-date-panel-date--disabled`]: v
- }
- ],
- onClick: v
- ? void 0
- : () => {
- this.handleDateClick(d);
- },
- onMouseenter: v
- ? void 0
- : () => {
- this.handleDateMouseEnter(d);
- }
- },
- h('div', { class: `${r}-date-panel-date__trigger` }),
- d.dateObject.date,
- d.isCurrentDate
- ? h('div', { class: `${r}-date-panel-date__sup` })
- : null
- );
- })
- )
- ),
- this.datePickerSlots.footer
- ? h(
- 'div',
- { class: `${r}-date-panel-footer` },
- this.datePickerSlots.footer()
- )
- : null,
- (!((e = this.actions) === null || e === void 0) && e.length) || i
- ? h(
- 'div',
- { class: `${r}-date-panel-actions` },
- h(
- 'div',
- { class: `${r}-date-panel-actions__prefix` },
- i &&
- Object.keys(i).map(d => {
- const f = i[d];
- return Array.isArray(f) || typeof f == 'function'
- ? h(
- Wi,
- {
- size: 'tiny',
- onMouseenter: () => {
- this.handleRangeShortcutMouseenter(f);
- },
- onClick: () => {
- this.handleRangeShortcutClick(f);
- },
- onMouseleave: () => {
- this.handleShortcutMouseleave();
- }
- },
- { default: () => d }
- )
- : null;
- })
- ),
- h(
- 'div',
- { class: `${r}-date-panel-actions__suffix` },
- !((t = this.actions) === null || t === void 0) &&
- t.includes('clear')
- ? h(
- nr,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleClearClick
- },
- { default: () => this.locale.clear }
- )
- : null,
- !((n = this.actions) === null || n === void 0) &&
- n.includes('confirm')
- ? h(
- nr,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- type: 'primary',
- disabled: this.isRangeInvalid || this.isSelecting,
- onClick: this.handleConfirmClick
- },
- { default: () => this.locale.confirm }
- )
- : null
- )
- )
- : null,
- h(_l, { onFocus: this.handleFocusDetectorFocus })
- )
- );
- }
- }),
- XG = ke({
- name: 'DatePanel',
- props: Fy,
- setup(e) {
- return By(e, 'date');
- },
- render() {
- var e, t, n;
- const {
- mergedClsPrefix: r,
- mergedTheme: o,
- shortcuts: i,
- onRender: a,
- $slots: s
- } = this;
- return (
- a == null || a(),
- h(
- 'div',
- {
- ref: 'selfRef',
- tabindex: 0,
- class: [
- `${r}-date-panel`,
- `${r}-date-panel--date`,
- !this.panel && `${r}-date-panel--shadow`,
- this.themeClass
- ],
- onFocus: this.handlePanelFocus,
- onKeydown: this.handlePanelKeyDown
- },
- h(
- 'div',
- { class: `${r}-date-panel-calendar` },
- h(
- 'div',
- { class: `${r}-date-panel-month` },
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-prev`,
- onClick: this.prevYear
- },
- Kt(s['prev-year'], () => [h(pl, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__prev`,
- onClick: this.prevMonth
- },
- Kt(s['prev-month'], () => [h(vl, null)])
- ),
- h(Bc, {
- monthBeforeYear: this.locale.monthBeforeYear,
- value: this.calendarValue,
- onUpdateValue: this.onUpdateCalendarValue,
- mergedClsPrefix: r,
- calendarMonth: this.calendarMonth,
- calendarYear: this.calendarYear
- }),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__next`,
- onClick: this.nextMonth
- },
- Kt(s['next-month'], () => [h(ml, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-next`,
- onClick: this.nextYear
- },
- Kt(s['next-year'], () => [h(gl, null)])
- )
- ),
- h(
- 'div',
- { class: `${r}-date-panel-weekdays` },
- this.weekdays.map(c =>
- h('div', { key: c, class: `${r}-date-panel-weekdays__day` }, c)
- )
- ),
- h(
- 'div',
- { class: `${r}-date-panel-dates` },
- this.dateArray.map((c, d) =>
- h(
- 'div',
- {
- 'data-n-date': !0,
- key: d,
- class: [
- `${r}-date-panel-date`,
- {
- [`${r}-date-panel-date--current`]: c.isCurrentDate,
- [`${r}-date-panel-date--selected`]: c.selected,
- [`${r}-date-panel-date--excluded`]: !c.inCurrentMonth,
- [`${r}-date-panel-date--disabled`]:
- this.mergedIsDateDisabled(c.ts)
- }
- ],
- onClick: () => {
- this.handleDateClick(c);
- }
- },
- h('div', { class: `${r}-date-panel-date__trigger` }),
- c.dateObject.date,
- c.isCurrentDate
- ? h('div', { class: `${r}-date-panel-date__sup` })
- : null
- )
- )
- )
- ),
- this.datePickerSlots.footer
- ? h(
- 'div',
- { class: `${r}-date-panel-footer` },
- this.datePickerSlots.footer()
- )
- : null,
- (!((e = this.actions) === null || e === void 0) && e.length) || i
- ? h(
- 'div',
- { class: `${r}-date-panel-actions` },
- h(
- 'div',
- { class: `${r}-date-panel-actions__prefix` },
- i &&
- Object.keys(i).map(c => {
- const d = i[c];
- return Array.isArray(d)
- ? null
- : h(
- Wi,
- {
- size: 'tiny',
- onMouseenter: () => {
- this.handleSingleShortcutMouseenter(d);
- },
- onClick: () => {
- this.handleSingleShortcutClick(d);
- },
- onMouseleave: () => {
- this.handleShortcutMouseleave();
- }
- },
- { default: () => c }
- );
- })
- ),
- h(
- 'div',
- { class: `${r}-date-panel-actions__suffix` },
- !((t = this.actions) === null || t === void 0) &&
- t.includes('clear')
- ? h(
- nr,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleClearClick
- },
- { default: () => this.locale.clear }
- )
- : null,
- !((n = this.actions) === null || n === void 0) &&
- n.includes('now')
- ? h(
- nr,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleNowClick
- },
- { default: () => this.locale.now }
- )
- : null
- )
- )
- : null,
- h(_l, { onFocus: this.handleFocusDetectorFocus })
- )
- );
- }
- }),
- ZG = ke({
- name: 'DateRangePanel',
- props: Ly,
- setup(e) {
- return Ny(e, 'daterange');
- },
- render() {
- var e, t, n;
- const {
- mergedClsPrefix: r,
- mergedTheme: o,
- shortcuts: i,
- onRender: a,
- $slots: s
- } = this;
- return (
- a == null || a(),
- h(
- 'div',
- {
- ref: 'selfRef',
- tabindex: 0,
- class: [
- `${r}-date-panel`,
- `${r}-date-panel--daterange`,
- !this.panel && `${r}-date-panel--shadow`,
- this.themeClass
- ],
- onKeydown: this.handlePanelKeyDown,
- onFocus: this.handlePanelFocus
- },
- h(
- 'div',
- {
- ref: 'startDatesElRef',
- class: `${r}-date-panel-calendar ${r}-date-panel-calendar--start`
- },
- h(
- 'div',
- { class: `${r}-date-panel-month` },
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-prev`,
- onClick: this.startCalendarPrevYear
- },
- Kt(s['prev-year'], () => [h(pl, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__prev`,
- onClick: this.startCalendarPrevMonth
- },
- Kt(s['prev-month'], () => [h(vl, null)])
- ),
- h(Bc, {
- monthBeforeYear: this.locale.monthBeforeYear,
- value: this.startCalendarDateTime,
- onUpdateValue: this.onUpdateStartCalendarValue,
- mergedClsPrefix: r,
- calendarMonth: this.startCalendarMonth,
- calendarYear: this.startCalendarYear
- }),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__next`,
- onClick: this.startCalendarNextMonth
- },
- Kt(s['next-month'], () => [h(ml, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-next`,
- onClick: this.startCalendarNextYear
- },
- Kt(s['next-year'], () => [h(gl, null)])
- )
- ),
- h(
- 'div',
- { class: `${r}-date-panel-weekdays` },
- this.weekdays.map(c =>
- h('div', { key: c, class: `${r}-date-panel-weekdays__day` }, c)
- )
- ),
- h('div', { class: `${r}-date-panel__divider` }),
- h(
- 'div',
- { class: `${r}-date-panel-dates` },
- this.startDateArray.map((c, d) =>
- h(
- 'div',
- {
- 'data-n-date': !0,
- key: d,
- class: [
- `${r}-date-panel-date`,
- {
- [`${r}-date-panel-date--excluded`]: !c.inCurrentMonth,
- [`${r}-date-panel-date--current`]: c.isCurrentDate,
- [`${r}-date-panel-date--selected`]: c.selected,
- [`${r}-date-panel-date--covered`]: c.inSpan,
- [`${r}-date-panel-date--start`]: c.startOfSpan,
- [`${r}-date-panel-date--end`]: c.endOfSpan,
- [`${r}-date-panel-date--disabled`]:
- this.mergedIsDateDisabled(c.ts)
- }
- ],
- onClick: () => {
- this.handleDateClick(c);
- },
- onMouseenter: () => {
- this.handleDateMouseEnter(c);
- }
- },
- h('div', { class: `${r}-date-panel-date__trigger` }),
- c.dateObject.date,
- c.isCurrentDate
- ? h('div', { class: `${r}-date-panel-date__sup` })
- : null
- )
- )
- )
- ),
- h('div', { class: `${r}-date-panel__vertical-divider` }),
- h(
- 'div',
- {
- ref: 'endDatesElRef',
- class: `${r}-date-panel-calendar ${r}-date-panel-calendar--end`
- },
- h(
- 'div',
- { class: `${r}-date-panel-month` },
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-prev`,
- onClick: this.endCalendarPrevYear
- },
- Kt(s['prev-year'], () => [h(pl, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__prev`,
- onClick: this.endCalendarPrevMonth
- },
- Kt(s['prev-month'], () => [h(vl, null)])
- ),
- h(Bc, {
- monthBeforeYear: this.locale.monthBeforeYear,
- value: this.endCalendarDateTime,
- onUpdateValue: this.onUpdateEndCalendarValue,
- mergedClsPrefix: r,
- calendarMonth: this.endCalendarMonth,
- calendarYear: this.endCalendarYear
- }),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__next`,
- onClick: this.endCalendarNextMonth
- },
- Kt(s['next-month'], () => [h(ml, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-next`,
- onClick: this.endCalendarNextYear
- },
- Kt(s['next-year'], () => [h(gl, null)])
- )
- ),
- h(
- 'div',
- { class: `${r}-date-panel-weekdays` },
- this.weekdays.map(c =>
- h('div', { key: c, class: `${r}-date-panel-weekdays__day` }, c)
- )
- ),
- h('div', { class: `${r}-date-panel__divider` }),
- h(
- 'div',
- { class: `${r}-date-panel-dates` },
- this.endDateArray.map((c, d) =>
- h(
- 'div',
- {
- 'data-n-date': !0,
- key: d,
- class: [
- `${r}-date-panel-date`,
- {
- [`${r}-date-panel-date--excluded`]: !c.inCurrentMonth,
- [`${r}-date-panel-date--current`]: c.isCurrentDate,
- [`${r}-date-panel-date--selected`]: c.selected,
- [`${r}-date-panel-date--covered`]: c.inSpan,
- [`${r}-date-panel-date--start`]: c.startOfSpan,
- [`${r}-date-panel-date--end`]: c.endOfSpan,
- [`${r}-date-panel-date--disabled`]:
- this.mergedIsDateDisabled(c.ts)
- }
- ],
- onClick: () => {
- this.handleDateClick(c);
- },
- onMouseenter: () => {
- this.handleDateMouseEnter(c);
- }
- },
- h('div', { class: `${r}-date-panel-date__trigger` }),
- c.dateObject.date,
- c.isCurrentDate
- ? h('div', { class: `${r}-date-panel-date__sup` })
- : null
- )
- )
- )
- ),
- this.datePickerSlots.footer
- ? h(
- 'div',
- { class: `${r}-date-panel-footer` },
- this.datePickerSlots.footer()
- )
- : null,
- (!((e = this.actions) === null || e === void 0) && e.length) || i
- ? h(
- 'div',
- { class: `${r}-date-panel-actions` },
- h(
- 'div',
- { class: `${r}-date-panel-actions__prefix` },
- i &&
- Object.keys(i).map(c => {
- const d = i[c];
- return Array.isArray(d) || typeof d == 'function'
- ? h(
- Wi,
- {
- size: 'tiny',
- onMouseenter: () => {
- this.handleRangeShortcutMouseenter(d);
- },
- onClick: () => {
- this.handleRangeShortcutClick(d);
- },
- onMouseleave: () => {
- this.handleShortcutMouseleave();
- }
- },
- { default: () => c }
- )
- : null;
- })
- ),
- h(
- 'div',
- { class: `${r}-date-panel-actions__suffix` },
- !((t = this.actions) === null || t === void 0) &&
- t.includes('clear')
- ? h(
- nr,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleClearClick
- },
- { default: () => this.locale.clear }
- )
- : null,
- !((n = this.actions) === null || n === void 0) &&
- n.includes('confirm')
- ? h(
- nr,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- type: 'primary',
- disabled: this.isRangeInvalid || this.isSelecting,
- onClick: this.handleConfirmClick
- },
- { default: () => this.locale.confirm }
- )
- : null
- )
- )
- : null,
- h(_l, { onFocus: this.handleFocusDetectorFocus })
- )
- );
- }
- }),
- QG = ke({
- name: 'MonthRangePanel',
- props: Object.assign(Object.assign({}, Ly), {
- type: { type: String, required: !0 }
- }),
- setup(e) {
- const t = Ny(e, e.type),
- n = (r, o, i, a) => {
- const { handleColItemClick: s } = t,
- c = !1;
- return h(
- 'div',
- {
- 'data-n-date': !0,
- key: o,
- class: [
- `${i}-date-panel-month-calendar__picker-col-item`,
- {
- [`${i}-date-panel-month-calendar__picker-col-item--current`]:
- r.isCurrent,
- [`${i}-date-panel-month-calendar__picker-col-item--selected`]:
- r.selected,
- [`${i}-date-panel-month-calendar__picker-col-item--disabled`]:
- c
- }
- ],
- onClick: () => {
- s(r, a);
- }
- },
- r.type === 'month'
- ? r.dateObject.month + 1
- : r.type === 'quarter'
- ? `Q${r.dateObject.quarter}`
- : r.dateObject.year
- );
- };
- return (
- Hn(() => {
- t.justifyColumnsScrollState();
- }),
- Object.assign(Object.assign({}, t), { renderItem: n })
- );
- },
- render() {
- var e, t, n;
- const {
- mergedClsPrefix: r,
- mergedTheme: o,
- shortcuts: i,
- type: a,
- renderItem: s,
- onRender: c
- } = this;
- return (
- c == null || c(),
- h(
- 'div',
- {
- ref: 'selfRef',
- tabindex: 0,
- class: [
- `${r}-date-panel`,
- `${r}-date-panel--daterange`,
- !this.panel && `${r}-date-panel--shadow`,
- this.themeClass
- ],
- onKeydown: this.handlePanelKeyDown,
- onFocus: this.handlePanelFocus
- },
- h(
- 'div',
- {
- ref: 'startDatesElRef',
- class: `${r}-date-panel-calendar ${r}-date-panel-calendar--start`
- },
- h(
- 'div',
- { class: `${r}-date-panel-month-calendar` },
- h(
- yr,
- {
- ref: 'startYearScrollbarRef',
- class: `${r}-date-panel-month-calendar__picker-col`,
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar,
- container: () => this.virtualListContainer('start'),
- content: () => this.virtualListContent('start'),
- horizontalRailStyle: { zIndex: 1 },
- verticalRailStyle: { zIndex: 1 }
- },
- {
- default: () =>
- h(
- Ec,
- {
- ref: 'startYearVlRef',
- items: this.startYearArray,
- itemSize: _s,
- showScrollbar: !1,
- keyField: 'ts',
- onScroll: this.handleStartYearVlScroll,
- paddingBottom: 4
- },
- {
- default: ({ item: d, index: f }) => s(d, f, r, 'start')
- }
- )
- }
- ),
- a === 'monthrange' || a === 'quarterrange'
- ? h(
- 'div',
- { class: `${r}-date-panel-month-calendar__picker-col` },
- h(
- yr,
- {
- ref: 'startMonthScrollbarRef',
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar
- },
- {
- default: () => [
- (a === 'monthrange'
- ? this.startMonthArray
- : this.startQuarterArray
- ).map((d, f) => s(d, f, r, 'start')),
- a === 'monthrange' &&
- h('div', {
- class: `${r}-date-panel-month-calendar__padding`
- })
- ]
- }
- )
- )
- : null
- )
- ),
- h('div', { class: `${r}-date-panel__vertical-divider` }),
- h(
- 'div',
- {
- ref: 'endDatesElRef',
- class: `${r}-date-panel-calendar ${r}-date-panel-calendar--end`
- },
- h(
- 'div',
- { class: `${r}-date-panel-month-calendar` },
- h(
- yr,
- {
- ref: 'endYearScrollbarRef',
- class: `${r}-date-panel-month-calendar__picker-col`,
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar,
- container: () => this.virtualListContainer('end'),
- content: () => this.virtualListContent('end'),
- horizontalRailStyle: { zIndex: 1 },
- verticalRailStyle: { zIndex: 1 }
- },
- {
- default: () =>
- h(
- Ec,
- {
- ref: 'endYearVlRef',
- items: this.endYearArray,
- itemSize: _s,
- showScrollbar: !1,
- keyField: 'ts',
- onScroll: this.handleEndYearVlScroll,
- paddingBottom: 4
- },
- { default: ({ item: d, index: f }) => s(d, f, r, 'end') }
- )
- }
- ),
- a === 'monthrange' || a === 'quarterrange'
- ? h(
- 'div',
- { class: `${r}-date-panel-month-calendar__picker-col` },
- h(
- yr,
- {
- ref: 'endMonthScrollbarRef',
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar
- },
- {
- default: () => [
- (a === 'monthrange'
- ? this.endMonthArray
- : this.endQuarterArray
- ).map((d, f) => s(d, f, r, 'end')),
- a === 'monthrange' &&
- h('div', {
- class: `${r}-date-panel-month-calendar__padding`
- })
- ]
- }
- )
- )
- : null
- )
- ),
- this.datePickerSlots.footer
- ? h(
- 'div',
- { class: `${r}-date-panel-footer` },
- j0(this.datePickerSlots, 'footer')
- )
- : null,
- (!((e = this.actions) === null || e === void 0) && e.length) || i
- ? h(
- 'div',
- { class: `${r}-date-panel-actions` },
- h(
- 'div',
- { class: `${r}-date-panel-actions__prefix` },
- i &&
- Object.keys(i).map(d => {
- const f = i[d];
- return Array.isArray(f) || typeof f == 'function'
- ? h(
- Wi,
- {
- size: 'tiny',
- onMouseenter: () => {
- this.handleRangeShortcutMouseenter(f);
- },
- onClick: () => {
- this.handleRangeShortcutClick(f);
- },
- onMouseleave: () => {
- this.handleShortcutMouseleave();
- }
- },
- { default: () => d }
- )
- : null;
- })
- ),
- h(
- 'div',
- { class: `${r}-date-panel-actions__suffix` },
- !((t = this.actions) === null || t === void 0) &&
- t.includes('clear')
- ? h(
- Wi,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleClearClick
- },
- { default: () => this.locale.clear }
- )
- : null,
- !((n = this.actions) === null || n === void 0) &&
- n.includes('confirm')
- ? h(
- Wi,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- type: 'primary',
- disabled: this.isRangeInvalid,
- onClick: this.handleConfirmClick
- },
- { default: () => this.locale.confirm }
- )
- : null
- )
- )
- : null,
- h(_l, { onFocus: this.handleFocusDetectorFocus })
- )
- );
- }
- }),
- JG = F([
- O(
- 'date-picker',
- `
- position: relative;
- z-index: auto;
- `,
- [
- O(
- 'date-picker-icon',
- `
- color: var(--n-icon-color-override);
- transition: color .3s var(--n-bezier);
- `
- ),
- O(
- 'icon',
- `
- color: var(--n-icon-color-override);
- transition: color .3s var(--n-bezier);
- `
- ),
- U('disabled', [
- O(
- 'date-picker-icon',
- `
- color: var(--n-icon-color-disabled-override);
- `
- ),
- O(
- 'icon',
- `
- color: var(--n-icon-color-disabled-override);
- `
- )
- ])
- ]
- ),
- O(
- 'date-panel',
- `
- width: fit-content;
- outline: none;
- margin: 4px 0;
- display: grid;
- grid-template-columns: 0fr;
- border-radius: var(--n-panel-border-radius);
- background-color: var(--n-panel-color);
- color: var(--n-panel-text-color);
- `,
- [
- gi(),
- U(
- 'shadow',
- `
- box-shadow: var(--n-panel-box-shadow);
- `
- ),
- O(
- 'date-panel-calendar',
- {
- padding: 'var(--n-calendar-left-padding)',
- display: 'grid',
- gridTemplateColumns: '1fr',
- gridArea: 'left-calendar'
- },
- [
- U('end', {
- padding: 'var(--n-calendar-right-padding)',
- gridArea: 'right-calendar'
- })
- ]
- ),
- O(
- 'date-panel-month-calendar',
- { display: 'flex', gridArea: 'left-calendar' },
- [
- V(
- 'picker-col',
- `
- min-width: var(--n-scroll-item-width);
- height: calc(var(--n-scroll-item-height) * 6);
- user-select: none;
- -webkit-user-select: none;
- `,
- [
- F(
- '&:first-child',
- `
- min-width: calc(var(--n-scroll-item-width) + 4px);
- `,
- [V('picker-col-item', [F('&::before', 'left: 4px;')])]
- ),
- V(
- 'padding',
- `
- height: calc(var(--n-scroll-item-height) * 5)
- `
- )
- ]
- ),
- V(
- 'picker-col-item',
- `
- z-index: 0;
- cursor: pointer;
- height: var(--n-scroll-item-height);
- box-sizing: border-box;
- padding-top: 4px;
- display: flex;
- align-items: center;
- justify-content: center;
- position: relative;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- background: #0000;
- color: var(--n-item-text-color);
- `,
- [
- F(
- '&::before',
- `
- z-index: -1;
- content: "";
- position: absolute;
- left: 0;
- right: 4px;
- top: 4px;
- bottom: 0;
- border-radius: var(--n-scroll-item-border-radius);
- transition:
- background-color .3s var(--n-bezier);
- `
- ),
- jt('disabled', [
- F(
- '&:hover::before',
- `
- background-color: var(--n-item-color-hover);
- `
- ),
- U(
- 'selected',
- `
- color: var(--n-item-color-active);
- `,
- [
- F(
- '&::before',
- 'background-color: var(--n-item-color-hover);'
- )
- ]
- )
- ]),
- U(
- 'disabled',
- `
- color: var(--n-item-text-color-disabled);
- cursor: not-allowed;
- `,
- [
- U('selected', [
- F(
- '&::before',
- `
- background-color: var(--n-item-color-disabled);
- `
- )
- ])
- ]
- )
- ]
- )
- ]
- ),
- U('date', {
- gridTemplateAreas: `
- "left-calendar"
- "footer"
- "action"
- `
- }),
- U('daterange', {
- gridTemplateAreas: `
- "left-calendar divider right-calendar"
- "footer footer footer"
- "action action action"
- `
- }),
- U('datetime', {
- gridTemplateAreas: `
- "header"
- "left-calendar"
- "footer"
- "action"
- `
- }),
- U('datetimerange', {
- gridTemplateAreas: `
- "header header header"
- "left-calendar divider right-calendar"
- "footer footer footer"
- "action action action"
- `
- }),
- U('month', {
- gridTemplateAreas: `
- "left-calendar"
- "footer"
- "action"
- `
- }),
- O('date-panel-footer', { gridArea: 'footer' }),
- O('date-panel-actions', { gridArea: 'action' }),
- O('date-panel-header', { gridArea: 'header' }),
- O(
- 'date-panel-header',
- `
- box-sizing: border-box;
- width: 100%;
- align-items: center;
- padding: var(--n-panel-header-padding);
- display: flex;
- justify-content: space-between;
- border-bottom: 1px solid var(--n-panel-header-divider-color);
- `,
- [
- F('>', [
- F('*:not(:last-child)', { marginRight: '10px' }),
- F('*', { flex: 1, width: 0 }),
- O('time-picker', { zIndex: 1 })
- ])
- ]
- ),
- O(
- 'date-panel-month',
- `
- box-sizing: border-box;
- display: grid;
- grid-template-columns: var(--n-calendar-title-grid-template-columns);
- align-items: center;
- justify-items: center;
- padding: var(--n-calendar-title-padding);
- height: var(--n-calendar-title-height);
- `,
- [
- V(
- 'prev, next, fast-prev, fast-next',
- `
- line-height: 0;
- cursor: pointer;
- width: var(--n-arrow-size);
- height: var(--n-arrow-size);
- color: var(--n-arrow-color);
- `
- ),
- V(
- 'month-year',
- `
- user-select: none;
- -webkit-user-select: none;
- flex-grow: 1;
- position: relative;
- `,
- [
- V(
- 'text',
- `
- font-size: var(--n-calendar-title-font-size);
- line-height: var(--n-calendar-title-font-size);
- font-weight: var(--n-calendar-title-font-weight);
- padding: 6px 8px;
- text-align: center;
- color: var(--n-calendar-title-text-color);
- cursor: pointer;
- transition: background-color .3s var(--n-bezier);
- border-radius: var(--n-panel-border-radius);
- `,
- [
- U(
- 'active',
- `
- background-color: var(--n-calendar-title-color-hover);
- `
- ),
- F(
- '&:hover',
- `
- background-color: var(--n-calendar-title-color-hover);
- `
- )
- ]
- )
- ]
- )
- ]
- ),
- O(
- 'date-panel-weekdays',
- `
- display: grid;
- margin: auto;
- grid-template-columns: repeat(7, var(--n-item-cell-width));
- grid-template-rows: repeat(1, var(--n-item-cell-height));
- align-items: center;
- justify-items: center;
- margin-bottom: 4px;
- border-bottom: 1px solid var(--n-calendar-days-divider-color);
- `,
- [
- V(
- 'day',
- `
- user-select: none;
- -webkit-user-select: none;
- line-height: 15px;
- width: var(--n-item-size);
- text-align: center;
- font-size: var(--n-calendar-days-font-size);
- color: var(--n-item-text-color);
- `
- )
- ]
- ),
- O(
- 'date-panel-dates',
- `
- margin: auto;
- display: grid;
- grid-template-columns: repeat(7, var(--n-item-cell-width));
- grid-template-rows: repeat(6, var(--n-item-cell-height));
- align-items: center;
- justify-items: center;
- flex-wrap: wrap;
- `,
- [
- O(
- 'date-panel-date',
- `
- user-select: none;
- -webkit-user-select: none;
- position: relative;
- width: var(--n-item-size);
- height: var(--n-item-size);
- line-height: var(--n-item-size);
- text-align: center;
- font-size: var(--n-item-font-size);
- border-radius: var(--n-item-border-radius);
- z-index: 0;
- cursor: pointer;
- transition:
- background-color .2s var(--n-bezier),
- color .2s var(--n-bezier);
- `,
- [
- V(
- 'trigger',
- `
- position: absolute;
- left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2);
- top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2);
- width: var(--n-item-cell-width);
- height: var(--n-item-cell-height);
- `
- ),
- jt('disabled', [
- jt('selected', [
- F('&:hover', {
- backgroundColor: 'var(--n-item-color-hover)'
- })
- ])
- ]),
- U('current', [
- V(
- 'sup',
- `
- position: absolute;
- top: 2px;
- right: 2px;
- content: "";
- height: 4px;
- width: 4px;
- border-radius: 2px;
- background-color: var(--n-item-color-active);
- transition:
- background-color .2s var(--n-bezier);
- `
- )
- ]),
- F(
- '&::after',
- `
- content: "";
- z-index: -1;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- border-radius: inherit;
- transition: background-color .3s var(--n-bezier);
- `
- ),
- U('covered, start, end', [
- jt('excluded', [
- F(
- '&::before',
- `
- content: "";
- z-index: -2;
- position: absolute;
- left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
- right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
- top: 0;
- bottom: 0;
- background-color: var(--n-item-color-included);
- `
- ),
- F('&:nth-child(7n + 1)::before', {
- borderTopLeftRadius: 'var(--n-item-border-radius)',
- borderBottomLeftRadius: 'var(--n-item-border-radius)'
- }),
- F('&:nth-child(7n + 7)::before', {
- borderTopRightRadius: 'var(--n-item-border-radius)',
- borderBottomRightRadius: 'var(--n-item-border-radius)'
- })
- ])
- ]),
- U('selected', { color: 'var(--n-item-text-color-active)' }, [
- F('&::after', {
- backgroundColor: 'var(--n-item-color-active)'
- }),
- U('start', [F('&::before', { left: '50%' })]),
- U('end', [F('&::before', { right: '50%' })]),
- V('sup', { backgroundColor: 'var(--n-panel-color)' })
- ]),
- U('excluded', { color: 'var(--n-item-text-color-disabled)' }, [
- U('selected', [
- F('&::after', {
- backgroundColor: 'var(--n-item-color-disabled)'
- })
- ])
- ]),
- U(
- 'disabled',
- {
- cursor: 'not-allowed',
- color: 'var(--n-item-text-color-disabled)'
- },
- [
- U('covered', [
- F('&::before', {
- backgroundColor: 'var(--n-item-color-disabled)'
- })
- ]),
- U('selected', [
- F('&::before', {
- backgroundColor: 'var(--n-item-color-disabled)'
- }),
- F('&::after', {
- backgroundColor: 'var(--n-item-color-disabled)'
- })
- ])
- ]
- )
- ]
- )
- ]
- ),
- V(
- 'vertical-divider',
- `
- grid-area: divider;
- height: 100%;
- width: 1px;
- background-color: var(--n-calendar-divider-color);
- `
- ),
- O('date-panel-footer', {
- borderTop: '1px solid var(--n-panel-action-divider-color)',
- padding: 'var(--n-panel-extra-footer-padding)'
- }),
- O(
- 'date-panel-actions',
- `
- flex: 1;
- padding: var(--n-panel-action-padding);
- display: flex;
- align-items: center;
- justify-content: space-between;
- border-top: 1px solid var(--n-panel-action-divider-color);
- `,
- [
- V(
- 'prefix, suffix',
- `
- display: flex;
- margin-bottom: -8px;
- `
- ),
- V(
- 'suffix',
- `
- align-self: flex-end;
- `
- ),
- V(
- 'prefix',
- `
- flex-wrap: wrap;
- `
- ),
- O(
- 'button',
- `
- margin-bottom: 8px;
- `,
- [
- F(
- '&:not(:last-child)',
- `
- margin-right: 8px;
- `
- )
- ]
- )
- ]
- )
- ]
- ),
- F('[data-n-date].transition-disabled', { transition: 'none !important' }, [
- F('&::before, &::after', { transition: 'none !important' })
- ])
- ]),
- eX = Object.assign(Object.assign({}, Ke.props), {
- to: Yr.propTo,
- bordered: { type: Boolean, default: void 0 },
- clearable: Boolean,
- updateValueOnClose: Boolean,
- defaultValue: [Number, Array],
- defaultFormattedValue: [String, Array],
- defaultTime: [Number, String, Array],
- disabled: { type: Boolean, default: void 0 },
- placement: { type: String, default: 'bottom-start' },
- value: [Number, Array],
- formattedValue: [String, Array],
- size: String,
- type: { type: String, default: 'date' },
- valueFormat: String,
- separator: String,
- placeholder: String,
- startPlaceholder: String,
- endPlaceholder: String,
- format: String,
- dateFormat: String,
- timeFormat: String,
- actions: Array,
- shortcuts: Object,
- isDateDisabled: Function,
- isTimeDisabled: Function,
- show: { type: Boolean, default: void 0 },
- panel: Boolean,
- ranges: Object,
- firstDayOfWeek: Number,
- inputReadonly: Boolean,
- closeOnSelect: Boolean,
- status: String,
- timePickerProps: [Object, Array],
- onClear: Function,
- onConfirm: Function,
- defaultCalendarStartTime: Number,
- defaultCalendarEndTime: Number,
- bindCalendarMonths: Boolean,
- 'onUpdate:show': [Function, Array],
- onUpdateShow: [Function, Array],
- 'onUpdate:formattedValue': [Function, Array],
- onUpdateFormattedValue: [Function, Array],
- 'onUpdate:value': [Function, Array],
- onUpdateValue: [Function, Array],
- onFocus: [Function, Array],
- onBlur: [Function, Array],
- onChange: [Function, Array]
- }),
- tX = ke({
- name: 'DatePicker',
- props: eX,
- setup(e, { slots: t }) {
- var n;
- const { localeRef: r, dateLocaleRef: o } = Ta('DatePicker'),
- i = ei(e),
- { mergedSizeRef: a, mergedDisabledRef: s, mergedStatusRef: c } = i,
- {
- mergedComponentPropsRef: d,
- mergedClsPrefixRef: f,
- mergedBorderedRef: v,
- namespaceRef: p,
- inlineThemeDisabled: m
- } = yt(e),
- g = Z(null),
- w = Z(null),
- x = Z(null),
- y = Z(!1),
- C = Ie(e, 'show'),
- R = En(C, y),
- S = I(() => ({ locale: o.value.locale })),
- _ = I(() => {
- const { format: me } = e;
- if (me) return me;
- switch (e.type) {
- case 'date':
- case 'daterange':
- return r.value.dateFormat;
- case 'datetime':
- case 'datetimerange':
- return r.value.dateTimeFormat;
- case 'year':
- case 'yearrange':
- return r.value.yearTypeFormat;
- case 'month':
- case 'monthrange':
- return r.value.monthTypeFormat;
- case 'quarter':
- case 'quarterrange':
- return r.value.quarterFormat;
- }
- }),
- P = I(() => {
- var me;
- return (me = e.valueFormat) !== null && me !== void 0 ? me : _.value;
- });
- function T(me) {
- if (me === null) return null;
- const { value: He } = P,
- { value: tt } = S;
- return Array.isArray(me)
- ? [
- xo(me[0], He, new Date(), tt).getTime(),
- xo(me[1], He, new Date(), tt).getTime()
- ]
- : xo(me, He, new Date(), tt).getTime();
- }
- const { defaultFormattedValue: E, defaultValue: z } = e,
- k = Z(
- (n = E !== void 0 ? T(E) : z) !== null && n !== void 0 ? n : null
- ),
- M = I(() => {
- const { formattedValue: me } = e;
- return me !== void 0 ? T(me) : e.value;
- }),
- A = En(M, k),
- D = Z(null);
- Bn(() => {
- D.value = A.value;
- });
- const L = Z(''),
- H = Z(''),
- B = Z(''),
- q = Ke('DatePicker', '-date-picker', JG, pY, e, f),
- X = I(() => {
- var me, He;
- return (
- ((He =
- (me = d == null ? void 0 : d.value) === null || me === void 0
- ? void 0
- : me.DatePicker) === null || He === void 0
- ? void 0
- : He.timePickerSize) || 'small'
- );
- }),
- te = I(() =>
- [
- 'daterange',
- 'datetimerange',
- 'monthrange',
- 'quarterrange',
- 'yearrange'
- ].includes(e.type)
- ),
- G = I(() => {
- const { placeholder: me } = e;
- if (me === void 0) {
- const { type: He } = e;
- switch (He) {
- case 'date':
- return r.value.datePlaceholder;
- case 'datetime':
- return r.value.datetimePlaceholder;
- case 'month':
- return r.value.monthPlaceholder;
- case 'year':
- return r.value.yearPlaceholder;
- case 'quarter':
- return r.value.quarterPlaceholder;
- default:
- return '';
- }
- } else return me;
- }),
- Q = I(() =>
- e.startPlaceholder === void 0
- ? e.type === 'daterange'
- ? r.value.startDatePlaceholder
- : e.type === 'datetimerange'
- ? r.value.startDatetimePlaceholder
- : e.type === 'monthrange'
- ? r.value.startMonthPlaceholder
- : ''
- : e.startPlaceholder
- ),
- re = I(() =>
- e.endPlaceholder === void 0
- ? e.type === 'daterange'
- ? r.value.endDatePlaceholder
- : e.type === 'datetimerange'
- ? r.value.endDatetimePlaceholder
- : e.type === 'monthrange'
- ? r.value.endMonthPlaceholder
- : ''
- : e.endPlaceholder
- ),
- se = I(() => {
- const { actions: me, type: He, clearable: tt } = e;
- if (me === null) return [];
- if (me !== void 0) return me;
- const pt = tt ? ['clear'] : [];
- switch (He) {
- case 'date':
- return pt.push('now'), pt;
- case 'datetime':
- return pt.push('now', 'confirm'), pt;
- case 'daterange':
- return pt.push('confirm'), pt;
- case 'datetimerange':
- return pt.push('confirm'), pt;
- case 'month':
- return pt.push('now', 'confirm'), pt;
- case 'year':
- return pt.push('now'), pt;
- case 'quarter':
- return pt.push('now', 'confirm'), pt;
- case 'monthrange':
- case 'yearrange':
- case 'quarterrange':
- return pt.push('confirm'), pt;
- default: {
- Io(
- 'date-picker',
- "The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`."
- );
- break;
- }
- }
- });
- function pe(me) {
- if (me === null) return null;
- if (Array.isArray(me)) {
- const { value: He } = P,
- { value: tt } = S;
- return [Xn(me[0], He, tt), Xn(me[1], He, S.value)];
- } else return Xn(me, P.value, S.value);
- }
- function ce(me) {
- D.value = me;
- }
- function xe(me, He) {
- const { 'onUpdate:formattedValue': tt, onUpdateFormattedValue: pt } = e;
- tt && Me(tt, me, He), pt && Me(pt, me, He);
- }
- function ve(me, He) {
- const { 'onUpdate:value': tt, onUpdateValue: pt, onChange: Pe } = e,
- { nTriggerFormChange: Ve, nTriggerFormInput: nt } = i,
- Ot = pe(me);
- He.doConfirm && Ce(me, Ot),
- pt && Me(pt, me, Ot),
- tt && Me(tt, me, Ot),
- Pe && Me(Pe, me, Ot),
- (k.value = me),
- xe(Ot, me),
- Ve(),
- nt();
- }
- function be() {
- const { onClear: me } = e;
- me == null || me();
- }
- function Ce(me, He) {
- const { onConfirm: tt } = e;
- tt && tt(me, He);
- }
- function ge(me) {
- const { onFocus: He } = e,
- { nTriggerFormFocus: tt } = i;
- He && Me(He, me), tt();
- }
- function Ae(me) {
- const { onBlur: He } = e,
- { nTriggerFormBlur: tt } = i;
- He && Me(He, me), tt();
- }
- function j(me) {
- const { 'onUpdate:show': He, onUpdateShow: tt } = e;
- He && Me(He, me), tt && Me(tt, me), (y.value = me);
- }
- function ee(me) {
- me.key === 'Escape' && R.value && (Ru(me), ct({ returnFocus: !0 }));
- }
- function ne(me) {
- me.key === 'Escape' && R.value && Ru(me);
- }
- function fe() {
- var me;
- j(!1),
- (me = x.value) === null || me === void 0 || me.deactivate(),
- be();
- }
- function ie() {
- var me;
- (me = x.value) === null || me === void 0 || me.deactivate(), be();
- }
- function W() {
- ct({ returnFocus: !0 });
- }
- function ae(me) {
- var He;
- R.value &&
- !(
- !((He = w.value) === null || He === void 0) && He.contains(xa(me))
- ) &&
- ct({ returnFocus: !1 });
- }
- function he(me) {
- ct({ returnFocus: !0, disableUpdateOnClose: me });
- }
- function _e(me, He) {
- He ? ve(me, { doConfirm: !1 }) : ce(me);
- }
- function le() {
- const me = D.value;
- ve(Array.isArray(me) ? [me[0], me[1]] : me, { doConfirm: !0 });
- }
- function Re() {
- const { value: me } = D;
- te.value
- ? (Array.isArray(me) || me === null) && Ge(me)
- : Array.isArray(me) || Ne(me);
- }
- function Ne(me) {
- me === null ? (L.value = '') : (L.value = Xn(me, _.value, S.value));
- }
- function Ge(me) {
- if (me === null) (H.value = ''), (B.value = '');
- else {
- const He = S.value;
- (H.value = Xn(me[0], _.value, He)),
- (B.value = Xn(me[1], _.value, He));
- }
- }
- function it() {
- R.value || ot();
- }
- function dt(me) {
- var He;
- (!((He = g.value) === null || He === void 0) &&
- He.$el.contains(me.relatedTarget)) ||
- (Ae(me), Re(), ct({ returnFocus: !1 }));
- }
- function xt() {
- s.value || (Re(), ct({ returnFocus: !1 }));
- }
- function De(me) {
- if (me === '') {
- ve(null, { doConfirm: !1 }), (D.value = null), (L.value = '');
- return;
- }
- const He = xo(me, _.value, new Date(), S.value);
- Xo(He) ? (ve(ht(He), { doConfirm: !1 }), Re()) : (L.value = me);
- }
- function ut(me) {
- if (me[0] === '' && me[1] === '') {
- ve(null, { doConfirm: !1 }),
- (D.value = null),
- (H.value = ''),
- (B.value = '');
- return;
- }
- const [He, tt] = me,
- pt = xo(He, _.value, new Date(), S.value),
- Pe = xo(tt, _.value, new Date(), S.value);
- Xo(pt) && Xo(Pe)
- ? (ve([ht(pt), ht(Pe)], { doConfirm: !1 }), Re())
- : ([H.value, B.value] = me);
- }
- function wt(me) {
- s.value || Mo(me, 'clear') || R.value || ot();
- }
- function Lt(me) {
- s.value || ge(me);
- }
- function ot() {
- s.value || R.value || j(!0);
- }
- function ct({ returnFocus: me, disableUpdateOnClose: He }) {
- var tt;
- R.value &&
- (j(!1),
- e.type !== 'date' && e.updateValueOnClose && !He && le(),
- me && ((tt = x.value) === null || tt === void 0 || tt.focus()));
- }
- $t(D, () => {
- Re();
- }),
- Re(),
- $t(R, me => {
- me || (D.value = A.value);
- });
- const Xe = gY(e, D),
- Qe = mY(e, D);
- Rt(
- Fp,
- Object.assign(
- Object.assign(
- Object.assign(
- {
- mergedClsPrefixRef: f,
- mergedThemeRef: q,
- timePickerSizeRef: X,
- localeRef: r,
- dateLocaleRef: o,
- firstDayOfWeekRef: Ie(e, 'firstDayOfWeek'),
- isDateDisabledRef: Ie(e, 'isDateDisabled'),
- rangesRef: Ie(e, 'ranges'),
- timePickerPropsRef: Ie(e, 'timePickerProps'),
- closeOnSelectRef: Ie(e, 'closeOnSelect'),
- updateValueOnCloseRef: Ie(e, 'updateValueOnClose')
- },
- Xe
- ),
- Qe
- ),
- { datePickerSlots: t }
- )
- );
- const oe = {
- focus: () => {
- var me;
- (me = x.value) === null || me === void 0 || me.focus();
- },
- blur: () => {
- var me;
- (me = x.value) === null || me === void 0 || me.blur();
- }
- },
- ze = I(() => {
- const {
- common: { cubicBezierEaseInOut: me },
- self: { iconColor: He, iconColorDisabled: tt }
- } = q.value;
- return {
- '--n-bezier': me,
- '--n-icon-color-override': He,
- '--n-icon-color-disabled-override': tt
- };
- }),
- We = m ? Mt('date-picker-trigger', void 0, ze, e) : void 0,
- lt = I(() => {
- const { type: me } = e,
- {
- common: { cubicBezierEaseInOut: He },
- self: {
- calendarTitleFontSize: tt,
- calendarDaysFontSize: pt,
- itemFontSize: Pe,
- itemTextColor: Ve,
- itemColorDisabled: nt,
- itemColorIncluded: Ot,
- itemColorHover: $n,
- itemColorActive: jn,
- itemBorderRadius: Zt,
- itemTextColorDisabled: Se,
- itemTextColorActive: je,
- panelColor: Ct,
- panelTextColor: qt,
- arrowColor: we,
- calendarTitleTextColor: Fe,
- panelActionDividerColor: rt,
- panelHeaderDividerColor: ft,
- calendarDaysDividerColor: gt,
- panelBoxShadow: bn,
- panelBorderRadius: ln,
- calendarTitleFontWeight: $e,
- panelExtraFooterPadding: Je,
- panelActionPadding: vt,
- itemSize: Wt,
- itemCellWidth: dn,
- itemCellHeight: nn,
- scrollItemWidth: kr,
- scrollItemHeight: Yt,
- calendarTitlePadding: On,
- calendarTitleHeight: Co,
- calendarDaysHeight: Lo,
- calendarDaysTextColor: No,
- arrowSize: So,
- panelHeaderPadding: Xr,
- calendarDividerColor: za,
- calendarTitleGridTempateColumns: Pl,
- iconColor: Zr,
- iconColorDisabled: kl,
- scrollItemBorderRadius: Tl,
- calendarTitleColorHover: Ea,
- [Ee('calendarLeftPadding', me)]: Aa,
- [Ee('calendarRightPadding', me)]: Ma
- }
- } = q.value;
- return {
- '--n-bezier': He,
- '--n-panel-border-radius': ln,
- '--n-panel-color': Ct,
- '--n-panel-box-shadow': bn,
- '--n-panel-text-color': qt,
- '--n-panel-header-padding': Xr,
- '--n-panel-header-divider-color': ft,
- '--n-calendar-left-padding': Aa,
- '--n-calendar-right-padding': Ma,
- '--n-calendar-title-color-hover': Ea,
- '--n-calendar-title-height': Co,
- '--n-calendar-title-padding': On,
- '--n-calendar-title-font-size': tt,
- '--n-calendar-title-font-weight': $e,
- '--n-calendar-title-text-color': Fe,
- '--n-calendar-title-grid-template-columns': Pl,
- '--n-calendar-days-height': Lo,
- '--n-calendar-days-divider-color': gt,
- '--n-calendar-days-font-size': pt,
- '--n-calendar-days-text-color': No,
- '--n-calendar-divider-color': za,
- '--n-panel-action-padding': vt,
- '--n-panel-extra-footer-padding': Je,
- '--n-panel-action-divider-color': rt,
- '--n-item-font-size': Pe,
- '--n-item-border-radius': Zt,
- '--n-item-size': Wt,
- '--n-item-cell-width': dn,
- '--n-item-cell-height': nn,
- '--n-item-text-color': Ve,
- '--n-item-color-included': Ot,
- '--n-item-color-disabled': nt,
- '--n-item-color-hover': $n,
- '--n-item-color-active': jn,
- '--n-item-text-color-disabled': Se,
- '--n-item-text-color-active': je,
- '--n-scroll-item-width': kr,
- '--n-scroll-item-height': Yt,
- '--n-scroll-item-border-radius': Tl,
- '--n-arrow-size': So,
- '--n-arrow-color': we,
- '--n-icon-color': Zr,
- '--n-icon-color-disabled': kl
- };
- }),
- st = m
- ? Mt(
- 'date-picker',
- I(() => e.type),
- lt,
- e
- )
- : void 0;
- return Object.assign(Object.assign({}, oe), {
- mergedStatus: c,
- mergedClsPrefix: f,
- mergedBordered: v,
- namespace: p,
- uncontrolledValue: k,
- pendingValue: D,
- panelInstRef: g,
- triggerElRef: w,
- inputInstRef: x,
- isMounted: yi(),
- displayTime: L,
- displayStartTime: H,
- displayEndTime: B,
- mergedShow: R,
- adjustedTo: Yr(e),
- isRange: te,
- localizedStartPlaceholder: Q,
- localizedEndPlaceholder: re,
- mergedSize: a,
- mergedDisabled: s,
- localizedPlacehoder: G,
- isValueInvalid: Xe.isValueInvalidRef,
- isStartValueInvalid: Qe.isStartValueInvalidRef,
- isEndValueInvalid: Qe.isEndValueInvalidRef,
- handleInputKeydown: ne,
- handleClickOutside: ae,
- handleKeydown: ee,
- handleClear: fe,
- handlePanelClear: ie,
- handleTriggerClick: wt,
- handleInputActivate: it,
- handleInputDeactivate: xt,
- handleInputFocus: Lt,
- handleInputBlur: dt,
- handlePanelTabOut: W,
- handlePanelClose: he,
- handleRangeUpdateValue: ut,
- handleSingleUpdateValue: De,
- handlePanelUpdateValue: _e,
- handlePanelConfirm: le,
- mergedTheme: q,
- actions: se,
- triggerCssVars: m ? void 0 : ze,
- triggerThemeClass: We == null ? void 0 : We.themeClass,
- triggerOnRender: We == null ? void 0 : We.onRender,
- cssVars: m ? void 0 : lt,
- themeClass: st == null ? void 0 : st.themeClass,
- onRender: st == null ? void 0 : st.onRender
- });
- },
- render() {
- const {
- clearable: e,
- triggerOnRender: t,
- mergedClsPrefix: n,
- $slots: r
- } = this,
- o = {
- onUpdateValue: this.handlePanelUpdateValue,
- onTabOut: this.handlePanelTabOut,
- onClose: this.handlePanelClose,
- onClear: this.handlePanelClear,
- onKeydown: this.handleKeydown,
- onConfirm: this.handlePanelConfirm,
- ref: 'panelInstRef',
- value: this.pendingValue,
- active: this.mergedShow,
- actions: this.actions,
- shortcuts: this.shortcuts,
- style: this.cssVars,
- defaultTime: this.defaultTime,
- themeClass: this.themeClass,
- panel: this.panel,
- onRender: this.onRender
- },
- i = () => {
- const { type: s } = this;
- return s === 'datetime'
- ? h(YG, Object.assign({}, o), r)
- : s === 'daterange'
- ? h(
- ZG,
- Object.assign({}, o, {
- defaultCalendarStartTime: this.defaultCalendarStartTime,
- defaultCalendarEndTime: this.defaultCalendarEndTime,
- bindCalendarMonths: this.bindCalendarMonths
- }),
- r
- )
- : s === 'datetimerange'
- ? h(
- GG,
- Object.assign({}, o, {
- defaultCalendarStartTime: this.defaultCalendarStartTime,
- defaultCalendarEndTime: this.defaultCalendarEndTime,
- bindCalendarMonths: this.bindCalendarMonths
- }),
- r
- )
- : s === 'month' || s === 'year' || s === 'quarter'
- ? h(y3, Object.assign({}, o, { type: s, key: s }))
- : s === 'monthrange' || s === 'yearrange' || s === 'quarterrange'
- ? h(QG, Object.assign({}, o, { type: s }))
- : h(XG, Object.assign({}, o), r);
- };
- if (this.panel) return i();
- t == null || t();
- const a = {
- bordered: this.mergedBordered,
- size: this.mergedSize,
- passivelyActivated: !0,
- disabled: this.mergedDisabled,
- readonly: this.inputReadonly || this.mergedDisabled,
- clearable: e,
- onClear: this.handleClear,
- onClick: this.handleTriggerClick,
- onKeydown: this.handleInputKeydown,
- onActivate: this.handleInputActivate,
- onDeactivate: this.handleInputDeactivate,
- onFocus: this.handleInputFocus,
- onBlur: this.handleInputBlur
- };
- return h(
- 'div',
- {
- ref: 'triggerElRef',
- class: [
- `${n}-date-picker`,
- this.mergedDisabled && `${n}-date-picker--disabled`,
- this.isRange && `${n}-date-picker--range`,
- this.triggerThemeClass
- ],
- style: this.triggerCssVars,
- onKeydown: this.handleKeydown
- },
- h(Qc, null, {
- default: () => [
- h(Jc, null, {
- default: () =>
- this.isRange
- ? h(
- Gi,
- Object.assign(
- {
- ref: 'inputInstRef',
- status: this.mergedStatus,
- value: [this.displayStartTime, this.displayEndTime],
- placeholder: [
- this.localizedStartPlaceholder,
- this.localizedEndPlaceholder
- ],
- textDecoration: [
- this.isStartValueInvalid ? 'line-through' : '',
- this.isEndValueInvalid ? 'line-through' : ''
- ],
- pair: !0,
- onUpdateValue: this.handleRangeUpdateValue,
- theme: this.mergedTheme.peers.Input,
- themeOverrides: this.mergedTheme.peerOverrides.Input,
- internalForceFocus: this.mergedShow,
- internalDeactivateOnEnter: !0
- },
- a
- ),
- {
- separator: () =>
- this.separator === void 0
- ? Kt(r.separator, () => [
- h(
- At,
- {
- clsPrefix: n,
- class: `${n}-date-picker-icon`
- },
- { default: () => h(EW, null) }
- )
- ])
- : this.separator,
- [e ? 'clear-icon-placeholder' : 'suffix']: () =>
- Kt(r['date-icon'], () => [
- h(
- At,
- { clsPrefix: n, class: `${n}-date-picker-icon` },
- { default: () => h(bS, null) }
- )
- ])
- }
- )
- : h(
- Gi,
- Object.assign(
- {
- ref: 'inputInstRef',
- status: this.mergedStatus,
- value: this.displayTime,
- placeholder: this.localizedPlacehoder,
- textDecoration:
- this.isValueInvalid && !this.isRange
- ? 'line-through'
- : '',
- onUpdateValue: this.handleSingleUpdateValue,
- theme: this.mergedTheme.peers.Input,
- themeOverrides: this.mergedTheme.peerOverrides.Input,
- internalForceFocus: this.mergedShow,
- internalDeactivateOnEnter: !0
- },
- a
- ),
- {
- [e ? 'clear-icon-placeholder' : 'suffix']: () =>
- h(
- At,
- { clsPrefix: n, class: `${n}-date-picker-icon` },
- {
- default: () =>
- Kt(r['date-icon'], () => [h(bS, null)])
- }
- )
- }
- )
- }),
- h(
- ed,
- {
- show: this.mergedShow,
- containerClass: this.namespace,
- to: this.adjustedTo,
- teleportDisabled: this.adjustedTo === Yr.tdkey,
- placement: this.placement
- },
- {
- default: () =>
- h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- appear: this.isMounted
- },
- {
- default: () =>
- this.mergedShow
- ? Er(i(), [
- [
- wa,
- this.handleClickOutside,
- void 0,
- { capture: !0 }
- ]
- ])
- : null
- }
- )
- }
- )
- ]
- })
- );
- }
- }),
- nX = {
- thPaddingBorderedSmall: '8px 12px',
- thPaddingBorderedMedium: '12px 16px',
- thPaddingBorderedLarge: '16px 24px',
- thPaddingSmall: '0',
- thPaddingMedium: '0',
- thPaddingLarge: '0',
- tdPaddingBorderedSmall: '8px 12px',
- tdPaddingBorderedMedium: '12px 16px',
- tdPaddingBorderedLarge: '16px 24px',
- tdPaddingSmall: '0 0 8px 0',
- tdPaddingMedium: '0 0 12px 0',
- tdPaddingLarge: '0 0 16px 0'
- },
- rX = e => {
- const {
- tableHeaderColor: t,
- textColor2: n,
- textColor1: r,
- cardColor: o,
- modalColor: i,
- popoverColor: a,
- dividerColor: s,
- borderRadius: c,
- fontWeightStrong: d,
- lineHeight: f,
- fontSizeSmall: v,
- fontSizeMedium: p,
- fontSizeLarge: m
- } = e;
- return Object.assign(Object.assign({}, nX), {
- lineHeight: f,
- fontSizeSmall: v,
- fontSizeMedium: p,
- fontSizeLarge: m,
- titleTextColor: r,
- thColor: Et(o, t),
- thColorModal: Et(i, t),
- thColorPopover: Et(a, t),
- thTextColor: r,
- thFontWeight: d,
- tdTextColor: n,
- tdColor: o,
- tdColorModal: i,
- tdColorPopover: a,
- borderColor: Et(o, s),
- borderColorModal: Et(i, s),
- borderColorPopover: Et(a, s),
- borderRadius: c
- });
- },
- oX = { name: 'Descriptions', common: Nt, self: rX },
- iX = oX,
- x3 = 'DESCRIPTION_ITEM_FLAG';
- function aX(e) {
- return typeof e == 'object' && e && !Array.isArray(e)
- ? e.type && e.type[x3]
- : !1;
- }
- const lX = F([
- O('descriptions', { fontSize: 'var(--n-font-size)' }, [
- O(
- 'descriptions-separator',
- `
- display: inline-block;
- margin: 0 8px 0 2px;
- `
- ),
- O('descriptions-table-wrapper', [
- O('descriptions-table', [
- O('descriptions-table-row', [
- O('descriptions-table-header', { padding: 'var(--n-th-padding)' }),
- O('descriptions-table-content', { padding: 'var(--n-td-padding)' })
- ])
- ])
- ]),
- jt('bordered', [
- O('descriptions-table-wrapper', [
- O('descriptions-table', [
- O('descriptions-table-row', [
- F('&:last-child', [
- O('descriptions-table-content', { paddingBottom: 0 })
- ])
- ])
- ])
- ])
- ]),
- U('left-label-placement', [
- O('descriptions-table-content', [F('> *', { verticalAlign: 'top' })])
- ]),
- U('left-label-align', [F('th', { textAlign: 'left' })]),
- U('center-label-align', [F('th', { textAlign: 'center' })]),
- U('right-label-align', [F('th', { textAlign: 'right' })]),
- U('bordered', [
- O(
- 'descriptions-table-wrapper',
- `
- border-radius: var(--n-border-radius);
- overflow: hidden;
- background: var(--n-merged-td-color);
- border: 1px solid var(--n-merged-border-color);
- `,
- [
- O('descriptions-table', [
- O('descriptions-table-row', [
- F('&:not(:last-child)', [
- O('descriptions-table-content', {
- borderBottom: '1px solid var(--n-merged-border-color)'
- }),
- O('descriptions-table-header', {
- borderBottom: '1px solid var(--n-merged-border-color)'
- })
- ]),
- O(
- 'descriptions-table-header',
- `
- font-weight: 400;
- background-clip: padding-box;
- background-color: var(--n-merged-th-color);
- `,
- [
- F('&:not(:last-child)', {
- borderRight: '1px solid var(--n-merged-border-color)'
- })
- ]
- ),
- O('descriptions-table-content', [
- F('&:not(:last-child)', {
- borderRight: '1px solid var(--n-merged-border-color)'
- })
- ])
- ])
- ])
- ]
- )
- ]),
- O(
- 'descriptions-header',
- `
- font-weight: var(--n-th-font-weight);
- font-size: 18px;
- transition: color .3s var(--n-bezier);
- line-height: var(--n-line-height);
- margin-bottom: 16px;
- color: var(--n-title-text-color);
- `
- ),
- O(
- 'descriptions-table-wrapper',
- `
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- O(
- 'descriptions-table',
- `
- width: 100%;
- border-collapse: separate;
- border-spacing: 0;
- box-sizing: border-box;
- `,
- [
- O(
- 'descriptions-table-row',
- `
- box-sizing: border-box;
- transition: border-color .3s var(--n-bezier);
- `,
- [
- O(
- 'descriptions-table-header',
- `
- font-weight: var(--n-th-font-weight);
- line-height: var(--n-line-height);
- display: table-cell;
- box-sizing: border-box;
- color: var(--n-th-text-color);
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `
- ),
- O(
- 'descriptions-table-content',
- `
- vertical-align: top;
- line-height: var(--n-line-height);
- display: table-cell;
- box-sizing: border-box;
- color: var(--n-td-text-color);
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- V(
- 'content',
- `
- transition: color .3s var(--n-bezier);
- display: inline-block;
- color: var(--n-td-text-color);
- `
- )
- ]
- ),
- V(
- 'label',
- `
- font-weight: var(--n-th-font-weight);
- transition: color .3s var(--n-bezier);
- display: inline-block;
- margin-right: 14px;
- color: var(--n-th-text-color);
- `
- )
- ]
- )
- ]
- )
- ]
- )
- ]),
- O(
- 'descriptions-table-wrapper',
- `
- --n-merged-th-color: var(--n-th-color);
- --n-merged-td-color: var(--n-td-color);
- --n-merged-border-color: var(--n-border-color);
- `
- ),
- xl(
- O(
- 'descriptions-table-wrapper',
- `
- --n-merged-th-color: var(--n-th-color-modal);
- --n-merged-td-color: var(--n-td-color-modal);
- --n-merged-border-color: var(--n-border-color-modal);
- `
- )
- ),
- Ps(
- O(
- 'descriptions-table-wrapper',
- `
- --n-merged-th-color: var(--n-th-color-popover);
- --n-merged-td-color: var(--n-td-color-popover);
- --n-merged-border-color: var(--n-border-color-popover);
- `
- )
- )
- ]),
- sX = Object.assign(Object.assign({}, Ke.props), {
- title: String,
- column: { type: Number, default: 3 },
- columns: Number,
- labelPlacement: { type: String, default: 'top' },
- labelAlign: { type: String, default: 'left' },
- separator: { type: String, default: ':' },
- size: { type: String, default: 'medium' },
- bordered: Boolean,
- labelStyle: [Object, String],
- contentStyle: [Object, String]
- }),
- cX = ke({
- name: 'Descriptions',
- props: sX,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Descriptions', '-descriptions', lX, iX, e, t),
- o = I(() => {
- const { size: a, bordered: s } = e,
- {
- common: { cubicBezierEaseInOut: c },
- self: {
- titleTextColor: d,
- thColor: f,
- thColorModal: v,
- thColorPopover: p,
- thTextColor: m,
- thFontWeight: g,
- tdTextColor: w,
- tdColor: x,
- tdColorModal: y,
- tdColorPopover: C,
- borderColor: R,
- borderColorModal: S,
- borderColorPopover: _,
- borderRadius: P,
- lineHeight: T,
- [Ee('fontSize', a)]: E,
- [Ee(s ? 'thPaddingBordered' : 'thPadding', a)]: z,
- [Ee(s ? 'tdPaddingBordered' : 'tdPadding', a)]: k
- }
- } = r.value;
- return {
- '--n-title-text-color': d,
- '--n-th-padding': z,
- '--n-td-padding': k,
- '--n-font-size': E,
- '--n-bezier': c,
- '--n-th-font-weight': g,
- '--n-line-height': T,
- '--n-th-text-color': m,
- '--n-td-text-color': w,
- '--n-th-color': f,
- '--n-th-color-modal': v,
- '--n-th-color-popover': p,
- '--n-td-color': x,
- '--n-td-color-modal': y,
- '--n-td-color-popover': C,
- '--n-border-radius': P,
- '--n-border-color': R,
- '--n-border-color-modal': S,
- '--n-border-color-popover': _
- };
- }),
- i = n
- ? Mt(
- 'descriptions',
- I(() => {
- let a = '';
- const { size: s, bordered: c } = e;
- return c && (a += 'a'), (a += s[0]), a;
- }),
- o,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender,
- compitableColumn: xs(e, ['columns', 'column']),
- inlineThemeDisabled: n
- };
- },
- render() {
- const e = this.$slots.default,
- t = e ? hi(e()) : [];
- t.length;
- const {
- compitableColumn: n,
- labelPlacement: r,
- labelAlign: o,
- size: i,
- bordered: a,
- title: s,
- cssVars: c,
- mergedClsPrefix: d,
- separator: f,
- onRender: v
- } = this;
- v == null || v();
- const p = t.filter(x => aX(x)),
- m = { span: 0, row: [], secondRow: [], rows: [] },
- w = p
- .reduce((x, y, C) => {
- const R = y.props || {},
- S = p.length - 1 === C,
- _ = ['label' in R ? R.label : Xw(y, 'label')],
- P = [Xw(y)],
- T = R.span || 1,
- E = x.span;
- x.span += T;
- const z = R.labelStyle || R['label-style'] || this.labelStyle,
- k = R.contentStyle || R['content-style'] || this.contentStyle;
- if (r === 'left')
- a
- ? x.row.push(
- h(
- 'th',
- {
- class: `${d}-descriptions-table-header`,
- colspan: 1,
- style: z
- },
- _
- ),
- h(
- 'td',
- {
- class: `${d}-descriptions-table-content`,
- colspan: S ? (n - E) * 2 + 1 : T * 2 - 1,
- style: k
- },
- P
- )
- )
- : x.row.push(
- h(
- 'td',
- {
- class: `${d}-descriptions-table-content`,
- colspan: S ? (n - E) * 2 : T * 2
- },
- h(
- 'span',
- {
- class: `${d}-descriptions-table-content__label`,
- style: z
- },
- [
- ..._,
- f &&
- h(
- 'span',
- { class: `${d}-descriptions-separator` },
- f
- )
- ]
- ),
- h(
- 'span',
- {
- class: `${d}-descriptions-table-content__content`,
- style: k
- },
- P
- )
- )
- );
- else {
- const M = S ? (n - E) * 2 : T * 2;
- x.row.push(
- h(
- 'th',
- {
- class: `${d}-descriptions-table-header`,
- colspan: M,
- style: z
- },
- _
- )
- ),
- x.secondRow.push(
- h(
- 'td',
- {
- class: `${d}-descriptions-table-content`,
- colspan: M,
- style: k
- },
- P
- )
- );
- }
- return (
- (x.span >= n || S) &&
- ((x.span = 0),
- x.row.length && (x.rows.push(x.row), (x.row = [])),
- r !== 'left' &&
- x.secondRow.length &&
- (x.rows.push(x.secondRow), (x.secondRow = []))),
- x
- );
- }, m)
- .rows.map(x => h('tr', { class: `${d}-descriptions-table-row` }, x));
- return h(
- 'div',
- {
- style: c,
- class: [
- `${d}-descriptions`,
- this.themeClass,
- `${d}-descriptions--${r}-label-placement`,
- `${d}-descriptions--${o}-label-align`,
- `${d}-descriptions--${i}-size`,
- a && `${d}-descriptions--bordered`
- ]
- },
- s || this.$slots.header
- ? h(
- 'div',
- { class: `${d}-descriptions-header` },
- s || Wu(this, 'header')
- )
- : null,
- h(
- 'div',
- { class: `${d}-descriptions-table-wrapper` },
- h('table', { class: `${d}-descriptions-table` }, h('tbody', null, w))
- )
- );
- }
- }),
- dX = {
- label: String,
- span: { type: Number, default: 1 },
- labelStyle: [Object, String],
- contentStyle: [Object, String]
- },
- uX = ke({
- name: 'DescriptionsItem',
- [x3]: !0,
- props: dX,
- render() {
- return null;
- }
- }),
- fX = {
- titleFontSize: '18px',
- padding: '16px 28px 20px 28px',
- iconSize: '28px',
- actionSpace: '12px',
- contentMargin: '8px 0 16px 0',
- iconMargin: '0 4px 0 0',
- iconMarginIconTop: '4px 0 8px 0',
- closeSize: '22px',
- closeIconSize: '18px',
- closeMargin: '20px 26px 0 0',
- closeMarginIconTop: '10px 16px 0 0'
- },
- hX = e => {
- const {
- textColor1: t,
- textColor2: n,
- modalColor: r,
- closeIconColor: o,
- closeIconColorHover: i,
- closeIconColorPressed: a,
- closeColorHover: s,
- closeColorPressed: c,
- infoColor: d,
- successColor: f,
- warningColor: v,
- errorColor: p,
- primaryColor: m,
- dividerColor: g,
- borderRadius: w,
- fontWeightStrong: x,
- lineHeight: y,
- fontSize: C
- } = e;
- return Object.assign(Object.assign({}, fX), {
- fontSize: C,
- lineHeight: y,
- border: `1px solid ${g}`,
- titleTextColor: t,
- textColor: n,
- color: r,
- closeColorHover: s,
- closeColorPressed: c,
- closeIconColor: o,
- closeIconColorHover: i,
- closeIconColorPressed: a,
- closeBorderRadius: w,
- iconColor: m,
- iconColorInfo: d,
- iconColorSuccess: f,
- iconColorWarning: v,
- iconColorError: p,
- borderRadius: w,
- titleFontWeight: x
- });
- },
- vX = { name: 'Dialog', common: Nt, peers: { Button: As }, self: hX },
- w3 = vX,
- Bp = {
- icon: Function,
- type: { type: String, default: 'default' },
- title: [String, Function],
- closable: { type: Boolean, default: !0 },
- negativeText: String,
- positiveText: String,
- positiveButtonProps: Object,
- negativeButtonProps: Object,
- content: [String, Function],
- action: Function,
- showIcon: { type: Boolean, default: !0 },
- loading: Boolean,
- bordered: Boolean,
- iconPlacement: String,
- onPositiveClick: Function,
- onNegativeClick: Function,
- onClose: Function
- },
- C3 = Ki(Bp),
- pX = F([
- O(
- 'dialog',
- `
- word-break: break-word;
- line-height: var(--n-line-height);
- position: relative;
- background: var(--n-color);
- color: var(--n-text-color);
- box-sizing: border-box;
- margin: auto;
- border-radius: var(--n-border-radius);
- padding: var(--n-padding);
- transition:
- border-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `,
- [
- V('icon', { color: 'var(--n-icon-color)' }),
- U('bordered', { border: 'var(--n-border)' }),
- U('icon-top', [
- V('close', { margin: 'var(--n-close-margin)' }),
- V('icon', { margin: 'var(--n-icon-margin)' }),
- V('content', { textAlign: 'center' }),
- V('title', { justifyContent: 'center' }),
- V('action', { justifyContent: 'center' })
- ]),
- U('icon-left', [
- V('icon', { margin: 'var(--n-icon-margin)' }),
- U('closable', [
- V(
- 'title',
- `
- padding-right: calc(var(--n-close-size) + 6px);
- `
- )
- ])
- ]),
- V(
- 'close',
- `
- position: absolute;
- right: 0;
- top: 0;
- margin: var(--n-close-margin);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- z-index: 1;
- `
- ),
- V(
- 'content',
- `
- font-size: var(--n-font-size);
- margin: var(--n-content-margin);
- position: relative;
- word-break: break-word;
- `,
- [U('last', 'margin-bottom: 0;')]
- ),
- V(
- 'action',
- `
- display: flex;
- justify-content: flex-end;
- `,
- [F('> *:not(:last-child)', { marginRight: 'var(--n-action-space)' })]
- ),
- V('icon', {
- fontSize: 'var(--n-icon-size)',
- transition: 'color .3s var(--n-bezier)'
- }),
- V(
- 'title',
- `
- transition: color .3s var(--n-bezier);
- display: flex;
- align-items: center;
- font-size: var(--n-title-font-size);
- font-weight: var(--n-title-font-weight);
- color: var(--n-title-text-color);
- `
- ),
- O('dialog-icon-container', {
- display: 'flex',
- justifyContent: 'center'
- })
- ]
- ),
- xl(
- O(
- 'dialog',
- `
- width: 446px;
- max-width: calc(100vw - 32px);
- `
- )
- ),
- O('dialog', [
- LR(`
- width: 446px;
- max-width: calc(100vw - 32px);
- `)
- ])
- ]),
- gX = {
- default: () => h(bl, null),
- info: () => h(bl, null),
- success: () => h(zs, null),
- warning: () => h(Es, null),
- error: () => h(Os, null)
- },
- S3 = ke({
- name: 'Dialog',
- alias: ['NimbusConfirmCard', 'Confirm'],
- props: Object.assign(Object.assign({}, Ke.props), Bp),
- setup(e) {
- const {
- mergedComponentPropsRef: t,
- mergedClsPrefixRef: n,
- inlineThemeDisabled: r
- } = yt(e),
- o = I(() => {
- var v, p;
- const { iconPlacement: m } = e;
- return (
- m ||
- ((p =
- (v = t == null ? void 0 : t.value) === null || v === void 0
- ? void 0
- : v.Dialog) === null || p === void 0
- ? void 0
- : p.iconPlacement) ||
- 'left'
- );
- });
- function i(v) {
- const { onPositiveClick: p } = e;
- p && p(v);
- }
- function a(v) {
- const { onNegativeClick: p } = e;
- p && p(v);
- }
- function s() {
- const { onClose: v } = e;
- v && v();
- }
- const c = Ke('Dialog', '-dialog', pX, w3, e, n),
- d = I(() => {
- const { type: v } = e,
- p = o.value,
- {
- common: { cubicBezierEaseInOut: m },
- self: {
- fontSize: g,
- lineHeight: w,
- border: x,
- titleTextColor: y,
- textColor: C,
- color: R,
- closeBorderRadius: S,
- closeColorHover: _,
- closeColorPressed: P,
- closeIconColor: T,
- closeIconColorHover: E,
- closeIconColorPressed: z,
- closeIconSize: k,
- borderRadius: M,
- titleFontWeight: A,
- titleFontSize: D,
- padding: L,
- iconSize: H,
- actionSpace: B,
- contentMargin: q,
- closeSize: X,
- [p === 'top' ? 'iconMarginIconTop' : 'iconMargin']: te,
- [p === 'top' ? 'closeMarginIconTop' : 'closeMargin']: G,
- [Ee('iconColor', v)]: Q
- }
- } = c.value;
- return {
- '--n-font-size': g,
- '--n-icon-color': Q,
- '--n-bezier': m,
- '--n-close-margin': G,
- '--n-icon-margin': te,
- '--n-icon-size': H,
- '--n-close-size': X,
- '--n-close-icon-size': k,
- '--n-close-border-radius': S,
- '--n-close-color-hover': _,
- '--n-close-color-pressed': P,
- '--n-close-icon-color': T,
- '--n-close-icon-color-hover': E,
- '--n-close-icon-color-pressed': z,
- '--n-color': R,
- '--n-text-color': C,
- '--n-border-radius': M,
- '--n-padding': L,
- '--n-line-height': w,
- '--n-border': x,
- '--n-content-margin': q,
- '--n-title-font-size': D,
- '--n-title-font-weight': A,
- '--n-title-text-color': y,
- '--n-action-space': B
- };
- }),
- f = r
- ? Mt(
- 'dialog',
- I(() => `${e.type[0]}${o.value[0]}`),
- d,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: n,
- mergedIconPlacement: o,
- mergedTheme: c,
- handlePositiveClick: i,
- handleNegativeClick: a,
- handleCloseClick: s,
- cssVars: r ? void 0 : d,
- themeClass: f == null ? void 0 : f.themeClass,
- onRender: f == null ? void 0 : f.onRender
- };
- },
- render() {
- var e;
- const {
- bordered: t,
- mergedIconPlacement: n,
- cssVars: r,
- closable: o,
- showIcon: i,
- title: a,
- content: s,
- action: c,
- negativeText: d,
- positiveText: f,
- positiveButtonProps: v,
- negativeButtonProps: p,
- handlePositiveClick: m,
- handleNegativeClick: g,
- mergedTheme: w,
- loading: x,
- type: y,
- mergedClsPrefix: C
- } = this;
- (e = this.onRender) === null || e === void 0 || e.call(this);
- const R = i
- ? h(
- At,
- { clsPrefix: C, class: `${C}-dialog__icon` },
- {
- default: () =>
- cn(
- this.$slots.icon,
- _ => _ || (this.icon ? _n(this.icon) : gX[this.type]())
- )
- }
- )
- : null,
- S = cn(this.$slots.action, _ =>
- _ || f || d || c
- ? h(
- 'div',
- { class: `${C}-dialog__action` },
- _ ||
- (c
- ? [_n(c)]
- : [
- this.negativeText &&
- h(
- nr,
- Object.assign(
- {
- theme: w.peers.Button,
- themeOverrides: w.peerOverrides.Button,
- ghost: !0,
- size: 'small',
- onClick: g
- },
- p
- ),
- { default: () => _n(this.negativeText) }
- ),
- this.positiveText &&
- h(
- nr,
- Object.assign(
- {
- theme: w.peers.Button,
- themeOverrides: w.peerOverrides.Button,
- size: 'small',
- type: y === 'default' ? 'primary' : y,
- disabled: x,
- loading: x,
- onClick: m
- },
- v
- ),
- { default: () => _n(this.positiveText) }
- )
- ])
- )
- : null
- );
- return h(
- 'div',
- {
- class: [
- `${C}-dialog`,
- this.themeClass,
- this.closable && `${C}-dialog--closable`,
- `${C}-dialog--icon-${n}`,
- t && `${C}-dialog--bordered`
- ],
- style: r,
- role: 'dialog'
- },
- o
- ? h(Sl, {
- clsPrefix: C,
- class: `${C}-dialog__close`,
- onClick: this.handleCloseClick
- })
- : null,
- i && n === 'top'
- ? h('div', { class: `${C}-dialog-icon-container` }, R)
- : null,
- h(
- 'div',
- { class: `${C}-dialog__title` },
- i && n === 'left' ? R : null,
- Kt(this.$slots.header, () => [_n(a)])
- ),
- h(
- 'div',
- {
- class: [
- `${C}-dialog__content`,
- S ? '' : `${C}-dialog__content--last`
- ]
- },
- Kt(this.$slots.default, () => [_n(s)])
- ),
- S
- );
- }
- }),
- _3 = 'n-dialog-provider',
- R3 = 'n-dialog-api',
- mX = 'n-dialog-reactive-list',
- bX = e => {
- const { modalColor: t, textColor2: n, boxShadow3: r } = e;
- return { color: t, textColor: n, boxShadow: r };
- },
- yX = {
- name: 'Modal',
- common: Nt,
- peers: { Scrollbar: ea, Dialog: w3, Card: Nk },
- self: bX
- },
- xX = yX,
- Hy = Object.assign(Object.assign({}, Py), Bp),
- wX = Ki(Hy),
- CX = ke({
- name: 'ModalBody',
- inheritAttrs: !1,
- props: Object.assign(
- Object.assign(
- {
- show: { type: Boolean, required: !0 },
- preset: String,
- displayDirective: { type: String, required: !0 },
- trapFocus: { type: Boolean, default: !0 },
- autoFocus: { type: Boolean, default: !0 },
- blockScroll: Boolean
- },
- Hy
- ),
- {
- renderMask: Function,
- onClickoutside: Function,
- onBeforeLeave: { type: Function, required: !0 },
- onAfterLeave: { type: Function, required: !0 },
- onPositiveClick: { type: Function, required: !0 },
- onNegativeClick: { type: Function, required: !0 },
- onClose: { type: Function, required: !0 },
- onAfterEnter: Function,
- onEsc: Function
- }
- ),
- setup(e) {
- const t = Z(null),
- n = Z(null),
- r = Z(e.show),
- o = Z(null),
- i = Z(null);
- $t(Ie(e, 'show'), x => {
- x && (r.value = !0);
- }),
- cP(I(() => e.blockScroll && r.value));
- const a = Ze(qR);
- function s() {
- if (a.transformOriginRef.value === 'center') return '';
- const { value: x } = o,
- { value: y } = i;
- if (x === null || y === null) return '';
- if (n.value) {
- const C = n.value.containerScrollTop;
- return `${x}px ${y + C}px`;
- }
- return '';
- }
- function c(x) {
- if (a.transformOriginRef.value === 'center') return;
- const y = a.getMousePosition();
- if (!y || !n.value) return;
- const C = n.value.containerScrollTop,
- { offsetLeft: R, offsetTop: S } = x;
- if (y) {
- const _ = y.y,
- P = y.x;
- (o.value = -(R - P)), (i.value = -(S - _ - C));
- }
- x.style.transformOrigin = s();
- }
- function d(x) {
- mn(() => {
- c(x);
- });
- }
- function f(x) {
- (x.style.transformOrigin = s()), e.onBeforeLeave();
- }
- function v() {
- (r.value = !1), (o.value = null), (i.value = null), e.onAfterLeave();
- }
- function p() {
- const { onClose: x } = e;
- x && x();
- }
- function m() {
- e.onNegativeClick();
- }
- function g() {
- e.onPositiveClick();
- }
- const w = Z(null);
- return (
- $t(w, x => {
- x &&
- mn(() => {
- const y = x.el;
- y && t.value !== y && (t.value = y);
- });
- }),
- Rt(Vu, t),
- Rt(Ku, null),
- Rt(Zc, null),
- {
- mergedTheme: a.mergedThemeRef,
- appear: a.appearRef,
- isMounted: a.isMountedRef,
- mergedClsPrefix: a.mergedClsPrefixRef,
- bodyRef: t,
- scrollbarRef: n,
- displayed: r,
- childNodeRef: w,
- handlePositiveClick: g,
- handleNegativeClick: m,
- handleCloseClick: p,
- handleAfterLeave: v,
- handleBeforeLeave: f,
- handleEnter: d
- }
- );
- },
- render() {
- const {
- $slots: e,
- $attrs: t,
- handleEnter: n,
- handleAfterLeave: r,
- handleBeforeLeave: o,
- preset: i,
- mergedClsPrefix: a
- } = this;
- let s = null;
- if (!i) {
- if (((s = _b(e)), !s)) {
- Io('modal', 'default slot is empty');
- return;
- }
- (s = Ao(s)), (s.props = qr({ class: `${a}-modal` }, t, s.props || {}));
- }
- return this.displayDirective === 'show' || this.displayed || this.show
- ? Er(
- h(
- 'div',
- { role: 'none', class: `${a}-modal-body-wrapper` },
- h(
- yr,
- {
- ref: 'scrollbarRef',
- theme: this.mergedTheme.peers.Scrollbar,
- themeOverrides: this.mergedTheme.peerOverrides.Scrollbar,
- contentClass: `${a}-modal-scroll-content`
- },
- {
- default: () => {
- var c;
- return [
- (c = this.renderMask) === null || c === void 0
- ? void 0
- : c.call(this),
- h(
- ey,
- {
- disabled: !this.trapFocus,
- active: this.show,
- onEsc: this.onEsc,
- autoFocus: this.autoFocus
- },
- {
- default: () => {
- var d;
- return h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- appear:
- (d = this.appear) !== null && d !== void 0
- ? d
- : this.isMounted,
- onEnter: n,
- onAfterEnter: this.onAfterEnter,
- onAfterLeave: r,
- onBeforeLeave: o
- },
- {
- default: () => {
- const f = [[vi, this.show]],
- { onClickoutside: v } = this;
- return (
- v &&
- f.push([
- wa,
- this.onClickoutside,
- void 0,
- { capture: !0 }
- ]),
- Er(
- this.preset === 'confirm' ||
- this.preset === 'dialog'
- ? h(
- S3,
- Object.assign(
- {},
- this.$attrs,
- {
- class: [
- `${a}-modal`,
- this.$attrs.class
- ],
- ref: 'bodyRef',
- theme:
- this.mergedTheme.peers.Dialog,
- themeOverrides:
- this.mergedTheme.peerOverrides
- .Dialog
- },
- fi(this.$props, C3),
- { 'aria-modal': 'true' }
- ),
- e
- )
- : this.preset === 'card'
- ? h(
- Hk,
- Object.assign(
- {},
- this.$attrs,
- {
- ref: 'bodyRef',
- class: [
- `${a}-modal`,
- this.$attrs.class
- ],
- theme:
- this.mergedTheme.peers.Card,
- themeOverrides:
- this.mergedTheme.peerOverrides
- .Card
- },
- fi(this.$props, gK),
- {
- 'aria-modal': 'true',
- role: 'dialog'
- }
- ),
- e
- )
- : (this.childNodeRef = s),
- f
- )
- );
- }
- }
- );
- }
- }
- )
- ];
- }
- }
- )
- ),
- [
- [
- vi,
- this.displayDirective === 'if' || this.displayed || this.show
- ]
- ]
- )
- : null;
- }
- }),
- SX = F([
- O(
- 'modal-container',
- `
- position: fixed;
- left: 0;
- top: 0;
- height: 0;
- width: 0;
- display: flex;
- `
- ),
- O(
- 'modal-mask',
- `
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, .4);
- `,
- [
- Cs({
- enterDuration: '.25s',
- leaveDuration: '.25s',
- enterCubicBezier: 'var(--n-bezier-ease-out)',
- leaveCubicBezier: 'var(--n-bezier-ease-out)'
- })
- ]
- ),
- O(
- 'modal-body-wrapper',
- `
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- overflow: visible;
- `,
- [
- O(
- 'modal-scroll-content',
- `
- min-height: 100%;
- display: flex;
- position: relative;
- `
- )
- ]
- ),
- O(
- 'modal',
- `
- position: relative;
- align-self: center;
- color: var(--n-text-color);
- margin: auto;
- box-shadow: var(--n-box-shadow);
- `,
- [gi({ duration: '.25s', enterScale: '.5' })]
- )
- ]),
- _X = Object.assign(
- Object.assign(
- Object.assign(Object.assign({}, Ke.props), {
- show: Boolean,
- unstableShowMask: { type: Boolean, default: !0 },
- maskClosable: { type: Boolean, default: !0 },
- preset: String,
- to: [String, Object],
- displayDirective: { type: String, default: 'if' },
- transformOrigin: { type: String, default: 'mouse' },
- zIndex: Number,
- autoFocus: { type: Boolean, default: !0 },
- trapFocus: { type: Boolean, default: !0 },
- closeOnEsc: { type: Boolean, default: !0 },
- blockScroll: { type: Boolean, default: !0 }
- }),
- Hy
- ),
- {
- onEsc: Function,
- 'onUpdate:show': [Function, Array],
- onUpdateShow: [Function, Array],
- onAfterEnter: Function,
- onBeforeLeave: Function,
- onAfterLeave: Function,
- onClose: Function,
- onPositiveClick: Function,
- onNegativeClick: Function,
- onMaskClick: Function,
- internalDialog: Boolean,
- internalAppear: { type: Boolean, default: void 0 },
- overlayStyle: [String, Object],
- onBeforeHide: Function,
- onAfterHide: Function,
- onHide: Function
- }
- ),
- P3 = ke({
- name: 'Modal',
- inheritAttrs: !1,
- props: _X,
- setup(e) {
- const t = Z(null),
- {
- mergedClsPrefixRef: n,
- namespaceRef: r,
- inlineThemeDisabled: o
- } = yt(e),
- i = Ke('Modal', '-modal', SX, xX, e, n),
- a = VR(64),
- s = UR(),
- c = yi(),
- d = e.internalDialog ? Ze(_3, null) : null,
- f = dP();
- function v(_) {
- const { onUpdateShow: P, 'onUpdate:show': T, onHide: E } = e;
- P && Me(P, _), T && Me(T, _), E && !_ && E(_);
- }
- function p() {
- const { onClose: _ } = e;
- _
- ? Promise.resolve(_()).then(P => {
- P !== !1 && v(!1);
- })
- : v(!1);
- }
- function m() {
- const { onPositiveClick: _ } = e;
- _
- ? Promise.resolve(_()).then(P => {
- P !== !1 && v(!1);
- })
- : v(!1);
- }
- function g() {
- const { onNegativeClick: _ } = e;
- _
- ? Promise.resolve(_()).then(P => {
- P !== !1 && v(!1);
- })
- : v(!1);
- }
- function w() {
- const { onBeforeLeave: _, onBeforeHide: P } = e;
- _ && Me(_), P && P();
- }
- function x() {
- const { onAfterLeave: _, onAfterHide: P } = e;
- _ && Me(_), P && P();
- }
- function y(_) {
- var P;
- const { onMaskClick: T } = e;
- T && T(_),
- e.maskClosable &&
- !((P = t.value) === null || P === void 0) &&
- P.contains(xa(_)) &&
- v(!1);
- }
- function C(_) {
- var P;
- (P = e.onEsc) === null || P === void 0 || P.call(e),
- e.show && e.closeOnEsc && HR(_) && !f.value && v(!1);
- }
- Rt(qR, {
- getMousePosition: () => {
- if (d) {
- const { clickedRef: _, clickPositionRef: P } = d;
- if (_.value && P.value) return P.value;
- }
- return a.value ? s.value : null;
- },
- mergedClsPrefixRef: n,
- mergedThemeRef: i,
- isMountedRef: c,
- appearRef: Ie(e, 'internalAppear'),
- transformOriginRef: Ie(e, 'transformOrigin')
- });
- const R = I(() => {
- const {
- common: { cubicBezierEaseOut: _ },
- self: { boxShadow: P, color: T, textColor: E }
- } = i.value;
- return {
- '--n-bezier-ease-out': _,
- '--n-box-shadow': P,
- '--n-color': T,
- '--n-text-color': E
- };
- }),
- S = o ? Mt('theme-class', void 0, R, e) : void 0;
- return {
- mergedClsPrefix: n,
- namespace: r,
- isMounted: c,
- containerRef: t,
- presetProps: I(() => fi(e, wX)),
- handleEsc: C,
- handleAfterLeave: x,
- handleClickoutside: y,
- handleBeforeLeave: w,
- doUpdateShow: v,
- handleNegativeClick: g,
- handlePositiveClick: m,
- handleCloseClick: p,
- cssVars: o ? void 0 : R,
- themeClass: S == null ? void 0 : S.themeClass,
- onRender: S == null ? void 0 : S.onRender
- };
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h(
- Yu,
- { to: this.to, show: this.show },
- {
- default: () => {
- var t;
- (t = this.onRender) === null || t === void 0 || t.call(this);
- const { unstableShowMask: n } = this;
- return Er(
- h(
- 'div',
- {
- role: 'none',
- ref: 'containerRef',
- class: [
- `${e}-modal-container`,
- this.themeClass,
- this.namespace
- ],
- style: this.cssVars
- },
- h(
- CX,
- Object.assign(
- { style: this.overlayStyle },
- this.$attrs,
- {
- ref: 'bodyWrapper',
- displayDirective: this.displayDirective,
- show: this.show,
- preset: this.preset,
- autoFocus: this.autoFocus,
- trapFocus: this.trapFocus,
- blockScroll: this.blockScroll
- },
- this.presetProps,
- {
- onEsc: this.handleEsc,
- onClose: this.handleCloseClick,
- onNegativeClick: this.handleNegativeClick,
- onPositiveClick: this.handlePositiveClick,
- onBeforeLeave: this.handleBeforeLeave,
- onAfterEnter: this.onAfterEnter,
- onAfterLeave: this.handleAfterLeave,
- onClickoutside: n ? void 0 : this.handleClickoutside,
- renderMask: n
- ? () => {
- var r;
- return h(
- Kn,
- {
- name: 'fade-in-transition',
- key: 'mask',
- appear:
- (r = this.internalAppear) !== null &&
- r !== void 0
- ? r
- : this.isMounted
- },
- {
- default: () =>
- this.show
- ? h('div', {
- 'aria-hidden': !0,
- ref: 'containerRef',
- class: `${e}-modal-mask`,
- onClick: this.handleClickoutside
- })
- : null
- }
- );
- }
- : void 0
- }
- ),
- this.$slots
- )
- ),
- [[qu, { zIndex: this.zIndex, enabled: this.show }]]
- );
- }
- }
- );
- }
- }),
- RX = Object.assign(Object.assign({}, Bp), {
- onAfterEnter: Function,
- onAfterLeave: Function,
- transformOrigin: String,
- blockScroll: { type: Boolean, default: !0 },
- closeOnEsc: { type: Boolean, default: !0 },
- onEsc: Function,
- autoFocus: { type: Boolean, default: !0 },
- internalStyle: [String, Object],
- maskClosable: { type: Boolean, default: !0 },
- onPositiveClick: Function,
- onNegativeClick: Function,
- onClose: Function,
- onMaskClick: Function
- }),
- PX = ke({
- name: 'DialogEnvironment',
- props: Object.assign(Object.assign({}, RX), {
- internalKey: { type: String, required: !0 },
- to: [String, Object],
- onInternalAfterLeave: { type: Function, required: !0 }
- }),
- setup(e) {
- const t = Z(!0);
- function n() {
- const { onInternalAfterLeave: f, internalKey: v, onAfterLeave: p } = e;
- f && f(v), p && p();
- }
- function r(f) {
- const { onPositiveClick: v } = e;
- v
- ? Promise.resolve(v(f)).then(p => {
- p !== !1 && c();
- })
- : c();
- }
- function o(f) {
- const { onNegativeClick: v } = e;
- v
- ? Promise.resolve(v(f)).then(p => {
- p !== !1 && c();
- })
- : c();
- }
- function i() {
- const { onClose: f } = e;
- f
- ? Promise.resolve(f()).then(v => {
- v !== !1 && c();
- })
- : c();
- }
- function a(f) {
- const { onMaskClick: v, maskClosable: p } = e;
- v && (v(f), p && c());
- }
- function s() {
- const { onEsc: f } = e;
- f && f();
- }
- function c() {
- t.value = !1;
- }
- function d(f) {
- t.value = f;
- }
- return {
- show: t,
- hide: c,
- handleUpdateShow: d,
- handleAfterLeave: n,
- handleCloseClick: i,
- handleNegativeClick: o,
- handlePositiveClick: r,
- handleMaskClick: a,
- handleEsc: s
- };
- },
- render() {
- const {
- handlePositiveClick: e,
- handleUpdateShow: t,
- handleNegativeClick: n,
- handleCloseClick: r,
- handleAfterLeave: o,
- handleMaskClick: i,
- handleEsc: a,
- to: s,
- maskClosable: c,
- show: d
- } = this;
- return h(
- P3,
- {
- show: d,
- onUpdateShow: t,
- onMaskClick: i,
- onEsc: a,
- to: s,
- maskClosable: c,
- onAfterEnter: this.onAfterEnter,
- onAfterLeave: o,
- closeOnEsc: this.closeOnEsc,
- blockScroll: this.blockScroll,
- autoFocus: this.autoFocus,
- transformOrigin: this.transformOrigin,
- internalAppear: !0,
- internalDialog: !0
- },
- {
- default: () =>
- h(
- S3,
- Object.assign({}, fi(this.$props, C3), {
- style: this.internalStyle,
- onClose: r,
- onNegativeClick: n,
- onPositiveClick: e
- })
- )
- }
- );
- }
- }),
- kX = { injectionKey: String, to: [String, Object] },
- jy = ke({
- name: 'DialogProvider',
- props: kX,
- setup() {
- const e = Z([]),
- t = {};
- function n(s = {}) {
- const c = pi(),
- d = Qi(
- Object.assign(Object.assign({}, s), {
- key: c,
- destroy: () => {
- t[`n-dialog-${c}`].hide();
- }
- })
- );
- return e.value.push(d), d;
- }
- const r = ['info', 'success', 'warning', 'error'].map(
- s => c => n(Object.assign(Object.assign({}, c), { type: s }))
- );
- function o(s) {
- const { value: c } = e;
- c.splice(
- c.findIndex(d => d.key === s),
- 1
- );
- }
- function i() {
- Object.values(t).forEach(s => {
- s.hide();
- });
- }
- const a = {
- create: n,
- destroyAll: i,
- info: r[0],
- success: r[1],
- warning: r[2],
- error: r[3]
- };
- return (
- Rt(R3, a),
- Rt(_3, { clickedRef: VR(64), clickPositionRef: UR() }),
- Rt(mX, e),
- Object.assign(Object.assign({}, a), {
- dialogList: e,
- dialogInstRefs: t,
- handleAfterLeave: o
- })
- );
- },
- render() {
- var e, t;
- return h(on, null, [
- this.dialogList.map(n =>
- h(
- PX,
- Xc(n, ['destroy', 'style'], {
- internalStyle: n.style,
- to: this.to,
- ref: r => {
- r === null
- ? delete this.dialogInstRefs[`n-dialog-${n.key}`]
- : (this.dialogInstRefs[`n-dialog-${n.key}`] = r);
- },
- internalKey: n.key,
- onInternalAfterLeave: this.handleAfterLeave
- })
- )
- ),
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e)
- ]);
- }
- });
- function TX() {
- const e = Ze(R3, null);
- return (
- e === null && io('use-dialog', 'No outer <n-dialog-provider /> founded.'), e
- );
- }
- const $X = e => {
- const { textColor1: t, dividerColor: n, fontWeightStrong: r } = e;
- return { textColor: t, color: n, fontWeight: r };
- },
- OX = { name: 'Divider', common: Nt, self: $X },
- zX = OX,
- EX = O(
- 'divider',
- `
- position: relative;
- display: flex;
- width: 100%;
- box-sizing: border-box;
- font-size: 16px;
- color: var(--n-text-color);
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `,
- [
- jt(
- 'vertical',
- `
- margin-top: 24px;
- margin-bottom: 24px;
- `,
- [
- jt(
- 'no-title',
- `
- display: flex;
- align-items: center;
- `
- )
- ]
- ),
- V(
- 'title',
- `
- display: flex;
- align-items: center;
- margin-left: 12px;
- margin-right: 12px;
- white-space: nowrap;
- font-weight: var(--n-font-weight);
- `
- ),
- U('title-position-left', [V('line', [U('left', { width: '28px' })])]),
- U('title-position-right', [V('line', [U('right', { width: '28px' })])]),
- U('dashed', [
- V(
- 'line',
- `
- background-color: #0000;
- height: 0px;
- width: 100%;
- border-style: dashed;
- border-width: 1px 0 0;
- `
- )
- ]),
- U(
- 'vertical',
- `
- display: inline-block;
- height: 1em;
- margin: 0 8px;
- vertical-align: middle;
- width: 1px;
- `
- ),
- V(
- 'line',
- `
- border: none;
- transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);
- height: 1px;
- width: 100%;
- margin: 0;
- `
- ),
- jt('dashed', [V('line', { backgroundColor: 'var(--n-color)' })]),
- U('dashed', [V('line', { borderColor: 'var(--n-color)' })]),
- U('vertical', { backgroundColor: 'var(--n-color)' })
- ]
- ),
- AX = Object.assign(Object.assign({}, Ke.props), {
- titlePlacement: { type: String, default: 'center' },
- dashed: Boolean,
- vertical: Boolean
- }),
- MX = ke({
- name: 'Divider',
- props: AX,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Divider', '-divider', EX, zX, e, t),
- o = I(() => {
- const {
- common: { cubicBezierEaseInOut: a },
- self: { color: s, textColor: c, fontWeight: d }
- } = r.value;
- return {
- '--n-bezier': a,
- '--n-color': s,
- '--n-text-color': c,
- '--n-font-weight': d
- };
- }),
- i = n ? Mt('divider', void 0, o, e) : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- const {
- $slots: t,
- titlePlacement: n,
- vertical: r,
- dashed: o,
- cssVars: i,
- mergedClsPrefix: a
- } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'div',
- {
- role: 'separator',
- class: [
- `${a}-divider`,
- this.themeClass,
- {
- [`${a}-divider--vertical`]: r,
- [`${a}-divider--no-title`]: !t.default,
- [`${a}-divider--dashed`]: o,
- [`${a}-divider--title-position-${n}`]: t.default && n
- }
- ],
- style: i
- },
- r
- ? null
- : h('div', {
- class: `${a}-divider__line ${a}-divider__line--left`
- }),
- !r && t.default
- ? h(
- on,
- null,
- h('div', { class: `${a}-divider__title` }, this.$slots),
- h('div', {
- class: `${a}-divider__line ${a}-divider__line--right`
- })
- )
- : null
- )
- );
- }
- }),
- IX = e => {
- const {
- modalColor: t,
- textColor1: n,
- textColor2: r,
- boxShadow3: o,
- lineHeight: i,
- fontWeightStrong: a,
- dividerColor: s,
- closeColorHover: c,
- closeColorPressed: d,
- closeIconColor: f,
- closeIconColorHover: v,
- closeIconColorPressed: p,
- borderRadius: m,
- primaryColorHover: g
- } = e;
- return {
- bodyPadding: '16px 24px',
- headerPadding: '16px 24px',
- footerPadding: '16px 24px',
- color: t,
- textColor: r,
- titleTextColor: n,
- titleFontSize: '18px',
- titleFontWeight: a,
- boxShadow: o,
- lineHeight: i,
- headerBorderBottom: `1px solid ${s}`,
- footerBorderTop: `1px solid ${s}`,
- closeIconColor: f,
- closeIconColorHover: v,
- closeIconColorPressed: p,
- closeSize: '22px',
- closeIconSize: '18px',
- closeColorHover: c,
- closeColorPressed: d,
- closeBorderRadius: m,
- resizableTriggerColorHover: g
- };
- },
- DX = { name: 'Drawer', common: Nt, peers: { Scrollbar: ea }, self: IX },
- FX = DX,
- BX = ke({
- name: 'NDrawerContent',
- inheritAttrs: !1,
- props: {
- blockScroll: Boolean,
- show: { type: Boolean, default: void 0 },
- displayDirective: { type: String, required: !0 },
- placement: { type: String, required: !0 },
- contentStyle: [Object, String],
- nativeScrollbar: { type: Boolean, required: !0 },
- scrollbarProps: Object,
- trapFocus: { type: Boolean, default: !0 },
- autoFocus: { type: Boolean, default: !0 },
- showMask: { type: [Boolean, String], required: !0 },
- resizable: Boolean,
- onClickoutside: Function,
- onAfterLeave: Function,
- onAfterEnter: Function,
- onEsc: Function
- },
- setup(e) {
- const t = Z(!!e.show),
- n = Z(null),
- r = Ze(Q0);
- let o = 0,
- i = '',
- a = null;
- const s = Z(!1),
- c = Z(!1),
- d = I(() => e.placement === 'top' || e.placement === 'bottom'),
- { mergedClsPrefixRef: f, mergedRtlRef: v } = yt(e),
- p = cr('Drawer', v, f),
- m = T => {
- (c.value = !0),
- (o = d.value ? T.clientY : T.clientX),
- (i = document.body.style.cursor),
- (document.body.style.cursor = d.value ? 'ns-resize' : 'ew-resize'),
- document.body.addEventListener('mousemove', C),
- document.body.addEventListener('mouseleave', S),
- document.body.addEventListener('mouseup', R);
- },
- g = () => {
- a !== null && (window.clearTimeout(a), (a = null)),
- c.value
- ? (s.value = !0)
- : (a = window.setTimeout(() => {
- s.value = !0;
- }, 300));
- },
- w = () => {
- a !== null && (window.clearTimeout(a), (a = null)), (s.value = !1);
- },
- { doUpdateHeight: x, doUpdateWidth: y } = r,
- C = T => {
- var E, z;
- if (c.value)
- if (d.value) {
- let k =
- ((E = n.value) === null || E === void 0
- ? void 0
- : E.offsetHeight) || 0;
- const M = o - T.clientY;
- (k += e.placement === 'bottom' ? M : -M), x(k), (o = T.clientY);
- } else {
- let k =
- ((z = n.value) === null || z === void 0
- ? void 0
- : z.offsetWidth) || 0;
- const M = o - T.clientX;
- (k += e.placement === 'right' ? M : -M), y(k), (o = T.clientX);
- }
- },
- R = () => {
- c.value &&
- ((o = 0),
- (c.value = !1),
- (document.body.style.cursor = i),
- document.body.removeEventListener('mousemove', C),
- document.body.removeEventListener('mouseup', R),
- document.body.removeEventListener('mouseleave', S));
- },
- S = R;
- Bn(() => {
- e.show && (t.value = !0);
- }),
- $t(
- () => e.show,
- T => {
- T || R();
- }
- ),
- qn(() => {
- R();
- });
- const _ = I(() => {
- const { show: T } = e,
- E = [[vi, T]];
- return (
- e.showMask || E.push([wa, e.onClickoutside, void 0, { capture: !0 }]),
- E
- );
- });
- function P() {
- var T;
- (t.value = !1),
- (T = e.onAfterLeave) === null || T === void 0 || T.call(e);
- }
- return (
- cP(I(() => e.blockScroll && t.value)),
- Rt(Ku, n),
- Rt(Zc, null),
- Rt(Vu, null),
- {
- bodyRef: n,
- rtlEnabled: p,
- mergedClsPrefix: r.mergedClsPrefixRef,
- isMounted: r.isMountedRef,
- mergedTheme: r.mergedThemeRef,
- displayed: t,
- transitionName: I(
- () =>
- ({
- right: 'slide-in-from-right-transition',
- left: 'slide-in-from-left-transition',
- top: 'slide-in-from-top-transition',
- bottom: 'slide-in-from-bottom-transition'
- }[e.placement])
- ),
- handleAfterLeave: P,
- bodyDirectives: _,
- handleMousedownResizeTrigger: m,
- handleMouseenterResizeTrigger: g,
- handleMouseleaveResizeTrigger: w,
- isDragging: c,
- isHoverOnResizeTrigger: s
- }
- );
- },
- render() {
- const { $slots: e, mergedClsPrefix: t } = this;
- return this.displayDirective === 'show' || this.displayed || this.show
- ? Er(
- h(
- 'div',
- { role: 'none' },
- h(
- ey,
- {
- disabled: !this.showMask || !this.trapFocus,
- active: this.show,
- autoFocus: this.autoFocus,
- onEsc: this.onEsc
- },
- {
- default: () =>
- h(
- Kn,
- {
- name: this.transitionName,
- appear: this.isMounted,
- onAfterEnter: this.onAfterEnter,
- onAfterLeave: this.handleAfterLeave
- },
- {
- default: () =>
- Er(
- h(
- 'div',
- qr(this.$attrs, {
- role: 'dialog',
- ref: 'bodyRef',
- 'aria-modal': 'true',
- class: [
- `${t}-drawer`,
- this.rtlEnabled && `${t}-drawer--rtl`,
- `${t}-drawer--${this.placement}-placement`,
- this.isDragging &&
- `${t}-drawer--unselectable`,
- this.nativeScrollbar &&
- `${t}-drawer--native-scrollbar`
- ]
- }),
- [
- this.resizable
- ? h('div', {
- class: [
- `${t}-drawer__resize-trigger`,
- (this.isDragging ||
- this.isHoverOnResizeTrigger) &&
- `${t}-drawer__resize-trigger--hover`
- ],
- onMouseenter:
- this.handleMouseenterResizeTrigger,
- onMouseleave:
- this.handleMouseleaveResizeTrigger,
- onMousedown:
- this.handleMousedownResizeTrigger
- })
- : null,
- this.nativeScrollbar
- ? h(
- 'div',
- {
- class: `${t}-drawer-content-wrapper`,
- style: this.contentStyle,
- role: 'none'
- },
- e
- )
- : h(
- yr,
- Object.assign({}, this.scrollbarProps, {
- contentStyle: this.contentStyle,
- contentClass: `${t}-drawer-content-wrapper`,
- theme: this.mergedTheme.peers.Scrollbar,
- themeOverrides:
- this.mergedTheme.peerOverrides
- .Scrollbar
- }),
- e
- )
- ]
- ),
- this.bodyDirectives
- )
- }
- )
- }
- )
- ),
- [
- [
- vi,
- this.displayDirective === 'if' || this.displayed || this.show
- ]
- ]
- )
- : null;
- }
- }),
- { cubicBezierEaseIn: LX, cubicBezierEaseOut: NX } = Bo;
- function HX({
- duration: e = '0.3s',
- leaveDuration: t = '0.2s',
- name: n = 'slide-in-from-right'
- } = {}) {
- return [
- F(`&.${n}-transition-leave-active`, { transition: `transform ${t} ${LX}` }),
- F(`&.${n}-transition-enter-active`, { transition: `transform ${e} ${NX}` }),
- F(`&.${n}-transition-enter-to`, { transform: 'translateX(0)' }),
- F(`&.${n}-transition-enter-from`, { transform: 'translateX(100%)' }),
- F(`&.${n}-transition-leave-from`, { transform: 'translateX(0)' }),
- F(`&.${n}-transition-leave-to`, { transform: 'translateX(100%)' })
- ];
- }
- const { cubicBezierEaseIn: jX, cubicBezierEaseOut: WX } = Bo;
- function UX({
- duration: e = '0.3s',
- leaveDuration: t = '0.2s',
- name: n = 'slide-in-from-left'
- } = {}) {
- return [
- F(`&.${n}-transition-leave-active`, { transition: `transform ${t} ${jX}` }),
- F(`&.${n}-transition-enter-active`, { transition: `transform ${e} ${WX}` }),
- F(`&.${n}-transition-enter-to`, { transform: 'translateX(0)' }),
- F(`&.${n}-transition-enter-from`, { transform: 'translateX(-100%)' }),
- F(`&.${n}-transition-leave-from`, { transform: 'translateX(0)' }),
- F(`&.${n}-transition-leave-to`, { transform: 'translateX(-100%)' })
- ];
- }
- const { cubicBezierEaseIn: VX, cubicBezierEaseOut: KX } = Bo;
- function qX({
- duration: e = '0.3s',
- leaveDuration: t = '0.2s',
- name: n = 'slide-in-from-top'
- } = {}) {
- return [
- F(`&.${n}-transition-leave-active`, { transition: `transform ${t} ${VX}` }),
- F(`&.${n}-transition-enter-active`, { transition: `transform ${e} ${KX}` }),
- F(`&.${n}-transition-enter-to`, { transform: 'translateY(0)' }),
- F(`&.${n}-transition-enter-from`, { transform: 'translateY(-100%)' }),
- F(`&.${n}-transition-leave-from`, { transform: 'translateY(0)' }),
- F(`&.${n}-transition-leave-to`, { transform: 'translateY(-100%)' })
- ];
- }
- const { cubicBezierEaseIn: YX, cubicBezierEaseOut: GX } = Bo;
- function XX({
- duration: e = '0.3s',
- leaveDuration: t = '0.2s',
- name: n = 'slide-in-from-bottom'
- } = {}) {
- return [
- F(`&.${n}-transition-leave-active`, { transition: `transform ${t} ${YX}` }),
- F(`&.${n}-transition-enter-active`, { transition: `transform ${e} ${GX}` }),
- F(`&.${n}-transition-enter-to`, { transform: 'translateY(0)' }),
- F(`&.${n}-transition-enter-from`, { transform: 'translateY(100%)' }),
- F(`&.${n}-transition-leave-from`, { transform: 'translateY(0)' }),
- F(`&.${n}-transition-leave-to`, { transform: 'translateY(100%)' })
- ];
- }
- const ZX = F([
- O(
- 'drawer',
- `
- word-break: break-word;
- line-height: var(--n-line-height);
- position: absolute;
- pointer-events: all;
- box-shadow: var(--n-box-shadow);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- background-color: var(--n-color);
- color: var(--n-text-color);
- box-sizing: border-box;
- `,
- [
- HX(),
- UX(),
- qX(),
- XX(),
- U(
- 'unselectable',
- `
- user-select: none;
- -webkit-user-select: none;
- `
- ),
- U('native-scrollbar', [
- O(
- 'drawer-content-wrapper',
- `
- overflow: auto;
- height: 100%;
- `
- )
- ]),
- V(
- 'resize-trigger',
- `
- position: absolute;
- background-color: #0000;
- transition: background-color .3s var(--n-bezier);
- `,
- [
- U(
- 'hover',
- `
- background-color: var(--n-resize-trigger-color-hover);
- `
- )
- ]
- ),
- O(
- 'drawer-content-wrapper',
- `
- box-sizing: border-box;
- `
- ),
- O(
- 'drawer-content',
- `
- height: 100%;
- display: flex;
- flex-direction: column;
- `,
- [
- U('native-scrollbar', [
- O(
- 'drawer-body-content-wrapper',
- `
- height: 100%;
- overflow: auto;
- `
- )
- ]),
- O(
- 'drawer-body',
- `
- flex: 1 0 0;
- overflow: hidden;
- `
- ),
- O(
- 'drawer-body-content-wrapper',
- `
- box-sizing: border-box;
- padding: var(--n-body-padding);
- `
- ),
- O(
- 'drawer-header',
- `
- font-weight: var(--n-title-font-weight);
- line-height: 1;
- font-size: var(--n-title-font-size);
- color: var(--n-title-text-color);
- padding: var(--n-header-padding);
- transition: border .3s var(--n-bezier);
- border-bottom: 1px solid var(--n-divider-color);
- border-bottom: var(--n-header-border-bottom);
- display: flex;
- justify-content: space-between;
- align-items: center;
- `,
- [
- V(
- 'close',
- `
- margin-left: 6px;
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `
- )
- ]
- ),
- O(
- 'drawer-footer',
- `
- display: flex;
- justify-content: flex-end;
- border-top: var(--n-footer-border-top);
- transition: border .3s var(--n-bezier);
- padding: var(--n-footer-padding);
- `
- )
- ]
- ),
- U(
- 'right-placement',
- `
- top: 0;
- bottom: 0;
- right: 0;
- `,
- [
- V(
- 'resize-trigger',
- `
- width: 3px;
- height: 100%;
- top: 0;
- left: 0;
- transform: translateX(-1.5px);
- cursor: ew-resize;
- `
- )
- ]
- ),
- U(
- 'left-placement',
- `
- top: 0;
- bottom: 0;
- left: 0;
- `,
- [
- V(
- 'resize-trigger',
- `
- width: 3px;
- height: 100%;
- top: 0;
- right: 0;
- transform: translateX(1.5px);
- cursor: ew-resize;
- `
- )
- ]
- ),
- U(
- 'top-placement',
- `
- top: 0;
- left: 0;
- right: 0;
- `,
- [
- V(
- 'resize-trigger',
- `
- width: 100%;
- height: 3px;
- bottom: 0;
- left: 0;
- transform: translateY(1.5px);
- cursor: ns-resize;
- `
- )
- ]
- ),
- U(
- 'bottom-placement',
- `
- left: 0;
- bottom: 0;
- right: 0;
- `,
- [
- V(
- 'resize-trigger',
- `
- width: 100%;
- height: 3px;
- top: 0;
- left: 0;
- transform: translateY(-1.5px);
- cursor: ns-resize;
- `
- )
- ]
- )
- ]
- ),
- F('body', [F('>', [O('drawer-container', { position: 'fixed' })])]),
- O(
- 'drawer-container',
- `
- position: relative;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- pointer-events: none;
- `,
- [F('> *', { pointerEvents: 'all' })]
- ),
- O(
- 'drawer-mask',
- `
- background-color: rgba(0, 0, 0, .3);
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `,
- [
- U(
- 'invisible',
- `
- background-color: rgba(0, 0, 0, 0)
- `
- ),
- Cs({
- enterDuration: '0.2s',
- leaveDuration: '0.2s',
- enterCubicBezier: 'var(--n-bezier-in)',
- leaveCubicBezier: 'var(--n-bezier-out)'
- })
- ]
- )
- ]),
- QX = Object.assign(Object.assign({}, Ke.props), {
- show: Boolean,
- width: [Number, String],
- height: [Number, String],
- placement: { type: String, default: 'right' },
- maskClosable: { type: Boolean, default: !0 },
- showMask: { type: [Boolean, String], default: !0 },
- to: [String, Object],
- displayDirective: { type: String, default: 'if' },
- nativeScrollbar: { type: Boolean, default: !0 },
- zIndex: Number,
- onMaskClick: Function,
- scrollbarProps: Object,
- contentStyle: [Object, String],
- trapFocus: { type: Boolean, default: !0 },
- onEsc: Function,
- autoFocus: { type: Boolean, default: !0 },
- closeOnEsc: { type: Boolean, default: !0 },
- blockScroll: { type: Boolean, default: !0 },
- resizable: Boolean,
- defaultWidth: { type: [Number, String], default: 251 },
- defaultHeight: { type: [Number, String], default: 251 },
- onUpdateWidth: [Function, Array],
- onUpdateHeight: [Function, Array],
- 'onUpdate:width': [Function, Array],
- 'onUpdate:height': [Function, Array],
- 'onUpdate:show': [Function, Array],
- onUpdateShow: [Function, Array],
- onAfterEnter: Function,
- onAfterLeave: Function,
- drawerStyle: [String, Object],
- drawerClass: String,
- target: null,
- onShow: Function,
- onHide: Function
- }),
- JX = ke({
- name: 'Drawer',
- inheritAttrs: !1,
- props: QX,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- namespaceRef: n,
- inlineThemeDisabled: r
- } = yt(e),
- o = yi(),
- i = Ke('Drawer', '-drawer', ZX, FX, e, t),
- a = Z(e.defaultWidth),
- s = Z(e.defaultHeight),
- c = En(Ie(e, 'width'), a),
- d = En(Ie(e, 'height'), s),
- f = I(() => {
- const { placement: _ } = e;
- return _ === 'top' || _ === 'bottom' ? '' : vn(c.value);
- }),
- v = I(() => {
- const { placement: _ } = e;
- return _ === 'left' || _ === 'right' ? '' : vn(d.value);
- }),
- p = _ => {
- const { onUpdateWidth: P, 'onUpdate:width': T } = e;
- P && Me(P, _), T && Me(T, _), (a.value = _);
- },
- m = _ => {
- const { onUpdateHeight: P, 'onUpdate:width': T } = e;
- P && Me(P, _), T && Me(T, _), (s.value = _);
- },
- g = I(() => [{ width: f.value, height: v.value }, e.drawerStyle || '']);
- function w(_) {
- const { onMaskClick: P, maskClosable: T } = e;
- T && C(!1), P && P(_);
- }
- const x = dP();
- function y(_) {
- var P;
- (P = e.onEsc) === null || P === void 0 || P.call(e),
- e.show && e.closeOnEsc && HR(_) && !x.value && C(!1);
- }
- function C(_) {
- const { onHide: P, onUpdateShow: T, 'onUpdate:show': E } = e;
- T && Me(T, _), E && Me(E, _), P && !_ && Me(P, _);
- }
- Rt(Q0, {
- isMountedRef: o,
- mergedThemeRef: i,
- mergedClsPrefixRef: t,
- doUpdateShow: C,
- doUpdateHeight: m,
- doUpdateWidth: p
- });
- const R = I(() => {
- const {
- common: {
- cubicBezierEaseInOut: _,
- cubicBezierEaseIn: P,
- cubicBezierEaseOut: T
- },
- self: {
- color: E,
- textColor: z,
- boxShadow: k,
- lineHeight: M,
- headerPadding: A,
- footerPadding: D,
- bodyPadding: L,
- titleFontSize: H,
- titleTextColor: B,
- titleFontWeight: q,
- headerBorderBottom: X,
- footerBorderTop: te,
- closeIconColor: G,
- closeIconColorHover: Q,
- closeIconColorPressed: re,
- closeColorHover: se,
- closeColorPressed: pe,
- closeIconSize: ce,
- closeSize: xe,
- closeBorderRadius: ve,
- resizableTriggerColorHover: be
- }
- } = i.value;
- return {
- '--n-line-height': M,
- '--n-color': E,
- '--n-text-color': z,
- '--n-box-shadow': k,
- '--n-bezier': _,
- '--n-bezier-out': T,
- '--n-bezier-in': P,
- '--n-header-padding': A,
- '--n-body-padding': L,
- '--n-footer-padding': D,
- '--n-title-text-color': B,
- '--n-title-font-size': H,
- '--n-title-font-weight': q,
- '--n-header-border-bottom': X,
- '--n-footer-border-top': te,
- '--n-close-icon-color': G,
- '--n-close-icon-color-hover': Q,
- '--n-close-icon-color-pressed': re,
- '--n-close-size': xe,
- '--n-close-color-hover': se,
- '--n-close-color-pressed': pe,
- '--n-close-icon-size': ce,
- '--n-close-border-radius': ve,
- '--n-resize-trigger-color-hover': be
- };
- }),
- S = r ? Mt('drawer', void 0, R, e) : void 0;
- return {
- mergedClsPrefix: t,
- namespace: n,
- mergedBodyStyle: g,
- handleMaskClick: w,
- handleEsc: y,
- mergedTheme: i,
- cssVars: r ? void 0 : R,
- themeClass: S == null ? void 0 : S.themeClass,
- onRender: S == null ? void 0 : S.onRender,
- isMounted: o
- };
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h(
- Yu,
- { to: this.to, show: this.show },
- {
- default: () => {
- var t;
- return (
- (t = this.onRender) === null || t === void 0 || t.call(this),
- Er(
- h(
- 'div',
- {
- class: [
- `${e}-drawer-container`,
- this.namespace,
- this.themeClass
- ],
- style: this.cssVars,
- role: 'none'
- },
- this.showMask
- ? h(
- Kn,
- { name: 'fade-in-transition', appear: this.isMounted },
- {
- default: () =>
- this.show
- ? h('div', {
- 'aria-hidden': !0,
- class: [
- `${e}-drawer-mask`,
- this.showMask === 'transparent' &&
- `${e}-drawer-mask--invisible`
- ],
- onClick: this.handleMaskClick
- })
- : null
- }
- )
- : null,
- h(
- BX,
- Object.assign({}, this.$attrs, {
- class: [this.drawerClass, this.$attrs.class],
- style: [this.mergedBodyStyle, this.$attrs.style],
- blockScroll: this.blockScroll,
- contentStyle: this.contentStyle,
- placement: this.placement,
- scrollbarProps: this.scrollbarProps,
- show: this.show,
- displayDirective: this.displayDirective,
- nativeScrollbar: this.nativeScrollbar,
- onAfterEnter: this.onAfterEnter,
- onAfterLeave: this.onAfterLeave,
- trapFocus: this.trapFocus,
- autoFocus: this.autoFocus,
- resizable: this.resizable,
- showMask: this.showMask,
- onEsc: this.handleEsc,
- onClickoutside: this.handleMaskClick
- }),
- this.$slots
- )
- ),
- [[qu, { zIndex: this.zIndex, enabled: this.show }]]
- )
- );
- }
- }
- );
- }
- }),
- eZ = {
- title: { type: String },
- headerStyle: [Object, String],
- footerStyle: [Object, String],
- bodyStyle: [Object, String],
- bodyContentStyle: [Object, String],
- nativeScrollbar: { type: Boolean, default: !0 },
- scrollbarProps: Object,
- closable: Boolean
- },
- tZ = ke({
- name: 'DrawerContent',
- props: eZ,
- setup() {
- const e = Ze(Q0, null);
- e ||
- io(
- 'drawer-content',
- '`n-drawer-content` must be placed inside `n-drawer`.'
- );
- const { doUpdateShow: t } = e;
- function n() {
- t(!1);
- }
- return {
- handleCloseClick: n,
- mergedTheme: e.mergedThemeRef,
- mergedClsPrefix: e.mergedClsPrefixRef
- };
- },
- render() {
- const {
- title: e,
- mergedClsPrefix: t,
- nativeScrollbar: n,
- mergedTheme: r,
- bodyStyle: o,
- bodyContentStyle: i,
- headerStyle: a,
- footerStyle: s,
- scrollbarProps: c,
- closable: d,
- $slots: f
- } = this;
- return h(
- 'div',
- {
- role: 'none',
- class: [
- `${t}-drawer-content`,
- n && `${t}-drawer-content--native-scrollbar`
- ]
- },
- f.header || e || d
- ? h(
- 'div',
- { class: `${t}-drawer-header`, style: a, role: 'none' },
- h(
- 'div',
- {
- class: `${t}-drawer-header__main`,
- role: 'heading',
- 'aria-level': '1'
- },
- f.header !== void 0 ? f.header() : e
- ),
- d &&
- h(Sl, {
- onClick: this.handleCloseClick,
- clsPrefix: t,
- class: `${t}-drawer-header__close`,
- absolute: !0
- })
- )
- : null,
- n
- ? h(
- 'div',
- { class: `${t}-drawer-body`, style: o, role: 'none' },
- h(
- 'div',
- {
- class: `${t}-drawer-body-content-wrapper`,
- style: i,
- role: 'none'
- },
- f
- )
- )
- : h(
- yr,
- Object.assign(
- {
- themeOverrides: r.peerOverrides.Scrollbar,
- theme: r.peers.Scrollbar
- },
- c,
- {
- class: `${t}-drawer-body`,
- contentClass: `${t}-drawer-body-content-wrapper`,
- contentStyle: i
- }
- ),
- f
- ),
- f.footer
- ? h(
- 'div',
- { class: `${t}-drawer-footer`, style: s, role: 'none' },
- f.footer()
- )
- : null
- );
- }
- }),
- nZ = { gapSmall: '4px 8px', gapMedium: '8px 12px', gapLarge: '12px 16px' },
- rZ = () => nZ,
- oZ = { name: 'Space', self: rZ },
- iZ = oZ;
- let Wm;
- const aZ = () => {
- if (!Fo) return !0;
- if (Wm === void 0) {
- const e = document.createElement('div');
- (e.style.display = 'flex'),
- (e.style.flexDirection = 'column'),
- (e.style.rowGap = '1px'),
- e.appendChild(document.createElement('div')),
- e.appendChild(document.createElement('div')),
- document.body.appendChild(e);
- const t = e.scrollHeight === 1;
- return document.body.removeChild(e), (Wm = t);
- }
- return Wm;
- },
- lZ = Object.assign(Object.assign({}, Ke.props), {
- align: String,
- justify: { type: String, default: 'start' },
- inline: Boolean,
- vertical: Boolean,
- size: { type: [String, Number, Array], default: 'medium' },
- wrapItem: { type: Boolean, default: !0 },
- itemStyle: [String, Object],
- wrap: { type: Boolean, default: !0 },
- internalUseGap: { type: Boolean, default: void 0 }
- }),
- sZ = ke({
- name: 'Space',
- props: lZ,
- setup(e) {
- const { mergedClsPrefixRef: t, mergedRtlRef: n } = yt(e),
- r = Ke('Space', '-space', void 0, iZ, e, t),
- o = cr('Space', n, t);
- return {
- useGap: aZ(),
- rtlEnabled: o,
- mergedClsPrefix: t,
- margin: I(() => {
- const { size: i } = e;
- if (Array.isArray(i)) return { horizontal: i[0], vertical: i[1] };
- if (typeof i == 'number') return { horizontal: i, vertical: i };
- const {
- self: { [Ee('gap', i)]: a }
- } = r.value,
- { row: s, col: c } = xI(a);
- return { horizontal: Lr(c), vertical: Lr(s) };
- })
- };
- },
- render() {
- const {
- vertical: e,
- align: t,
- inline: n,
- justify: r,
- itemStyle: o,
- margin: i,
- wrap: a,
- mergedClsPrefix: s,
- rtlEnabled: c,
- useGap: d,
- wrapItem: f,
- internalUseGap: v
- } = this,
- p = hi(Wu(this));
- if (!p.length) return null;
- const m = `${i.horizontal}px`,
- g = `${i.horizontal / 2}px`,
- w = `${i.vertical}px`,
- x = `${i.vertical / 2}px`,
- y = p.length - 1,
- C = r.startsWith('space-');
- return h(
- 'div',
- {
- role: 'none',
- class: [`${s}-space`, c && `${s}-space--rtl`],
- style: {
- display: n ? 'inline-flex' : 'flex',
- flexDirection: e ? 'column' : 'row',
- justifyContent: ['start', 'end'].includes(r) ? 'flex-' + r : r,
- flexWrap: !a || e ? 'nowrap' : 'wrap',
- marginTop: d || e ? '' : `-${x}`,
- marginBottom: d || e ? '' : `-${x}`,
- alignItems: t,
- gap: d ? `${i.vertical}px ${i.horizontal}px` : ''
- }
- },
- !f && (d || v)
- ? p
- : p.map((R, S) =>
- h(
- 'div',
- {
- role: 'none',
- style: [
- o,
- { maxWidth: '100%' },
- d
- ? ''
- : e
- ? { marginBottom: S !== y ? w : '' }
- : c
- ? {
- marginLeft: C
- ? r === 'space-between' && S === y
- ? ''
- : g
- : S !== y
- ? m
- : '',
- marginRight: C
- ? r === 'space-between' && S === 0
- ? ''
- : g
- : '',
- paddingTop: x,
- paddingBottom: x
- }
- : {
- marginRight: C
- ? r === 'space-between' && S === y
- ? ''
- : g
- : S !== y
- ? m
- : '',
- marginLeft: C
- ? r === 'space-between' && S === 0
- ? ''
- : g
- : '',
- paddingTop: x,
- paddingBottom: x
- }
- ]
- },
- R
- )
- )
- );
- }
- }),
- cZ = { name: 'Element', common: Nt },
- dZ = cZ,
- uZ = Object.assign(Object.assign({}, Ke.props), {
- tag: { type: String, default: 'div' }
- }),
- fZ = ke({
- name: 'Element',
- alias: ['El'],
- props: uZ,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Element', '-element', void 0, dZ, e, t),
- o = I(() => {
- const { common: a } = r.value;
- return Object.keys(a).reduce(
- (s, c) => ((s[`--${ZP(c)}`] = a[c]), s),
- {}
- );
- }),
- i = n ? Mt('element', void 0, o, e) : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- const {
- tag: t,
- mergedClsPrefix: n,
- cssVars: r,
- themeClass: o,
- onRender: i,
- $slots: a
- } = this;
- return (
- i == null || i(),
- h(
- t,
- { role: 'none', class: [`${n}-element`, o], style: r },
- (e = a.default) === null || e === void 0 ? void 0 : e.call(a)
- )
- );
- }
- }),
- hZ = {
- feedbackPadding: '4px 0 0 2px',
- feedbackHeightSmall: '24px',
- feedbackHeightMedium: '24px',
- feedbackHeightLarge: '26px',
- feedbackFontSizeSmall: '13px',
- feedbackFontSizeMedium: '14px',
- feedbackFontSizeLarge: '14px',
- labelFontSizeLeftSmall: '14px',
- labelFontSizeLeftMedium: '14px',
- labelFontSizeLeftLarge: '15px',
- labelFontSizeTopSmall: '13px',
- labelFontSizeTopMedium: '14px',
- labelFontSizeTopLarge: '14px',
- labelHeightSmall: '24px',
- labelHeightMedium: '26px',
- labelHeightLarge: '28px',
- labelPaddingVertical: '0 0 6px 2px',
- labelPaddingHorizontal: '0 12px 0 0',
- labelTextAlignVertical: 'left',
- labelTextAlignHorizontal: 'right',
- labelFontWeight: '400'
- },
- vZ = e => {
- const {
- heightSmall: t,
- heightMedium: n,
- heightLarge: r,
- textColor1: o,
- errorColor: i,
- warningColor: a,
- lineHeight: s,
- textColor3: c
- } = e;
- return Object.assign(Object.assign({}, hZ), {
- blankHeightSmall: t,
- blankHeightMedium: n,
- blankHeightLarge: r,
- lineHeight: s,
- labelTextColor: o,
- asteriskColor: i,
- feedbackTextColorError: i,
- feedbackTextColorWarning: a,
- feedbackTextColor: c
- });
- },
- pZ = { name: 'Form', common: Nt, self: vZ },
- k3 = pZ,
- gZ = O('form', [
- U(
- 'inline',
- `
- width: 100%;
- display: inline-flex;
- align-items: flex-start;
- align-content: space-around;
- `,
- [
- O('form-item', { width: 'auto', marginRight: '18px' }, [
- F('&:last-child', { marginRight: 0 })
- ])
- ]
- )
- ]),
- ef = 'n-form',
- T3 = 'n-form-item-insts';
- var mZ =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- const bZ = Object.assign(Object.assign({}, Ke.props), {
- inline: Boolean,
- labelWidth: [Number, String],
- labelAlign: String,
- labelPlacement: { type: String, default: 'top' },
- model: { type: Object, default: () => {} },
- rules: Object,
- disabled: Boolean,
- size: String,
- showRequireMark: { type: Boolean, default: void 0 },
- requireMarkPlacement: String,
- showFeedback: { type: Boolean, default: !0 },
- onSubmit: {
- type: Function,
- default: e => {
- e.preventDefault();
- }
- },
- showLabel: { type: Boolean, default: void 0 },
- validateMessages: Object
- }),
- yZ = ke({
- name: 'Form',
- props: bZ,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e);
- Ke('Form', '-form', gZ, k3, e, t);
- const n = {},
- r = Z(void 0),
- o = c => {
- const d = r.value;
- (d === void 0 || c >= d) && (r.value = c);
- };
- function i(c, d = () => !0) {
- return mZ(this, void 0, void 0, function* () {
- yield new Promise((f, v) => {
- const p = [];
- for (const m of Ki(n)) {
- const g = n[m];
- for (const w of g) w.path && p.push(w.internalValidate(null, d));
- }
- Promise.all(p).then(m => {
- if (m.some(g => !g.valid)) {
- const g = m.filter(w => w.errors).map(w => w.errors);
- c && c(g), v(g);
- } else c && c(), f();
- });
- });
- });
- }
- function a() {
- for (const c of Ki(n)) {
- const d = n[c];
- for (const f of d) f.restoreValidation();
- }
- }
- return (
- Rt(ef, {
- props: e,
- maxChildLabelWidthRef: r,
- deriveMaxChildLabelWidth: o
- }),
- Rt(T3, { formItems: n }),
- Object.assign(
- { validate: i, restoreValidation: a },
- { mergedClsPrefix: t }
- )
- );
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h(
- 'form',
- {
- class: [`${e}-form`, this.inline && `${e}-form--inline`],
- onSubmit: this.onSubmit
- },
- this.$slots
- );
- }
- });
- function fs() {
- return (
- (fs = Object.assign
- ? Object.assign.bind()
- : function (e) {
- for (var t = 1; t < arguments.length; t++) {
- var n = arguments[t];
- for (var r in n)
- Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
- }
- return e;
- }),
- fs.apply(this, arguments)
- );
- }
- function xZ(e, t) {
- (e.prototype = Object.create(t.prototype)),
- (e.prototype.constructor = e),
- Iu(e, t);
- }
- function Qb(e) {
- return (
- (Qb = Object.setPrototypeOf
- ? Object.getPrototypeOf.bind()
- : function (n) {
- return n.__proto__ || Object.getPrototypeOf(n);
- }),
- Qb(e)
- );
- }
- function Iu(e, t) {
- return (
- (Iu = Object.setPrototypeOf
- ? Object.setPrototypeOf.bind()
- : function (r, o) {
- return (r.__proto__ = o), r;
- }),
- Iu(e, t)
- );
- }
- function wZ() {
- if (typeof Reflect > 'u' || !Reflect.construct || Reflect.construct.sham)
- return !1;
- if (typeof Proxy == 'function') return !0;
- try {
- return (
- Boolean.prototype.valueOf.call(
- Reflect.construct(Boolean, [], function () {})
- ),
- !0
- );
- } catch {
- return !1;
- }
- }
- function Vh(e, t, n) {
- return (
- wZ()
- ? (Vh = Reflect.construct.bind())
- : (Vh = function (o, i, a) {
- var s = [null];
- s.push.apply(s, i);
- var c = Function.bind.apply(o, s),
- d = new c();
- return a && Iu(d, a.prototype), d;
- }),
- Vh.apply(null, arguments)
- );
- }
- function CZ(e) {
- return Function.toString.call(e).indexOf('[native code]') !== -1;
- }
- function Jb(e) {
- var t = typeof Map == 'function' ? new Map() : void 0;
- return (
- (Jb = function (r) {
- if (r === null || !CZ(r)) return r;
- if (typeof r != 'function')
- throw new TypeError(
- 'Super expression must either be null or a function'
- );
- if (typeof t < 'u') {
- if (t.has(r)) return t.get(r);
- t.set(r, o);
- }
- function o() {
- return Vh(r, arguments, Qb(this).constructor);
- }
- return (
- (o.prototype = Object.create(r.prototype, {
- constructor: {
- value: o,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- })),
- Iu(o, r)
- );
- }),
- Jb(e)
- );
- }
- var SZ = /%[sdj%]/g,
- _Z = function () {};
- typeof process < 'u' && process.env;
- function e0(e) {
- if (!e || !e.length) return null;
- var t = {};
- return (
- e.forEach(function (n) {
- var r = n.field;
- (t[r] = t[r] || []), t[r].push(n);
- }),
- t
- );
- }
- function zo(e) {
- for (
- var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1;
- r < t;
- r++
- )
- n[r - 1] = arguments[r];
- var o = 0,
- i = n.length;
- if (typeof e == 'function') return e.apply(null, n);
- if (typeof e == 'string') {
- var a = e.replace(SZ, function (s) {
- if (s === '%%') return '%';
- if (o >= i) return s;
- switch (s) {
- case '%s':
- return String(n[o++]);
- case '%d':
- return Number(n[o++]);
- case '%j':
- try {
- return JSON.stringify(n[o++]);
- } catch {
- return '[Circular]';
- }
- break;
- default:
- return s;
- }
- });
- return a;
- }
- return e;
- }
- function RZ(e) {
- return (
- e === 'string' ||
- e === 'url' ||
- e === 'hex' ||
- e === 'email' ||
- e === 'date' ||
- e === 'pattern'
- );
- }
- function Rr(e, t) {
- return !!(
- e == null ||
- (t === 'array' && Array.isArray(e) && !e.length) ||
- (RZ(t) && typeof e == 'string' && !e)
- );
- }
- function PZ(e, t, n) {
- var r = [],
- o = 0,
- i = e.length;
- function a(s) {
- r.push.apply(r, s || []), o++, o === i && n(r);
- }
- e.forEach(function (s) {
- t(s, a);
- });
- }
- function JS(e, t, n) {
- var r = 0,
- o = e.length;
- function i(a) {
- if (a && a.length) {
- n(a);
- return;
- }
- var s = r;
- (r = r + 1), s < o ? t(e[s], i) : n([]);
- }
- i([]);
- }
- function kZ(e) {
- var t = [];
- return (
- Object.keys(e).forEach(function (n) {
- t.push.apply(t, e[n] || []);
- }),
- t
- );
- }
- var e2 = (function (e) {
- xZ(t, e);
- function t(n, r) {
- var o;
- return (
- (o = e.call(this, 'Async Validation Error') || this),
- (o.errors = n),
- (o.fields = r),
- o
- );
- }
- return t;
- })(Jb(Error));
- function TZ(e, t, n, r, o) {
- if (t.first) {
- var i = new Promise(function (p, m) {
- var g = function (y) {
- return r(y), y.length ? m(new e2(y, e0(y))) : p(o);
- },
- w = kZ(e);
- JS(w, n, g);
- });
- return (
- i.catch(function (p) {
- return p;
- }),
- i
- );
- }
- var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [],
- s = Object.keys(e),
- c = s.length,
- d = 0,
- f = [],
- v = new Promise(function (p, m) {
- var g = function (x) {
- if ((f.push.apply(f, x), d++, d === c))
- return r(f), f.length ? m(new e2(f, e0(f))) : p(o);
- };
- s.length || (r(f), p(o)),
- s.forEach(function (w) {
- var x = e[w];
- a.indexOf(w) !== -1 ? JS(x, n, g) : PZ(x, n, g);
- });
- });
- return (
- v.catch(function (p) {
- return p;
- }),
- v
- );
- }
- function $Z(e) {
- return !!(e && e.message !== void 0);
- }
- function OZ(e, t) {
- for (var n = e, r = 0; r < t.length; r++) {
- if (n == null) return n;
- n = n[t[r]];
- }
- return n;
- }
- function t2(e, t) {
- return function (n) {
- var r;
- return (
- e.fullFields
- ? (r = OZ(t, e.fullFields))
- : (r = t[n.field || e.fullField]),
- $Z(n)
- ? ((n.field = n.field || e.fullField), (n.fieldValue = r), n)
- : {
- message: typeof n == 'function' ? n() : n,
- fieldValue: r,
- field: n.field || e.fullField
- }
- );
- };
- }
- function n2(e, t) {
- if (t) {
- for (var n in t)
- if (t.hasOwnProperty(n)) {
- var r = t[n];
- typeof r == 'object' && typeof e[n] == 'object'
- ? (e[n] = fs({}, e[n], r))
- : (e[n] = r);
- }
- }
- return e;
- }
- var $3 = function (t, n, r, o, i, a) {
- t.required &&
- (!r.hasOwnProperty(t.field) || Rr(n, a || t.type)) &&
- o.push(zo(i.messages.required, t.fullField));
- },
- zZ = function (t, n, r, o, i) {
- (/^\s+$/.test(n) || n === '') &&
- o.push(zo(i.messages.whitespace, t.fullField));
- },
- Th,
- EZ = function () {
- if (Th) return Th;
- var e = '[a-fA-F\\d:]',
- t = function (S) {
- return S && S.includeBoundaries
- ? '(?:(?<=\\s|^)(?=' + e + ')|(?<=' + e + ')(?=\\s|$))'
- : '';
- },
- n =
- '(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}',
- r = '[a-fA-F\\d]{1,4}',
- o = (
- `
- (?:
- (?:` +
- r +
- ':){7}(?:' +
- r +
- `|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
- (?:` +
- r +
- ':){6}(?:' +
- n +
- '|:' +
- r +
- `|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
- (?:` +
- r +
- ':){5}(?::' +
- n +
- '|(?::' +
- r +
- `){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
- (?:` +
- r +
- ':){4}(?:(?::' +
- r +
- '){0,1}:' +
- n +
- '|(?::' +
- r +
- `){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
- (?:` +
- r +
- ':){3}(?:(?::' +
- r +
- '){0,2}:' +
- n +
- '|(?::' +
- r +
- `){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
- (?:` +
- r +
- ':){2}(?:(?::' +
- r +
- '){0,3}:' +
- n +
- '|(?::' +
- r +
- `){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
- (?:` +
- r +
- ':){1}(?:(?::' +
- r +
- '){0,4}:' +
- n +
- '|(?::' +
- r +
- `){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
- (?::(?:(?::` +
- r +
- '){0,5}:' +
- n +
- '|(?::' +
- r +
- `){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
- `
- )
- .replace(/\s*\/\/.*$/gm, '')
- .replace(/\n/g, '')
- .trim(),
- i = new RegExp('(?:^' + n + '$)|(?:^' + o + '$)'),
- a = new RegExp('^' + n + '$'),
- s = new RegExp('^' + o + '$'),
- c = function (S) {
- return S && S.exact
- ? i
- : new RegExp(
- '(?:' + t(S) + n + t(S) + ')|(?:' + t(S) + o + t(S) + ')',
- 'g'
- );
- };
- (c.v4 = function (R) {
- return R && R.exact ? a : new RegExp('' + t(R) + n + t(R), 'g');
- }),
- (c.v6 = function (R) {
- return R && R.exact ? s : new RegExp('' + t(R) + o + t(R), 'g');
- });
- var d = '(?:(?:[a-z]+:)?//)',
- f = '(?:\\S+(?::\\S*)?@)?',
- v = c.v4().source,
- p = c.v6().source,
- m = '(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)',
- g = '(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*',
- w = '(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))',
- x = '(?::\\d{2,5})?',
- y = '(?:[/?#][^\\s"]*)?',
- C =
- '(?:' +
- d +
- '|www\\.)' +
- f +
- '(?:localhost|' +
- v +
- '|' +
- p +
- '|' +
- m +
- g +
- w +
- ')' +
- x +
- y;
- return (Th = new RegExp('(?:^' + C + '$)', 'i')), Th;
- },
- r2 = {
- email:
- /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
- hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
- },
- Vd = {
- integer: function (t) {
- return Vd.number(t) && parseInt(t, 10) === t;
- },
- float: function (t) {
- return Vd.number(t) && !Vd.integer(t);
- },
- array: function (t) {
- return Array.isArray(t);
- },
- regexp: function (t) {
- if (t instanceof RegExp) return !0;
- try {
- return !!new RegExp(t);
- } catch {
- return !1;
- }
- },
- date: function (t) {
- return (
- typeof t.getTime == 'function' &&
- typeof t.getMonth == 'function' &&
- typeof t.getYear == 'function' &&
- !isNaN(t.getTime())
- );
- },
- number: function (t) {
- return isNaN(t) ? !1 : typeof t == 'number';
- },
- object: function (t) {
- return typeof t == 'object' && !Vd.array(t);
- },
- method: function (t) {
- return typeof t == 'function';
- },
- email: function (t) {
- return typeof t == 'string' && t.length <= 320 && !!t.match(r2.email);
- },
- url: function (t) {
- return typeof t == 'string' && t.length <= 2048 && !!t.match(EZ());
- },
- hex: function (t) {
- return typeof t == 'string' && !!t.match(r2.hex);
- }
- },
- AZ = function (t, n, r, o, i) {
- if (t.required && n === void 0) {
- $3(t, n, r, o, i);
- return;
- }
- var a = [
- 'integer',
- 'float',
- 'array',
- 'regexp',
- 'object',
- 'method',
- 'email',
- 'number',
- 'date',
- 'url',
- 'hex'
- ],
- s = t.type;
- a.indexOf(s) > -1
- ? Vd[s](n) || o.push(zo(i.messages.types[s], t.fullField, t.type))
- : s &&
- typeof n !== t.type &&
- o.push(zo(i.messages.types[s], t.fullField, t.type));
- },
- MZ = function (t, n, r, o, i) {
- var a = typeof t.len == 'number',
- s = typeof t.min == 'number',
- c = typeof t.max == 'number',
- d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
- f = n,
- v = null,
- p = typeof n == 'number',
- m = typeof n == 'string',
- g = Array.isArray(n);
- if ((p ? (v = 'number') : m ? (v = 'string') : g && (v = 'array'), !v))
- return !1;
- g && (f = n.length),
- m && (f = n.replace(d, '_').length),
- a
- ? f !== t.len && o.push(zo(i.messages[v].len, t.fullField, t.len))
- : s && !c && f < t.min
- ? o.push(zo(i.messages[v].min, t.fullField, t.min))
- : c && !s && f > t.max
- ? o.push(zo(i.messages[v].max, t.fullField, t.max))
- : s &&
- c &&
- (f < t.min || f > t.max) &&
- o.push(zo(i.messages[v].range, t.fullField, t.min, t.max));
- },
- fc = 'enum',
- IZ = function (t, n, r, o, i) {
- (t[fc] = Array.isArray(t[fc]) ? t[fc] : []),
- t[fc].indexOf(n) === -1 &&
- o.push(zo(i.messages[fc], t.fullField, t[fc].join(', ')));
- },
- DZ = function (t, n, r, o, i) {
- if (t.pattern) {
- if (t.pattern instanceof RegExp)
- (t.pattern.lastIndex = 0),
- t.pattern.test(n) ||
- o.push(zo(i.messages.pattern.mismatch, t.fullField, n, t.pattern));
- else if (typeof t.pattern == 'string') {
- var a = new RegExp(t.pattern);
- a.test(n) ||
- o.push(zo(i.messages.pattern.mismatch, t.fullField, n, t.pattern));
- }
- }
- },
- gn = {
- required: $3,
- whitespace: zZ,
- type: AZ,
- range: MZ,
- enum: IZ,
- pattern: DZ
- },
- FZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n, 'string') && !t.required) return r();
- gn.required(t, n, o, a, i, 'string'),
- Rr(n, 'string') ||
- (gn.type(t, n, o, a, i),
- gn.range(t, n, o, a, i),
- gn.pattern(t, n, o, a, i),
- t.whitespace === !0 && gn.whitespace(t, n, o, a, i));
- }
- r(a);
- },
- BZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i), n !== void 0 && gn.type(t, n, o, a, i);
- }
- r(a);
- },
- LZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if ((n === '' && (n = void 0), Rr(n) && !t.required)) return r();
- gn.required(t, n, o, a, i),
- n !== void 0 && (gn.type(t, n, o, a, i), gn.range(t, n, o, a, i));
- }
- r(a);
- },
- NZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i), n !== void 0 && gn.type(t, n, o, a, i);
- }
- r(a);
- },
- HZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i), Rr(n) || gn.type(t, n, o, a, i);
- }
- r(a);
- },
- jZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i),
- n !== void 0 && (gn.type(t, n, o, a, i), gn.range(t, n, o, a, i));
- }
- r(a);
- },
- WZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i),
- n !== void 0 && (gn.type(t, n, o, a, i), gn.range(t, n, o, a, i));
- }
- r(a);
- },
- UZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (n == null && !t.required) return r();
- gn.required(t, n, o, a, i, 'array'),
- n != null && (gn.type(t, n, o, a, i), gn.range(t, n, o, a, i));
- }
- r(a);
- },
- VZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i), n !== void 0 && gn.type(t, n, o, a, i);
- }
- r(a);
- },
- KZ = 'enum',
- qZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i), n !== void 0 && gn[KZ](t, n, o, a, i);
- }
- r(a);
- },
- YZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n, 'string') && !t.required) return r();
- gn.required(t, n, o, a, i), Rr(n, 'string') || gn.pattern(t, n, o, a, i);
- }
- r(a);
- },
- GZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n, 'date') && !t.required) return r();
- if ((gn.required(t, n, o, a, i), !Rr(n, 'date'))) {
- var c;
- n instanceof Date ? (c = n) : (c = new Date(n)),
- gn.type(t, c, o, a, i),
- c && gn.range(t, c.getTime(), o, a, i);
- }
- }
- r(a);
- },
- XZ = function (t, n, r, o, i) {
- var a = [],
- s = Array.isArray(n) ? 'array' : typeof n;
- gn.required(t, n, o, a, i, s), r(a);
- },
- Um = function (t, n, r, o, i) {
- var a = t.type,
- s = [],
- c = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (c) {
- if (Rr(n, a) && !t.required) return r();
- gn.required(t, n, o, s, i, a), Rr(n, a) || gn.type(t, n, o, s, i);
- }
- r(s);
- },
- ZZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i);
- }
- r(a);
- },
- ru = {
- string: FZ,
- method: BZ,
- number: LZ,
- boolean: NZ,
- regexp: HZ,
- integer: jZ,
- float: WZ,
- array: UZ,
- object: VZ,
- enum: qZ,
- pattern: YZ,
- date: GZ,
- url: Um,
- hex: Um,
- email: Um,
- required: XZ,
- any: ZZ
- };
- function t0() {
- return {
- default: 'Validation error on field %s',
- required: '%s is required',
- enum: '%s must be one of %s',
- whitespace: '%s cannot be empty',
- date: {
- format: '%s date %s is invalid for format %s',
- parse: '%s date could not be parsed, %s is invalid ',
- invalid: '%s date %s is invalid'
- },
- types: {
- string: '%s is not a %s',
- method: '%s is not a %s (function)',
- array: '%s is not an %s',
- object: '%s is not an %s',
- number: '%s is not a %s',
- date: '%s is not a %s',
- boolean: '%s is not a %s',
- integer: '%s is not an %s',
- float: '%s is not a %s',
- regexp: '%s is not a valid %s',
- email: '%s is not a valid %s',
- url: '%s is not a valid %s',
- hex: '%s is not a valid %s'
- },
- string: {
- len: '%s must be exactly %s characters',
- min: '%s must be at least %s characters',
- max: '%s cannot be longer than %s characters',
- range: '%s must be between %s and %s characters'
- },
- number: {
- len: '%s must equal %s',
- min: '%s cannot be less than %s',
- max: '%s cannot be greater than %s',
- range: '%s must be between %s and %s'
- },
- array: {
- len: '%s must be exactly %s in length',
- min: '%s cannot be less than %s in length',
- max: '%s cannot be greater than %s in length',
- range: '%s must be between %s and %s in length'
- },
- pattern: { mismatch: '%s value %s does not match pattern %s' },
- clone: function () {
- var t = JSON.parse(JSON.stringify(this));
- return (t.clone = this.clone), t;
- }
- };
- }
- var n0 = t0(),
- tf = (function () {
- function e(n) {
- (this.rules = null), (this._messages = n0), this.define(n);
- }
- var t = e.prototype;
- return (
- (t.define = function (r) {
- var o = this;
- if (!r) throw new Error('Cannot configure a schema with no rules');
- if (typeof r != 'object' || Array.isArray(r))
- throw new Error('Rules must be an object');
- (this.rules = {}),
- Object.keys(r).forEach(function (i) {
- var a = r[i];
- o.rules[i] = Array.isArray(a) ? a : [a];
- });
- }),
- (t.messages = function (r) {
- return r && (this._messages = n2(t0(), r)), this._messages;
- }),
- (t.validate = function (r, o, i) {
- var a = this;
- o === void 0 && (o = {}), i === void 0 && (i = function () {});
- var s = r,
- c = o,
- d = i;
- if (
- (typeof c == 'function' && ((d = c), (c = {})),
- !this.rules || Object.keys(this.rules).length === 0)
- )
- return d && d(null, s), Promise.resolve(s);
- function f(w) {
- var x = [],
- y = {};
- function C(S) {
- if (Array.isArray(S)) {
- var _;
- x = (_ = x).concat.apply(_, S);
- } else x.push(S);
- }
- for (var R = 0; R < w.length; R++) C(w[R]);
- x.length ? ((y = e0(x)), d(x, y)) : d(null, s);
- }
- if (c.messages) {
- var v = this.messages();
- v === n0 && (v = t0()), n2(v, c.messages), (c.messages = v);
- } else c.messages = this.messages();
- var p = {},
- m = c.keys || Object.keys(this.rules);
- m.forEach(function (w) {
- var x = a.rules[w],
- y = s[w];
- x.forEach(function (C) {
- var R = C;
- typeof R.transform == 'function' &&
- (s === r && (s = fs({}, s)), (y = s[w] = R.transform(y))),
- typeof R == 'function' ? (R = { validator: R }) : (R = fs({}, R)),
- (R.validator = a.getValidationMethod(R)),
- R.validator &&
- ((R.field = w),
- (R.fullField = R.fullField || w),
- (R.type = a.getType(R)),
- (p[w] = p[w] || []),
- p[w].push({ rule: R, value: y, source: s, field: w }));
- });
- });
- var g = {};
- return TZ(
- p,
- c,
- function (w, x) {
- var y = w.rule,
- C =
- (y.type === 'object' || y.type === 'array') &&
- (typeof y.fields == 'object' ||
- typeof y.defaultField == 'object');
- (C = C && (y.required || (!y.required && w.value))),
- (y.field = w.field);
- function R(P, T) {
- return fs({}, T, {
- fullField: y.fullField + '.' + P,
- fullFields: y.fullFields ? [].concat(y.fullFields, [P]) : [P]
- });
- }
- function S(P) {
- P === void 0 && (P = []);
- var T = Array.isArray(P) ? P : [P];
- !c.suppressWarning &&
- T.length &&
- e.warning('async-validator:', T),
- T.length && y.message !== void 0 && (T = [].concat(y.message));
- var E = T.map(t2(y, s));
- if (c.first && E.length) return (g[y.field] = 1), x(E);
- if (!C) x(E);
- else {
- if (y.required && !w.value)
- return (
- y.message !== void 0
- ? (E = [].concat(y.message).map(t2(y, s)))
- : c.error &&
- (E = [c.error(y, zo(c.messages.required, y.field))]),
- x(E)
- );
- var z = {};
- y.defaultField &&
- Object.keys(w.value).map(function (A) {
- z[A] = y.defaultField;
- }),
- (z = fs({}, z, w.rule.fields));
- var k = {};
- Object.keys(z).forEach(function (A) {
- var D = z[A],
- L = Array.isArray(D) ? D : [D];
- k[A] = L.map(R.bind(null, A));
- });
- var M = new e(k);
- M.messages(c.messages),
- w.rule.options &&
- ((w.rule.options.messages = c.messages),
- (w.rule.options.error = c.error)),
- M.validate(w.value, w.rule.options || c, function (A) {
- var D = [];
- E && E.length && D.push.apply(D, E),
- A && A.length && D.push.apply(D, A),
- x(D.length ? D : null);
- });
- }
- }
- var _;
- if (y.asyncValidator)
- _ = y.asyncValidator(y, w.value, S, w.source, c);
- else if (y.validator) {
- try {
- _ = y.validator(y, w.value, S, w.source, c);
- } catch (P) {
- console.error == null || console.error(P),
- c.suppressValidatorError ||
- setTimeout(function () {
- throw P;
- }, 0),
- S(P.message);
- }
- _ === !0
- ? S()
- : _ === !1
- ? S(
- typeof y.message == 'function'
- ? y.message(y.fullField || y.field)
- : y.message || (y.fullField || y.field) + ' fails'
- )
- : _ instanceof Array
- ? S(_)
- : _ instanceof Error && S(_.message);
- }
- _ &&
- _.then &&
- _.then(
- function () {
- return S();
- },
- function (P) {
- return S(P);
- }
- );
- },
- function (w) {
- f(w);
- },
- s
- );
- }),
- (t.getType = function (r) {
- if (
- (r.type === void 0 &&
- r.pattern instanceof RegExp &&
- (r.type = 'pattern'),
- typeof r.validator != 'function' &&
- r.type &&
- !ru.hasOwnProperty(r.type))
- )
- throw new Error(zo('Unknown rule type %s', r.type));
- return r.type || 'string';
- }),
- (t.getValidationMethod = function (r) {
- if (typeof r.validator == 'function') return r.validator;
- var o = Object.keys(r),
- i = o.indexOf('message');
- return (
- i !== -1 && o.splice(i, 1),
- o.length === 1 && o[0] === 'required'
- ? ru.required
- : ru[this.getType(r)] || void 0
- );
- }),
- e
- );
- })();
- tf.register = function (t, n) {
- if (typeof n != 'function')
- throw new Error(
- 'Cannot register a validator by type, validator is not a function'
- );
- ru[t] = n;
- };
- tf.warning = _Z;
- tf.messages = n0;
- tf.validators = ru;
- function QZ(e) {
- const t = Ze(ef, null);
- return {
- mergedSize: I(() =>
- e.size !== void 0
- ? e.size
- : (t == null ? void 0 : t.props.size) !== void 0
- ? t.props.size
- : 'medium'
- )
- };
- }
- function JZ(e) {
- const t = Ze(ef, null),
- n = I(() => {
- const { labelPlacement: m } = e;
- return m !== void 0
- ? m
- : t != null && t.props.labelPlacement
- ? t.props.labelPlacement
- : 'top';
- }),
- r = I(
- () =>
- n.value === 'left' &&
- (e.labelWidth === 'auto' ||
- (t == null ? void 0 : t.props.labelWidth) === 'auto')
- ),
- o = I(() => {
- if (n.value === 'top') return;
- const { labelWidth: m } = e;
- if (m !== void 0 && m !== 'auto') return vn(m);
- if (r.value) {
- const g = t == null ? void 0 : t.maxChildLabelWidthRef.value;
- return g !== void 0 ? vn(g) : void 0;
- }
- if ((t == null ? void 0 : t.props.labelWidth) !== void 0)
- return vn(t.props.labelWidth);
- }),
- i = I(() => {
- const { labelAlign: m } = e;
- if (m) return m;
- if (t != null && t.props.labelAlign) return t.props.labelAlign;
- }),
- a = I(() => {
- var m;
- return [
- (m = e.labelProps) === null || m === void 0 ? void 0 : m.style,
- e.labelStyle,
- { width: o.value }
- ];
- }),
- s = I(() => {
- const { showRequireMark: m } = e;
- return m !== void 0 ? m : t == null ? void 0 : t.props.showRequireMark;
- }),
- c = I(() => {
- const { requireMarkPlacement: m } = e;
- return m !== void 0
- ? m
- : (t == null ? void 0 : t.props.requireMarkPlacement) || 'right';
- }),
- d = Z(!1),
- f = I(() => {
- const { validationStatus: m } = e;
- if (m !== void 0) return m;
- if (d.value) return 'error';
- }),
- v = I(() => {
- const { showFeedback: m } = e;
- return m !== void 0
- ? m
- : (t == null ? void 0 : t.props.showFeedback) !== void 0
- ? t.props.showFeedback
- : !0;
- }),
- p = I(() => {
- const { showLabel: m } = e;
- return m !== void 0
- ? m
- : (t == null ? void 0 : t.props.showLabel) !== void 0
- ? t.props.showLabel
- : !0;
- });
- return {
- validationErrored: d,
- mergedLabelStyle: a,
- mergedLabelPlacement: n,
- mergedLabelAlign: i,
- mergedShowRequireMark: s,
- mergedRequireMarkPlacement: c,
- mergedValidationStatus: f,
- mergedShowFeedback: v,
- mergedShowLabel: p,
- isAutoLabelWidth: r
- };
- }
- function eQ(e) {
- const t = Ze(ef, null),
- n = I(() => {
- const { rulePath: a } = e;
- if (a !== void 0) return a;
- const { path: s } = e;
- if (s !== void 0) return s;
- }),
- r = I(() => {
- const a = [],
- { rule: s } = e;
- if ((s !== void 0 && (Array.isArray(s) ? a.push(...s) : a.push(s)), t)) {
- const { rules: c } = t.props,
- { value: d } = n;
- if (c !== void 0 && d !== void 0) {
- const f = $u(c, d);
- f !== void 0 && (Array.isArray(f) ? a.push(...f) : a.push(f));
- }
- }
- return a;
- }),
- o = I(() => r.value.some(a => a.required)),
- i = I(() => o.value || e.required);
- return { mergedRules: r, mergedRequired: i };
- }
- const { cubicBezierEaseInOut: o2 } = Bo;
- function tQ({
- name: e = 'fade-down',
- fromOffset: t = '-4px',
- enterDuration: n = '.3s',
- leaveDuration: r = '.3s',
- enterCubicBezier: o = o2,
- leaveCubicBezier: i = o2
- } = {}) {
- return [
- F(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`, {
- opacity: 0,
- transform: `translateY(${t})`
- }),
- F(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`, {
- opacity: 1,
- transform: 'translateY(0)'
- }),
- F(`&.${e}-transition-leave-active`, {
- transition: `opacity ${r} ${i}, transform ${r} ${i}`
- }),
- F(`&.${e}-transition-enter-active`, {
- transition: `opacity ${n} ${o}, transform ${n} ${o}`
- })
- ];
- }
- const nQ = O(
- 'form-item',
- `
- display: grid;
- line-height: var(--n-line-height);
- `,
- [
- O(
- 'form-item-label',
- `
- grid-area: label;
- align-items: center;
- line-height: 1.25;
- text-align: var(--n-label-text-align);
- font-size: var(--n-label-font-size);
- min-height: var(--n-label-height);
- padding: var(--n-label-padding);
- color: var(--n-label-text-color);
- transition: color .3s var(--n-bezier);
- box-sizing: border-box;
- font-weight: var(--n-label-font-weight);
- `,
- [
- V(
- 'asterisk',
- `
- white-space: nowrap;
- user-select: none;
- -webkit-user-select: none;
- color: var(--n-asterisk-color);
- transition: color .3s var(--n-bezier);
- `
- ),
- V(
- 'asterisk-placeholder',
- `
- grid-area: mark;
- user-select: none;
- -webkit-user-select: none;
- visibility: hidden;
- `
- )
- ]
- ),
- O(
- 'form-item-blank',
- `
- grid-area: blank;
- min-height: var(--n-blank-height);
- `
- ),
- U('auto-label-width', [O('form-item-label', 'white-space: nowrap;')]),
- U(
- 'left-labelled',
- `
- grid-template-areas:
- "label blank"
- "label feedback";
- grid-template-columns: auto minmax(0, 1fr);
- grid-template-rows: auto 1fr;
- align-items: start;
- `,
- [
- O(
- 'form-item-label',
- `
- display: grid;
- grid-template-columns: 1fr auto;
- min-height: var(--n-blank-height);
- height: auto;
- box-sizing: border-box;
- flex-shrink: 0;
- flex-grow: 0;
- `,
- [
- U(
- 'reverse-columns-space',
- `
- grid-template-columns: auto 1fr;
- `
- ),
- U(
- 'left-mark',
- `
- grid-template-areas:
- "mark text"
- ". text";
- `
- ),
- U(
- 'right-mark',
- `
- grid-template-areas:
- "text mark"
- "text .";
- `
- ),
- U(
- 'right-hanging-mark',
- `
- grid-template-areas:
- "text mark"
- "text .";
- `
- ),
- V(
- 'text',
- `
- grid-area: text;
- `
- ),
- V(
- 'asterisk',
- `
- grid-area: mark;
- align-self: end;
- `
- )
- ]
- )
- ]
- ),
- U(
- 'top-labelled',
- `
- grid-template-areas:
- "label"
- "blank"
- "feedback";
- grid-template-rows: minmax(var(--n-label-height), auto) 1fr;
- grid-template-columns: minmax(0, 100%);
- `,
- [
- U(
- 'no-label',
- `
- grid-template-areas:
- "blank"
- "feedback";
- grid-template-rows: 1fr;
- `
- ),
- O(
- 'form-item-label',
- `
- display: flex;
- align-items: flex-start;
- justify-content: var(--n-label-text-align);
- `
- )
- ]
- ),
- O(
- 'form-item-blank',
- `
- box-sizing: border-box;
- display: flex;
- align-items: center;
- position: relative;
- `
- ),
- O(
- 'form-item-feedback-wrapper',
- `
- grid-area: feedback;
- box-sizing: border-box;
- min-height: var(--n-feedback-height);
- font-size: var(--n-feedback-font-size);
- line-height: 1.25;
- transform-origin: top left;
- `,
- [
- F(
- '&:not(:empty)',
- `
- padding: var(--n-feedback-padding);
- `
- ),
- O(
- 'form-item-feedback',
- {
- transition: 'color .3s var(--n-bezier)',
- color: 'var(--n-feedback-text-color)'
- },
- [
- U('warning', { color: 'var(--n-feedback-text-color-warning)' }),
- U('error', { color: 'var(--n-feedback-text-color-error)' }),
- tQ({
- fromOffset: '-3px',
- enterDuration: '.3s',
- leaveDuration: '.2s'
- })
- ]
- )
- ]
- )
- ]
- );
- var i2 =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- const rQ = Object.assign(Object.assign({}, Ke.props), {
- label: String,
- labelWidth: [Number, String],
- labelStyle: [String, Object],
- labelAlign: String,
- labelPlacement: String,
- path: String,
- first: Boolean,
- rulePath: String,
- required: Boolean,
- showRequireMark: { type: Boolean, default: void 0 },
- requireMarkPlacement: String,
- showFeedback: { type: Boolean, default: void 0 },
- rule: [Object, Array],
- size: String,
- ignorePathChange: Boolean,
- validationStatus: String,
- feedback: String,
- showLabel: { type: Boolean, default: void 0 },
- labelProps: Object
- });
- function a2(e, t) {
- return (...n) => {
- try {
- const r = e(...n);
- return (!t &&
- (typeof r == 'boolean' || r instanceof Error || Array.isArray(r))) ||
- (r != null && r.then)
- ? r
- : (r === void 0 ||
- Io(
- 'form-item/validate',
- `You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ` +
- (t ? '`Promise`' : '`boolean`, `Error` or `Promise`') +
- ' typed value instead.'
- ),
- !0);
- } catch (r) {
- Io(
- 'form-item/validate',
- "An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."
- ),
- console.error(r);
- return;
- }
- };
- }
- const oQ = ke({
- name: 'FormItem',
- props: rQ,
- setup(e) {
- eD(T3, 'formItems', Ie(e, 'path'));
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ze(ef, null),
- o = QZ(e),
- i = JZ(e),
- { validationErrored: a } = i,
- { mergedRequired: s, mergedRules: c } = eQ(e),
- { mergedSize: d } = o,
- {
- mergedLabelPlacement: f,
- mergedLabelAlign: v,
- mergedRequireMarkPlacement: p
- } = i,
- m = Z([]),
- g = Z(pi()),
- w = r ? Ie(r.props, 'disabled') : Z(!1),
- x = Ke('Form', '-form-item', nQ, k3, e, t);
- $t(Ie(e, 'path'), () => {
- e.ignorePathChange || y();
- });
- function y() {
- (m.value = []), (a.value = !1), e.feedback && (g.value = pi());
- }
- function C() {
- T('blur');
- }
- function R() {
- T('change');
- }
- function S() {
- T('focus');
- }
- function _() {
- T('input');
- }
- function P(D, L) {
- return i2(this, void 0, void 0, function* () {
- let H, B, q, X;
- typeof D == 'string'
- ? ((H = D), (B = L))
- : D !== null &&
- typeof D == 'object' &&
- ((H = D.trigger),
- (B = D.callback),
- (q = D.shouldRuleBeApplied),
- (X = D.options)),
- yield new Promise((te, G) => {
- T(H, q, X).then(({ valid: Q, errors: re }) => {
- Q ? (B && B(), te()) : (B && B(re), G(re));
- });
- });
- });
- }
- const T = (D = null, L = () => !0, H = { suppressWarning: !0 }) =>
- i2(this, void 0, void 0, function* () {
- const { path: B } = e;
- H ? H.first || (H.first = e.first) : (H = {});
- const { value: q } = c,
- X = r ? $u(r.props.model, B || '') : void 0,
- te = {},
- G = {},
- Q = (
- D
- ? q.filter(ce =>
- Array.isArray(ce.trigger)
- ? ce.trigger.includes(D)
- : ce.trigger === D
- )
- : q
- )
- .filter(L)
- .map((ce, xe) => {
- const ve = Object.assign({}, ce);
- if (
- (ve.validator && (ve.validator = a2(ve.validator, !1)),
- ve.asyncValidator &&
- (ve.asyncValidator = a2(ve.asyncValidator, !0)),
- ve.renderMessage)
- ) {
- const be = `__renderMessage__${xe}`;
- (G[be] = ve.message),
- (ve.message = be),
- (te[be] = ve.renderMessage);
- }
- return ve;
- });
- if (!Q.length) return { valid: !0 };
- const re = B ?? '__n_no_path__',
- se = new tf({ [re]: Q }),
- { validateMessages: pe } = (r == null ? void 0 : r.props) || {};
- return (
- pe && se.messages(pe),
- yield new Promise(ce => {
- se.validate({ [re]: X }, H, xe => {
- xe != null && xe.length
- ? ((m.value = xe.map(ve => {
- const be = (ve == null ? void 0 : ve.message) || '';
- return {
- key: be,
- render: () =>
- be.startsWith('__renderMessage__') ? te[be]() : be
- };
- })),
- xe.forEach(ve => {
- var be;
- !((be = ve.message) === null || be === void 0) &&
- be.startsWith('__renderMessage__') &&
- (ve.message = G[ve.message]);
- }),
- (a.value = !0),
- ce({ valid: !1, errors: xe }))
- : (y(), ce({ valid: !0 }));
- });
- })
- );
- });
- Rt(zb, {
- path: Ie(e, 'path'),
- disabled: w,
- mergedSize: o.mergedSize,
- mergedValidationStatus: i.mergedValidationStatus,
- restoreValidation: y,
- handleContentBlur: C,
- handleContentChange: R,
- handleContentFocus: S,
- handleContentInput: _
- });
- const E = { validate: P, restoreValidation: y, internalValidate: T },
- z = Z(null);
- Hn(() => {
- if (!i.isAutoLabelWidth.value) return;
- const D = z.value;
- if (D !== null) {
- const L = D.style.whiteSpace;
- (D.style.whiteSpace = 'nowrap'),
- (D.style.width = ''),
- r == null ||
- r.deriveMaxChildLabelWidth(
- Number(getComputedStyle(D).width.slice(0, -2))
- ),
- (D.style.whiteSpace = L);
- }
- });
- const k = I(() => {
- var D;
- const { value: L } = d,
- { value: H } = f,
- B = H === 'top' ? 'vertical' : 'horizontal',
- {
- common: { cubicBezierEaseInOut: q },
- self: {
- labelTextColor: X,
- asteriskColor: te,
- lineHeight: G,
- feedbackTextColor: Q,
- feedbackTextColorWarning: re,
- feedbackTextColorError: se,
- feedbackPadding: pe,
- labelFontWeight: ce,
- [Ee('labelHeight', L)]: xe,
- [Ee('blankHeight', L)]: ve,
- [Ee('feedbackFontSize', L)]: be,
- [Ee('feedbackHeight', L)]: Ce,
- [Ee('labelPadding', B)]: ge,
- [Ee('labelTextAlign', B)]: Ae,
- [Ee(Ee('labelFontSize', H), L)]: j
- }
- } = x.value;
- let ee = (D = v.value) !== null && D !== void 0 ? D : Ae;
- return (
- H === 'top' && (ee = ee === 'right' ? 'flex-end' : 'flex-start'),
- {
- '--n-bezier': q,
- '--n-line-height': G,
- '--n-blank-height': ve,
- '--n-label-font-size': j,
- '--n-label-text-align': ee,
- '--n-label-height': xe,
- '--n-label-padding': ge,
- '--n-label-font-weight': ce,
- '--n-asterisk-color': te,
- '--n-label-text-color': X,
- '--n-feedback-padding': pe,
- '--n-feedback-font-size': be,
- '--n-feedback-height': Ce,
- '--n-feedback-text-color': Q,
- '--n-feedback-text-color-warning': re,
- '--n-feedback-text-color-error': se
- }
- );
- }),
- M = n
- ? Mt(
- 'form-item',
- I(() => {
- var D;
- return `${d.value[0]}${f.value[0]}${
- ((D = v.value) === null || D === void 0 ? void 0 : D[0]) || ''
- }`;
- }),
- k,
- e
- )
- : void 0,
- A = I(
- () => f.value === 'left' && p.value === 'left' && v.value === 'left'
- );
- return Object.assign(
- Object.assign(
- Object.assign(
- Object.assign(
- {
- labelElementRef: z,
- mergedClsPrefix: t,
- mergedRequired: s,
- feedbackId: g,
- renderExplains: m,
- reverseColSpace: A
- },
- i
- ),
- o
- ),
- E
- ),
- {
- cssVars: n ? void 0 : k,
- themeClass: M == null ? void 0 : M.themeClass,
- onRender: M == null ? void 0 : M.onRender
- }
- );
- },
- render() {
- const {
- $slots: e,
- mergedClsPrefix: t,
- mergedShowLabel: n,
- mergedShowRequireMark: r,
- mergedRequireMarkPlacement: o,
- onRender: i
- } = this,
- a = r !== void 0 ? r : this.mergedRequired;
- i == null || i();
- const s = () => {
- const c = this.$slots.label ? this.$slots.label() : this.label;
- if (!c) return null;
- const d = h('span', { class: `${t}-form-item-label__text` }, c),
- f = a
- ? h(
- 'span',
- { class: `${t}-form-item-label__asterisk` },
- o !== 'left' ? ' *' : '* '
- )
- : o === 'right-hanging' &&
- h(
- 'span',
- { class: `${t}-form-item-label__asterisk-placeholder` },
- ' *'
- ),
- { labelProps: v } = this;
- return h(
- 'label',
- Object.assign({}, v, {
- class: [
- v == null ? void 0 : v.class,
- `${t}-form-item-label`,
- `${t}-form-item-label--${o}-mark`,
- this.reverseColSpace &&
- `${t}-form-item-label--reverse-columns-space`
- ],
- style: this.mergedLabelStyle,
- ref: 'labelElementRef'
- }),
- o === 'left' ? [f, d] : [d, f]
- );
- };
- return h(
- 'div',
- {
- class: [
- `${t}-form-item`,
- this.themeClass,
- `${t}-form-item--${this.mergedSize}-size`,
- `${t}-form-item--${this.mergedLabelPlacement}-labelled`,
- this.isAutoLabelWidth && `${t}-form-item--auto-label-width`,
- !n && `${t}-form-item--no-label`
- ],
- style: this.cssVars
- },
- n && s(),
- h(
- 'div',
- {
- class: [
- `${t}-form-item-blank`,
- this.mergedValidationStatus &&
- `${t}-form-item-blank--${this.mergedValidationStatus}`
- ]
- },
- e
- ),
- this.mergedShowFeedback
- ? h(
- 'div',
- {
- key: this.feedbackId,
- class: `${t}-form-item-feedback-wrapper`
- },
- h(
- Kn,
- { name: 'fade-down-transition', mode: 'out-in' },
- {
- default: () => {
- const { mergedValidationStatus: c } = this;
- return cn(e.feedback, d => {
- var f;
- const { feedback: v } = this,
- p =
- d || v
- ? h(
- 'div',
- {
- key: '__feedback__',
- class: `${t}-form-item-feedback__line`
- },
- d || v
- )
- : this.renderExplains.length
- ? (f = this.renderExplains) === null || f === void 0
- ? void 0
- : f.map(({ key: m, render: g }) =>
- h(
- 'div',
- {
- key: m,
- class: `${t}-form-item-feedback__line`
- },
- g()
- )
- )
- : null;
- return p
- ? c === 'warning'
- ? h(
- 'div',
- {
- key: 'controlled-warning',
- class: `${t}-form-item-feedback ${t}-form-item-feedback--warning`
- },
- p
- )
- : c === 'error'
- ? h(
- 'div',
- {
- key: 'controlled-error',
- class: `${t}-form-item-feedback ${t}-form-item-feedback--error`
- },
- p
- )
- : c === 'success'
- ? h(
- 'div',
- {
- key: 'controlled-success',
- class: `${t}-form-item-feedback ${t}-form-item-feedback--success`
- },
- p
- )
- : h(
- 'div',
- {
- key: 'controlled-default',
- class: `${t}-form-item-feedback`
- },
- p
- )
- : null;
- });
- }
- }
- )
- )
- : null
- );
- }
- }),
- l2 = 1,
- O3 = 'n-grid',
- z3 = 1,
- iQ = {
- span: { type: [Number, String], default: z3 },
- offset: { type: [Number, String], default: 0 },
- suffix: Boolean,
- privateOffset: Number,
- privateSpan: Number,
- privateColStart: Number,
- privateShow: { type: Boolean, default: !0 }
- },
- aQ = ke({
- __GRID_ITEM__: !0,
- name: 'GridItem',
- alias: ['Gi'],
- props: iQ,
- setup() {
- const {
- isSsrRef: e,
- xGapRef: t,
- itemStyleRef: n,
- overflowRef: r,
- layoutShiftDisabledRef: o
- } = Ze(O3),
- i = Ra();
- return {
- overflow: r,
- itemStyle: n,
- layoutShiftDisabled: o,
- mergedXGap: I(() => lr(t.value || 0)),
- deriveStyle: () => {
- e.value;
- const {
- privateSpan: a = z3,
- privateShow: s = !0,
- privateColStart: c = void 0,
- privateOffset: d = 0
- } = i.vnode.props,
- { value: f } = t,
- v = lr(f || 0);
- return {
- display: s ? '' : 'none',
- gridColumn: `${c ?? `span ${a}`} / span ${a}`,
- marginLeft: d
- ? `calc((100% - (${a} - 1) * ${v}) / ${a} * ${d} + ${v} * ${d})`
- : ''
- };
- }
- };
- },
- render() {
- var e, t;
- if (this.layoutShiftDisabled) {
- const { span: n, offset: r, mergedXGap: o } = this;
- return h(
- 'div',
- {
- style: {
- gridColumn: `span ${n} / span ${n}`,
- marginLeft: r
- ? `calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`
- : ''
- }
- },
- this.$slots
- );
- }
- return h(
- 'div',
- { style: [this.itemStyle, this.deriveStyle()] },
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e, { overflow: this.overflow })
- );
- }
- }),
- lQ = Array.apply(null, { length: 24 }).map((e, t) => {
- const n = t + 1,
- r = `calc(100% / 24 * ${n})`;
- return [
- U(`${n}-span`, { width: r }),
- U(`${n}-offset`, { marginLeft: r }),
- U(`${n}-push`, { left: r }),
- U(`${n}-pull`, { right: r })
- ];
- }),
- sQ = F([
- O('row', { width: '100%', display: 'flex', flexWrap: 'wrap' }),
- O(
- 'col',
- {
- verticalAlign: 'top',
- boxSizing: 'border-box',
- display: 'inline-block',
- position: 'relative',
- zIndex: 'auto'
- },
- [
- V('box', {
- position: 'relative',
- zIndex: 'auto',
- width: '100%',
- height: '100%'
- }),
- lQ
- ]
- )
- ]),
- E3 = 'n-row',
- cQ = {
- gutter: { type: [Array, Number, String], default: 0 },
- alignItems: String,
- justifyContent: String
- },
- dQ = ke({
- name: 'Row',
- props: cQ,
- setup(e) {
- const { mergedClsPrefixRef: t, mergedRtlRef: n } = yt(e);
- $a('-legacy-grid', sQ, t);
- const r = cr('Row', n, t),
- o = kt(() => {
- const { gutter: a } = e;
- return (Array.isArray(a) && a[1]) || 0;
- }),
- i = kt(() => {
- const { gutter: a } = e;
- return Array.isArray(a) ? a[0] : Number(a);
- });
- return (
- Rt(E3, {
- mergedClsPrefixRef: t,
- gutterRef: Ie(e, 'gutter'),
- verticalGutterRef: o,
- horizontalGutterRef: i
- }),
- {
- mergedClsPrefix: t,
- rtlEnabled: r,
- styleMargin: kt(
- () => `-${vn(o.value, { c: 0.5 })} -${vn(i.value, { c: 0.5 })}`
- ),
- styleWidth: kt(() => `calc(100% + ${vn(i.value)})`)
- }
- );
- },
- render() {
- return h(
- 'div',
- {
- class: [
- `${this.mergedClsPrefix}-row`,
- this.rtlEnabled && `${this.mergedClsPrefix}-row--rtl`
- ],
- style: {
- margin: this.styleMargin,
- width: this.styleWidth,
- alignItems: this.alignItems,
- justifyContent: this.justifyContent
- }
- },
- this.$slots
- );
- }
- }),
- uQ = {
- span: { type: [String, Number], default: 1 },
- push: { type: [String, Number], default: 0 },
- pull: { type: [String, Number], default: 0 },
- offset: { type: [String, Number], default: 0 }
- },
- fQ = ke({
- name: 'Col',
- props: uQ,
- setup(e) {
- const t = Ze(E3, null);
- return (
- t || io('col', '`n-col` must be placed inside `n-row`.'),
- {
- mergedClsPrefix: t.mergedClsPrefixRef,
- gutter: t.gutterRef,
- stylePadding: I(
- () =>
- `${vn(t.verticalGutterRef.value, { c: 0.5 })} ${vn(
- t.horizontalGutterRef.value,
- { c: 0.5 }
- )}`
- ),
- mergedPush: I(() => Number(e.push) - Number(e.pull))
- }
- );
- },
- render() {
- const {
- $slots: e,
- span: t,
- mergedPush: n,
- offset: r,
- stylePadding: o,
- gutter: i,
- mergedClsPrefix: a
- } = this;
- return h(
- 'div',
- {
- class: [
- `${a}-col`,
- {
- [`${a}-col--${t}-span`]: !0,
- [`${a}-col--${n}-push`]: n > 0,
- [`${a}-col--${-n}-pull`]: n < 0,
- [`${a}-col--${r}-offset`]: r
- }
- ],
- style: { padding: o }
- },
- i ? h('div', null, e) : e
- );
- }
- }),
- hQ = { xs: 0, s: 640, m: 1024, l: 1280, xl: 1536, xxl: 1920 },
- A3 = 24,
- Vm = '__ssr__',
- vQ = {
- layoutShiftDisabled: Boolean,
- responsive: { type: [String, Boolean], default: 'self' },
- cols: { type: [Number, String], default: A3 },
- itemResponsive: Boolean,
- collapsed: Boolean,
- collapsedRows: { type: Number, default: 1 },
- itemStyle: [Object, String],
- xGap: { type: [Number, String], default: 0 },
- yGap: { type: [Number, String], default: 0 }
- },
- pQ = ke({
- name: 'Grid',
- inheritAttrs: !1,
- props: vQ,
- setup(e) {
- const { mergedClsPrefixRef: t, mergedBreakpointsRef: n } = yt(e),
- r = /^\d+$/,
- o = Z(void 0),
- i = vD((n == null ? void 0 : n.value) || hQ),
- a = kt(
- () =>
- !!(
- e.itemResponsive ||
- !r.test(e.cols.toString()) ||
- !r.test(e.xGap.toString()) ||
- !r.test(e.yGap.toString())
- )
- ),
- s = I(() => {
- if (a.value) return e.responsive === 'self' ? o.value : i.value;
- }),
- c = kt(() => {
- var y;
- return (y = Number(zd(e.cols.toString(), s.value))) !== null &&
- y !== void 0
- ? y
- : A3;
- }),
- d = kt(() => zd(e.xGap.toString(), s.value)),
- f = kt(() => zd(e.yGap.toString(), s.value)),
- v = y => {
- o.value = y.contentRect.width;
- },
- p = y => {
- Oc(v, y);
- },
- m = Z(!1),
- g = I(() => {
- if (e.responsive === 'self') return p;
- }),
- w = Z(!1),
- x = Z();
- return (
- Hn(() => {
- const { value: y } = x;
- y && y.hasAttribute(Vm) && (y.removeAttribute(Vm), (w.value = !0));
- }),
- Rt(O3, {
- layoutShiftDisabledRef: Ie(e, 'layoutShiftDisabled'),
- isSsrRef: w,
- itemStyleRef: Ie(e, 'itemStyle'),
- xGapRef: d,
- overflowRef: m
- }),
- {
- isSsr: !Fo,
- contentEl: x,
- mergedClsPrefix: t,
- style: I(() =>
- e.layoutShiftDisabled
- ? {
- width: '100%',
- display: 'grid',
- gridTemplateColumns: `repeat(${e.cols}, minmax(0, 1fr))`,
- columnGap: lr(e.xGap),
- rowGap: lr(e.yGap)
- }
- : {
- width: '100%',
- display: 'grid',
- gridTemplateColumns: `repeat(${c.value}, minmax(0, 1fr))`,
- columnGap: lr(d.value),
- rowGap: lr(f.value)
- }
- ),
- isResponsive: a,
- responsiveQuery: s,
- responsiveCols: c,
- handleResize: g,
- overflow: m
- }
- );
- },
- render() {
- if (this.layoutShiftDisabled)
- return h(
- 'div',
- qr(
- {
- ref: 'contentEl',
- class: `${this.mergedClsPrefix}-grid`,
- style: this.style
- },
- this.$attrs
- ),
- this.$slots
- );
- const e = () => {
- var t, n, r, o, i, a, s;
- this.overflow = !1;
- const c = hi(Wu(this)),
- d = [],
- {
- collapsed: f,
- collapsedRows: v,
- responsiveCols: p,
- responsiveQuery: m
- } = this;
- c.forEach(C => {
- var R, S, _, P;
- if (
- ((R = C == null ? void 0 : C.type) === null || R === void 0
- ? void 0
- : R.__GRID_ITEM__) !== !0
- )
- return;
- if (OI(C)) {
- const z = Ao(C);
- z.props
- ? (z.props.privateShow = !1)
- : (z.props = { privateShow: !1 }),
- d.push({ child: z, rawChildSpan: 0 });
- return;
- }
- C.dirs =
- ((S = C.dirs) === null || S === void 0
- ? void 0
- : S.filter(({ dir: z }) => z !== vi)) || null;
- const T = Ao(C),
- E = Number(
- (P = zd(
- (_ = T.props) === null || _ === void 0 ? void 0 : _.span,
- m
- )) !== null && P !== void 0
- ? P
- : l2
- );
- E !== 0 && d.push({ child: T, rawChildSpan: E });
- });
- let g = 0;
- const w =
- (t = d[d.length - 1]) === null || t === void 0 ? void 0 : t.child;
- if (w != null && w.props) {
- const C = (n = w.props) === null || n === void 0 ? void 0 : n.suffix;
- C !== void 0 &&
- C !== !1 &&
- ((g =
- (o = (r = w.props) === null || r === void 0 ? void 0 : r.span) !==
- null && o !== void 0
- ? o
- : l2),
- (w.props.privateSpan = g),
- (w.props.privateColStart = p + 1 - g),
- (w.props.privateShow =
- (i = w.props.privateShow) !== null && i !== void 0 ? i : !0));
- }
- let x = 0,
- y = !1;
- for (const { child: C, rawChildSpan: R } of d) {
- if ((y && (this.overflow = !0), !y)) {
- const S = Number(
- (s = zd(
- (a = C.props) === null || a === void 0 ? void 0 : a.offset,
- m
- )) !== null && s !== void 0
- ? s
- : 0
- ),
- _ = Math.min(R + S, p);
- if (
- (C.props
- ? ((C.props.privateSpan = _), (C.props.privateOffset = S))
- : (C.props = { privateSpan: _, privateOffset: S }),
- f)
- ) {
- const P = x % p;
- _ + P > p && (x += p - P),
- _ + x + g > v * p ? (y = !0) : (x += _);
- }
- }
- y &&
- (C.props
- ? C.props.privateShow !== !0 && (C.props.privateShow = !1)
- : (C.props = { privateShow: !1 }));
- }
- return h(
- 'div',
- qr(
- {
- ref: 'contentEl',
- class: `${this.mergedClsPrefix}-grid`,
- style: this.style,
- [Vm]: this.isSsr || void 0
- },
- this.$attrs
- ),
- d.map(({ child: C }) => C)
- );
- };
- return this.isResponsive && this.responsive === 'self'
- ? h(qi, { onResize: this.handleResize }, { default: e })
- : e();
- }
- }),
- Wy = Object.assign(Object.assign({}, Ke.props), {
- showToolbar: { type: Boolean, default: !0 },
- showToolbarTooltip: Boolean
- }),
- M3 = 'n-image';
- function gQ() {
- return {
- toolbarIconColor: 'rgba(255, 255, 255, .9)',
- toolbarColor: 'rgba(0, 0, 0, .35)',
- toolbarBoxShadow: 'none',
- toolbarBorderRadius: '24px'
- };
- }
- const mQ = { name: 'Image', common: Nt, peers: { Tooltip: Mp }, self: gQ },
- bQ = {
- closeMargin: '16px 12px',
- closeSize: '20px',
- closeIconSize: '16px',
- width: '365px',
- padding: '16px',
- titleFontSize: '16px',
- metaFontSize: '12px',
- descriptionFontSize: '12px'
- },
- yQ = e => {
- const {
- textColor2: t,
- successColor: n,
- infoColor: r,
- warningColor: o,
- errorColor: i,
- popoverColor: a,
- closeIconColor: s,
- closeIconColorHover: c,
- closeIconColorPressed: d,
- closeColorHover: f,
- closeColorPressed: v,
- textColor1: p,
- textColor3: m,
- borderRadius: g,
- fontWeightStrong: w,
- boxShadow2: x,
- lineHeight: y,
- fontSize: C
- } = e;
- return Object.assign(Object.assign({}, bQ), {
- borderRadius: g,
- lineHeight: y,
- fontSize: C,
- headerFontWeight: w,
- iconColor: t,
- iconColorSuccess: n,
- iconColorInfo: r,
- iconColorWarning: o,
- iconColorError: i,
- color: a,
- textColor: t,
- closeIconColor: s,
- closeIconColorHover: c,
- closeIconColorPressed: d,
- closeBorderRadius: g,
- closeColorHover: f,
- closeColorPressed: v,
- headerTextColor: p,
- descriptionTextColor: m,
- actionTextColor: t,
- boxShadow: x
- });
- },
- xQ = { name: 'Notification', common: Nt, peers: { Scrollbar: ea }, self: yQ },
- wQ = xQ,
- CQ = {
- margin: '0 0 8px 0',
- padding: '10px 20px',
- maxWidth: '720px',
- minWidth: '420px',
- iconMargin: '0 10px 0 0',
- closeMargin: '0 0 0 10px',
- closeSize: '20px',
- closeIconSize: '16px',
- iconSize: '20px',
- fontSize: '14px'
- },
- SQ = e => {
- const {
- textColor2: t,
- closeIconColor: n,
- closeIconColorHover: r,
- closeIconColorPressed: o,
- infoColor: i,
- successColor: a,
- errorColor: s,
- warningColor: c,
- popoverColor: d,
- boxShadow2: f,
- primaryColor: v,
- lineHeight: p,
- borderRadius: m,
- closeColorHover: g,
- closeColorPressed: w
- } = e;
- return Object.assign(Object.assign({}, CQ), {
- closeBorderRadius: m,
- textColor: t,
- textColorInfo: t,
- textColorSuccess: t,
- textColorError: t,
- textColorWarning: t,
- textColorLoading: t,
- color: d,
- colorInfo: d,
- colorSuccess: d,
- colorError: d,
- colorWarning: d,
- colorLoading: d,
- boxShadow: f,
- boxShadowInfo: f,
- boxShadowSuccess: f,
- boxShadowError: f,
- boxShadowWarning: f,
- boxShadowLoading: f,
- iconColor: t,
- iconColorInfo: i,
- iconColorSuccess: a,
- iconColorWarning: c,
- iconColorError: s,
- iconColorLoading: v,
- closeColorHover: g,
- closeColorPressed: w,
- closeIconColor: n,
- closeIconColorHover: r,
- closeIconColorPressed: o,
- closeColorHoverInfo: g,
- closeColorPressedInfo: w,
- closeIconColorInfo: n,
- closeIconColorHoverInfo: r,
- closeIconColorPressedInfo: o,
- closeColorHoverSuccess: g,
- closeColorPressedSuccess: w,
- closeIconColorSuccess: n,
- closeIconColorHoverSuccess: r,
- closeIconColorPressedSuccess: o,
- closeColorHoverError: g,
- closeColorPressedError: w,
- closeIconColorError: n,
- closeIconColorHoverError: r,
- closeIconColorPressedError: o,
- closeColorHoverWarning: g,
- closeColorPressedWarning: w,
- closeIconColorWarning: n,
- closeIconColorHoverWarning: r,
- closeIconColorPressedWarning: o,
- closeColorHoverLoading: g,
- closeColorPressedLoading: w,
- closeIconColorLoading: n,
- closeIconColorHoverLoading: r,
- closeIconColorPressedLoading: o,
- loadingColor: v,
- lineHeight: p,
- borderRadius: m
- });
- },
- _Q = { name: 'Message', common: Nt, self: SQ },
- RQ = _Q,
- PQ = e => {
- const { textColorDisabled: t } = e;
- return { iconColorDisabled: t };
- },
- kQ = {
- name: 'InputNumber',
- common: Nt,
- peers: { Button: As, Input: Xu },
- self: PQ
- },
- TQ = kQ,
- $Q = e => {
- const {
- baseColor: t,
- textColor2: n,
- bodyColor: r,
- cardColor: o,
- dividerColor: i,
- actionColor: a,
- scrollbarColor: s,
- scrollbarColorHover: c,
- invertedColor: d
- } = e;
- return {
- textColor: n,
- textColorInverted: '#FFF',
- color: r,
- colorEmbedded: a,
- headerColor: o,
- headerColorInverted: d,
- footerColor: a,
- footerColorInverted: d,
- headerBorderColor: i,
- headerBorderColorInverted: d,
- footerBorderColor: i,
- footerBorderColorInverted: d,
- siderBorderColor: i,
- siderBorderColorInverted: d,
- siderColor: o,
- siderColorInverted: d,
- siderToggleButtonBorder: `1px solid ${i}`,
- siderToggleButtonColor: t,
- siderToggleButtonIconColor: n,
- siderToggleButtonIconColorInverted: n,
- siderToggleBarColor: Et(r, s),
- siderToggleBarColorHover: Et(r, c),
- __invertScrollbar: 'true'
- };
- },
- OQ = { name: 'Layout', common: Nt, peers: { Scrollbar: ea }, self: $Q },
- Lp = OQ,
- zQ = e => {
- const {
- textColor2: t,
- cardColor: n,
- modalColor: r,
- popoverColor: o,
- dividerColor: i,
- borderRadius: a,
- fontSize: s,
- hoverColor: c
- } = e;
- return {
- textColor: t,
- color: n,
- colorHover: c,
- colorModal: r,
- colorHoverModal: Et(r, c),
- colorPopover: o,
- colorHoverPopover: Et(o, c),
- borderColor: i,
- borderColorModal: Et(r, i),
- borderColorPopover: Et(o, i),
- borderRadius: a,
- fontSize: s
- };
- },
- EQ = { name: 'List', common: Nt, self: zQ },
- AQ = EQ,
- MQ = e => {
- const { primaryColor: t, errorColor: n } = e;
- return { colorError: n, colorLoading: t, height: '2px' };
- },
- IQ = { name: 'LoadingBar', common: Nt, self: MQ },
- DQ = IQ;
- function FQ(e, t, n, r) {
- return {
- itemColorHoverInverted: '#0000',
- itemColorActiveInverted: t,
- itemColorActiveHoverInverted: t,
- itemColorActiveCollapsedInverted: t,
- itemTextColorInverted: e,
- itemTextColorHoverInverted: n,
- itemTextColorChildActiveInverted: n,
- itemTextColorChildActiveHoverInverted: n,
- itemTextColorActiveInverted: n,
- itemTextColorActiveHoverInverted: n,
- itemTextColorHorizontalInverted: e,
- itemTextColorHoverHorizontalInverted: n,
- itemTextColorChildActiveHorizontalInverted: n,
- itemTextColorChildActiveHoverHorizontalInverted: n,
- itemTextColorActiveHorizontalInverted: n,
- itemTextColorActiveHoverHorizontalInverted: n,
- itemIconColorInverted: e,
- itemIconColorHoverInverted: n,
- itemIconColorActiveInverted: n,
- itemIconColorActiveHoverInverted: n,
- itemIconColorChildActiveInverted: n,
- itemIconColorChildActiveHoverInverted: n,
- itemIconColorCollapsedInverted: e,
- itemIconColorHorizontalInverted: e,
- itemIconColorHoverHorizontalInverted: n,
- itemIconColorActiveHorizontalInverted: n,
- itemIconColorActiveHoverHorizontalInverted: n,
- itemIconColorChildActiveHorizontalInverted: n,
- itemIconColorChildActiveHoverHorizontalInverted: n,
- arrowColorInverted: e,
- arrowColorHoverInverted: n,
- arrowColorActiveInverted: n,
- arrowColorActiveHoverInverted: n,
- arrowColorChildActiveInverted: n,
- arrowColorChildActiveHoverInverted: n,
- groupTextColorInverted: r
- };
- }
- const BQ = e => {
- const {
- borderRadius: t,
- textColor3: n,
- primaryColor: r,
- textColor2: o,
- textColor1: i,
- fontSize: a,
- dividerColor: s,
- hoverColor: c,
- primaryColorHover: d
- } = e;
- return Object.assign(
- {
- borderRadius: t,
- color: '#0000',
- groupTextColor: n,
- itemColorHover: c,
- itemColorActive: zt(r, { alpha: 0.1 }),
- itemColorActiveHover: zt(r, { alpha: 0.1 }),
- itemColorActiveCollapsed: zt(r, { alpha: 0.1 }),
- itemTextColor: o,
- itemTextColorHover: o,
- itemTextColorActive: r,
- itemTextColorActiveHover: r,
- itemTextColorChildActive: r,
- itemTextColorChildActiveHover: r,
- itemTextColorHorizontal: o,
- itemTextColorHoverHorizontal: d,
- itemTextColorActiveHorizontal: r,
- itemTextColorActiveHoverHorizontal: r,
- itemTextColorChildActiveHorizontal: r,
- itemTextColorChildActiveHoverHorizontal: r,
- itemIconColor: i,
- itemIconColorHover: i,
- itemIconColorActive: r,
- itemIconColorActiveHover: r,
- itemIconColorChildActive: r,
- itemIconColorChildActiveHover: r,
- itemIconColorCollapsed: i,
- itemIconColorHorizontal: i,
- itemIconColorHoverHorizontal: d,
- itemIconColorActiveHorizontal: r,
- itemIconColorActiveHoverHorizontal: r,
- itemIconColorChildActiveHorizontal: r,
- itemIconColorChildActiveHoverHorizontal: r,
- itemHeight: '42px',
- arrowColor: o,
- arrowColorHover: o,
- arrowColorActive: r,
- arrowColorActiveHover: r,
- arrowColorChildActive: r,
- arrowColorChildActiveHover: r,
- colorInverted: '#0000',
- borderColorHorizontal: '#0000',
- fontSize: a,
- dividerColor: s
- },
- FQ('#BBB', r, '#FFF', '#AAA')
- );
- },
- LQ = {
- name: 'Menu',
- common: Nt,
- peers: { Tooltip: Mp, Dropdown: Ey },
- self: BQ
- },
- NQ = LQ,
- HQ = e => {
- const {
- infoColor: t,
- successColor: n,
- warningColor: r,
- errorColor: o,
- textColor2: i,
- progressRailColor: a,
- fontSize: s,
- fontWeight: c
- } = e;
- return {
- fontSize: s,
- fontSizeCircle: '28px',
- fontWeightCircle: c,
- railColor: a,
- railHeight: '8px',
- iconSizeCircle: '36px',
- iconSizeLine: '18px',
- iconColor: t,
- iconColorInfo: t,
- iconColorSuccess: n,
- iconColorWarning: r,
- iconColorError: o,
- textColorCircle: i,
- textColorLineInner: 'rgb(255, 255, 255)',
- textColorLineOuter: i,
- fillColor: t,
- fillColorInfo: t,
- fillColorSuccess: n,
- fillColorWarning: r,
- fillColorError: o,
- lineBgProcessing:
- 'linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)'
- };
- },
- jQ = { name: 'Progress', common: Nt, self: HQ },
- I3 = jQ,
- WQ = {
- titleFontSizeSmall: '26px',
- titleFontSizeMedium: '32px',
- titleFontSizeLarge: '40px',
- titleFontSizeHuge: '48px',
- fontSizeSmall: '14px',
- fontSizeMedium: '14px',
- fontSizeLarge: '15px',
- fontSizeHuge: '16px',
- iconSizeSmall: '64px',
- iconSizeMedium: '80px',
- iconSizeLarge: '100px',
- iconSizeHuge: '125px',
- iconColor418: void 0,
- iconColor404: void 0,
- iconColor403: void 0,
- iconColor500: void 0
- },
- UQ = e => {
- const {
- textColor2: t,
- textColor1: n,
- errorColor: r,
- successColor: o,
- infoColor: i,
- warningColor: a,
- lineHeight: s,
- fontWeightStrong: c
- } = e;
- return Object.assign(Object.assign({}, WQ), {
- lineHeight: s,
- titleFontWeight: c,
- titleTextColor: n,
- textColor: t,
- iconColorError: r,
- iconColorSuccess: o,
- iconColorInfo: i,
- iconColorWarning: a
- });
- },
- VQ = { name: 'Result', common: Nt, self: UQ },
- KQ = VQ,
- qQ = e => {
- const {
- opacityDisabled: t,
- heightTiny: n,
- heightSmall: r,
- heightMedium: o,
- heightLarge: i,
- heightHuge: a,
- primaryColor: s,
- fontSize: c
- } = e;
- return {
- fontSize: c,
- textColor: s,
- sizeTiny: n,
- sizeSmall: r,
- sizeMedium: o,
- sizeLarge: i,
- sizeHuge: a,
- color: s,
- opacitySpinning: t
- };
- },
- YQ = { name: 'Spin', common: Nt, self: qQ },
- GQ = YQ,
- XQ = {
- stepHeaderFontSizeSmall: '14px',
- stepHeaderFontSizeMedium: '16px',
- indicatorIndexFontSizeSmall: '14px',
- indicatorIndexFontSizeMedium: '16px',
- indicatorSizeSmall: '22px',
- indicatorSizeMedium: '28px',
- indicatorIconSizeSmall: '14px',
- indicatorIconSizeMedium: '18px'
- },
- ZQ = e => {
- const {
- fontWeightStrong: t,
- baseColor: n,
- textColorDisabled: r,
- primaryColor: o,
- errorColor: i,
- textColor1: a,
- textColor2: s
- } = e;
- return Object.assign(Object.assign({}, XQ), {
- stepHeaderFontWeight: t,
- indicatorTextColorProcess: n,
- indicatorTextColorWait: r,
- indicatorTextColorFinish: o,
- indicatorTextColorError: i,
- indicatorBorderColorProcess: o,
- indicatorBorderColorWait: r,
- indicatorBorderColorFinish: o,
- indicatorBorderColorError: i,
- indicatorColorProcess: o,
- indicatorColorWait: '#0000',
- indicatorColorFinish: '#0000',
- indicatorColorError: '#0000',
- splitorColorProcess: r,
- splitorColorWait: r,
- splitorColorFinish: o,
- splitorColorError: r,
- headerTextColorProcess: a,
- headerTextColorWait: r,
- headerTextColorFinish: r,
- headerTextColorError: i,
- descriptionTextColorProcess: s,
- descriptionTextColorWait: r,
- descriptionTextColorFinish: r,
- descriptionTextColorError: i
- });
- },
- QQ = { name: 'Steps', common: Nt, self: ZQ },
- JQ = QQ,
- eJ = {
- buttonHeightSmall: '14px',
- buttonHeightMedium: '18px',
- buttonHeightLarge: '22px',
- buttonWidthSmall: '14px',
- buttonWidthMedium: '18px',
- buttonWidthLarge: '22px',
- buttonWidthPressedSmall: '20px',
- buttonWidthPressedMedium: '24px',
- buttonWidthPressedLarge: '28px',
- railHeightSmall: '18px',
- railHeightMedium: '22px',
- railHeightLarge: '26px',
- railWidthSmall: '32px',
- railWidthMedium: '40px',
- railWidthLarge: '48px'
- },
- tJ = e => {
- const {
- primaryColor: t,
- opacityDisabled: n,
- borderRadius: r,
- textColor3: o
- } = e,
- i = 'rgba(0, 0, 0, .14)';
- return Object.assign(Object.assign({}, eJ), {
- iconColor: o,
- textColor: 'white',
- loadingColor: t,
- opacityDisabled: n,
- railColor: i,
- railColorActive: t,
- buttonBoxShadow:
- '0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)',
- buttonColor: '#FFF',
- railBorderRadiusSmall: r,
- railBorderRadiusMedium: r,
- railBorderRadiusLarge: r,
- buttonBorderRadiusSmall: r,
- buttonBorderRadiusMedium: r,
- buttonBorderRadiusLarge: r,
- boxShadowFocus: `0 0 0 2px ${zt(t, { alpha: 0.2 })}`
- });
- },
- nJ = { name: 'Switch', common: Nt, self: tJ },
- rJ = nJ,
- oJ = {
- thPaddingSmall: '6px',
- thPaddingMedium: '12px',
- thPaddingLarge: '12px',
- tdPaddingSmall: '6px',
- tdPaddingMedium: '12px',
- tdPaddingLarge: '12px'
- },
- iJ = e => {
- const {
- dividerColor: t,
- cardColor: n,
- modalColor: r,
- popoverColor: o,
- tableHeaderColor: i,
- tableColorStriped: a,
- textColor1: s,
- textColor2: c,
- borderRadius: d,
- fontWeightStrong: f,
- lineHeight: v,
- fontSizeSmall: p,
- fontSizeMedium: m,
- fontSizeLarge: g
- } = e;
- return Object.assign(Object.assign({}, oJ), {
- fontSizeSmall: p,
- fontSizeMedium: m,
- fontSizeLarge: g,
- lineHeight: v,
- borderRadius: d,
- borderColor: Et(n, t),
- borderColorModal: Et(r, t),
- borderColorPopover: Et(o, t),
- tdColor: n,
- tdColorModal: r,
- tdColorPopover: o,
- tdColorStriped: Et(n, a),
- tdColorStripedModal: Et(r, a),
- tdColorStripedPopover: Et(o, a),
- thColor: Et(n, i),
- thColorModal: Et(r, i),
- thColorPopover: Et(o, i),
- thTextColor: s,
- tdTextColor: c,
- thFontWeight: f
- });
- },
- aJ = { name: 'Table', common: Nt, self: iJ },
- lJ = aJ,
- sJ = {
- tabFontSizeSmall: '14px',
- tabFontSizeMedium: '14px',
- tabFontSizeLarge: '16px',
- tabGapSmallLine: '36px',
- tabGapMediumLine: '36px',
- tabGapLargeLine: '36px',
- tabGapSmallLineVertical: '8px',
- tabGapMediumLineVertical: '8px',
- tabGapLargeLineVertical: '8px',
- tabPaddingSmallLine: '6px 0',
- tabPaddingMediumLine: '10px 0',
- tabPaddingLargeLine: '14px 0',
- tabPaddingVerticalSmallLine: '6px 12px',
- tabPaddingVerticalMediumLine: '8px 16px',
- tabPaddingVerticalLargeLine: '10px 20px',
- tabGapSmallBar: '36px',
- tabGapMediumBar: '36px',
- tabGapLargeBar: '36px',
- tabGapSmallBarVertical: '8px',
- tabGapMediumBarVertical: '8px',
- tabGapLargeBarVertical: '8px',
- tabPaddingSmallBar: '4px 0',
- tabPaddingMediumBar: '6px 0',
- tabPaddingLargeBar: '10px 0',
- tabPaddingVerticalSmallBar: '6px 12px',
- tabPaddingVerticalMediumBar: '8px 16px',
- tabPaddingVerticalLargeBar: '10px 20px',
- tabGapSmallCard: '4px',
- tabGapMediumCard: '4px',
- tabGapLargeCard: '4px',
- tabGapSmallCardVertical: '4px',
- tabGapMediumCardVertical: '4px',
- tabGapLargeCardVertical: '4px',
- tabPaddingSmallCard: '8px 16px',
- tabPaddingMediumCard: '10px 20px',
- tabPaddingLargeCard: '12px 24px',
- tabPaddingSmallSegment: '4px 0',
- tabPaddingMediumSegment: '6px 0',
- tabPaddingLargeSegment: '8px 0',
- tabPaddingVerticalLargeSegment: '0 8px',
- tabPaddingVerticalSmallCard: '8px 12px',
- tabPaddingVerticalMediumCard: '10px 16px',
- tabPaddingVerticalLargeCard: '12px 20px',
- tabPaddingVerticalSmallSegment: '0 4px',
- tabPaddingVerticalMediumSegment: '0 6px',
- tabGapSmallSegment: '0',
- tabGapMediumSegment: '0',
- tabGapLargeSegment: '0',
- tabGapSmallSegmentVertical: '0',
- tabGapMediumSegmentVertical: '0',
- tabGapLargeSegmentVertical: '0',
- panePaddingSmall: '8px 0 0 0',
- panePaddingMedium: '12px 0 0 0',
- panePaddingLarge: '16px 0 0 0',
- closeSize: '18px',
- closeIconSize: '14px'
- },
- cJ = e => {
- const {
- textColor2: t,
- primaryColor: n,
- textColorDisabled: r,
- closeIconColor: o,
- closeIconColorHover: i,
- closeIconColorPressed: a,
- closeColorHover: s,
- closeColorPressed: c,
- tabColor: d,
- baseColor: f,
- dividerColor: v,
- fontWeight: p,
- textColor1: m,
- borderRadius: g,
- fontSize: w,
- fontWeightStrong: x
- } = e;
- return Object.assign(Object.assign({}, sJ), {
- colorSegment: d,
- tabFontSizeCard: w,
- tabTextColorLine: m,
- tabTextColorActiveLine: n,
- tabTextColorHoverLine: n,
- tabTextColorDisabledLine: r,
- tabTextColorSegment: m,
- tabTextColorActiveSegment: t,
- tabTextColorHoverSegment: t,
- tabTextColorDisabledSegment: r,
- tabTextColorBar: m,
- tabTextColorActiveBar: n,
- tabTextColorHoverBar: n,
- tabTextColorDisabledBar: r,
- tabTextColorCard: m,
- tabTextColorHoverCard: m,
- tabTextColorActiveCard: n,
- tabTextColorDisabledCard: r,
- barColor: n,
- closeIconColor: o,
- closeIconColorHover: i,
- closeIconColorPressed: a,
- closeColorHover: s,
- closeColorPressed: c,
- closeBorderRadius: g,
- tabColor: d,
- tabColorSegment: f,
- tabBorderColor: v,
- tabFontWeightActive: p,
- tabFontWeight: p,
- tabBorderRadius: g,
- paneTextColor: t,
- fontWeightStrong: x
- });
- },
- dJ = { name: 'Tabs', common: Nt, self: cJ },
- uJ = dJ,
- fJ = e => {
- const {
- textColor1: t,
- textColor2: n,
- fontWeightStrong: r,
- fontSize: o
- } = e;
- return { fontSize: o, titleTextColor: t, textColor: n, titleFontWeight: r };
- },
- hJ = { name: 'Thing', common: Nt, self: fJ },
- vJ = hJ,
- pJ = e => {
- const {
- borderRadiusSmall: t,
- hoverColor: n,
- pressedColor: r,
- primaryColor: o,
- textColor3: i,
- textColor2: a,
- textColorDisabled: s,
- fontSize: c
- } = e;
- return {
- fontSize: c,
- nodeBorderRadius: t,
- nodeColorHover: n,
- nodeColorPressed: r,
- nodeColorActive: zt(o, { alpha: 0.1 }),
- arrowColor: i,
- nodeTextColor: a,
- nodeTextColorDisabled: s,
- loadingColor: o,
- dropMarkColor: o
- };
- },
- gJ = {
- name: 'Tree',
- common: Nt,
- peers: { Checkbox: ky, Scrollbar: ea, Empty: Ap },
- self: pJ
- },
- mJ = gJ,
- bJ = e => {
- const {
- iconColor: t,
- primaryColor: n,
- errorColor: r,
- textColor2: o,
- successColor: i,
- opacityDisabled: a,
- actionColor: s,
- borderColor: c,
- hoverColor: d,
- lineHeight: f,
- borderRadius: v,
- fontSize: p
- } = e;
- return {
- fontSize: p,
- lineHeight: f,
- borderRadius: v,
- draggerColor: s,
- draggerBorder: `1px dashed ${c}`,
- draggerBorderHover: `1px dashed ${n}`,
- itemColorHover: d,
- itemColorHoverError: zt(r, { alpha: 0.06 }),
- itemTextColor: o,
- itemTextColorError: r,
- itemTextColorSuccess: i,
- itemIconColor: t,
- itemDisabledOpacity: a,
- itemBorderImageCardError: `1px solid ${r}`,
- itemBorderImageCard: `1px solid ${c}`
- };
- },
- yJ = {
- name: 'Upload',
- common: Nt,
- peers: { Button: As, Progress: I3 },
- self: bJ
- },
- xJ = yJ,
- wJ = h(
- 'svg',
- { viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
- h('path', {
- d: 'M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z',
- fill: 'currentColor'
- })
- ),
- CJ = h(
- 'svg',
- { viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
- h('path', {
- d: 'M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z',
- fill: 'currentColor'
- })
- ),
- SJ = h(
- 'svg',
- { viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
- h('path', {
- d: 'M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z',
- fill: 'currentColor'
- })
- ),
- _J = F([
- F('body >', [O('image-container', 'position: fixed;')]),
- O(
- 'image-preview-container',
- `
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- `
- ),
- O(
- 'image-preview-overlay',
- `
- z-index: -1;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- background: rgba(0, 0, 0, .3);
- `,
- [Cs()]
- ),
- O(
- 'image-preview-toolbar',
- `
- z-index: 1;
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
- border-radius: var(--n-toolbar-border-radius);
- height: 48px;
- bottom: 40px;
- padding: 0 12px;
- background: var(--n-toolbar-color);
- box-shadow: var(--n-toolbar-box-shadow);
- color: var(--n-toolbar-icon-color);
- transition: color .3s var(--n-bezier);
- display: flex;
- align-items: center;
- `,
- [
- O(
- 'base-icon',
- `
- padding: 0 8px;
- font-size: 28px;
- cursor: pointer;
- `
- ),
- Cs()
- ]
- ),
- O(
- 'image-preview-wrapper',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- pointer-events: none;
- `,
- [gi()]
- ),
- O(
- 'image-preview',
- `
- user-select: none;
- -webkit-user-select: none;
- pointer-events: all;
- margin: auto;
- max-height: calc(100vh - 32px);
- max-width: calc(100vw - 32px);
- transition: transform .3s var(--n-bezier);
- `
- ),
- O(
- 'image',
- `
- display: inline-flex;
- max-height: 100%;
- max-width: 100%;
- `,
- [
- jt(
- 'preview-disabled',
- `
- cursor: pointer;
- `
- ),
- F(
- 'img',
- `
- border-radius: inherit;
- `
- )
- ]
- )
- ]),
- $h = 32,
- D3 = ke({
- name: 'ImagePreview',
- props: Object.assign(Object.assign({}, Wy), {
- onNext: Function,
- onPrev: Function,
- clsPrefix: { type: String, required: !0 }
- }),
- setup(e) {
- const t = Ke('Image', '-image', _J, mQ, e, Ie(e, 'clsPrefix'));
- let n = null;
- const r = Z(null),
- o = Z(null),
- i = Z(void 0),
- a = Z(!1),
- s = Z(!1),
- { localeRef: c } = Ta('Image');
- function d() {
- const { value: j } = o;
- if (!n || !j) return;
- const { style: ee } = j,
- ne = n.getBoundingClientRect(),
- fe = ne.left + ne.width / 2,
- ie = ne.top + ne.height / 2;
- ee.transformOrigin = `${fe}px ${ie}px`;
- }
- function f(j) {
- var ee, ne;
- switch (j.key) {
- case ' ':
- j.preventDefault();
- break;
- case 'ArrowLeft':
- (ee = e.onPrev) === null || ee === void 0 || ee.call(e);
- break;
- case 'ArrowRight':
- (ne = e.onNext) === null || ne === void 0 || ne.call(e);
- break;
- case 'Escape':
- ce();
- break;
- }
- }
- $t(a, j => {
- j ? Tn('keydown', document, f) : pn('keydown', document, f);
- }),
- qn(() => {
- pn('keydown', document, f);
- });
- let v = 0,
- p = 0,
- m = 0,
- g = 0,
- w = 0,
- x = 0,
- y = 0,
- C = 0,
- R = !1;
- function S(j) {
- const { clientX: ee, clientY: ne } = j;
- (m = ee - v), (g = ne - p), Oc(pe);
- }
- function _(j) {
- const {
- mouseUpClientX: ee,
- mouseUpClientY: ne,
- mouseDownClientX: fe,
- mouseDownClientY: ie
- } = j,
- W = fe - ee,
- ae = ie - ne,
- he = `vertical${ae > 0 ? 'Top' : 'Bottom'}`,
- _e = `horizontal${W > 0 ? 'Left' : 'Right'}`;
- return {
- moveVerticalDirection: he,
- moveHorizontalDirection: _e,
- deltaHorizontal: W,
- deltaVertical: ae
- };
- }
- function P(j) {
- const { value: ee } = r;
- if (!ee) return { offsetX: 0, offsetY: 0 };
- const ne = ee.getBoundingClientRect(),
- {
- moveVerticalDirection: fe,
- moveHorizontalDirection: ie,
- deltaHorizontal: W,
- deltaVertical: ae
- } = j || {};
- let he = 0,
- _e = 0;
- return (
- ne.width <= window.innerWidth
- ? (he = 0)
- : ne.left > 0
- ? (he = (ne.width - window.innerWidth) / 2)
- : ne.right < window.innerWidth
- ? (he = -(ne.width - window.innerWidth) / 2)
- : ie === 'horizontalRight'
- ? (he = Math.min((ne.width - window.innerWidth) / 2, w - (W ?? 0)))
- : (he = Math.max(
- -((ne.width - window.innerWidth) / 2),
- w - (W ?? 0)
- )),
- ne.height <= window.innerHeight
- ? (_e = 0)
- : ne.top > 0
- ? (_e = (ne.height - window.innerHeight) / 2)
- : ne.bottom < window.innerHeight
- ? (_e = -(ne.height - window.innerHeight) / 2)
- : fe === 'verticalBottom'
- ? (_e = Math.min(
- (ne.height - window.innerHeight) / 2,
- x - (ae ?? 0)
- ))
- : (_e = Math.max(
- -((ne.height - window.innerHeight) / 2),
- x - (ae ?? 0)
- )),
- { offsetX: he, offsetY: _e }
- );
- }
- function T(j) {
- pn('mousemove', document, S), pn('mouseup', document, T);
- const { clientX: ee, clientY: ne } = j;
- R = !1;
- const fe = _({
- mouseUpClientX: ee,
- mouseUpClientY: ne,
- mouseDownClientX: y,
- mouseDownClientY: C
- }),
- ie = P(fe);
- (m = ie.offsetX), (g = ie.offsetY), pe();
- }
- const E = Ze(M3, null);
- function z(j) {
- var ee, ne;
- if (
- ((ne =
- (ee = E == null ? void 0 : E.previewedImgPropsRef.value) === null ||
- ee === void 0
- ? void 0
- : ee.onMousedown) === null ||
- ne === void 0 ||
- ne.call(ee, j),
- j.button !== 0)
- )
- return;
- const { clientX: fe, clientY: ie } = j;
- (R = !0),
- (v = fe - m),
- (p = ie - g),
- (w = m),
- (x = g),
- (y = fe),
- (C = ie),
- pe(),
- Tn('mousemove', document, S),
- Tn('mouseup', document, T);
- }
- function k(j) {
- var ee, ne;
- (ne =
- (ee = E == null ? void 0 : E.previewedImgPropsRef.value) === null ||
- ee === void 0
- ? void 0
- : ee.onDblclick) === null ||
- ne === void 0 ||
- ne.call(ee, j);
- const fe = Q();
- (D = D === fe ? 1 : fe), pe();
- }
- const M = 1.5;
- let A = 0,
- D = 1,
- L = 0;
- function H() {
- (D = 1), (A = 0);
- }
- function B() {
- var j;
- H(), (L = 0), (j = e.onPrev) === null || j === void 0 || j.call(e);
- }
- function q() {
- var j;
- H(), (L = 0), (j = e.onNext) === null || j === void 0 || j.call(e);
- }
- function X() {
- (L -= 90), pe();
- }
- function te() {
- (L += 90), pe();
- }
- function G() {
- const { value: j } = r;
- if (!j) return 1;
- const { innerWidth: ee, innerHeight: ne } = window,
- fe = Math.max(1, j.naturalHeight / (ne - $h)),
- ie = Math.max(1, j.naturalWidth / (ee - $h));
- return Math.max(3, fe * 2, ie * 2);
- }
- function Q() {
- const { value: j } = r;
- if (!j) return 1;
- const { innerWidth: ee, innerHeight: ne } = window,
- fe = j.naturalHeight / (ne - $h),
- ie = j.naturalWidth / (ee - $h);
- return fe < 1 && ie < 1 ? 1 : Math.max(fe, ie);
- }
- function re() {
- const j = G();
- D < j && ((A += 1), (D = Math.min(j, Math.pow(M, A))), pe());
- }
- function se() {
- if (D > 0.5) {
- const j = D;
- (A -= 1), (D = Math.max(0.5, Math.pow(M, A)));
- const ee = j - D;
- pe(!1);
- const ne = P();
- (D += ee),
- pe(!1),
- (D -= ee),
- (m = ne.offsetX),
- (g = ne.offsetY),
- pe();
- }
- }
- function pe(j = !0) {
- var ee;
- const { value: ne } = r;
- if (!ne) return;
- const { style: fe } = ne,
- ie = pp(
- (ee = E == null ? void 0 : E.previewedImgPropsRef.value) === null ||
- ee === void 0
- ? void 0
- : ee.style
- );
- let W = '';
- if (typeof ie == 'string') W = ie + ';';
- else for (const he in ie) W += `${ZP(he)}: ${ie[he]};`;
- const ae = `transform-origin: center; transform: translateX(${m}px) translateY(${g}px) rotate(${L}deg) scale(${D});`;
- R
- ? (fe.cssText = W + 'cursor: grabbing; transition: none;' + ae)
- : (fe.cssText =
- W + 'cursor: grab;' + ae + (j ? '' : 'transition: none;')),
- j || ne.offsetHeight;
- }
- function ce() {
- (a.value = !a.value), (s.value = !0);
- }
- function xe() {
- (D = Q()),
- (A = Math.ceil(Math.log(D) / Math.log(M))),
- (m = 0),
- (g = 0),
- pe();
- }
- const ve = {
- setPreviewSrc: j => {
- i.value = j;
- },
- setThumbnailEl: j => {
- n = j;
- },
- toggleShow: ce
- };
- function be(j, ee) {
- if (e.showToolbarTooltip) {
- const { value: ne } = t;
- return h(
- Ip,
- {
- to: !1,
- theme: ne.peers.Tooltip,
- themeOverrides: ne.peerOverrides.Tooltip,
- keepAliveOnHover: !1
- },
- { default: () => c.value[ee], trigger: () => j }
- );
- } else return j;
- }
- const Ce = I(() => {
- const {
- common: { cubicBezierEaseInOut: j },
- self: {
- toolbarIconColor: ee,
- toolbarBorderRadius: ne,
- toolbarBoxShadow: fe,
- toolbarColor: ie
- }
- } = t.value;
- return {
- '--n-bezier': j,
- '--n-toolbar-icon-color': ee,
- '--n-toolbar-color': ie,
- '--n-toolbar-border-radius': ne,
- '--n-toolbar-box-shadow': fe
- };
- }),
- { inlineThemeDisabled: ge } = yt(),
- Ae = ge ? Mt('image-preview', void 0, Ce, e) : void 0;
- return Object.assign(
- {
- previewRef: r,
- previewWrapperRef: o,
- previewSrc: i,
- show: a,
- appear: yi(),
- displayed: s,
- previewedImgProps: E == null ? void 0 : E.previewedImgPropsRef,
- handleWheel(j) {
- j.preventDefault();
- },
- handlePreviewMousedown: z,
- handlePreviewDblclick: k,
- syncTransformOrigin: d,
- handleAfterLeave: () => {
- H(), (L = 0), (s.value = !1);
- },
- handleDragStart: j => {
- var ee, ne;
- (ne =
- (ee = E == null ? void 0 : E.previewedImgPropsRef.value) ===
- null || ee === void 0
- ? void 0
- : ee.onDragstart) === null ||
- ne === void 0 ||
- ne.call(ee, j),
- j.preventDefault();
- },
- zoomIn: re,
- zoomOut: se,
- rotateCounterclockwise: X,
- rotateClockwise: te,
- handleSwitchPrev: B,
- handleSwitchNext: q,
- withTooltip: be,
- resizeToOrignalImageSize: xe,
- cssVars: ge ? void 0 : Ce,
- themeClass: Ae == null ? void 0 : Ae.themeClass,
- onRender: Ae == null ? void 0 : Ae.onRender
- },
- ve
- );
- },
- render() {
- var e, t;
- const { clsPrefix: n } = this;
- return h(
- on,
- null,
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e),
- h(
- Yu,
- { show: this.show },
- {
- default: () => {
- var r;
- return this.show || this.displayed
- ? ((r = this.onRender) === null || r === void 0 || r.call(this),
- Er(
- h(
- 'div',
- {
- class: [
- `${n}-image-preview-container`,
- this.themeClass
- ],
- style: this.cssVars,
- onWheel: this.handleWheel
- },
- h(
- Kn,
- { name: 'fade-in-transition', appear: this.appear },
- {
- default: () =>
- this.show
- ? h('div', {
- class: `${n}-image-preview-overlay`,
- onClick: this.toggleShow
- })
- : null
- }
- ),
- this.showToolbar
- ? h(
- Kn,
- { name: 'fade-in-transition', appear: this.appear },
- {
- default: () => {
- if (!this.show) return null;
- const { withTooltip: o } = this;
- return h(
- 'div',
- { class: `${n}-image-preview-toolbar` },
- this.onPrev
- ? h(
- on,
- null,
- o(
- h(
- At,
- {
- clsPrefix: n,
- onClick: this.handleSwitchPrev
- },
- { default: () => wJ }
- ),
- 'tipPrevious'
- ),
- o(
- h(
- At,
- {
- clsPrefix: n,
- onClick: this.handleSwitchNext
- },
- { default: () => CJ }
- ),
- 'tipNext'
- )
- )
- : null,
- o(
- h(
- At,
- {
- clsPrefix: n,
- onClick: this.rotateCounterclockwise
- },
- { default: () => h(IW, null) }
- ),
- 'tipCounterclockwise'
- ),
- o(
- h(
- At,
- {
- clsPrefix: n,
- onClick: this.rotateClockwise
- },
- { default: () => h(MW, null) }
- ),
- 'tipClockwise'
- ),
- o(
- h(
- At,
- {
- clsPrefix: n,
- onClick: this.resizeToOrignalImageSize
- },
- { default: () => h(BW, null) }
- ),
- 'tipOriginalSize'
- ),
- o(
- h(
- At,
- { clsPrefix: n, onClick: this.zoomOut },
- { default: () => h(FW, null) }
- ),
- 'tipZoomOut'
- ),
- o(
- h(
- At,
- { clsPrefix: n, onClick: this.zoomIn },
- { default: () => h(DW, null) }
- ),
- 'tipZoomIn'
- ),
- o(
- h(
- At,
- {
- clsPrefix: n,
- onClick: this.toggleShow
- },
- { default: () => SJ }
- ),
- 'tipClose'
- )
- );
- }
- }
- )
- : null,
- h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- onAfterLeave: this.handleAfterLeave,
- appear: this.appear,
- onEnter: this.syncTransformOrigin,
- onBeforeLeave: this.syncTransformOrigin
- },
- {
- default: () => {
- const { previewedImgProps: o = {} } = this;
- return Er(
- h(
- 'div',
- {
- class: `${n}-image-preview-wrapper`,
- ref: 'previewWrapperRef'
- },
- h(
- 'img',
- Object.assign({}, o, {
- draggable: !1,
- onMousedown: this.handlePreviewMousedown,
- onDblclick: this.handlePreviewDblclick,
- class: [`${n}-image-preview`, o.class],
- key: this.previewSrc,
- src: this.previewSrc,
- ref: 'previewRef',
- onDragstart: this.handleDragStart
- })
- )
- ),
- [[vi, this.show]]
- );
- }
- }
- )
- ),
- [[qu, { enabled: this.show }]]
- ))
- : null;
- }
- }
- )
- );
- }
- }),
- F3 = 'n-image-group',
- RJ = Wy,
- PJ = ke({
- name: 'ImageGroup',
- props: RJ,
- setup(e) {
- let t;
- const { mergedClsPrefixRef: n } = yt(e),
- r = `c${pi()}`,
- o = Ra(),
- i = c => {
- var d;
- (t = c), (d = s.value) === null || d === void 0 || d.setPreviewSrc(c);
- };
- function a(c) {
- if (!(o != null && o.proxy)) return;
- const f = o.proxy.$el.parentElement.querySelectorAll(
- `[data-group-id=${r}]:not([data-error=true])`
- );
- if (!f.length) return;
- const v = Array.from(f).findIndex(p => p.dataset.previewSrc === t);
- ~v
- ? i(f[(v + c + f.length) % f.length].dataset.previewSrc)
- : i(f[0].dataset.previewSrc);
- }
- Rt(F3, {
- mergedClsPrefixRef: n,
- setPreviewSrc: i,
- setThumbnailEl: c => {
- var d;
- (d = s.value) === null || d === void 0 || d.setThumbnailEl(c);
- },
- toggleShow: () => {
- var c;
- (c = s.value) === null || c === void 0 || c.toggleShow();
- },
- groupId: r
- });
- const s = Z(null);
- return {
- mergedClsPrefix: n,
- previewInstRef: s,
- next: () => {
- a(1);
- },
- prev: () => {
- a(-1);
- }
- };
- },
- render() {
- return h(
- D3,
- {
- theme: this.theme,
- themeOverrides: this.themeOverrides,
- clsPrefix: this.mergedClsPrefix,
- ref: 'previewInstRef',
- onPrev: this.prev,
- onNext: this.next,
- showToolbar: this.showToolbar,
- showToolbarTooltip: this.showToolbarTooltip
- },
- this.$slots
- );
- }
- }),
- kJ = Object.assign(
- {
- alt: String,
- height: [String, Number],
- imgProps: Object,
- previewedImgProps: Object,
- lazy: Boolean,
- intersectionObserverOptions: Object,
- objectFit: { type: String, default: 'fill' },
- previewSrc: String,
- fallbackSrc: String,
- width: [String, Number],
- src: String,
- previewDisabled: Boolean,
- loadDescription: String,
- onError: Function,
- onLoad: Function
- },
- Wy
- ),
- TJ = ke({
- name: 'Image',
- props: kJ,
- inheritAttrs: !1,
- setup(e) {
- const t = Z(null),
- n = Z(!1),
- r = Z(null),
- o = Ze(F3, null),
- { mergedClsPrefixRef: i } = o || yt(e),
- a = {
- click: () => {
- if (e.previewDisabled || n.value) return;
- const d = e.previewSrc || e.src;
- if (o) {
- o.setPreviewSrc(d), o.setThumbnailEl(t.value), o.toggleShow();
- return;
- }
- const { value: f } = r;
- f &&
- (f.setPreviewSrc(d), f.setThumbnailEl(t.value), f.toggleShow());
- }
- },
- s = Z(!e.lazy);
- Hn(() => {
- var d;
- (d = t.value) === null ||
- d === void 0 ||
- d.setAttribute(
- 'data-group-id',
- (o == null ? void 0 : o.groupId) || ''
- );
- }),
- Hn(() => {
- if (e.lazy && e.intersectionObserverOptions) {
- let d;
- const f = Bn(() => {
- d == null || d(),
- (d = void 0),
- (d = Fk(t.value, e.intersectionObserverOptions, s));
- });
- qn(() => {
- f(), d == null || d();
- });
- }
- }),
- Bn(() => {
- var d;
- e.src,
- (d = e.imgProps) === null || d === void 0 || d.src,
- (n.value = !1);
- });
- const c = Z(!1);
- return (
- Rt(M3, { previewedImgPropsRef: Ie(e, 'previewedImgProps') }),
- Object.assign(
- {
- mergedClsPrefix: i,
- groupId: o == null ? void 0 : o.groupId,
- previewInstRef: r,
- imageRef: t,
- showError: n,
- shouldStartLoading: s,
- loaded: c,
- mergedOnClick: d => {
- var f, v;
- a.click(),
- (v =
- (f = e.imgProps) === null || f === void 0
- ? void 0
- : f.onClick) === null ||
- v === void 0 ||
- v.call(f, d);
- },
- mergedOnError: d => {
- if (!s.value) return;
- n.value = !0;
- const { onError: f, imgProps: { onError: v } = {} } = e;
- f == null || f(d), v == null || v(d);
- },
- mergedOnLoad: d => {
- const { onLoad: f, imgProps: { onLoad: v } = {} } = e;
- f == null || f(d), v == null || v(d), (c.value = !0);
- }
- },
- a
- )
- );
- },
- render() {
- var e, t;
- const {
- mergedClsPrefix: n,
- imgProps: r = {},
- loaded: o,
- $attrs: i,
- lazy: a
- } = this,
- s =
- (t = (e = this.$slots).placeholder) === null || t === void 0
- ? void 0
- : t.call(e),
- c = this.src || r.src,
- d = h(
- 'img',
- Object.assign(Object.assign({}, r), {
- ref: 'imageRef',
- width: this.width || r.width,
- height: this.height || r.height,
- src: this.showError
- ? this.fallbackSrc
- : a && this.intersectionObserverOptions
- ? this.shouldStartLoading
- ? c
- : void 0
- : c,
- alt: this.alt || r.alt,
- 'aria-label': this.alt || r.alt,
- onClick: this.mergedOnClick,
- onError: this.mergedOnError,
- onLoad: this.mergedOnLoad,
- loading:
- Wh && a && !this.intersectionObserverOptions ? 'lazy' : 'eager',
- style: [
- r.style || '',
- s && !o ? { height: '0', width: '0', visibility: 'hidden' } : '',
- { objectFit: this.objectFit }
- ],
- 'data-error': this.showError,
- 'data-preview-src': this.previewSrc || this.src
- })
- );
- return h(
- 'div',
- Object.assign({}, i, {
- role: 'none',
- class: [
- i.class,
- `${n}-image`,
- (this.previewDisabled || this.showError) &&
- `${n}-image--preview-disabled`
- ]
- }),
- this.groupId
- ? d
- : h(
- D3,
- {
- theme: this.theme,
- themeOverrides: this.themeOverrides,
- clsPrefix: n,
- ref: 'previewInstRef',
- showToolbar: this.showToolbar,
- showToolbarTooltip: this.showToolbarTooltip
- },
- { default: () => d }
- ),
- !o && s
- );
- }
- });
- function $J(e) {
- return e == null || (typeof e == 'string' && e.trim() === '')
- ? null
- : Number(e);
- }
- function OJ(e) {
- return e.includes('.') && (/^(-)?\d+.*(\.|0)$/.test(e) || /^\.\d+$/.test(e));
- }
- function Km(e) {
- return e == null ? !0 : !Number.isNaN(e);
- }
- function s2(e, t) {
- return e == null ? '' : t === void 0 ? String(e) : e.toFixed(t);
- }
- function qm(e) {
- if (e === null) return null;
- if (typeof e == 'number') return e;
- {
- const t = Number(e);
- return Number.isNaN(t) ? null : t;
- }
- }
- const zJ = F([
- O(
- 'input-number-suffix',
- `
- display: inline-block;
- margin-right: 10px;
- `
- ),
- O(
- 'input-number-prefix',
- `
- display: inline-block;
- margin-left: 10px;
- `
- )
- ]),
- c2 = 800,
- d2 = 100,
- EJ = Object.assign(Object.assign({}, Ke.props), {
- autofocus: Boolean,
- loading: { type: Boolean, default: void 0 },
- placeholder: String,
- defaultValue: { type: Number, default: null },
- value: Number,
- step: { type: [Number, String], default: 1 },
- min: [Number, String],
- max: [Number, String],
- size: String,
- disabled: { type: Boolean, default: void 0 },
- validator: Function,
- bordered: { type: Boolean, default: void 0 },
- showButton: { type: Boolean, default: !0 },
- buttonPlacement: { type: String, default: 'right' },
- readonly: Boolean,
- clearable: Boolean,
- keyboard: { type: Object, default: {} },
- updateValueOnInput: { type: Boolean, default: !0 },
- parse: Function,
- format: Function,
- precision: Number,
- status: String,
- 'onUpdate:value': [Function, Array],
- onUpdateValue: [Function, Array],
- onFocus: [Function, Array],
- onBlur: [Function, Array],
- onClear: [Function, Array],
- onChange: [Function, Array]
- }),
- AJ = ke({
- name: 'InputNumber',
- props: EJ,
- setup(e) {
- const {
- mergedBorderedRef: t,
- mergedClsPrefixRef: n,
- mergedRtlRef: r
- } = yt(e),
- o = Ke('InputNumber', '-input-number', zJ, TQ, e, n),
- { localeRef: i } = Ta('InputNumber'),
- a = ei(e),
- { mergedSizeRef: s, mergedDisabledRef: c, mergedStatusRef: d } = a,
- f = Z(null),
- v = Z(null),
- p = Z(null),
- m = Z(e.defaultValue),
- g = Ie(e, 'value'),
- w = En(g, m),
- x = Z(''),
- y = W => {
- const ae = String(W).split('.')[1];
- return ae ? ae.length : 0;
- },
- C = W => {
- const ae = [e.min, e.max, e.step, W].map(he =>
- he === void 0 ? 0 : y(he)
- );
- return Math.max(...ae);
- },
- R = kt(() => {
- const { placeholder: W } = e;
- return W !== void 0 ? W : i.value.placeholder;
- }),
- S = kt(() => {
- const W = qm(e.step);
- return W !== null ? (W === 0 ? 1 : Math.abs(W)) : 1;
- }),
- _ = kt(() => {
- const W = qm(e.min);
- return W !== null ? W : null;
- }),
- P = kt(() => {
- const W = qm(e.max);
- return W !== null ? W : null;
- }),
- T = W => {
- const { value: ae } = w;
- if (W === ae) {
- z();
- return;
- }
- const { 'onUpdate:value': he, onUpdateValue: _e, onChange: le } = e,
- { nTriggerFormInput: Re, nTriggerFormChange: Ne } = a;
- le && Me(le, W),
- _e && Me(_e, W),
- he && Me(he, W),
- (m.value = W),
- Re(),
- Ne();
- },
- E = ({
- offset: W,
- doUpdateIfValid: ae,
- fixPrecision: he,
- isInputing: _e
- }) => {
- const { value: le } = x;
- if (_e && OJ(le)) return !1;
- const Re = (e.parse || $J)(le);
- if (Re === null) return ae && T(null), null;
- if (Km(Re)) {
- const Ne = y(Re),
- { precision: Ge } = e;
- if (Ge !== void 0 && Ge < Ne && !he) return !1;
- let it = parseFloat((Re + W).toFixed(Ge ?? C(Re)));
- if (Km(it)) {
- const { value: dt } = P,
- { value: xt } = _;
- if (dt !== null && it > dt) {
- if (!ae || _e) return !1;
- it = dt;
- }
- if (xt !== null && it < xt) {
- if (!ae || _e) return !1;
- it = xt;
- }
- return e.validator && !e.validator(it) ? !1 : (ae && T(it), it);
- }
- }
- return !1;
- },
- z = () => {
- const { value: W } = w;
- if (Km(W)) {
- const { format: ae, precision: he } = e;
- ae
- ? (x.value = ae(W))
- : W === null || he === void 0 || y(W) > he
- ? (x.value = s2(W, void 0))
- : (x.value = s2(W, he));
- } else x.value = String(W);
- };
- z();
- const k = kt(
- () =>
- E({
- offset: 0,
- doUpdateIfValid: !1,
- isInputing: !1,
- fixPrecision: !1
- }) === !1
- ),
- M = kt(() => {
- const { value: W } = w;
- if (e.validator && W === null) return !1;
- const { value: ae } = S;
- return (
- E({
- offset: -ae,
- doUpdateIfValid: !1,
- isInputing: !1,
- fixPrecision: !1
- }) !== !1
- );
- }),
- A = kt(() => {
- const { value: W } = w;
- if (e.validator && W === null) return !1;
- const { value: ae } = S;
- return (
- E({
- offset: +ae,
- doUpdateIfValid: !1,
- isInputing: !1,
- fixPrecision: !1
- }) !== !1
- );
- });
- function D(W) {
- const { onFocus: ae } = e,
- { nTriggerFormFocus: he } = a;
- ae && Me(ae, W), he();
- }
- function L(W) {
- var ae, he;
- if (
- W.target ===
- ((ae = f.value) === null || ae === void 0 ? void 0 : ae.wrapperElRef)
- )
- return;
- const _e = E({
- offset: 0,
- doUpdateIfValid: !0,
- isInputing: !1,
- fixPrecision: !0
- });
- if (_e !== !1) {
- const Ne =
- (he = f.value) === null || he === void 0 ? void 0 : he.inputElRef;
- Ne && (Ne.value = String(_e || '')), w.value === _e && z();
- } else z();
- const { onBlur: le } = e,
- { nTriggerFormBlur: Re } = a;
- le && Me(le, W),
- Re(),
- mn(() => {
- z();
- });
- }
- function H(W) {
- const { onClear: ae } = e;
- ae && Me(ae, W);
- }
- function B() {
- const { value: W } = A;
- if (!W) {
- ve();
- return;
- }
- const { value: ae } = w;
- if (ae === null) e.validator || T(G());
- else {
- const { value: he } = S;
- E({
- offset: he,
- doUpdateIfValid: !0,
- isInputing: !1,
- fixPrecision: !0
- });
- }
- }
- function q() {
- const { value: W } = M;
- if (!W) {
- xe();
- return;
- }
- const { value: ae } = w;
- if (ae === null) e.validator || T(G());
- else {
- const { value: he } = S;
- E({
- offset: -he,
- doUpdateIfValid: !0,
- isInputing: !1,
- fixPrecision: !0
- });
- }
- }
- const X = D,
- te = L;
- function G() {
- if (e.validator) return null;
- const { value: W } = _,
- { value: ae } = P;
- return W !== null ? Math.max(0, W) : ae !== null ? Math.min(0, ae) : 0;
- }
- function Q(W) {
- H(W), T(null);
- }
- function re(W) {
- var ae, he, _e;
- !((ae = p.value) === null || ae === void 0) &&
- ae.$el.contains(W.target) &&
- W.preventDefault(),
- !((he = v.value) === null || he === void 0) &&
- he.$el.contains(W.target) &&
- W.preventDefault(),
- (_e = f.value) === null || _e === void 0 || _e.activate();
- }
- let se = null,
- pe = null,
- ce = null;
- function xe() {
- ce && (window.clearTimeout(ce), (ce = null)),
- se && (window.clearInterval(se), (se = null));
- }
- function ve() {
- Ce && (window.clearTimeout(Ce), (Ce = null)),
- pe && (window.clearInterval(pe), (pe = null));
- }
- function be() {
- xe(),
- (ce = window.setTimeout(() => {
- se = window.setInterval(() => {
- q();
- }, d2);
- }, c2)),
- Tn('mouseup', document, xe, { once: !0 });
- }
- let Ce = null;
- function ge() {
- ve(),
- (Ce = window.setTimeout(() => {
- pe = window.setInterval(() => {
- B();
- }, d2);
- }, c2)),
- Tn('mouseup', document, ve, { once: !0 });
- }
- const Ae = () => {
- pe || B();
- },
- j = () => {
- se || q();
- };
- function ee(W) {
- var ae, he;
- if (W.key === 'Enter') {
- if (
- W.target ===
- ((ae = f.value) === null || ae === void 0
- ? void 0
- : ae.wrapperElRef)
- )
- return;
- E({
- offset: 0,
- doUpdateIfValid: !0,
- isInputing: !1,
- fixPrecision: !0
- }) !== !1 &&
- ((he = f.value) === null || he === void 0 || he.deactivate());
- } else if (W.key === 'ArrowUp') {
- if (!A.value || e.keyboard.ArrowUp === !1) return;
- W.preventDefault(),
- E({
- offset: 0,
- doUpdateIfValid: !0,
- isInputing: !1,
- fixPrecision: !0
- }) !== !1 && B();
- } else if (W.key === 'ArrowDown') {
- if (!M.value || e.keyboard.ArrowDown === !1) return;
- W.preventDefault(),
- E({
- offset: 0,
- doUpdateIfValid: !0,
- isInputing: !1,
- fixPrecision: !0
- }) !== !1 && q();
- }
- }
- function ne(W) {
- (x.value = W),
- e.updateValueOnInput &&
- !e.format &&
- !e.parse &&
- e.precision === void 0 &&
- E({
- offset: 0,
- doUpdateIfValid: !0,
- isInputing: !0,
- fixPrecision: !1
- });
- }
- $t(w, () => {
- z();
- });
- const fe = {
- focus: () => {
- var W;
- return (W = f.value) === null || W === void 0 ? void 0 : W.focus();
- },
- blur: () => {
- var W;
- return (W = f.value) === null || W === void 0 ? void 0 : W.blur();
- }
- },
- ie = cr('InputNumber', r, n);
- return Object.assign(Object.assign({}, fe), {
- rtlEnabled: ie,
- inputInstRef: f,
- minusButtonInstRef: v,
- addButtonInstRef: p,
- mergedClsPrefix: n,
- mergedBordered: t,
- uncontrolledValue: m,
- mergedValue: w,
- mergedPlaceholder: R,
- displayedValueInvalid: k,
- mergedSize: s,
- mergedDisabled: c,
- displayedValue: x,
- addable: A,
- minusable: M,
- mergedStatus: d,
- handleFocus: X,
- handleBlur: te,
- handleClear: Q,
- handleMouseDown: re,
- handleAddClick: Ae,
- handleMinusClick: j,
- handleAddMousedown: ge,
- handleMinusMousedown: be,
- handleKeyDown: ee,
- handleUpdateDisplayedValue: ne,
- mergedTheme: o,
- inputThemeOverrides: {
- paddingSmall: '0 8px 0 10px',
- paddingMedium: '0 8px 0 12px',
- paddingLarge: '0 8px 0 14px'
- },
- buttonThemeOverrides: I(() => {
- const {
- self: { iconColorDisabled: W }
- } = o.value,
- [ae, he, _e, le] = ul(W);
- return {
- textColorTextDisabled: `rgb(${ae}, ${he}, ${_e})`,
- opacityDisabled: `${le}`
- };
- })
- });
- },
- render() {
- const { mergedClsPrefix: e, $slots: t } = this,
- n = () =>
- h(
- Wi,
- {
- text: !0,
- disabled: !this.minusable || this.mergedDisabled || this.readonly,
- focusable: !1,
- theme: this.mergedTheme.peers.Button,
- themeOverrides: this.mergedTheme.peerOverrides.Button,
- builtinThemeOverrides: this.buttonThemeOverrides,
- onClick: this.handleMinusClick,
- onMousedown: this.handleMinusMousedown,
- ref: 'minusButtonInstRef'
- },
- {
- icon: () =>
- Kt(t['minus-icon'], () => [
- h(At, { clsPrefix: e }, { default: () => h(PW, null) })
- ])
- }
- ),
- r = () =>
- h(
- Wi,
- {
- text: !0,
- disabled: !this.addable || this.mergedDisabled || this.readonly,
- focusable: !1,
- theme: this.mergedTheme.peers.Button,
- themeOverrides: this.mergedTheme.peerOverrides.Button,
- builtinThemeOverrides: this.buttonThemeOverrides,
- onClick: this.handleAddClick,
- onMousedown: this.handleAddMousedown,
- ref: 'addButtonInstRef'
- },
- {
- icon: () =>
- Kt(t['add-icon'], () => [
- h(At, { clsPrefix: e }, { default: () => h(wy, null) })
- ])
- }
- );
- return h(
- 'div',
- {
- class: [
- `${e}-input-number`,
- this.rtlEnabled && `${e}-input-number--rtl`
- ]
- },
- h(
- Gi,
- {
- ref: 'inputInstRef',
- autofocus: this.autofocus,
- status: this.mergedStatus,
- bordered: this.mergedBordered,
- loading: this.loading,
- value: this.displayedValue,
- onUpdateValue: this.handleUpdateDisplayedValue,
- theme: this.mergedTheme.peers.Input,
- themeOverrides: this.mergedTheme.peerOverrides.Input,
- builtinThemeOverrides: this.inputThemeOverrides,
- size: this.mergedSize,
- placeholder: this.mergedPlaceholder,
- disabled: this.mergedDisabled,
- readonly: this.readonly,
- textDecoration: this.displayedValueInvalid
- ? 'line-through'
- : void 0,
- onFocus: this.handleFocus,
- onBlur: this.handleBlur,
- onKeydown: this.handleKeyDown,
- onMousedown: this.handleMouseDown,
- onClear: this.handleClear,
- clearable: this.clearable,
- internalLoadingBeforeSuffix: !0
- },
- {
- prefix: () => {
- var o;
- return this.showButton && this.buttonPlacement === 'both'
- ? [
- n(),
- cn(t.prefix, i =>
- i
- ? h('span', { class: `${e}-input-number-prefix` }, i)
- : null
- )
- ]
- : (o = t.prefix) === null || o === void 0
- ? void 0
- : o.call(t);
- },
- suffix: () => {
- var o;
- return this.showButton
- ? [
- cn(t.suffix, i =>
- i
- ? h('span', { class: `${e}-input-number-suffix` }, i)
- : null
- ),
- this.buttonPlacement === 'right' ? n() : null,
- r()
- ]
- : (o = t.suffix) === null || o === void 0
- ? void 0
- : o.call(t);
- }
- }
- )
- );
- }
- }),
- B3 = 'n-layout-sider',
- Np = { type: String, default: 'static' },
- MJ = O(
- 'layout',
- `
- color: var(--n-text-color);
- background-color: var(--n-color);
- box-sizing: border-box;
- position: relative;
- z-index: auto;
- flex: auto;
- overflow: hidden;
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `,
- [
- O(
- 'layout-scroll-container',
- `
- overflow-x: hidden;
- box-sizing: border-box;
- height: 100%;
- `
- ),
- U(
- 'absolute-positioned',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `
- )
- ]
- ),
- IJ = {
- embedded: Boolean,
- position: Np,
- nativeScrollbar: { type: Boolean, default: !0 },
- scrollbarProps: Object,
- onScroll: Function,
- contentStyle: { type: [String, Object], default: '' },
- hasSider: Boolean,
- siderPlacement: { type: String, default: 'left' }
- },
- L3 = 'n-layout';
- function N3(e) {
- return ke({
- name: e ? 'LayoutContent' : 'Layout',
- props: Object.assign(Object.assign({}, Ke.props), IJ),
- setup(t) {
- const n = Z(null),
- r = Z(null),
- { mergedClsPrefixRef: o, inlineThemeDisabled: i } = yt(t),
- a = Ke('Layout', '-layout', MJ, Lp, t, o);
- function s(w, x) {
- if (t.nativeScrollbar) {
- const { value: y } = n;
- y && (x === void 0 ? y.scrollTo(w) : y.scrollTo(w, x));
- } else {
- const { value: y } = r;
- y && y.scrollTo(w, x);
- }
- }
- Rt(L3, t);
- let c = 0,
- d = 0;
- const f = w => {
- var x;
- const y = w.target;
- (c = y.scrollLeft),
- (d = y.scrollTop),
- (x = t.onScroll) === null || x === void 0 || x.call(t, w);
- };
- ny(() => {
- if (t.nativeScrollbar) {
- const w = n.value;
- w && ((w.scrollTop = d), (w.scrollLeft = c));
- }
- });
- const v = {
- display: 'flex',
- flexWrap: 'nowrap',
- width: '100%',
- flexDirection: 'row'
- },
- p = { scrollTo: s },
- m = I(() => {
- const {
- common: { cubicBezierEaseInOut: w },
- self: x
- } = a.value;
- return {
- '--n-bezier': w,
- '--n-color': t.embedded ? x.colorEmbedded : x.color,
- '--n-text-color': x.textColor
- };
- }),
- g = i
- ? Mt(
- 'layout',
- I(() => (t.embedded ? 'e' : '')),
- m,
- t
- )
- : void 0;
- return Object.assign(
- {
- mergedClsPrefix: o,
- scrollableElRef: n,
- scrollbarInstRef: r,
- hasSiderStyle: v,
- mergedTheme: a,
- handleNativeElScroll: f,
- cssVars: i ? void 0 : m,
- themeClass: g == null ? void 0 : g.themeClass,
- onRender: g == null ? void 0 : g.onRender
- },
- p
- );
- },
- render() {
- var t;
- const { mergedClsPrefix: n, hasSider: r } = this;
- (t = this.onRender) === null || t === void 0 || t.call(this);
- const o = r ? this.hasSiderStyle : void 0,
- i = [
- this.themeClass,
- e && `${n}-layout-content`,
- `${n}-layout`,
- `${n}-layout--${this.position}-positioned`
- ];
- return h(
- 'div',
- { class: i, style: this.cssVars },
- this.nativeScrollbar
- ? h(
- 'div',
- {
- ref: 'scrollableElRef',
- class: `${n}-layout-scroll-container`,
- style: [this.contentStyle, o],
- onScroll: this.handleNativeElScroll
- },
- this.$slots
- )
- : h(
- yr,
- Object.assign({}, this.scrollbarProps, {
- onScroll: this.onScroll,
- ref: 'scrollbarInstRef',
- theme: this.mergedTheme.peers.Scrollbar,
- themeOverrides: this.mergedTheme.peerOverrides.Scrollbar,
- contentStyle: [this.contentStyle, o]
- }),
- this.$slots
- )
- );
- }
- });
- }
- const DJ = N3(!1),
- FJ = N3(!0),
- BJ = O(
- 'layout-header',
- `
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- box-sizing: border-box;
- width: 100%;
- background-color: var(--n-color);
- color: var(--n-text-color);
- `,
- [
- U(
- 'absolute-positioned',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- `
- ),
- U(
- 'bordered',
- `
- border-bottom: solid 1px var(--n-border-color);
- `
- )
- ]
- ),
- LJ = {
- position: Np,
- inverted: Boolean,
- bordered: { type: Boolean, default: !1 }
- },
- NJ = ke({
- name: 'LayoutHeader',
- props: Object.assign(Object.assign({}, Ke.props), LJ),
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Layout', '-layout-header', BJ, Lp, e, t),
- o = I(() => {
- const {
- common: { cubicBezierEaseInOut: a },
- self: s
- } = r.value,
- c = { '--n-bezier': a };
- return (
- e.inverted
- ? ((c['--n-color'] = s.headerColorInverted),
- (c['--n-text-color'] = s.textColorInverted),
- (c['--n-border-color'] = s.headerBorderColorInverted))
- : ((c['--n-color'] = s.headerColor),
- (c['--n-text-color'] = s.textColor),
- (c['--n-border-color'] = s.headerBorderColor)),
- c
- );
- }),
- i = n
- ? Mt(
- 'layout-header',
- I(() => (e.inverted ? 'a' : 'b')),
- o,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- const { mergedClsPrefix: t } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'div',
- {
- class: [
- `${t}-layout-header`,
- this.themeClass,
- this.position &&
- `${t}-layout-header--${this.position}-positioned`,
- this.bordered && `${t}-layout-header--bordered`
- ],
- style: this.cssVars
- },
- this.$slots
- )
- );
- }
- }),
- HJ = O(
- 'layout-footer',
- `
- transition:
- box-shadow .3s var(--n-bezier),
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- color: var(--n-text-color);
- background-color: var(--n-color);
- box-sizing: border-box;
- `,
- [
- U(
- 'absolute-positioned',
- `
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- `
- ),
- U(
- 'bordered',
- `
- border-top: solid 1px var(--n-border-color);
- `
- )
- ]
- ),
- jJ = Object.assign(Object.assign({}, Ke.props), {
- inverted: Boolean,
- position: Np,
- bordered: Boolean
- }),
- WJ = ke({
- name: 'LayoutFooter',
- props: jJ,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Layout', '-layout-footer', HJ, Lp, e, t),
- o = I(() => {
- const {
- common: { cubicBezierEaseInOut: a },
- self: s
- } = r.value,
- c = { '--n-bezier': a };
- return (
- e.inverted
- ? ((c['--n-color'] = s.footerColorInverted),
- (c['--n-text-color'] = s.textColorInverted),
- (c['--n-border-color'] = s.footerBorderColorInverted))
- : ((c['--n-color'] = s.footerColor),
- (c['--n-text-color'] = s.textColor),
- (c['--n-border-color'] = s.footerBorderColor)),
- c
- );
- }),
- i = n
- ? Mt(
- 'layout-footer',
- I(() => (e.inverted ? 'a' : 'b')),
- o,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- const { mergedClsPrefix: t } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'div',
- {
- class: [
- `${t}-layout-footer`,
- this.themeClass,
- this.position &&
- `${t}-layout-footer--${this.position}-positioned`,
- this.bordered && `${t}-layout-footer--bordered`
- ],
- style: this.cssVars
- },
- this.$slots
- )
- );
- }
- }),
- UJ = O(
- 'layout-sider',
- `
- flex-shrink: 0;
- box-sizing: border-box;
- position: relative;
- z-index: 1;
- color: var(--n-text-color);
- transition:
- color .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- min-width .3s var(--n-bezier),
- max-width .3s var(--n-bezier),
- transform .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- background-color: var(--n-color);
- display: flex;
- justify-content: flex-end;
- `,
- [
- U('bordered', [
- V(
- 'border',
- `
- content: "";
- position: absolute;
- top: 0;
- bottom: 0;
- width: 1px;
- background-color: var(--n-border-color);
- transition: background-color .3s var(--n-bezier);
- `
- )
- ]),
- V('left-placement', [
- U('bordered', [
- V(
- 'border',
- `
- right: 0;
- `
- )
- ])
- ]),
- U(
- 'right-placement',
- `
- justify-content: flex-start;
- `,
- [
- U('bordered', [
- V(
- 'border',
- `
- left: 0;
- `
- )
- ]),
- U('collapsed', [
- O('layout-toggle-button', [
- O(
- 'base-icon',
- `
- transform: rotate(180deg);
- `
- )
- ]),
- O('layout-toggle-bar', [
- F('&:hover', [
- V('top', {
- transform: 'rotate(-12deg) scale(1.15) translateY(-2px)'
- }),
- V('bottom', {
- transform: 'rotate(12deg) scale(1.15) translateY(2px)'
- })
- ])
- ])
- ]),
- O(
- 'layout-toggle-button',
- `
- left: 0;
- transform: translateX(-50%) translateY(-50%);
- `,
- [
- O(
- 'base-icon',
- `
- transform: rotate(0);
- `
- )
- ]
- ),
- O(
- 'layout-toggle-bar',
- `
- left: -28px;
- transform: rotate(180deg);
- `,
- [
- F('&:hover', [
- V('top', {
- transform: 'rotate(12deg) scale(1.15) translateY(-2px)'
- }),
- V('bottom', {
- transform: 'rotate(-12deg) scale(1.15) translateY(2px)'
- })
- ])
- ]
- )
- ]
- ),
- U('collapsed', [
- O('layout-toggle-bar', [
- F('&:hover', [
- V('top', {
- transform: 'rotate(-12deg) scale(1.15) translateY(-2px)'
- }),
- V('bottom', {
- transform: 'rotate(12deg) scale(1.15) translateY(2px)'
- })
- ])
- ]),
- O('layout-toggle-button', [
- O(
- 'base-icon',
- `
- transform: rotate(0);
- `
- )
- ])
- ]),
- O(
- 'layout-toggle-button',
- `
- transition:
- color .3s var(--n-bezier),
- right .3s var(--n-bezier),
- left .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- cursor: pointer;
- width: 24px;
- height: 24px;
- position: absolute;
- top: 50%;
- right: 0;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 18px;
- color: var(--n-toggle-button-icon-color);
- border: var(--n-toggle-button-border);
- background-color: var(--n-toggle-button-color);
- box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);
- transform: translateX(50%) translateY(-50%);
- z-index: 1;
- `,
- [
- O(
- 'base-icon',
- `
- transition: transform .3s var(--n-bezier);
- transform: rotate(180deg);
- `
- )
- ]
- ),
- O(
- 'layout-toggle-bar',
- `
- cursor: pointer;
- height: 72px;
- width: 32px;
- position: absolute;
- top: calc(50% - 36px);
- right: -28px;
- `,
- [
- V(
- 'top, bottom',
- `
- position: absolute;
- width: 4px;
- border-radius: 2px;
- height: 38px;
- left: 14px;
- transition:
- background-color .3s var(--n-bezier),
- transform .3s var(--n-bezier);
- `
- ),
- V(
- 'bottom',
- `
- position: absolute;
- top: 34px;
- `
- ),
- F('&:hover', [
- V('top', {
- transform: 'rotate(12deg) scale(1.15) translateY(-2px)'
- }),
- V('bottom', {
- transform: 'rotate(-12deg) scale(1.15) translateY(2px)'
- })
- ]),
- V('top, bottom', { backgroundColor: 'var(--n-toggle-bar-color)' }),
- F('&:hover', [
- V('top, bottom', {
- backgroundColor: 'var(--n-toggle-bar-color-hover)'
- })
- ])
- ]
- ),
- V(
- 'border',
- `
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- width: 1px;
- transition: background-color .3s var(--n-bezier);
- `
- ),
- O(
- 'layout-sider-scroll-container',
- `
- flex-grow: 1;
- flex-shrink: 0;
- box-sizing: border-box;
- height: 100%;
- opacity: 0;
- transition: opacity .3s var(--n-bezier);
- max-width: 100%;
- `
- ),
- U('show-content', [O('layout-sider-scroll-container', { opacity: 1 })]),
- U(
- 'absolute-positioned',
- `
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- `
- )
- ]
- ),
- VJ = ke({
- name: 'LayoutToggleButton',
- props: { clsPrefix: { type: String, required: !0 }, onClick: Function },
- render() {
- const { clsPrefix: e } = this;
- return h(
- 'div',
- { class: `${e}-layout-toggle-button`, onClick: this.onClick },
- h(At, { clsPrefix: e }, { default: () => h(Cy, null) })
- );
- }
- }),
- KJ = ke({
- props: { clsPrefix: { type: String, required: !0 }, onClick: Function },
- render() {
- const { clsPrefix: e } = this;
- return h(
- 'div',
- { onClick: this.onClick, class: `${e}-layout-toggle-bar` },
- h('div', { class: `${e}-layout-toggle-bar__top` }),
- h('div', { class: `${e}-layout-toggle-bar__bottom` })
- );
- }
- }),
- qJ = {
- position: Np,
- bordered: Boolean,
- collapsedWidth: { type: Number, default: 48 },
- width: { type: [Number, String], default: 272 },
- contentStyle: { type: [String, Object], default: '' },
- collapseMode: { type: String, default: 'transform' },
- collapsed: { type: Boolean, default: void 0 },
- defaultCollapsed: Boolean,
- showCollapsedContent: { type: Boolean, default: !0 },
- showTrigger: { type: [Boolean, String], default: !1 },
- nativeScrollbar: { type: Boolean, default: !0 },
- inverted: Boolean,
- scrollbarProps: Object,
- triggerStyle: [String, Object],
- collapsedTriggerStyle: [String, Object],
- 'onUpdate:collapsed': [Function, Array],
- onUpdateCollapsed: [Function, Array],
- onAfterEnter: Function,
- onAfterLeave: Function,
- onExpand: [Function, Array],
- onCollapse: [Function, Array],
- onScroll: Function
- },
- YJ = ke({
- name: 'LayoutSider',
- props: Object.assign(Object.assign({}, Ke.props), qJ),
- setup(e) {
- const t = Ze(L3),
- n = Z(null),
- r = Z(null),
- o = I(() => vn(c.value ? e.collapsedWidth : e.width)),
- i = I(() =>
- e.collapseMode !== 'transform' ? {} : { minWidth: vn(e.width) }
- ),
- a = I(() => (t ? t.siderPlacement : 'left')),
- s = Z(e.defaultCollapsed),
- c = En(Ie(e, 'collapsed'), s);
- function d(_, P) {
- if (e.nativeScrollbar) {
- const { value: T } = n;
- T && (P === void 0 ? T.scrollTo(_) : T.scrollTo(_, P));
- } else {
- const { value: T } = r;
- T && T.scrollTo(_, P);
- }
- }
- function f() {
- const {
- 'onUpdate:collapsed': _,
- onUpdateCollapsed: P,
- onExpand: T,
- onCollapse: E
- } = e,
- { value: z } = c;
- P && Me(P, !z),
- _ && Me(_, !z),
- (s.value = !z),
- z ? T && Me(T) : E && Me(E);
- }
- let v = 0,
- p = 0;
- const m = _ => {
- var P;
- const T = _.target;
- (v = T.scrollLeft),
- (p = T.scrollTop),
- (P = e.onScroll) === null || P === void 0 || P.call(e, _);
- };
- ny(() => {
- if (e.nativeScrollbar) {
- const _ = n.value;
- _ && ((_.scrollTop = p), (_.scrollLeft = v));
- }
- }),
- Rt(B3, { collapsedRef: c, collapseModeRef: Ie(e, 'collapseMode') });
- const { mergedClsPrefixRef: g, inlineThemeDisabled: w } = yt(e),
- x = Ke('Layout', '-layout-sider', UJ, Lp, e, g);
- function y(_) {
- var P, T;
- _.propertyName === 'max-width' &&
- (c.value
- ? (P = e.onAfterLeave) === null || P === void 0 || P.call(e)
- : (T = e.onAfterEnter) === null || T === void 0 || T.call(e));
- }
- const C = { scrollTo: d },
- R = I(() => {
- const {
- common: { cubicBezierEaseInOut: _ },
- self: P
- } = x.value,
- {
- siderToggleButtonColor: T,
- siderToggleButtonBorder: E,
- siderToggleBarColor: z,
- siderToggleBarColorHover: k
- } = P,
- M = {
- '--n-bezier': _,
- '--n-toggle-button-color': T,
- '--n-toggle-button-border': E,
- '--n-toggle-bar-color': z,
- '--n-toggle-bar-color-hover': k
- };
- return (
- e.inverted
- ? ((M['--n-color'] = P.siderColorInverted),
- (M['--n-text-color'] = P.textColorInverted),
- (M['--n-border-color'] = P.siderBorderColorInverted),
- (M['--n-toggle-button-icon-color'] =
- P.siderToggleButtonIconColorInverted),
- (M.__invertScrollbar = P.__invertScrollbar))
- : ((M['--n-color'] = P.siderColor),
- (M['--n-text-color'] = P.textColor),
- (M['--n-border-color'] = P.siderBorderColor),
- (M['--n-toggle-button-icon-color'] =
- P.siderToggleButtonIconColor)),
- M
- );
- }),
- S = w
- ? Mt(
- 'layout-sider',
- I(() => (e.inverted ? 'a' : 'b')),
- R,
- e
- )
- : void 0;
- return Object.assign(
- {
- scrollableElRef: n,
- scrollbarInstRef: r,
- mergedClsPrefix: g,
- mergedTheme: x,
- styleMaxWidth: o,
- mergedCollapsed: c,
- scrollContainerStyle: i,
- siderPlacement: a,
- handleNativeElScroll: m,
- handleTransitionend: y,
- handleTriggerClick: f,
- inlineThemeDisabled: w,
- cssVars: R,
- themeClass: S == null ? void 0 : S.themeClass,
- onRender: S == null ? void 0 : S.onRender
- },
- C
- );
- },
- render() {
- var e;
- const { mergedClsPrefix: t, mergedCollapsed: n, showTrigger: r } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'aside',
- {
- class: [
- `${t}-layout-sider`,
- this.themeClass,
- `${t}-layout-sider--${this.position}-positioned`,
- `${t}-layout-sider--${this.siderPlacement}-placement`,
- this.bordered && `${t}-layout-sider--bordered`,
- n && `${t}-layout-sider--collapsed`,
- (!n || this.showCollapsedContent) &&
- `${t}-layout-sider--show-content`
- ],
- onTransitionend: this.handleTransitionend,
- style: [
- this.inlineThemeDisabled ? void 0 : this.cssVars,
- { maxWidth: this.styleMaxWidth, width: vn(this.width) }
- ]
- },
- this.nativeScrollbar
- ? h(
- 'div',
- {
- class: `${t}-layout-sider-scroll-container`,
- onScroll: this.handleNativeElScroll,
- style: [
- this.scrollContainerStyle,
- { overflow: 'auto' },
- this.contentStyle
- ],
- ref: 'scrollableElRef'
- },
- this.$slots
- )
- : h(
- yr,
- Object.assign({}, this.scrollbarProps, {
- onScroll: this.onScroll,
- ref: 'scrollbarInstRef',
- style: this.scrollContainerStyle,
- contentStyle: this.contentStyle,
- theme: this.mergedTheme.peers.Scrollbar,
- themeOverrides: this.mergedTheme.peerOverrides.Scrollbar,
- builtinThemeOverrides:
- this.inverted && this.cssVars.__invertScrollbar === 'true'
- ? {
- colorHover: 'rgba(255, 255, 255, .4)',
- color: 'rgba(255, 255, 255, .3)'
- }
- : void 0
- }),
- this.$slots
- ),
- r
- ? r === 'bar'
- ? h(KJ, {
- clsPrefix: t,
- style: n ? this.collapsedTriggerStyle : this.triggerStyle,
- onClick: this.handleTriggerClick
- })
- : h(VJ, {
- clsPrefix: t,
- style: n ? this.collapsedTriggerStyle : this.triggerStyle,
- onClick: this.handleTriggerClick
- })
- : null,
- this.bordered
- ? h('div', { class: `${t}-layout-sider__border` })
- : null
- )
- );
- }
- }),
- GJ = F([
- O(
- 'list',
- `
- --n-merged-border-color: var(--n-border-color);
- --n-merged-color: var(--n-color);
- --n-merged-color-hover: var(--n-color-hover);
- margin: 0;
- font-size: var(--n-font-size);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- padding: 0;
- list-style-type: none;
- color: var(--n-text-color);
- background-color: var(--n-merged-color);
- `,
- [
- U('show-divider', [
- O('list-item', [
- F('&:not(:last-child)', [
- V(
- 'divider',
- `
- background-color: var(--n-merged-border-color);
- `
- )
- ])
- ])
- ]),
- U('clickable', [
- O(
- 'list-item',
- `
- cursor: pointer;
- `
- )
- ]),
- U(
- 'bordered',
- `
- border: 1px solid var(--n-merged-border-color);
- border-radius: var(--n-border-radius);
- `
- ),
- U('hoverable', [
- O(
- 'list-item',
- `
- border-radius: var(--n-border-radius);
- `,
- [
- F(
- '&:hover',
- `
- background-color: var(--n-merged-color-hover);
- `,
- [
- V(
- 'divider',
- `
- background-color: transparent;
- `
- )
- ]
- )
- ]
- )
- ]),
- U('bordered, hoverable', [
- O(
- 'list-item',
- `
- padding: 12px 20px;
- `
- ),
- V(
- 'header, footer',
- `
- padding: 12px 20px;
- `
- )
- ]),
- V(
- 'header, footer',
- `
- padding: 12px 0;
- box-sizing: border-box;
- transition: border-color .3s var(--n-bezier);
- `,
- [
- F(
- '&:not(:last-child)',
- `
- border-bottom: 1px solid var(--n-merged-border-color);
- `
- )
- ]
- ),
- O(
- 'list-item',
- `
- position: relative;
- padding: 12px 0;
- box-sizing: border-box;
- display: flex;
- flex-wrap: nowrap;
- align-items: center;
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- V(
- 'prefix',
- `
- margin-right: 20px;
- flex: 0;
- `
- ),
- V(
- 'suffix',
- `
- margin-left: 20px;
- flex: 0;
- `
- ),
- V(
- 'main',
- `
- flex: 1;
- `
- ),
- V(
- 'divider',
- `
- height: 1px;
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- background-color: transparent;
- transition: background-color .3s var(--n-bezier);
- pointer-events: none;
- `
- )
- ]
- )
- ]
- ),
- xl(
- O(
- 'list',
- `
- --n-merged-color-hover: var(--n-color-hover-modal);
- --n-merged-color: var(--n-color-modal);
- --n-merged-border-color: var(--n-border-color-modal);
- `
- )
- ),
- Ps(
- O(
- 'list',
- `
- --n-merged-color-hover: var(--n-color-hover-popover);
- --n-merged-color: var(--n-color-popover);
- --n-merged-border-color: var(--n-border-color-popover);
- `
- )
- )
- ]),
- XJ = Object.assign(Object.assign({}, Ke.props), {
- size: { type: String, default: 'medium' },
- bordered: Boolean,
- clickable: Boolean,
- hoverable: Boolean,
- showDivider: { type: Boolean, default: !0 }
- }),
- H3 = 'n-list',
- ZJ = ke({
- name: 'List',
- props: XJ,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- inlineThemeDisabled: n,
- mergedRtlRef: r
- } = yt(e),
- o = cr('List', r, t),
- i = Ke('List', '-list', GJ, AQ, e, t);
- Rt(H3, { showDividerRef: Ie(e, 'showDivider'), mergedClsPrefixRef: t });
- const a = I(() => {
- const {
- common: { cubicBezierEaseInOut: c },
- self: {
- fontSize: d,
- textColor: f,
- color: v,
- colorModal: p,
- colorPopover: m,
- borderColor: g,
- borderColorModal: w,
- borderColorPopover: x,
- borderRadius: y,
- colorHover: C,
- colorHoverModal: R,
- colorHoverPopover: S
- }
- } = i.value;
- return {
- '--n-font-size': d,
- '--n-bezier': c,
- '--n-text-color': f,
- '--n-color': v,
- '--n-border-radius': y,
- '--n-border-color': g,
- '--n-border-color-modal': w,
- '--n-border-color-popover': x,
- '--n-color-modal': p,
- '--n-color-popover': m,
- '--n-color-hover': C,
- '--n-color-hover-modal': R,
- '--n-color-hover-popover': S
- };
- }),
- s = n ? Mt('list', void 0, a, e) : void 0;
- return {
- mergedClsPrefix: t,
- rtlEnabled: o,
- cssVars: n ? void 0 : a,
- themeClass: s == null ? void 0 : s.themeClass,
- onRender: s == null ? void 0 : s.onRender
- };
- },
- render() {
- var e;
- const { $slots: t, mergedClsPrefix: n, onRender: r } = this;
- return (
- r == null || r(),
- h(
- 'ul',
- {
- class: [
- `${n}-list`,
- this.rtlEnabled && `${n}-list--rtl`,
- this.bordered && `${n}-list--bordered`,
- this.showDivider && `${n}-list--show-divider`,
- this.hoverable && `${n}-list--hoverable`,
- this.clickable && `${n}-list--clickable`,
- this.themeClass
- ],
- style: this.cssVars
- },
- t.header
- ? h('div', { class: `${n}-list__header` }, t.header())
- : null,
- (e = t.default) === null || e === void 0 ? void 0 : e.call(t),
- t.footer ? h('div', { class: `${n}-list__footer` }, t.footer()) : null
- )
- );
- }
- }),
- QJ = ke({
- name: 'ListItem',
- setup() {
- const e = Ze(H3, null);
- return (
- e || io('list-item', '`n-list-item` must be placed in `n-list`.'),
- { showDivider: e.showDividerRef, mergedClsPrefix: e.mergedClsPrefixRef }
- );
- },
- render() {
- const { $slots: e, mergedClsPrefix: t } = this;
- return h(
- 'li',
- { class: `${t}-list-item` },
- e.prefix
- ? h('div', { class: `${t}-list-item__prefix` }, e.prefix())
- : null,
- e.default ? h('div', { class: `${t}-list-item__main` }, e) : null,
- e.suffix
- ? h('div', { class: `${t}-list-item__suffix` }, e.suffix())
- : null,
- this.showDivider && h('div', { class: `${t}-list-item__divider` })
- );
- }
- }),
- j3 = 'n-loading-bar',
- W3 = 'n-loading-bar-api',
- JJ = O(
- 'loading-bar-container',
- `
- z-index: 5999;
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- height: 2px;
- `,
- [
- Cs({ enterDuration: '0.3s', leaveDuration: '0.8s' }),
- O(
- 'loading-bar',
- `
- width: 100%;
- transition:
- max-width 4s linear,
- background .2s linear;
- height: var(--n-height);
- `,
- [
- U(
- 'starting',
- `
- background: var(--n-color-loading);
- `
- ),
- U(
- 'finishing',
- `
- background: var(--n-color-loading);
- transition:
- max-width .2s linear,
- background .2s linear;
- `
- ),
- U(
- 'error',
- `
- background: var(--n-color-error);
- transition:
- max-width .2s linear,
- background .2s linear;
- `
- )
- ]
- )
- ]
- );
- var Ym =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- function Oh(e, t) {
- return `${t}-loading-bar ${t}-loading-bar--${e}`;
- }
- const eee = ke({
- name: 'LoadingBar',
- props: { containerStyle: [String, Object] },
- setup() {
- const { inlineThemeDisabled: e } = yt(),
- { props: t, mergedClsPrefixRef: n } = Ze(j3),
- r = Z(null),
- o = Z(!1),
- i = Z(!1),
- a = Z(!1),
- s = Z(!1);
- let c = !1;
- const d = Z(!1),
- f = I(() => {
- const { loadingBarStyle: _ } = t;
- return _ ? _[d.value ? 'error' : 'loading'] : '';
- });
- function v() {
- return Ym(this, void 0, void 0, function* () {
- (o.value = !1),
- (a.value = !1),
- (c = !1),
- (d.value = !1),
- (s.value = !0),
- yield mn(),
- (s.value = !1);
- });
- }
- function p(_ = 0, P = 80, T = 'starting') {
- return Ym(this, void 0, void 0, function* () {
- yield v(), (a.value = !0), (i.value = !0), yield mn();
- const E = r.value;
- E &&
- ((E.style.maxWidth = `${_}%`),
- (E.style.transition = 'none'),
- E.offsetWidth,
- (E.className = Oh(T, n.value)),
- (E.style.transition = ''),
- (E.style.maxWidth = `${P}%`));
- });
- }
- function m() {
- if (c || d.value || !a.value) return;
- c = !0;
- const _ = r.value;
- _ &&
- ((_.className = Oh('finishing', n.value)),
- (_.style.maxWidth = '100%'),
- _.offsetWidth,
- (a.value = !1));
- }
- function g() {
- if (!(c || d.value))
- if (!a.value)
- p(100, 100, 'error').then(() => {
- d.value = !0;
- const _ = r.value;
- _ &&
- ((_.className = Oh('error', n.value)),
- _.offsetWidth,
- (a.value = !1));
- });
- else {
- d.value = !0;
- const _ = r.value;
- if (!_) return;
- (_.className = Oh('error', n.value)),
- (_.style.maxWidth = '100%'),
- _.offsetWidth,
- (a.value = !1);
- }
- }
- function w() {
- o.value = !0;
- }
- function x() {
- o.value = !1;
- }
- function y() {
- return Ym(this, void 0, void 0, function* () {
- yield v();
- });
- }
- const C = Ke('LoadingBar', '-loading-bar', JJ, DQ, t, n),
- R = I(() => {
- const {
- self: { height: _, colorError: P, colorLoading: T }
- } = C.value;
- return {
- '--n-height': _,
- '--n-color-loading': T,
- '--n-color-error': P
- };
- }),
- S = e ? Mt('loading-bar', void 0, R, t) : void 0;
- return {
- mergedClsPrefix: n,
- loadingBarRef: r,
- started: i,
- loading: a,
- entering: o,
- transitionDisabled: s,
- start: p,
- error: g,
- finish: m,
- handleEnter: w,
- handleAfterEnter: x,
- handleAfterLeave: y,
- mergedLoadingBarStyle: f,
- cssVars: e ? void 0 : R,
- themeClass: S == null ? void 0 : S.themeClass,
- onRender: S == null ? void 0 : S.onRender
- };
- },
- render() {
- if (!this.started) return null;
- const { mergedClsPrefix: e } = this;
- return h(
- Kn,
- {
- name: 'fade-in-transition',
- appear: !0,
- onEnter: this.handleEnter,
- onAfterEnter: this.handleAfterEnter,
- onAfterLeave: this.handleAfterLeave,
- css: !this.transitionDisabled
- },
- {
- default: () => {
- var t;
- return (
- (t = this.onRender) === null || t === void 0 || t.call(this),
- Er(
- h(
- 'div',
- {
- class: [`${e}-loading-bar-container`, this.themeClass],
- style: this.containerStyle
- },
- h('div', {
- ref: 'loadingBarRef',
- class: [`${e}-loading-bar`],
- style: [this.cssVars, this.mergedLoadingBarStyle]
- })
- ),
- [[vi, this.loading || (!this.loading && this.entering)]]
- )
- );
- }
- }
- );
- }
- }),
- tee = Object.assign(Object.assign({}, Ke.props), {
- to: { type: [String, Object, Boolean], default: void 0 },
- containerStyle: [String, Object],
- loadingBarStyle: { type: Object }
- }),
- U3 = ke({
- name: 'LoadingBarProvider',
- props: tee,
- setup(e) {
- const t = yi(),
- n = Z(null),
- r = {
- start() {
- var i;
- t.value
- ? (i = n.value) === null || i === void 0 || i.start()
- : mn(() => {
- var a;
- (a = n.value) === null || a === void 0 || a.start();
- });
- },
- error() {
- var i;
- t.value
- ? (i = n.value) === null || i === void 0 || i.error()
- : mn(() => {
- var a;
- (a = n.value) === null || a === void 0 || a.error();
- });
- },
- finish() {
- var i;
- t.value
- ? (i = n.value) === null || i === void 0 || i.finish()
- : mn(() => {
- var a;
- (a = n.value) === null || a === void 0 || a.finish();
- });
- }
- },
- { mergedClsPrefixRef: o } = yt(e);
- return (
- Rt(W3, r),
- Rt(j3, { props: e, mergedClsPrefixRef: o }),
- Object.assign(r, { loadingBarRef: n })
- );
- },
- render() {
- var e, t;
- return h(
- on,
- null,
- h(
- Hu,
- { disabled: this.to === !1, to: this.to || 'body' },
- h(eee, { ref: 'loadingBarRef', containerStyle: this.containerStyle })
- ),
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e)
- );
- }
- });
- function nee() {
- const e = Ze(W3, null);
- return (
- e === null &&
- io('use-loading-bar', 'No outer <n-loading-bar-provider /> founded.'),
- e
- );
- }
- const nf = 'n-menu',
- Uy = 'n-submenu',
- Vy = 'n-menu-item-group',
- zh = 8;
- function Ky(e) {
- const t = Ze(nf),
- { props: n, mergedCollapsedRef: r } = t,
- o = Ze(Uy, null),
- i = Ze(Vy, null),
- a = I(() => n.mode === 'horizontal'),
- s = I(() =>
- a.value ? n.dropdownPlacement : 'tmNodes' in e ? 'right-start' : 'right'
- ),
- c = I(() => {
- var p;
- return Math.max(
- (p = n.collapsedIconSize) !== null && p !== void 0 ? p : n.iconSize,
- n.iconSize
- );
- }),
- d = I(() => {
- var p;
- return !a.value &&
- e.root &&
- r.value &&
- (p = n.collapsedIconSize) !== null &&
- p !== void 0
- ? p
- : n.iconSize;
- }),
- f = I(() => {
- if (a.value) return;
- const { collapsedWidth: p, indent: m, rootIndent: g } = n,
- { root: w, isGroup: x } = e,
- y = g === void 0 ? m : g;
- if (w) return r.value ? p / 2 - c.value / 2 : y;
- if (i) return m / 2 + i.paddingLeftRef.value;
- if (o) return (x ? m / 2 : m) + o.paddingLeftRef.value;
- }),
- v = I(() => {
- const { collapsedWidth: p, indent: m, rootIndent: g } = n,
- { value: w } = c,
- { root: x } = e;
- return a.value || !x || !r.value
- ? zh
- : (g === void 0 ? m : g) + w + zh - (p + w) / 2;
- });
- return {
- dropdownPlacement: s,
- activeIconSize: d,
- maxIconSize: c,
- paddingLeft: f,
- iconMarginRight: v,
- NMenu: t,
- NSubmenu: o
- };
- }
- const qy = {
- internalKey: { type: [String, Number], required: !0 },
- root: Boolean,
- isGroup: Boolean,
- level: { type: Number, required: !0 },
- title: [String, Function],
- extra: [String, Function]
- },
- V3 = Object.assign(Object.assign({}, qy), {
- tmNode: { type: Object, required: !0 },
- tmNodes: { type: Array, required: !0 }
- }),
- ree = ke({
- name: 'MenuOptionGroup',
- props: V3,
- setup(e) {
- Rt(Uy, null);
- const t = Ky(e);
- Rt(Vy, { paddingLeftRef: t.paddingLeft });
- const { mergedClsPrefixRef: n, props: r } = Ze(nf);
- return function () {
- const { value: o } = n,
- i = t.paddingLeft.value,
- { nodeProps: a } = r,
- s = a == null ? void 0 : a(e.tmNode.rawNode);
- return h(
- 'div',
- { class: `${o}-menu-item-group`, role: 'group' },
- h(
- 'div',
- Object.assign({}, s, {
- class: [
- `${o}-menu-item-group-title`,
- s == null ? void 0 : s.class
- ],
- style: [
- (s == null ? void 0 : s.style) || '',
- i !== void 0 ? `padding-left: ${i}px;` : ''
- ]
- }),
- _n(e.title),
- e.extra ? h(on, null, ' ', _n(e.extra)) : null
- ),
- h(
- 'div',
- null,
- e.tmNodes.map(c => Yy(c, r))
- )
- );
- };
- }
- }),
- K3 = ke({
- name: 'MenuOptionContent',
- props: {
- collapsed: Boolean,
- disabled: Boolean,
- title: [String, Function],
- icon: Function,
- extra: [String, Function],
- showArrow: Boolean,
- childActive: Boolean,
- hover: Boolean,
- paddingLeft: Number,
- selected: Boolean,
- maxIconSize: { type: Number, required: !0 },
- activeIconSize: { type: Number, required: !0 },
- iconMarginRight: { type: Number, required: !0 },
- clsPrefix: { type: String, required: !0 },
- onClick: Function,
- tmNode: { type: Object, required: !0 }
- },
- setup(e) {
- const { props: t } = Ze(nf);
- return {
- menuProps: t,
- style: I(() => {
- const { paddingLeft: n } = e;
- return { paddingLeft: n && `${n}px` };
- }),
- iconStyle: I(() => {
- const { maxIconSize: n, activeIconSize: r, iconMarginRight: o } = e;
- return {
- width: `${n}px`,
- height: `${n}px`,
- fontSize: `${r}px`,
- marginRight: `${o}px`
- };
- })
- };
- },
- render() {
- const {
- clsPrefix: e,
- tmNode: t,
- menuProps: {
- renderIcon: n,
- renderLabel: r,
- renderExtra: o,
- expandIcon: i
- }
- } = this,
- a = n ? n(t.rawNode) : _n(this.icon);
- return h(
- 'div',
- {
- onClick: s => {
- var c;
- (c = this.onClick) === null || c === void 0 || c.call(this, s);
- },
- role: 'none',
- class: [
- `${e}-menu-item-content`,
- {
- [`${e}-menu-item-content--selected`]: this.selected,
- [`${e}-menu-item-content--collapsed`]: this.collapsed,
- [`${e}-menu-item-content--child-active`]: this.childActive,
- [`${e}-menu-item-content--disabled`]: this.disabled,
- [`${e}-menu-item-content--hover`]: this.hover
- }
- ],
- style: this.style
- },
- a &&
- h(
- 'div',
- {
- class: `${e}-menu-item-content__icon`,
- style: this.iconStyle,
- role: 'none'
- },
- [a]
- ),
- h(
- 'div',
- { class: `${e}-menu-item-content-header`, role: 'none' },
- r ? r(t.rawNode) : _n(this.title),
- this.extra || o
- ? h(
- 'span',
- { class: `${e}-menu-item-content-header__extra` },
- ' ',
- o ? o(t.rawNode) : _n(this.extra)
- )
- : null
- ),
- this.showArrow
- ? h(
- At,
- {
- ariaHidden: !0,
- class: `${e}-menu-item-content__arrow`,
- clsPrefix: e
- },
- { default: () => (i ? i(t.rawNode) : h(zW, null)) }
- )
- : null
- );
- }
- }),
- q3 = Object.assign(Object.assign({}, qy), {
- rawNodes: { type: Array, default: () => [] },
- tmNodes: { type: Array, default: () => [] },
- tmNode: { type: Object, required: !0 },
- disabled: { type: Boolean, default: !1 },
- icon: Function,
- onClick: Function
- }),
- oee = ke({
- name: 'Submenu',
- props: q3,
- setup(e) {
- const t = Ky(e),
- { NMenu: n, NSubmenu: r } = t,
- { props: o, mergedCollapsedRef: i, mergedThemeRef: a } = n,
- s = I(() => {
- const { disabled: p } = e;
- return (r != null && r.mergedDisabledRef.value) || o.disabled
- ? !0
- : p;
- }),
- c = Z(!1);
- Rt(Uy, { paddingLeftRef: t.paddingLeft, mergedDisabledRef: s }),
- Rt(Vy, null);
- function d() {
- const { onClick: p } = e;
- p && p();
- }
- function f() {
- s.value || (i.value || n.toggleExpand(e.internalKey), d());
- }
- function v(p) {
- c.value = p;
- }
- return {
- menuProps: o,
- mergedTheme: a,
- doSelect: n.doSelect,
- inverted: n.invertedRef,
- isHorizontal: n.isHorizontalRef,
- mergedClsPrefix: n.mergedClsPrefixRef,
- maxIconSize: t.maxIconSize,
- activeIconSize: t.activeIconSize,
- iconMarginRight: t.iconMarginRight,
- dropdownPlacement: t.dropdownPlacement,
- dropdownShow: c,
- paddingLeft: t.paddingLeft,
- mergedDisabled: s,
- mergedValue: n.mergedValueRef,
- childActive: kt(() => n.activePathRef.value.includes(e.internalKey)),
- collapsed: I(() =>
- o.mode === 'horizontal'
- ? !1
- : i.value
- ? !0
- : !n.mergedExpandedKeysRef.value.includes(e.internalKey)
- ),
- dropdownEnabled: I(
- () => !s.value && (o.mode === 'horizontal' || i.value)
- ),
- handlePopoverShowChange: v,
- handleClick: f
- };
- },
- render() {
- var e;
- const {
- mergedClsPrefix: t,
- menuProps: { renderIcon: n, renderLabel: r }
- } = this,
- o = () => {
- const {
- isHorizontal: a,
- paddingLeft: s,
- collapsed: c,
- mergedDisabled: d,
- maxIconSize: f,
- activeIconSize: v,
- title: p,
- childActive: m,
- icon: g,
- handleClick: w,
- menuProps: { nodeProps: x },
- dropdownShow: y,
- iconMarginRight: C,
- tmNode: R,
- mergedClsPrefix: S
- } = this,
- _ = x == null ? void 0 : x(R.rawNode);
- return h(
- 'div',
- Object.assign({}, _, {
- class: [`${S}-menu-item`, _ == null ? void 0 : _.class],
- role: 'menuitem'
- }),
- h(K3, {
- tmNode: R,
- paddingLeft: s,
- collapsed: c,
- disabled: d,
- iconMarginRight: C,
- maxIconSize: f,
- activeIconSize: v,
- title: p,
- extra: this.extra,
- showArrow: !a,
- childActive: m,
- clsPrefix: S,
- icon: g,
- hover: y,
- onClick: w
- })
- );
- },
- i = () =>
- h(Cl, null, {
- default: () => {
- const { tmNodes: a, collapsed: s } = this;
- return s
- ? null
- : h(
- 'div',
- { class: `${t}-submenu-children`, role: 'menu' },
- a.map(c => Yy(c, this.menuProps))
- );
- }
- });
- return this.root
- ? h(
- Iy,
- Object.assign(
- { size: 'large', trigger: 'hover' },
- (e = this.menuProps) === null || e === void 0
- ? void 0
- : e.dropdownProps,
- {
- themeOverrides: this.mergedTheme.peerOverrides.Dropdown,
- theme: this.mergedTheme.peers.Dropdown,
- builtinThemeOverrides: {
- fontSizeLarge: '14px',
- optionIconSizeLarge: '18px'
- },
- value: this.mergedValue,
- disabled: !this.dropdownEnabled,
- placement: this.dropdownPlacement,
- keyField: this.menuProps.keyField,
- labelField: this.menuProps.labelField,
- childrenField: this.menuProps.childrenField,
- onUpdateShow: this.handlePopoverShowChange,
- options: this.rawNodes,
- onSelect: this.doSelect,
- inverted: this.inverted,
- renderIcon: n,
- renderLabel: r
- }
- ),
- {
- default: () =>
- h(
- 'div',
- {
- class: `${t}-submenu`,
- role: 'menuitem',
- 'aria-expanded': !this.collapsed
- },
- o(),
- this.isHorizontal ? null : i()
- )
- }
- )
- : h(
- 'div',
- {
- class: `${t}-submenu`,
- role: 'menuitem',
- 'aria-expanded': !this.collapsed
- },
- o(),
- i()
- );
- }
- }),
- Y3 = Object.assign(Object.assign({}, qy), {
- tmNode: { type: Object, required: !0 },
- disabled: Boolean,
- icon: Function,
- onClick: Function
- }),
- iee = ke({
- name: 'MenuOption',
- props: Y3,
- setup(e) {
- const t = Ky(e),
- { NSubmenu: n, NMenu: r } = t,
- { props: o, mergedClsPrefixRef: i, mergedCollapsedRef: a } = r,
- s = n ? n.mergedDisabledRef : { value: !1 },
- c = I(() => s.value || e.disabled);
- function d(v) {
- const { onClick: p } = e;
- p && p(v);
- }
- function f(v) {
- c.value || (r.doSelect(e.internalKey, e.tmNode.rawNode), d(v));
- }
- return {
- mergedClsPrefix: i,
- dropdownPlacement: t.dropdownPlacement,
- paddingLeft: t.paddingLeft,
- iconMarginRight: t.iconMarginRight,
- maxIconSize: t.maxIconSize,
- activeIconSize: t.activeIconSize,
- mergedTheme: r.mergedThemeRef,
- menuProps: o,
- dropdownEnabled: kt(
- () => e.root && a.value && o.mode !== 'horizontal' && !c.value
- ),
- selected: kt(() => r.mergedValueRef.value === e.internalKey),
- mergedDisabled: c,
- handleClick: f
- };
- },
- render() {
- const {
- mergedClsPrefix: e,
- mergedTheme: t,
- tmNode: n,
- menuProps: { renderLabel: r, nodeProps: o }
- } = this,
- i = o == null ? void 0 : o(n.rawNode);
- return h(
- 'div',
- Object.assign({}, i, {
- role: 'menuitem',
- class: [`${e}-menu-item`, i == null ? void 0 : i.class]
- }),
- h(
- Ip,
- {
- theme: t.peers.Tooltip,
- themeOverrides: t.peerOverrides.Tooltip,
- trigger: 'hover',
- placement: this.dropdownPlacement,
- disabled: !this.dropdownEnabled || this.title === void 0,
- internalExtraClass: ['menu-tooltip']
- },
- {
- default: () => (r ? r(n.rawNode) : _n(this.title)),
- trigger: () =>
- h(K3, {
- tmNode: n,
- clsPrefix: e,
- paddingLeft: this.paddingLeft,
- iconMarginRight: this.iconMarginRight,
- maxIconSize: this.maxIconSize,
- activeIconSize: this.activeIconSize,
- selected: this.selected,
- title: this.title,
- extra: this.extra,
- disabled: this.mergedDisabled,
- icon: this.icon,
- onClick: this.handleClick
- })
- }
- )
- );
- }
- }),
- aee = ke({
- name: 'MenuDivider',
- setup() {
- const e = Ze(nf),
- { mergedClsPrefixRef: t, isHorizontalRef: n } = e;
- return () =>
- n.value ? null : h('div', { class: `${t.value}-menu-divider` });
- }
- }),
- lee = Ki(V3),
- see = Ki(Y3),
- cee = Ki(q3);
- function G3(e) {
- return e.type === 'divider' || e.type === 'render';
- }
- function dee(e) {
- return e.type === 'divider';
- }
- function Yy(e, t) {
- const { rawNode: n } = e,
- { show: r } = n;
- if (r === !1) return null;
- if (G3(n))
- return dee(n) ? h(aee, Object.assign({ key: e.key }, n.props)) : null;
- const { labelField: o } = t,
- { key: i, level: a, isGroup: s } = e,
- c = Object.assign(Object.assign({}, n), {
- title: n.title || n[o],
- extra: n.titleExtra || n.extra,
- key: i,
- internalKey: i,
- level: a,
- root: a === 0,
- isGroup: s
- });
- return e.children
- ? e.isGroup
- ? h(ree, fi(c, lee, { tmNode: e, tmNodes: e.children, key: i }))
- : h(
- oee,
- fi(c, cee, {
- key: i,
- rawNodes: n[t.childrenField],
- tmNodes: e.children,
- tmNode: e
- })
- )
- : h(iee, fi(c, see, { key: i, tmNode: e }));
- }
- const u2 = [
- F('&::before', 'background-color: var(--n-item-color-hover);'),
- V(
- 'arrow',
- `
- color: var(--n-arrow-color-hover);
- `
- ),
- V(
- 'icon',
- `
- color: var(--n-item-icon-color-hover);
- `
- ),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-hover);
- `,
- [
- F(
- 'a',
- `
- color: var(--n-item-text-color-hover);
- `
- ),
- V(
- 'extra',
- `
- color: var(--n-item-text-color-hover);
- `
- )
- ]
- )
- ],
- f2 = [
- V(
- 'icon',
- `
- color: var(--n-item-icon-color-hover-horizontal);
- `
- ),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-hover-horizontal);
- `,
- [
- F(
- 'a',
- `
- color: var(--n-item-text-color-hover-horizontal);
- `
- ),
- V(
- 'extra',
- `
- color: var(--n-item-text-color-hover-horizontal);
- `
- )
- ]
- )
- ],
- uee = F([
- O(
- 'menu',
- `
- background-color: var(--n-color);
- color: var(--n-item-text-color);
- overflow: hidden;
- transition: background-color .3s var(--n-bezier);
- box-sizing: border-box;
- font-size: var(--n-font-size);
- padding-bottom: 6px;
- `,
- [
- U(
- 'horizontal',
- `
- display: inline-flex;
- padding-bottom: 0;
- `,
- [
- O('submenu', 'margin: 0;'),
- O('menu-item', 'margin: 0;'),
- O(
- 'menu-item-content',
- `
- padding: 0 20px;
- border-bottom: 2px solid #0000;
- `,
- [
- F('&::before', 'display: none;'),
- U(
- 'selected',
- 'border-bottom: 2px solid var(--n-border-color-horizontal)'
- )
- ]
- ),
- O('menu-item-content', [
- U('selected', [
- V('icon', 'color: var(--n-item-icon-color-active-horizontal);'),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-active-horizontal);
- `,
- [
- F(
- 'a',
- 'color: var(--n-item-text-color-active-horizontal);'
- ),
- V(
- 'extra',
- 'color: var(--n-item-text-color-active-horizontal);'
- )
- ]
- )
- ]),
- U(
- 'child-active',
- `
- border-bottom: 2px solid var(--n-border-color-horizontal);
- `,
- [
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-child-active-horizontal);
- `,
- [
- F(
- 'a',
- `
- color: var(--n-item-text-color-child-active-horizontal);
- `
- ),
- V(
- 'extra',
- `
- color: var(--n-item-text-color-child-active-horizontal);
- `
- )
- ]
- ),
- V(
- 'icon',
- `
- color: var(--n-item-icon-color-child-active-horizontal);
- `
- )
- ]
- ),
- jt('disabled', [
- jt('selected, child-active', [F('&:focus-within', f2)]),
- U('selected', [
- Jl(null, [
- V(
- 'icon',
- 'color: var(--n-item-icon-color-active-hover-horizontal);'
- ),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-active-hover-horizontal);
- `,
- [
- F(
- 'a',
- 'color: var(--n-item-text-color-active-hover-horizontal);'
- ),
- V(
- 'extra',
- 'color: var(--n-item-text-color-active-hover-horizontal);'
- )
- ]
- )
- ])
- ]),
- U('child-active', [
- Jl(null, [
- V(
- 'icon',
- 'color: var(--n-item-icon-color-child-active-hover-horizontal);'
- ),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-child-active-hover-horizontal);
- `,
- [
- F(
- 'a',
- 'color: var(--n-item-text-color-child-active-hover-horizontal);'
- ),
- V(
- 'extra',
- 'color: var(--n-item-text-color-child-active-hover-horizontal);'
- )
- ]
- )
- ])
- ]),
- Jl(
- 'border-bottom: 2px solid var(--n-border-color-horizontal);',
- f2
- )
- ]),
- O('menu-item-content-header', [
- F('a', 'color: var(--n-item-text-color-horizontal);')
- ])
- ])
- ]
- ),
- U('collapsed', [
- O('menu-item-content', [
- U('selected', [
- F(
- '&::before',
- `
- background-color: var(--n-item-color-active-collapsed) !important;
- `
- )
- ]),
- O('menu-item-content-header', 'opacity: 0;'),
- V('arrow', 'opacity: 0;'),
- V('icon', 'color: var(--n-item-icon-color-collapsed);')
- ])
- ]),
- O(
- 'menu-item',
- `
- height: var(--n-item-height);
- margin-top: 6px;
- position: relative;
- `
- ),
- O(
- 'menu-item-content',
- `
- box-sizing: border-box;
- line-height: 1.75;
- height: 100%;
- display: grid;
- grid-template-areas: "icon content arrow";
- grid-template-columns: auto 1fr auto;
- align-items: center;
- cursor: pointer;
- position: relative;
- padding-right: 18px;
- transition:
- background-color .3s var(--n-bezier),
- padding-left .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- F('> *', 'z-index: 1;'),
- F(
- '&::before',
- `
- z-index: auto;
- content: "";
- background-color: #0000;
- position: absolute;
- left: 8px;
- right: 8px;
- top: 0;
- bottom: 0;
- pointer-events: none;
- border-radius: var(--n-border-radius);
- transition: background-color .3s var(--n-bezier);
- `
- ),
- U(
- 'disabled',
- `
- opacity: .45;
- cursor: not-allowed;
- `
- ),
- U('collapsed', [V('arrow', 'transform: rotate(0);')]),
- U('selected', [
- F('&::before', 'background-color: var(--n-item-color-active);'),
- V('arrow', 'color: var(--n-arrow-color-active);'),
- V('icon', 'color: var(--n-item-icon-color-active);'),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-active);
- `,
- [
- F('a', 'color: var(--n-item-text-color-active);'),
- V('extra', 'color: var(--n-item-text-color-active);')
- ]
- )
- ]),
- U('child-active', [
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-child-active);
- `,
- [
- F(
- 'a',
- `
- color: var(--n-item-text-color-child-active);
- `
- ),
- V(
- 'extra',
- `
- color: var(--n-item-text-color-child-active);
- `
- )
- ]
- ),
- V(
- 'arrow',
- `
- color: var(--n-arrow-color-child-active);
- `
- ),
- V(
- 'icon',
- `
- color: var(--n-item-icon-color-child-active);
- `
- )
- ]),
- jt('disabled', [
- jt('selected, child-active', [F('&:focus-within', u2)]),
- U('selected', [
- Jl(null, [
- V('arrow', 'color: var(--n-arrow-color-active-hover);'),
- V('icon', 'color: var(--n-item-icon-color-active-hover);'),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-active-hover);
- `,
- [
- F('a', 'color: var(--n-item-text-color-active-hover);'),
- V(
- 'extra',
- 'color: var(--n-item-text-color-active-hover);'
- )
- ]
- )
- ])
- ]),
- U('child-active', [
- Jl(null, [
- V('arrow', 'color: var(--n-arrow-color-child-active-hover);'),
- V(
- 'icon',
- 'color: var(--n-item-icon-color-child-active-hover);'
- ),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-child-active-hover);
- `,
- [
- F(
- 'a',
- 'color: var(--n-item-text-color-child-active-hover);'
- ),
- V(
- 'extra',
- 'color: var(--n-item-text-color-child-active-hover);'
- )
- ]
- )
- ])
- ]),
- U('selected', [
- Jl(null, [
- F(
- '&::before',
- 'background-color: var(--n-item-color-active-hover);'
- )
- ])
- ]),
- Jl(null, u2)
- ]),
- V(
- 'icon',
- `
- grid-area: icon;
- color: var(--n-item-icon-color);
- transition:
- color .3s var(--n-bezier),
- font-size .3s var(--n-bezier),
- margin-right .3s var(--n-bezier);
- box-sizing: content-box;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- `
- ),
- V(
- 'arrow',
- `
- grid-area: arrow;
- font-size: 16px;
- color: var(--n-arrow-color);
- transform: rotate(180deg);
- opacity: 1;
- transition:
- color .3s var(--n-bezier),
- transform 0.2s var(--n-bezier),
- opacity 0.2s var(--n-bezier);
- `
- ),
- O(
- 'menu-item-content-header',
- `
- grid-area: content;
- transition:
- color .3s var(--n-bezier),
- opacity .3s var(--n-bezier);
- opacity: 1;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- color: var(--n-item-text-color);
- `,
- [
- F(
- 'a',
- `
- outline: none;
- text-decoration: none;
- transition: color .3s var(--n-bezier);
- color: var(--n-item-text-color);
- `,
- [
- F(
- '&::before',
- `
- content: "";
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `
- )
- ]
- ),
- V(
- 'extra',
- `
- font-size: .93em;
- color: var(--n-group-text-color);
- transition: color .3s var(--n-bezier);
- `
- )
- ]
- )
- ]
- ),
- O(
- 'submenu',
- `
- cursor: pointer;
- position: relative;
- margin-top: 6px;
- `,
- [
- O(
- 'menu-item-content',
- `
- height: var(--n-item-height);
- `
- ),
- O(
- 'submenu-children',
- `
- overflow: hidden;
- padding: 0;
- `,
- [Ss({ duration: '.2s' })]
- )
- ]
- ),
- O('menu-item-group', [
- O(
- 'menu-item-group-title',
- `
- margin-top: 6px;
- color: var(--n-group-text-color);
- cursor: default;
- font-size: .93em;
- height: 36px;
- display: flex;
- align-items: center;
- transition:
- padding-left .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `
- )
- ])
- ]
- ),
- O('menu-tooltip', [
- F(
- 'a',
- `
- color: inherit;
- text-decoration: none;
- `
- )
- ]),
- O(
- 'menu-divider',
- `
- transition: background-color .3s var(--n-bezier);
- background-color: var(--n-divider-color);
- height: 1px;
- margin: 6px 18px;
- `
- )
- ]);
- function Jl(e, t) {
- return [U('hover', e, t), F('&:hover', e, t)];
- }
- const fee = Object.assign(Object.assign({}, Ke.props), {
- options: { type: Array, default: () => [] },
- collapsed: { type: Boolean, default: void 0 },
- collapsedWidth: { type: Number, default: 48 },
- iconSize: { type: Number, default: 20 },
- collapsedIconSize: { type: Number, default: 24 },
- rootIndent: Number,
- indent: { type: Number, default: 32 },
- labelField: { type: String, default: 'label' },
- keyField: { type: String, default: 'key' },
- childrenField: { type: String, default: 'children' },
- disabledField: { type: String, default: 'disabled' },
- defaultExpandAll: Boolean,
- defaultExpandedKeys: Array,
- expandedKeys: Array,
- value: [String, Number],
- defaultValue: { type: [String, Number], default: null },
- mode: { type: String, default: 'vertical' },
- watchProps: { type: Array, default: void 0 },
- disabled: Boolean,
- show: { type: Boolean, default: !0 },
- inverted: Boolean,
- 'onUpdate:expandedKeys': [Function, Array],
- onUpdateExpandedKeys: [Function, Array],
- onUpdateValue: [Function, Array],
- 'onUpdate:value': [Function, Array],
- expandIcon: Function,
- renderIcon: Function,
- renderLabel: Function,
- renderExtra: Function,
- dropdownProps: Object,
- accordion: Boolean,
- nodeProps: Function,
- items: Array,
- onOpenNamesChange: [Function, Array],
- onSelect: [Function, Array],
- onExpandedNamesChange: [Function, Array],
- expandedNames: Array,
- defaultExpandedNames: Array,
- dropdownPlacement: { type: String, default: 'bottom' }
- }),
- hee = ke({
- name: 'Menu',
- props: fee,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Menu', '-menu', uee, NQ, e, t),
- o = Ze(B3, null),
- i = I(() => {
- var E;
- const { collapsed: z } = e;
- if (z !== void 0) return z;
- if (o) {
- const { collapseModeRef: k, collapsedRef: M } = o;
- if (k.value === 'width')
- return (E = M.value) !== null && E !== void 0 ? E : !1;
- }
- return !1;
- }),
- a = I(() => {
- const { keyField: E, childrenField: z, disabledField: k } = e;
- return rd(e.items || e.options, {
- getIgnored(M) {
- return G3(M);
- },
- getChildren(M) {
- return M[z];
- },
- getDisabled(M) {
- return M[k];
- },
- getKey(M) {
- var A;
- return (A = M[E]) !== null && A !== void 0 ? A : M.name;
- }
- });
- }),
- s = I(() => new Set(a.value.treeNodes.map(E => E.key))),
- { watchProps: c } = e,
- d = Z(null);
- c != null && c.includes('defaultValue')
- ? Bn(() => {
- d.value = e.defaultValue;
- })
- : (d.value = e.defaultValue);
- const f = Ie(e, 'value'),
- v = En(f, d),
- p = Z([]),
- m = () => {
- p.value = e.defaultExpandAll
- ? a.value.getNonLeafKeys()
- : e.defaultExpandedNames ||
- e.defaultExpandedKeys ||
- a.value.getPath(v.value, { includeSelf: !1 }).keyPath;
- };
- c != null && c.includes('defaultExpandedKeys') ? Bn(m) : m();
- const g = xs(e, ['expandedNames', 'expandedKeys']),
- w = En(g, p),
- x = I(() => a.value.treeNodes),
- y = I(() => a.value.getPath(v.value).keyPath);
- Rt(nf, {
- props: e,
- mergedCollapsedRef: i,
- mergedThemeRef: r,
- mergedValueRef: v,
- mergedExpandedKeysRef: w,
- activePathRef: y,
- mergedClsPrefixRef: t,
- isHorizontalRef: I(() => e.mode === 'horizontal'),
- invertedRef: Ie(e, 'inverted'),
- doSelect: C,
- toggleExpand: S
- });
- function C(E, z) {
- const { 'onUpdate:value': k, onUpdateValue: M, onSelect: A } = e;
- M && Me(M, E, z), k && Me(k, E, z), A && Me(A, E, z), (d.value = E);
- }
- function R(E) {
- const {
- 'onUpdate:expandedKeys': z,
- onUpdateExpandedKeys: k,
- onExpandedNamesChange: M,
- onOpenNamesChange: A
- } = e;
- z && Me(z, E),
- k && Me(k, E),
- M && Me(M, E),
- A && Me(A, E),
- (p.value = E);
- }
- function S(E) {
- const z = Array.from(w.value),
- k = z.findIndex(M => M === E);
- if (~k) z.splice(k, 1);
- else {
- if (e.accordion && s.value.has(E)) {
- const M = z.findIndex(A => s.value.has(A));
- M > -1 && z.splice(M, 1);
- }
- z.push(E);
- }
- R(z);
- }
- const _ = E => {
- const z = a.value.getPath(E ?? v.value, { includeSelf: !1 }).keyPath;
- if (!z.length) return;
- const k = Array.from(w.value),
- M = new Set([...k, ...z]);
- e.accordion &&
- s.value.forEach(A => {
- M.has(A) && !z.includes(A) && M.delete(A);
- }),
- R(Array.from(M));
- },
- P = I(() => {
- const { inverted: E } = e,
- {
- common: { cubicBezierEaseInOut: z },
- self: k
- } = r.value,
- {
- borderRadius: M,
- borderColorHorizontal: A,
- fontSize: D,
- itemHeight: L,
- dividerColor: H
- } = k,
- B = {
- '--n-divider-color': H,
- '--n-bezier': z,
- '--n-font-size': D,
- '--n-border-color-horizontal': A,
- '--n-border-radius': M,
- '--n-item-height': L
- };
- return (
- E
- ? ((B['--n-group-text-color'] = k.groupTextColorInverted),
- (B['--n-color'] = k.colorInverted),
- (B['--n-item-text-color'] = k.itemTextColorInverted),
- (B['--n-item-text-color-hover'] = k.itemTextColorHoverInverted),
- (B['--n-item-text-color-active'] =
- k.itemTextColorActiveInverted),
- (B['--n-item-text-color-child-active'] =
- k.itemTextColorChildActiveInverted),
- (B['--n-item-text-color-child-active-hover'] =
- k.itemTextColorChildActiveInverted),
- (B['--n-item-text-color-active-hover'] =
- k.itemTextColorActiveHoverInverted),
- (B['--n-item-icon-color'] = k.itemIconColorInverted),
- (B['--n-item-icon-color-hover'] = k.itemIconColorHoverInverted),
- (B['--n-item-icon-color-active'] =
- k.itemIconColorActiveInverted),
- (B['--n-item-icon-color-active-hover'] =
- k.itemIconColorActiveHoverInverted),
- (B['--n-item-icon-color-child-active'] =
- k.itemIconColorChildActiveInverted),
- (B['--n-item-icon-color-child-active-hover'] =
- k.itemIconColorChildActiveHoverInverted),
- (B['--n-item-icon-color-collapsed'] =
- k.itemIconColorCollapsedInverted),
- (B['--n-item-text-color-horizontal'] =
- k.itemTextColorHorizontalInverted),
- (B['--n-item-text-color-hover-horizontal'] =
- k.itemTextColorHoverHorizontalInverted),
- (B['--n-item-text-color-active-horizontal'] =
- k.itemTextColorActiveHorizontalInverted),
- (B['--n-item-text-color-child-active-horizontal'] =
- k.itemTextColorChildActiveHorizontalInverted),
- (B['--n-item-text-color-child-active-hover-horizontal'] =
- k.itemTextColorChildActiveHoverHorizontalInverted),
- (B['--n-item-text-color-active-hover-horizontal'] =
- k.itemTextColorActiveHoverHorizontalInverted),
- (B['--n-item-icon-color-horizontal'] =
- k.itemIconColorHorizontalInverted),
- (B['--n-item-icon-color-hover-horizontal'] =
- k.itemIconColorHoverHorizontalInverted),
- (B['--n-item-icon-color-active-horizontal'] =
- k.itemIconColorActiveHorizontalInverted),
- (B['--n-item-icon-color-active-hover-horizontal'] =
- k.itemIconColorActiveHoverHorizontalInverted),
- (B['--n-item-icon-color-child-active-horizontal'] =
- k.itemIconColorChildActiveHorizontalInverted),
- (B['--n-item-icon-color-child-active-hover-horizontal'] =
- k.itemIconColorChildActiveHoverHorizontalInverted),
- (B['--n-arrow-color'] = k.arrowColorInverted),
- (B['--n-arrow-color-hover'] = k.arrowColorHoverInverted),
- (B['--n-arrow-color-active'] = k.arrowColorActiveInverted),
- (B['--n-arrow-color-active-hover'] =
- k.arrowColorActiveHoverInverted),
- (B['--n-arrow-color-child-active'] =
- k.arrowColorChildActiveInverted),
- (B['--n-arrow-color-child-active-hover'] =
- k.arrowColorChildActiveHoverInverted),
- (B['--n-item-color-hover'] = k.itemColorHoverInverted),
- (B['--n-item-color-active'] = k.itemColorActiveInverted),
- (B['--n-item-color-active-hover'] =
- k.itemColorActiveHoverInverted),
- (B['--n-item-color-active-collapsed'] =
- k.itemColorActiveCollapsedInverted))
- : ((B['--n-group-text-color'] = k.groupTextColor),
- (B['--n-color'] = k.color),
- (B['--n-item-text-color'] = k.itemTextColor),
- (B['--n-item-text-color-hover'] = k.itemTextColorHover),
- (B['--n-item-text-color-active'] = k.itemTextColorActive),
- (B['--n-item-text-color-child-active'] =
- k.itemTextColorChildActive),
- (B['--n-item-text-color-child-active-hover'] =
- k.itemTextColorChildActiveHover),
- (B['--n-item-text-color-active-hover'] =
- k.itemTextColorActiveHover),
- (B['--n-item-icon-color'] = k.itemIconColor),
- (B['--n-item-icon-color-hover'] = k.itemIconColorHover),
- (B['--n-item-icon-color-active'] = k.itemIconColorActive),
- (B['--n-item-icon-color-active-hover'] =
- k.itemIconColorActiveHover),
- (B['--n-item-icon-color-child-active'] =
- k.itemIconColorChildActive),
- (B['--n-item-icon-color-child-active-hover'] =
- k.itemIconColorChildActiveHover),
- (B['--n-item-icon-color-collapsed'] = k.itemIconColorCollapsed),
- (B['--n-item-text-color-horizontal'] =
- k.itemTextColorHorizontal),
- (B['--n-item-text-color-hover-horizontal'] =
- k.itemTextColorHoverHorizontal),
- (B['--n-item-text-color-active-horizontal'] =
- k.itemTextColorActiveHorizontal),
- (B['--n-item-text-color-child-active-horizontal'] =
- k.itemTextColorChildActiveHorizontal),
- (B['--n-item-text-color-child-active-hover-horizontal'] =
- k.itemTextColorChildActiveHoverHorizontal),
- (B['--n-item-text-color-active-hover-horizontal'] =
- k.itemTextColorActiveHoverHorizontal),
- (B['--n-item-icon-color-horizontal'] =
- k.itemIconColorHorizontal),
- (B['--n-item-icon-color-hover-horizontal'] =
- k.itemIconColorHoverHorizontal),
- (B['--n-item-icon-color-active-horizontal'] =
- k.itemIconColorActiveHorizontal),
- (B['--n-item-icon-color-active-hover-horizontal'] =
- k.itemIconColorActiveHoverHorizontal),
- (B['--n-item-icon-color-child-active-horizontal'] =
- k.itemIconColorChildActiveHorizontal),
- (B['--n-item-icon-color-child-active-hover-horizontal'] =
- k.itemIconColorChildActiveHoverHorizontal),
- (B['--n-arrow-color'] = k.arrowColor),
- (B['--n-arrow-color-hover'] = k.arrowColorHover),
- (B['--n-arrow-color-active'] = k.arrowColorActive),
- (B['--n-arrow-color-active-hover'] = k.arrowColorActiveHover),
- (B['--n-arrow-color-child-active'] = k.arrowColorChildActive),
- (B['--n-arrow-color-child-active-hover'] =
- k.arrowColorChildActiveHover),
- (B['--n-item-color-hover'] = k.itemColorHover),
- (B['--n-item-color-active'] = k.itemColorActive),
- (B['--n-item-color-active-hover'] = k.itemColorActiveHover),
- (B['--n-item-color-active-collapsed'] =
- k.itemColorActiveCollapsed)),
- B
- );
- }),
- T = n
- ? Mt(
- 'menu',
- I(() => (e.inverted ? 'a' : 'b')),
- P,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- controlledExpandedKeys: g,
- uncontrolledExpanededKeys: p,
- mergedExpandedKeys: w,
- uncontrolledValue: d,
- mergedValue: v,
- activePath: y,
- tmNodes: x,
- mergedTheme: r,
- mergedCollapsed: i,
- cssVars: n ? void 0 : P,
- themeClass: T == null ? void 0 : T.themeClass,
- onRender: T == null ? void 0 : T.onRender,
- showOption: _
- };
- },
- render() {
- const { mergedClsPrefix: e, mode: t, themeClass: n, onRender: r } = this;
- return (
- r == null || r(),
- h(
- 'div',
- {
- role: t === 'horizontal' ? 'menubar' : 'menu',
- class: [
- `${e}-menu`,
- n,
- `${e}-menu--${t}`,
- this.mergedCollapsed && `${e}-menu--collapsed`
- ],
- style: this.cssVars
- },
- this.tmNodes.map(o => Yy(o, this.$props))
- )
- );
- }
- }),
- X3 = {
- icon: Function,
- type: { type: String, default: 'info' },
- content: [String, Number, Function],
- showIcon: { type: Boolean, default: !0 },
- closable: Boolean,
- keepAliveOnHover: Boolean,
- onClose: Function,
- onMouseenter: Function,
- onMouseleave: Function
- },
- Z3 = 'n-message-api',
- Q3 = 'n-message-provider',
- vee = F([
- O(
- 'message-wrapper',
- `
- margin: var(--n-margin);
- z-index: 0;
- transform-origin: top center;
- display: flex;
- `,
- [
- Ss({
- overflow: 'visible',
- originalTransition: 'transform .3s var(--n-bezier)',
- enterToProps: { transform: 'scale(1)' },
- leaveToProps: { transform: 'scale(0.85)' }
- })
- ]
- ),
- O(
- 'message',
- `
- box-sizing: border-box;
- display: flex;
- align-items: center;
- transition:
- color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- transform .3s var(--n-bezier),
- margin-bottom .3s var(--n-bezier);
- padding: var(--n-padding);
- border-radius: var(--n-border-radius);
- flex-wrap: nowrap;
- overflow: hidden;
- max-width: var(--n-max-width);
- color: var(--n-text-color);
- background-color: var(--n-color);
- box-shadow: var(--n-box-shadow);
- `,
- [
- V(
- 'content',
- `
- display: inline-block;
- line-height: var(--n-line-height);
- font-size: var(--n-font-size);
- `
- ),
- V(
- 'icon',
- `
- position: relative;
- margin: var(--n-icon-margin);
- height: var(--n-icon-size);
- width: var(--n-icon-size);
- font-size: var(--n-icon-size);
- flex-shrink: 0;
- `,
- [
- ['default', 'info', 'success', 'warning', 'error', 'loading'].map(
- e =>
- U(`${e}-type`, [
- F(
- '> *',
- `
- color: var(--n-icon-color-${e});
- transition: color .3s var(--n-bezier);
- `
- )
- ])
- ),
- F(
- '> *',
- `
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- `,
- [br()]
- )
- ]
- ),
- V(
- 'close',
- `
- margin: var(--n-close-margin);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- flex-shrink: 0;
- `,
- [
- F(
- '&:hover',
- `
- color: var(--n-close-icon-color-hover);
- `
- ),
- F(
- '&:active',
- `
- color: var(--n-close-icon-color-pressed);
- `
- )
- ]
- )
- ]
- ),
- O(
- 'message-container',
- `
- z-index: 6000;
- position: fixed;
- height: 0;
- overflow: visible;
- display: flex;
- flex-direction: column;
- align-items: center;
- `,
- [
- U(
- 'top',
- `
- top: 12px;
- left: 0;
- right: 0;
- `
- ),
- U(
- 'top-left',
- `
- top: 12px;
- left: 12px;
- right: 0;
- align-items: flex-start;
- `
- ),
- U(
- 'top-right',
- `
- top: 12px;
- left: 0;
- right: 12px;
- align-items: flex-end;
- `
- ),
- U(
- 'bottom',
- `
- bottom: 4px;
- left: 0;
- right: 0;
- justify-content: flex-end;
- `
- ),
- U(
- 'bottom-left',
- `
- bottom: 4px;
- left: 12px;
- right: 0;
- justify-content: flex-end;
- align-items: flex-start;
- `
- ),
- U(
- 'bottom-right',
- `
- bottom: 4px;
- left: 0;
- right: 12px;
- justify-content: flex-end;
- align-items: flex-end;
- `
- )
- ]
- )
- ]),
- pee = {
- info: () => h(bl, null),
- success: () => h(zs, null),
- warning: () => h(Es, null),
- error: () => h(Os, null),
- default: () => null
- },
- gee = ke({
- name: 'Message',
- props: Object.assign(Object.assign({}, X3), { render: Function }),
- setup(e) {
- const { inlineThemeDisabled: t, mergedRtlRef: n } = yt(e),
- { props: r, mergedClsPrefixRef: o } = Ze(Q3),
- i = cr('Message', n, o),
- a = Ke('Message', '-message', vee, RQ, r, o),
- s = I(() => {
- const { type: d } = e,
- {
- common: { cubicBezierEaseInOut: f },
- self: {
- padding: v,
- margin: p,
- maxWidth: m,
- iconMargin: g,
- closeMargin: w,
- closeSize: x,
- iconSize: y,
- fontSize: C,
- lineHeight: R,
- borderRadius: S,
- iconColorInfo: _,
- iconColorSuccess: P,
- iconColorWarning: T,
- iconColorError: E,
- iconColorLoading: z,
- closeIconSize: k,
- closeBorderRadius: M,
- [Ee('textColor', d)]: A,
- [Ee('boxShadow', d)]: D,
- [Ee('color', d)]: L,
- [Ee('closeColorHover', d)]: H,
- [Ee('closeColorPressed', d)]: B,
- [Ee('closeIconColor', d)]: q,
- [Ee('closeIconColorPressed', d)]: X,
- [Ee('closeIconColorHover', d)]: te
- }
- } = a.value;
- return {
- '--n-bezier': f,
- '--n-margin': p,
- '--n-padding': v,
- '--n-max-width': m,
- '--n-font-size': C,
- '--n-icon-margin': g,
- '--n-icon-size': y,
- '--n-close-icon-size': k,
- '--n-close-border-radius': M,
- '--n-close-size': x,
- '--n-close-margin': w,
- '--n-text-color': A,
- '--n-color': L,
- '--n-box-shadow': D,
- '--n-icon-color-info': _,
- '--n-icon-color-success': P,
- '--n-icon-color-warning': T,
- '--n-icon-color-error': E,
- '--n-icon-color-loading': z,
- '--n-close-color-hover': H,
- '--n-close-color-pressed': B,
- '--n-close-icon-color': q,
- '--n-close-icon-color-pressed': X,
- '--n-close-icon-color-hover': te,
- '--n-line-height': R,
- '--n-border-radius': S
- };
- }),
- c = t
- ? Mt(
- 'message',
- I(() => e.type[0]),
- s,
- {}
- )
- : void 0;
- return {
- mergedClsPrefix: o,
- rtlEnabled: i,
- messageProviderProps: r,
- handleClose() {
- var d;
- (d = e.onClose) === null || d === void 0 || d.call(e);
- },
- cssVars: t ? void 0 : s,
- themeClass: c == null ? void 0 : c.themeClass,
- onRender: c == null ? void 0 : c.onRender,
- placement: r.placement
- };
- },
- render() {
- const {
- render: e,
- type: t,
- closable: n,
- content: r,
- mergedClsPrefix: o,
- cssVars: i,
- themeClass: a,
- onRender: s,
- icon: c,
- handleClose: d,
- showIcon: f
- } = this;
- s == null || s();
- let v;
- return h(
- 'div',
- {
- class: [`${o}-message-wrapper`, a],
- onMouseenter: this.onMouseenter,
- onMouseleave: this.onMouseleave,
- style: [
- {
- alignItems: this.placement.startsWith('top')
- ? 'flex-start'
- : 'flex-end'
- },
- i
- ]
- },
- e
- ? e(this.$props)
- : h(
- 'div',
- {
- class: [
- `${o}-message ${o}-message--${t}-type`,
- this.rtlEnabled && `${o}-message--rtl`
- ]
- },
- (v = mee(c, t, o)) && f
- ? h(
- 'div',
- {
- class: `${o}-message__icon ${o}-message__icon--${t}-type`
- },
- h(Ji, null, { default: () => v })
- )
- : null,
- h('div', { class: `${o}-message__content` }, _n(r)),
- n
- ? h(Sl, {
- clsPrefix: o,
- class: `${o}-message__close`,
- onClick: d,
- absolute: !0
- })
- : null
- )
- );
- }
- });
- function mee(e, t, n) {
- if (typeof e == 'function') return e();
- {
- const r =
- t === 'loading'
- ? h(Oa, { clsPrefix: n, strokeWidth: 24, scale: 0.85 })
- : pee[t]();
- return r ? h(At, { clsPrefix: n, key: t }, { default: () => r }) : null;
- }
- }
- const bee = ke({
- name: 'MessageEnvironment',
- props: Object.assign(Object.assign({}, X3), {
- duration: { type: Number, default: 3e3 },
- onAfterLeave: Function,
- onLeave: Function,
- internalKey: { type: String, required: !0 },
- onInternalAfterLeave: Function,
- onHide: Function,
- onAfterHide: Function
- }),
- setup(e) {
- let t = null;
- const n = Z(!0);
- Hn(() => {
- r();
- });
- function r() {
- const { duration: f } = e;
- f && (t = window.setTimeout(a, f));
- }
- function o(f) {
- f.currentTarget === f.target &&
- t !== null &&
- (window.clearTimeout(t), (t = null));
- }
- function i(f) {
- f.currentTarget === f.target && r();
- }
- function a() {
- const { onHide: f } = e;
- (n.value = !1), t && (window.clearTimeout(t), (t = null)), f && f();
- }
- function s() {
- const { onClose: f } = e;
- f && f(), a();
- }
- function c() {
- const {
- onAfterLeave: f,
- onInternalAfterLeave: v,
- onAfterHide: p,
- internalKey: m
- } = e;
- f && f(), v && v(m), p && p();
- }
- function d() {
- a();
- }
- return {
- show: n,
- hide: a,
- handleClose: s,
- handleAfterLeave: c,
- handleMouseleave: i,
- handleMouseenter: o,
- deactivate: d
- };
- },
- render() {
- return h(
- Cl,
- {
- appear: !0,
- onAfterLeave: this.handleAfterLeave,
- onLeave: this.onLeave
- },
- {
- default: () => [
- this.show
- ? h(gee, {
- content: this.content,
- type: this.type,
- icon: this.icon,
- showIcon: this.showIcon,
- closable: this.closable,
- onClose: this.handleClose,
- onMouseenter: this.keepAliveOnHover
- ? this.handleMouseenter
- : void 0,
- onMouseleave: this.keepAliveOnHover
- ? this.handleMouseleave
- : void 0
- })
- : null
- ]
- }
- );
- }
- }),
- yee = Object.assign(Object.assign({}, Ke.props), {
- to: [String, Object],
- duration: { type: Number, default: 3e3 },
- keepAliveOnHover: Boolean,
- max: Number,
- placement: { type: String, default: 'top' },
- closable: Boolean,
- containerStyle: [String, Object]
- }),
- Gy = ke({
- name: 'MessageProvider',
- props: yee,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e),
- n = Z([]),
- r = Z({}),
- o = {
- create(c, d) {
- return i(c, Object.assign({ type: 'default' }, d));
- },
- info(c, d) {
- return i(c, Object.assign(Object.assign({}, d), { type: 'info' }));
- },
- success(c, d) {
- return i(
- c,
- Object.assign(Object.assign({}, d), { type: 'success' })
- );
- },
- warning(c, d) {
- return i(
- c,
- Object.assign(Object.assign({}, d), { type: 'warning' })
- );
- },
- error(c, d) {
- return i(c, Object.assign(Object.assign({}, d), { type: 'error' }));
- },
- loading(c, d) {
- return i(
- c,
- Object.assign(Object.assign({}, d), { type: 'loading' })
- );
- },
- destroyAll: s
- };
- Rt(Q3, { props: e, mergedClsPrefixRef: t }), Rt(Z3, o);
- function i(c, d) {
- const f = pi(),
- v = Qi(
- Object.assign(Object.assign({}, d), {
- content: c,
- key: f,
- destroy: () => {
- var m;
- (m = r.value[f]) === null || m === void 0 || m.hide();
- }
- })
- ),
- { max: p } = e;
- return p && n.value.length >= p && n.value.shift(), n.value.push(v), v;
- }
- function a(c) {
- n.value.splice(
- n.value.findIndex(d => d.key === c),
- 1
- ),
- delete r.value[c];
- }
- function s() {
- Object.values(r.value).forEach(c => {
- c.hide();
- });
- }
- return Object.assign(
- {
- mergedClsPrefix: t,
- messageRefs: r,
- messageList: n,
- handleAfterLeave: a
- },
- o
- );
- },
- render() {
- var e, t, n;
- return h(
- on,
- null,
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e),
- this.messageList.length
- ? h(
- Hu,
- { to: (n = this.to) !== null && n !== void 0 ? n : 'body' },
- h(
- 'div',
- {
- class: [
- `${this.mergedClsPrefix}-message-container`,
- `${this.mergedClsPrefix}-message-container--${this.placement}`
- ],
- key: 'message-container',
- style: this.containerStyle
- },
- this.messageList.map(r =>
- h(
- bee,
- Object.assign(
- {
- ref: o => {
- o && (this.messageRefs[r.key] = o);
- },
- internalKey: r.key,
- onInternalAfterLeave: this.handleAfterLeave
- },
- Xc(r, ['destroy'], void 0),
- {
- duration:
- r.duration === void 0 ? this.duration : r.duration,
- keepAliveOnHover:
- r.keepAliveOnHover === void 0
- ? this.keepAliveOnHover
- : r.keepAliveOnHover,
- closable:
- r.closable === void 0 ? this.closable : r.closable
- }
- )
- )
- )
- )
- )
- : null
- );
- }
- });
- function xee() {
- const e = Ze(Z3, null);
- return (
- e === null &&
- io(
- 'use-message',
- 'No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A.'
- ),
- e
- );
- }
- const Hp = 'n-notification-provider',
- wee = ke({
- name: 'NotificationContainer',
- props: {
- scrollable: { type: Boolean, required: !0 },
- placement: { type: String, required: !0 }
- },
- setup() {
- const {
- mergedThemeRef: e,
- mergedClsPrefixRef: t,
- wipTransitionCountRef: n
- } = Ze(Hp),
- r = Z(null);
- return (
- Bn(() => {
- var o, i;
- n.value > 0
- ? (o = r == null ? void 0 : r.value) === null ||
- o === void 0 ||
- o.classList.add('transitioning')
- : (i = r == null ? void 0 : r.value) === null ||
- i === void 0 ||
- i.classList.remove('transitioning');
- }),
- { selfRef: r, mergedTheme: e, mergedClsPrefix: t, transitioning: n }
- );
- },
- render() {
- const {
- $slots: e,
- scrollable: t,
- mergedClsPrefix: n,
- mergedTheme: r,
- placement: o
- } = this;
- return h(
- 'div',
- {
- ref: 'selfRef',
- class: [
- `${n}-notification-container`,
- t && `${n}-notification-container--scrollable`,
- `${n}-notification-container--${o}`
- ]
- },
- t
- ? h(
- yr,
- {
- theme: r.peers.Scrollbar,
- themeOverrides: r.peerOverrides.Scrollbar,
- contentStyle: { overflow: 'hidden' }
- },
- e
- )
- : e
- );
- }
- }),
- Cee = {
- info: () => h(bl, null),
- success: () => h(zs, null),
- warning: () => h(Es, null),
- error: () => h(Os, null),
- default: () => null
- },
- Xy = {
- closable: { type: Boolean, default: !0 },
- type: { type: String, default: 'default' },
- avatar: Function,
- title: [String, Function],
- description: [String, Function],
- content: [String, Function],
- meta: [String, Function],
- action: [String, Function],
- onClose: { type: Function, required: !0 },
- keepAliveOnHover: Boolean,
- onMouseenter: Function,
- onMouseleave: Function
- },
- See = Ki(Xy),
- _ee = ke({
- name: 'Notification',
- props: Xy,
- setup(e) {
- const { mergedClsPrefixRef: t, mergedThemeRef: n, props: r } = Ze(Hp),
- { inlineThemeDisabled: o, mergedRtlRef: i } = yt(),
- a = cr('Notification', i, t),
- s = I(() => {
- const { type: d } = e,
- {
- self: {
- color: f,
- textColor: v,
- closeIconColor: p,
- closeIconColorHover: m,
- closeIconColorPressed: g,
- headerTextColor: w,
- descriptionTextColor: x,
- actionTextColor: y,
- borderRadius: C,
- headerFontWeight: R,
- boxShadow: S,
- lineHeight: _,
- fontSize: P,
- closeMargin: T,
- closeSize: E,
- width: z,
- padding: k,
- closeIconSize: M,
- closeBorderRadius: A,
- closeColorHover: D,
- closeColorPressed: L,
- titleFontSize: H,
- metaFontSize: B,
- descriptionFontSize: q,
- [Ee('iconColor', d)]: X
- },
- common: {
- cubicBezierEaseOut: te,
- cubicBezierEaseIn: G,
- cubicBezierEaseInOut: Q
- }
- } = n.value,
- { left: re, right: se, top: pe, bottom: ce } = Go(k);
- return {
- '--n-color': f,
- '--n-font-size': P,
- '--n-text-color': v,
- '--n-description-text-color': x,
- '--n-action-text-color': y,
- '--n-title-text-color': w,
- '--n-title-font-weight': R,
- '--n-bezier': Q,
- '--n-bezier-ease-out': te,
- '--n-bezier-ease-in': G,
- '--n-border-radius': C,
- '--n-box-shadow': S,
- '--n-close-border-radius': A,
- '--n-close-color-hover': D,
- '--n-close-color-pressed': L,
- '--n-close-icon-color': p,
- '--n-close-icon-color-hover': m,
- '--n-close-icon-color-pressed': g,
- '--n-line-height': _,
- '--n-icon-color': X,
- '--n-close-margin': T,
- '--n-close-size': E,
- '--n-close-icon-size': M,
- '--n-width': z,
- '--n-padding-left': re,
- '--n-padding-right': se,
- '--n-padding-top': pe,
- '--n-padding-bottom': ce,
- '--n-title-font-size': H,
- '--n-meta-font-size': B,
- '--n-description-font-size': q
- };
- }),
- c = o
- ? Mt(
- 'notification',
- I(() => e.type[0]),
- s,
- r
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- showAvatar: I(() => e.avatar || e.type !== 'default'),
- handleCloseClick() {
- e.onClose();
- },
- rtlEnabled: a,
- cssVars: o ? void 0 : s,
- themeClass: c == null ? void 0 : c.themeClass,
- onRender: c == null ? void 0 : c.onRender
- };
- },
- render() {
- var e;
- const { mergedClsPrefix: t } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'div',
- {
- class: [`${t}-notification-wrapper`, this.themeClass],
- onMouseenter: this.onMouseenter,
- onMouseleave: this.onMouseleave,
- style: this.cssVars
- },
- h(
- 'div',
- {
- class: [
- `${t}-notification`,
- this.rtlEnabled && `${t}-notification--rtl`,
- this.themeClass,
- {
- [`${t}-notification--closable`]: this.closable,
- [`${t}-notification--show-avatar`]: this.showAvatar
- }
- ],
- style: this.cssVars
- },
- this.showAvatar
- ? h(
- 'div',
- { class: `${t}-notification__avatar` },
- this.avatar
- ? _n(this.avatar)
- : this.type !== 'default'
- ? h(
- At,
- { clsPrefix: t },
- { default: () => Cee[this.type]() }
- )
- : null
- )
- : null,
- this.closable
- ? h(Sl, {
- clsPrefix: t,
- class: `${t}-notification__close`,
- onClick: this.handleCloseClick
- })
- : null,
- h(
- 'div',
- { ref: 'bodyRef', class: `${t}-notification-main` },
- this.title
- ? h(
- 'div',
- { class: `${t}-notification-main__header` },
- _n(this.title)
- )
- : null,
- this.description
- ? h(
- 'div',
- { class: `${t}-notification-main__description` },
- _n(this.description)
- )
- : null,
- this.content
- ? h(
- 'pre',
- { class: `${t}-notification-main__content` },
- _n(this.content)
- )
- : null,
- this.meta || this.action
- ? h(
- 'div',
- { class: `${t}-notification-main-footer` },
- this.meta
- ? h(
- 'div',
- { class: `${t}-notification-main-footer__meta` },
- _n(this.meta)
- )
- : null,
- this.action
- ? h(
- 'div',
- { class: `${t}-notification-main-footer__action` },
- _n(this.action)
- )
- : null
- )
- : null
- )
- )
- )
- );
- }
- }),
- Ree = Object.assign(Object.assign({}, Xy), {
- duration: Number,
- onClose: Function,
- onLeave: Function,
- onAfterEnter: Function,
- onAfterLeave: Function,
- onHide: Function,
- onAfterShow: Function,
- onAfterHide: Function
- }),
- Pee = ke({
- name: 'NotificationEnvironment',
- props: Object.assign(Object.assign({}, Ree), {
- internalKey: { type: String, required: !0 },
- onInternalAfterLeave: { type: Function, required: !0 }
- }),
- setup(e) {
- const { wipTransitionCountRef: t } = Ze(Hp),
- n = Z(!0);
- let r = null;
- function o() {
- (n.value = !1), r && window.clearTimeout(r);
- }
- function i(g) {
- t.value++,
- mn(() => {
- (g.style.height = `${g.offsetHeight}px`),
- (g.style.maxHeight = '0'),
- (g.style.transition = 'none'),
- g.offsetHeight,
- (g.style.transition = ''),
- (g.style.maxHeight = g.style.height);
- });
- }
- function a(g) {
- t.value--, (g.style.height = ''), (g.style.maxHeight = '');
- const { onAfterEnter: w, onAfterShow: x } = e;
- w && w(), x && x();
- }
- function s(g) {
- t.value++,
- (g.style.maxHeight = `${g.offsetHeight}px`),
- (g.style.height = `${g.offsetHeight}px`),
- g.offsetHeight;
- }
- function c(g) {
- const { onHide: w } = e;
- w && w(), (g.style.maxHeight = '0'), g.offsetHeight;
- }
- function d() {
- t.value--;
- const {
- onAfterLeave: g,
- onInternalAfterLeave: w,
- onAfterHide: x,
- internalKey: y
- } = e;
- g && g(), w(y), x && x();
- }
- function f() {
- const { duration: g } = e;
- g && (r = window.setTimeout(o, g));
- }
- function v(g) {
- g.currentTarget === g.target &&
- r !== null &&
- (window.clearTimeout(r), (r = null));
- }
- function p(g) {
- g.currentTarget === g.target && f();
- }
- function m() {
- const { onClose: g } = e;
- g
- ? Promise.resolve(g()).then(w => {
- w !== !1 && o();
- })
- : o();
- }
- return (
- Hn(() => {
- e.duration && (r = window.setTimeout(o, e.duration));
- }),
- {
- show: n,
- hide: o,
- handleClose: m,
- handleAfterLeave: d,
- handleLeave: c,
- handleBeforeLeave: s,
- handleAfterEnter: a,
- handleBeforeEnter: i,
- handleMouseenter: v,
- handleMouseleave: p
- }
- );
- },
- render() {
- return h(
- Kn,
- {
- name: 'notification-transition',
- appear: !0,
- onBeforeEnter: this.handleBeforeEnter,
- onAfterEnter: this.handleAfterEnter,
- onBeforeLeave: this.handleBeforeLeave,
- onLeave: this.handleLeave,
- onAfterLeave: this.handleAfterLeave
- },
- {
- default: () =>
- this.show
- ? h(
- _ee,
- Object.assign({}, fi(this.$props, See), {
- onClose: this.handleClose,
- onMouseenter:
- this.duration && this.keepAliveOnHover
- ? this.handleMouseenter
- : void 0,
- onMouseleave:
- this.duration && this.keepAliveOnHover
- ? this.handleMouseleave
- : void 0
- })
- )
- : null
- }
- );
- }
- }),
- kee = F([
- O(
- 'notification-container',
- `
- z-index: 4000;
- position: fixed;
- overflow: visible;
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- `,
- [
- F('>', [
- O(
- 'scrollbar',
- `
- width: initial;
- overflow: visible;
- height: -moz-fit-content !important;
- height: fit-content !important;
- max-height: 100vh !important;
- `,
- [
- F('>', [
- O(
- 'scrollbar-container',
- `
- height: -moz-fit-content !important;
- height: fit-content !important;
- max-height: 100vh !important;
- `,
- [
- O(
- 'scrollbar-content',
- `
- padding-top: 12px;
- padding-bottom: 33px;
- `
- )
- ]
- )
- ])
- ]
- )
- ]),
- U(
- 'top, top-right, top-left',
- `
- top: 12px;
- `,
- [
- F('&.transitioning >', [
- O('scrollbar', [
- F('>', [
- O(
- 'scrollbar-container',
- `
- min-height: 100vh !important;
- `
- )
- ])
- ])
- ])
- ]
- ),
- U(
- 'bottom, bottom-right, bottom-left',
- `
- bottom: 12px;
- `,
- [
- F('>', [
- O('scrollbar', [
- F('>', [
- O('scrollbar-container', [
- O(
- 'scrollbar-content',
- `
- padding-bottom: 12px;
- `
- )
- ])
- ])
- ])
- ]),
- O(
- 'notification-wrapper',
- `
- display: flex;
- align-items: flex-end;
- margin-bottom: 0;
- margin-top: 12px;
- `
- )
- ]
- ),
- U(
- 'top, bottom',
- `
- left: 50%;
- transform: translateX(-50%);
- `,
- [
- O('notification-wrapper', [
- F(
- '&.notification-transition-enter-from, &.notification-transition-leave-to',
- `
- transform: scale(0.85);
- `
- ),
- F(
- '&.notification-transition-leave-from, &.notification-transition-enter-to',
- `
- transform: scale(1);
- `
- )
- ])
- ]
- ),
- U('top', [
- O(
- 'notification-wrapper',
- `
- transform-origin: top center;
- `
- )
- ]),
- U('bottom', [
- O(
- 'notification-wrapper',
- `
- transform-origin: bottom center;
- `
- )
- ]),
- U('top-right, bottom-right', [
- O(
- 'notification',
- `
- margin-left: 28px;
- margin-right: 16px;
- `
- )
- ]),
- U('top-left, bottom-left', [
- O(
- 'notification',
- `
- margin-left: 16px;
- margin-right: 28px;
- `
- )
- ]),
- U(
- 'top-right',
- `
- right: 0;
- `,
- [Eh('top-right')]
- ),
- U(
- 'top-left',
- `
- left: 0;
- `,
- [Eh('top-left')]
- ),
- U(
- 'bottom-right',
- `
- right: 0;
- `,
- [Eh('bottom-right')]
- ),
- U(
- 'bottom-left',
- `
- left: 0;
- `,
- [Eh('bottom-left')]
- ),
- U('scrollable', [
- U(
- 'top-right',
- `
- top: 0;
- `
- ),
- U(
- 'top-left',
- `
- top: 0;
- `
- ),
- U(
- 'bottom-right',
- `
- bottom: 0;
- `
- ),
- U(
- 'bottom-left',
- `
- bottom: 0;
- `
- )
- ]),
- O(
- 'notification-wrapper',
- `
- margin-bottom: 12px;
- `,
- [
- F(
- '&.notification-transition-enter-from, &.notification-transition-leave-to',
- `
- opacity: 0;
- margin-top: 0 !important;
- margin-bottom: 0 !important;
- `
- ),
- F(
- '&.notification-transition-leave-from, &.notification-transition-enter-to',
- `
- opacity: 1;
- `
- ),
- F(
- '&.notification-transition-leave-active',
- `
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- transform .3s var(--n-bezier-ease-in),
- max-height .3s var(--n-bezier),
- margin-top .3s linear,
- margin-bottom .3s linear,
- box-shadow .3s var(--n-bezier);
- `
- ),
- F(
- '&.notification-transition-enter-active',
- `
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- transform .3s var(--n-bezier-ease-out),
- max-height .3s var(--n-bezier),
- margin-top .3s linear,
- margin-bottom .3s linear,
- box-shadow .3s var(--n-bezier);
- `
- )
- ]
- ),
- O(
- 'notification',
- `
- background-color: var(--n-color);
- color: var(--n-text-color);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- font-family: inherit;
- font-size: var(--n-font-size);
- font-weight: 400;
- position: relative;
- display: flex;
- overflow: hidden;
- flex-shrink: 0;
- padding-left: var(--n-padding-left);
- padding-right: var(--n-padding-right);
- width: var(--n-width);
- border-radius: var(--n-border-radius);
- box-shadow: var(--n-box-shadow);
- box-sizing: border-box;
- opacity: 1;
- `,
- [
- V('avatar', [
- O('icon', { color: 'var(--n-icon-color)' }),
- O('base-icon', { color: 'var(--n-icon-color)' })
- ]),
- U('show-avatar', [
- O(
- 'notification-main',
- `
- margin-left: 40px;
- width: calc(100% - 40px);
- `
- )
- ]),
- U('closable', [
- O('notification-main', [
- F('> *:first-child', { paddingRight: '20px' })
- ]),
- V(
- 'close',
- `
- position: absolute;
- top: 0;
- right: 0;
- margin: var(--n-close-margin);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `
- )
- ]),
- V(
- 'avatar',
- `
- position: absolute;
- top: var(--n-padding-top);
- left: var(--n-padding-left);
- width: 28px;
- height: 28px;
- font-size: 28px;
- display: flex;
- align-items: center;
- justify-content: center;
- `,
- [O('icon', 'transition: color .3s var(--n-bezier);')]
- ),
- O(
- 'notification-main',
- `
- padding-top: var(--n-padding-top);
- padding-bottom: var(--n-padding-bottom);
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- margin-left: 8px;
- width: calc(100% - 8px);
- `,
- [
- O(
- 'notification-main-footer',
- `
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top: 12px;
- `,
- [
- V(
- 'meta',
- `
- font-size: var(--n-meta-font-size);
- transition: color .3s var(--n-bezier-ease-out);
- color: var(--n-description-text-color);
- `
- ),
- V(
- 'action',
- `
- cursor: pointer;
- transition: color .3s var(--n-bezier-ease-out);
- color: var(--n-action-text-color);
- `
- )
- ]
- ),
- V(
- 'header',
- `
- font-weight: var(--n-title-font-weight);
- font-size: var(--n-title-font-size);
- transition: color .3s var(--n-bezier-ease-out);
- color: var(--n-title-text-color);
- `
- ),
- V(
- 'description',
- `
- margin-top: 8px;
- font-size: var(--n-description-font-size);
- white-space: pre-wrap;
- word-wrap: break-word;
- transition: color .3s var(--n-bezier-ease-out);
- color: var(--n-description-text-color);
- `
- ),
- V(
- 'content',
- `
- line-height: var(--n-line-height);
- margin: 12px 0 0 0;
- font-family: inherit;
- white-space: pre-wrap;
- word-wrap: break-word;
- transition: color .3s var(--n-bezier-ease-out);
- color: var(--n-text-color);
- `,
- [F('&:first-child', { margin: 0 })]
- )
- ]
- )
- ]
- )
- ]
- )
- ]);
- function Eh(e) {
- const n = e.split('-')[1] === 'left' ? 'calc(-100%)' : 'calc(100%)',
- r = '0';
- return O('notification-wrapper', [
- F(
- '&.notification-transition-enter-from, &.notification-transition-leave-to',
- `
- transform: translate(${n}, 0);
- `
- ),
- F(
- '&.notification-transition-leave-from, &.notification-transition-enter-to',
- `
- transform: translate(${r}, 0);
- `
- )
- ]);
- }
- const J3 = 'n-notification-api',
- Tee = Object.assign(Object.assign({}, Ke.props), {
- containerStyle: [String, Object],
- to: [String, Object],
- scrollable: { type: Boolean, default: !0 },
- max: Number,
- placement: { type: String, default: 'top-right' },
- keepAliveOnHover: Boolean
- }),
- Zy = ke({
- name: 'NotificationProvider',
- props: Tee,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e),
- n = Z([]),
- r = {},
- o = new Set();
- function i(m) {
- const g = pi(),
- w = () => {
- o.add(g), r[g] && r[g].hide();
- },
- x = Qi(
- Object.assign(Object.assign({}, m), {
- key: g,
- destroy: w,
- hide: w,
- deactivate: w
- })
- ),
- { max: y } = e;
- if (y && n.value.length - o.size >= y) {
- let C = !1,
- R = 0;
- for (const S of n.value) {
- if (!o.has(S.key)) {
- r[S.key] && (S.destroy(), (C = !0));
- break;
- }
- R++;
- }
- C || n.value.splice(R, 1);
- }
- return n.value.push(x), x;
- }
- const a = ['info', 'success', 'warning', 'error'].map(
- m => g => i(Object.assign(Object.assign({}, g), { type: m }))
- );
- function s(m) {
- o.delete(m),
- n.value.splice(
- n.value.findIndex(g => g.key === m),
- 1
- );
- }
- const c = Ke('Notification', '-notification', kee, wQ, e, t),
- d = {
- create: i,
- info: a[0],
- success: a[1],
- warning: a[2],
- error: a[3],
- open: v,
- destroyAll: p
- },
- f = Z(0);
- Rt(J3, d),
- Rt(Hp, {
- props: e,
- mergedClsPrefixRef: t,
- mergedThemeRef: c,
- wipTransitionCountRef: f
- });
- function v(m) {
- return i(m);
- }
- function p() {
- Object.values(n.value).forEach(m => {
- m.hide();
- });
- }
- return Object.assign(
- {
- mergedClsPrefix: t,
- notificationList: n,
- notificationRefs: r,
- handleAfterLeave: s
- },
- d
- );
- },
- render() {
- var e, t, n;
- const { placement: r } = this;
- return h(
- on,
- null,
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e),
- this.notificationList.length
- ? h(
- Hu,
- { to: (n = this.to) !== null && n !== void 0 ? n : 'body' },
- h(
- wee,
- {
- style: this.containerStyle,
- scrollable: this.scrollable && r !== 'top' && r !== 'bottom',
- placement: r
- },
- {
- default: () =>
- this.notificationList.map(o =>
- h(
- Pee,
- Object.assign(
- {
- ref: i => {
- const a = o.key;
- i === null
- ? delete this.notificationRefs[a]
- : (this.notificationRefs[a] = i);
- }
- },
- Xc(o, ['destroy', 'hide', 'deactivate']),
- {
- internalKey: o.key,
- onInternalAfterLeave: this.handleAfterLeave,
- keepAliveOnHover:
- o.keepAliveOnHover === void 0
- ? this.keepAliveOnHover
- : o.keepAliveOnHover
- }
- )
- )
- )
- }
- )
- )
- : null
- );
- }
- });
- function $ee() {
- const e = Ze(J3, null);
- return (
- e === null &&
- io('use-notification', 'No outer `n-notification-provider` found.'),
- e
- );
- }
- const Oee = F([
- O('progress', { display: 'inline-block' }, [
- O(
- 'progress-icon',
- `
- color: var(--n-icon-color);
- transition: color .3s var(--n-bezier);
- `
- ),
- U(
- 'line',
- `
- width: 100%;
- display: block;
- `,
- [
- O(
- 'progress-content',
- `
- display: flex;
- align-items: center;
- `,
- [O('progress-graph', { flex: 1 })]
- ),
- O('progress-custom-content', { marginLeft: '14px' }),
- O(
- 'progress-icon',
- `
- width: 30px;
- padding-left: 14px;
- height: var(--n-icon-size-line);
- line-height: var(--n-icon-size-line);
- font-size: var(--n-icon-size-line);
- `,
- [
- U(
- 'as-text',
- `
- color: var(--n-text-color-line-outer);
- text-align: center;
- width: 40px;
- font-size: var(--n-font-size);
- padding-left: 4px;
- transition: color .3s var(--n-bezier);
- `
- )
- ]
- )
- ]
- ),
- U('circle, dashboard', { width: '120px' }, [
- O(
- 'progress-custom-content',
- `
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- display: flex;
- align-items: center;
- justify-content: center;
- `
- ),
- O(
- 'progress-text',
- `
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- display: flex;
- align-items: center;
- color: inherit;
- font-size: var(--n-font-size-circle);
- color: var(--n-text-color-circle);
- font-weight: var(--n-font-weight-circle);
- transition: color .3s var(--n-bezier);
- white-space: nowrap;
- `
- ),
- O(
- 'progress-icon',
- `
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- display: flex;
- align-items: center;
- color: var(--n-icon-color);
- font-size: var(--n-icon-size-circle);
- `
- )
- ]),
- U(
- 'multiple-circle',
- `
- width: 200px;
- color: inherit;
- `,
- [
- O(
- 'progress-text',
- `
- font-weight: var(--n-font-weight-circle);
- color: var(--n-text-color-circle);
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- display: flex;
- align-items: center;
- justify-content: center;
- transition: color .3s var(--n-bezier);
- `
- )
- ]
- ),
- O('progress-content', { position: 'relative' }),
- O('progress-graph', { position: 'relative' }, [
- O('progress-graph-circle', [
- F('svg', { verticalAlign: 'bottom' }),
- O(
- 'progress-graph-circle-fill',
- `
- stroke: var(--n-fill-color);
- transition:
- opacity .3s var(--n-bezier),
- stroke .3s var(--n-bezier),
- stroke-dasharray .3s var(--n-bezier);
- `,
- [U('empty', { opacity: 0 })]
- ),
- O(
- 'progress-graph-circle-rail',
- `
- transition: stroke .3s var(--n-bezier);
- overflow: hidden;
- stroke: var(--n-rail-color);
- `
- )
- ]),
- O('progress-graph-line', [
- U('indicator-inside', [
- O(
- 'progress-graph-line-rail',
- `
- height: 16px;
- line-height: 16px;
- border-radius: 10px;
- `,
- [
- O(
- 'progress-graph-line-fill',
- `
- height: inherit;
- border-radius: 10px;
- `
- ),
- O(
- 'progress-graph-line-indicator',
- `
- background: #0000;
- white-space: nowrap;
- text-align: right;
- margin-left: 14px;
- margin-right: 14px;
- height: inherit;
- font-size: 12px;
- color: var(--n-text-color-line-inner);
- transition: color .3s var(--n-bezier);
- `
- )
- ]
- )
- ]),
- U(
- 'indicator-inside-label',
- `
- height: 16px;
- display: flex;
- align-items: center;
- `,
- [
- O(
- 'progress-graph-line-rail',
- `
- flex: 1;
- transition: background-color .3s var(--n-bezier);
- `
- ),
- O(
- 'progress-graph-line-indicator',
- `
- background: var(--n-fill-color);
- font-size: 12px;
- transform: translateZ(0);
- display: flex;
- vertical-align: middle;
- height: 16px;
- line-height: 16px;
- padding: 0 10px;
- border-radius: 10px;
- position: absolute;
- white-space: nowrap;
- color: var(--n-text-color-line-inner);
- transition:
- right .2s var(--n-bezier),
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `
- )
- ]
- ),
- O(
- 'progress-graph-line-rail',
- `
- position: relative;
- overflow: hidden;
- height: var(--n-rail-height);
- border-radius: 5px;
- background-color: var(--n-rail-color);
- transition: background-color .3s var(--n-bezier);
- `,
- [
- O(
- 'progress-graph-line-fill',
- `
- background: var(--n-fill-color);
- position: relative;
- border-radius: 5px;
- height: inherit;
- width: 100%;
- max-width: 0%;
- transition:
- background-color .3s var(--n-bezier),
- max-width .2s var(--n-bezier);
- `,
- [
- U('processing', [
- F(
- '&::after',
- `
- content: "";
- background-image: var(--n-line-bg-processing);
- animation: progress-processing-animation 2s var(--n-bezier) infinite;
- `
- )
- ])
- ]
- )
- ]
- )
- ])
- ])
- ]),
- F(
- '@keyframes progress-processing-animation',
- `
- 0% {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- right: 100%;
- opacity: 1;
- }
- 66% {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- right: 0;
- opacity: 0;
- }
- 100% {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- right: 0;
- opacity: 0;
- }
- `
- )
- ]),
- zee = {
- success: h(zs, null),
- error: h(Os, null),
- warning: h(Es, null),
- info: h(bl, null)
- },
- Eee = ke({
- name: 'ProgressLine',
- props: {
- clsPrefix: { type: String, required: !0 },
- percentage: { type: Number, default: 0 },
- railColor: String,
- railStyle: [String, Object],
- fillColor: String,
- status: { type: String, required: !0 },
- indicatorPlacement: { type: String, required: !0 },
- indicatorTextColor: String,
- unit: { type: String, default: '%' },
- processing: { type: Boolean, required: !0 },
- showIndicator: { type: Boolean, required: !0 },
- height: [String, Number],
- railBorderRadius: [String, Number],
- fillBorderRadius: [String, Number]
- },
- setup(e, { slots: t }) {
- const n = I(() => vn(e.height)),
- r = I(() =>
- e.railBorderRadius !== void 0
- ? vn(e.railBorderRadius)
- : e.height !== void 0
- ? vn(e.height, { c: 0.5 })
- : ''
- ),
- o = I(() =>
- e.fillBorderRadius !== void 0
- ? vn(e.fillBorderRadius)
- : e.railBorderRadius !== void 0
- ? vn(e.railBorderRadius)
- : e.height !== void 0
- ? vn(e.height, { c: 0.5 })
- : ''
- );
- return () => {
- const {
- indicatorPlacement: i,
- railColor: a,
- railStyle: s,
- percentage: c,
- unit: d,
- indicatorTextColor: f,
- status: v,
- showIndicator: p,
- fillColor: m,
- processing: g,
- clsPrefix: w
- } = e;
- return h(
- 'div',
- { class: `${w}-progress-content`, role: 'none' },
- h(
- 'div',
- { class: `${w}-progress-graph`, 'aria-hidden': !0 },
- h(
- 'div',
- {
- class: [
- `${w}-progress-graph-line`,
- { [`${w}-progress-graph-line--indicator-${i}`]: !0 }
- ]
- },
- h(
- 'div',
- {
- class: `${w}-progress-graph-line-rail`,
- style: [
- {
- backgroundColor: a,
- height: n.value,
- borderRadius: r.value
- },
- s
- ]
- },
- h(
- 'div',
- {
- class: [
- `${w}-progress-graph-line-fill`,
- g && `${w}-progress-graph-line-fill--processing`
- ],
- style: {
- maxWidth: `${e.percentage}%`,
- backgroundColor: m,
- height: n.value,
- lineHeight: n.value,
- borderRadius: o.value
- }
- },
- i === 'inside'
- ? h(
- 'div',
- {
- class: `${w}-progress-graph-line-indicator`,
- style: { color: f }
- },
- c,
- d
- )
- : null
- )
- )
- )
- ),
- p && i === 'outside'
- ? h(
- 'div',
- null,
- t.default
- ? h(
- 'div',
- {
- class: `${w}-progress-custom-content`,
- style: { color: f },
- role: 'none'
- },
- t.default()
- )
- : v === 'default'
- ? h(
- 'div',
- {
- role: 'none',
- class: `${w}-progress-icon ${w}-progress-icon--as-text`,
- style: { color: f }
- },
- c,
- d
- )
- : h(
- 'div',
- { class: `${w}-progress-icon`, 'aria-hidden': !0 },
- h(At, { clsPrefix: w }, { default: () => zee[v] })
- )
- )
- : null
- );
- };
- }
- }),
- Aee = {
- success: h(zs, null),
- error: h(Os, null),
- warning: h(Es, null),
- info: h(bl, null)
- },
- Mee = ke({
- name: 'ProgressCircle',
- props: {
- clsPrefix: { type: String, required: !0 },
- status: { type: String, required: !0 },
- strokeWidth: { type: Number, required: !0 },
- fillColor: String,
- railColor: String,
- railStyle: [String, Object],
- percentage: { type: Number, default: 0 },
- offsetDegree: { type: Number, default: 0 },
- showIndicator: { type: Boolean, required: !0 },
- indicatorTextColor: String,
- unit: String,
- viewBoxWidth: { type: Number, required: !0 },
- gapDegree: { type: Number, required: !0 },
- gapOffsetDegree: { type: Number, default: 0 }
- },
- setup(e, { slots: t }) {
- function n(r, o, i) {
- const { gapDegree: a, viewBoxWidth: s, strokeWidth: c } = e,
- d = 50,
- f = 0,
- v = d,
- p = 0,
- m = 2 * d,
- g = 50 + c / 2,
- w = `M ${g},${g} m ${f},${v}
- a ${d},${d} 0 1 1 ${p},${-m}
- a ${d},${d} 0 1 1 ${-p},${m}`,
- x = Math.PI * 2 * d,
- y = {
- stroke: i,
- strokeDasharray: `${(r / 100) * (x - a)}px ${s * 8}px`,
- strokeDashoffset: `-${a / 2}px`,
- transformOrigin: o ? 'center' : void 0,
- transform: o ? `rotate(${o}deg)` : void 0
- };
- return { pathString: w, pathStyle: y };
- }
- return () => {
- const {
- fillColor: r,
- railColor: o,
- strokeWidth: i,
- offsetDegree: a,
- status: s,
- percentage: c,
- showIndicator: d,
- indicatorTextColor: f,
- unit: v,
- gapOffsetDegree: p,
- clsPrefix: m
- } = e,
- { pathString: g, pathStyle: w } = n(100, 0, o),
- { pathString: x, pathStyle: y } = n(c, a, r),
- C = 100 + i;
- return h(
- 'div',
- { class: `${m}-progress-content`, role: 'none' },
- h(
- 'div',
- { class: `${m}-progress-graph`, 'aria-hidden': !0 },
- h(
- 'div',
- {
- class: `${m}-progress-graph-circle`,
- style: { transform: p ? `rotate(${p}deg)` : void 0 }
- },
- h(
- 'svg',
- { viewBox: `0 0 ${C} ${C}` },
- h(
- 'g',
- null,
- h('path', {
- class: `${m}-progress-graph-circle-rail`,
- d: g,
- 'stroke-width': i,
- 'stroke-linecap': 'round',
- fill: 'none',
- style: w
- })
- ),
- h(
- 'g',
- null,
- h('path', {
- class: [
- `${m}-progress-graph-circle-fill`,
- c === 0 && `${m}-progress-graph-circle-fill--empty`
- ],
- d: x,
- 'stroke-width': i,
- 'stroke-linecap': 'round',
- fill: 'none',
- style: y
- })
- )
- )
- )
- ),
- d
- ? h(
- 'div',
- null,
- t.default
- ? h(
- 'div',
- { class: `${m}-progress-custom-content`, role: 'none' },
- t.default()
- )
- : s !== 'default'
- ? h(
- 'div',
- { class: `${m}-progress-icon`, 'aria-hidden': !0 },
- h(At, { clsPrefix: m }, { default: () => Aee[s] })
- )
- : h(
- 'div',
- {
- class: `${m}-progress-text`,
- style: { color: f },
- role: 'none'
- },
- h('span', { class: `${m}-progress-text__percentage` }, c),
- h('span', { class: `${m}-progress-text__unit` }, v)
- )
- )
- : null
- );
- };
- }
- });
- function h2(e, t, n = 100) {
- return `m ${n / 2} ${n / 2 - e} a ${e} ${e} 0 1 1 0 ${
- 2 * e
- } a ${e} ${e} 0 1 1 0 -${2 * e}`;
- }
- const Iee = ke({
- name: 'ProgressMultipleCircle',
- props: {
- clsPrefix: { type: String, required: !0 },
- viewBoxWidth: { type: Number, required: !0 },
- percentage: { type: Array, default: [0] },
- strokeWidth: { type: Number, required: !0 },
- circleGap: { type: Number, required: !0 },
- showIndicator: { type: Boolean, required: !0 },
- fillColor: { type: Array, default: () => [] },
- railColor: { type: Array, default: () => [] },
- railStyle: { type: Array, default: () => [] }
- },
- setup(e, { slots: t }) {
- const n = I(() =>
- e.percentage.map(
- (o, i) =>
- `${
- ((Math.PI * o) / 100) *
- (e.viewBoxWidth / 2 -
- (e.strokeWidth / 2) * (1 + 2 * i) -
- e.circleGap * i) *
- 2
- }, ${e.viewBoxWidth * 8}`
- )
- );
- return () => {
- const {
- viewBoxWidth: r,
- strokeWidth: o,
- circleGap: i,
- showIndicator: a,
- fillColor: s,
- railColor: c,
- railStyle: d,
- percentage: f,
- clsPrefix: v
- } = e;
- return h(
- 'div',
- { class: `${v}-progress-content`, role: 'none' },
- h(
- 'div',
- { class: `${v}-progress-graph`, 'aria-hidden': !0 },
- h(
- 'div',
- { class: `${v}-progress-graph-circle` },
- h(
- 'svg',
- { viewBox: `0 0 ${r} ${r}` },
- f.map((p, m) =>
- h(
- 'g',
- { key: m },
- h('path', {
- class: `${v}-progress-graph-circle-rail`,
- d: h2(r / 2 - (o / 2) * (1 + 2 * m) - i * m, o, r),
- 'stroke-width': o,
- 'stroke-linecap': 'round',
- fill: 'none',
- style: [{ strokeDashoffset: 0, stroke: c[m] }, d[m]]
- }),
- h('path', {
- class: [
- `${v}-progress-graph-circle-fill`,
- p === 0 && `${v}-progress-graph-circle-fill--empty`
- ],
- d: h2(r / 2 - (o / 2) * (1 + 2 * m) - i * m, o, r),
- 'stroke-width': o,
- 'stroke-linecap': 'round',
- fill: 'none',
- style: {
- strokeDasharray: n.value[m],
- strokeDashoffset: 0,
- stroke: s[m]
- }
- })
- )
- )
- )
- )
- ),
- a && t.default
- ? h(
- 'div',
- null,
- h('div', { class: `${v}-progress-text` }, t.default())
- )
- : null
- );
- };
- }
- }),
- Dee = Object.assign(Object.assign({}, Ke.props), {
- processing: Boolean,
- type: { type: String, default: 'line' },
- gapDegree: Number,
- gapOffsetDegree: Number,
- status: { type: String, default: 'default' },
- railColor: [String, Array],
- railStyle: [String, Array],
- color: [String, Array],
- viewBoxWidth: { type: Number, default: 100 },
- strokeWidth: { type: Number, default: 7 },
- percentage: [Number, Array],
- unit: { type: String, default: '%' },
- showIndicator: { type: Boolean, default: !0 },
- indicatorPosition: { type: String, default: 'outside' },
- indicatorPlacement: { type: String, default: 'outside' },
- indicatorTextColor: String,
- circleGap: { type: Number, default: 1 },
- height: Number,
- borderRadius: [String, Number],
- fillBorderRadius: [String, Number],
- offsetDegree: Number
- }),
- eT = ke({
- name: 'Progress',
- props: Dee,
- setup(e) {
- const t = I(() => e.indicatorPlacement || e.indicatorPosition),
- n = I(() => {
- if (e.gapDegree || e.gapDegree === 0) return e.gapDegree;
- if (e.type === 'dashboard') return 75;
- }),
- { mergedClsPrefixRef: r, inlineThemeDisabled: o } = yt(e),
- i = Ke('Progress', '-progress', Oee, I3, e, r),
- a = I(() => {
- const { status: c } = e,
- {
- common: { cubicBezierEaseInOut: d },
- self: {
- fontSize: f,
- fontSizeCircle: v,
- railColor: p,
- railHeight: m,
- iconSizeCircle: g,
- iconSizeLine: w,
- textColorCircle: x,
- textColorLineInner: y,
- textColorLineOuter: C,
- lineBgProcessing: R,
- fontWeightCircle: S,
- [Ee('iconColor', c)]: _,
- [Ee('fillColor', c)]: P
- }
- } = i.value;
- return {
- '--n-bezier': d,
- '--n-fill-color': P,
- '--n-font-size': f,
- '--n-font-size-circle': v,
- '--n-font-weight-circle': S,
- '--n-icon-color': _,
- '--n-icon-size-circle': g,
- '--n-icon-size-line': w,
- '--n-line-bg-processing': R,
- '--n-rail-color': p,
- '--n-rail-height': m,
- '--n-text-color-circle': x,
- '--n-text-color-line-inner': y,
- '--n-text-color-line-outer': C
- };
- }),
- s = o
- ? Mt(
- 'progress',
- I(() => e.status[0]),
- a,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: r,
- mergedIndicatorPlacement: t,
- gapDeg: n,
- cssVars: o ? void 0 : a,
- themeClass: s == null ? void 0 : s.themeClass,
- onRender: s == null ? void 0 : s.onRender
- };
- },
- render() {
- const {
- type: e,
- cssVars: t,
- indicatorTextColor: n,
- showIndicator: r,
- status: o,
- railColor: i,
- railStyle: a,
- color: s,
- percentage: c,
- viewBoxWidth: d,
- strokeWidth: f,
- mergedIndicatorPlacement: v,
- unit: p,
- borderRadius: m,
- fillBorderRadius: g,
- height: w,
- processing: x,
- circleGap: y,
- mergedClsPrefix: C,
- gapDeg: R,
- gapOffsetDegree: S,
- themeClass: _,
- $slots: P,
- onRender: T
- } = this;
- return (
- T == null || T(),
- h(
- 'div',
- {
- class: [
- _,
- `${C}-progress`,
- `${C}-progress--${e}`,
- `${C}-progress--${o}`
- ],
- style: t,
- 'aria-valuemax': 100,
- 'aria-valuemin': 0,
- 'aria-valuenow': c,
- role:
- e === 'circle' || e === 'line' || e === 'dashboard'
- ? 'progressbar'
- : 'none'
- },
- e === 'circle' || e === 'dashboard'
- ? h(
- Mee,
- {
- clsPrefix: C,
- status: o,
- showIndicator: r,
- indicatorTextColor: n,
- railColor: i,
- fillColor: s,
- railStyle: a,
- offsetDegree: this.offsetDegree,
- percentage: c,
- viewBoxWidth: d,
- strokeWidth: f,
- gapDegree: R === void 0 ? (e === 'dashboard' ? 75 : 0) : R,
- gapOffsetDegree: S,
- unit: p
- },
- P
- )
- : e === 'line'
- ? h(
- Eee,
- {
- clsPrefix: C,
- status: o,
- showIndicator: r,
- indicatorTextColor: n,
- railColor: i,
- fillColor: s,
- railStyle: a,
- percentage: c,
- processing: x,
- indicatorPlacement: v,
- unit: p,
- fillBorderRadius: g,
- railBorderRadius: m,
- height: w
- },
- P
- )
- : e === 'multiple-circle'
- ? h(
- Iee,
- {
- clsPrefix: C,
- strokeWidth: f,
- railColor: i,
- fillColor: s,
- railStyle: a,
- viewBoxWidth: d,
- percentage: c,
- showIndicator: r,
- circleGap: y
- },
- P
- )
- : null
- )
- );
- }
- }),
- Fee = h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 36 36' },
- h('circle', { fill: '#FFCB4C', cx: '18', cy: '17.018', r: '17' }),
- h('path', {
- fill: '#65471B',
- d: 'M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z'
- }),
- h('ellipse', {
- fill: '#65471B',
- cx: '13.119',
- cy: '11.174',
- rx: '2.125',
- ry: '2.656'
- }),
- h('ellipse', {
- fill: '#65471B',
- cx: '24.375',
- cy: '12.236',
- rx: '2.125',
- ry: '2.656'
- }),
- h('path', {
- fill: '#F19020',
- d: 'M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z'
- }),
- h('path', {
- fill: '#65471B',
- d: 'M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z'
- })
- ),
- Bee = h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 36 36' },
- h('path', {
- fill: '#FFCC4D',
- d: 'M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18'
- }),
- h('ellipse', { fill: '#664500', cx: '18', cy: '27', rx: '5', ry: '6' }),
- h('path', {
- fill: '#664500',
- d: 'M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z'
- })
- ),
- Lee = h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 36 36' },
- h('ellipse', { fill: '#292F33', cx: '18', cy: '26', rx: '18', ry: '10' }),
- h('ellipse', { fill: '#66757F', cx: '18', cy: '24', rx: '18', ry: '10' }),
- h('path', {
- fill: '#E1E8ED',
- d: 'M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z'
- }),
- h('path', {
- fill: '#77B255',
- d: 'M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z'
- }),
- h('ellipse', { fill: '#A6D388', cx: '18', cy: '13', rx: '15', ry: '7' }),
- h('path', {
- d: 'M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z',
- fill: '#5C913B'
- })
- ),
- Nee = h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 36 36' },
- h('path', {
- fill: '#EF9645',
- d: 'M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z'
- }),
- h('path', {
- fill: '#FFDC5D',
- d: 'M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z'
- })
- ),
- Hee = O(
- 'result',
- `
- color: var(--n-text-color);
- line-height: var(--n-line-height);
- font-size: var(--n-font-size);
- transition:
- color .3s var(--n-bezier);
- `,
- [
- O(
- 'result-icon',
- `
- display: flex;
- justify-content: center;
- transition: color .3s var(--n-bezier);
- `,
- [
- V(
- 'status-image',
- `
- font-size: var(--n-icon-size);
- width: 1em;
- height: 1em;
- `
- ),
- O(
- 'base-icon',
- `
- color: var(--n-icon-color);
- font-size: var(--n-icon-size);
- `
- )
- ]
- ),
- O('result-content', { marginTop: '24px' }),
- O(
- 'result-footer',
- `
- margin-top: 24px;
- text-align: center;
- `
- ),
- O('result-header', [
- V(
- 'title',
- `
- margin-top: 16px;
- font-weight: var(--n-title-font-weight);
- transition: color .3s var(--n-bezier);
- text-align: center;
- color: var(--n-title-text-color);
- font-size: var(--n-title-font-size);
- `
- ),
- V(
- 'description',
- `
- margin-top: 4px;
- text-align: center;
- font-size: var(--n-font-size);
- `
- )
- ])
- ]
- ),
- jee = {
- 403: Nee,
- 404: Fee,
- 418: Lee,
- 500: Bee,
- info: h(bl, null),
- success: h(zs, null),
- warning: h(Es, null),
- error: h(Os, null)
- },
- Wee = Object.assign(Object.assign({}, Ke.props), {
- size: { type: String, default: 'medium' },
- status: { type: String, default: 'info' },
- title: String,
- description: String
- }),
- Uee = ke({
- name: 'Result',
- props: Wee,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Result', '-result', Hee, KQ, e, t),
- o = I(() => {
- const { size: a, status: s } = e,
- {
- common: { cubicBezierEaseInOut: c },
- self: {
- textColor: d,
- lineHeight: f,
- titleTextColor: v,
- titleFontWeight: p,
- [Ee('iconColor', s)]: m,
- [Ee('fontSize', a)]: g,
- [Ee('titleFontSize', a)]: w,
- [Ee('iconSize', a)]: x
- }
- } = r.value;
- return {
- '--n-bezier': c,
- '--n-font-size': g,
- '--n-icon-size': x,
- '--n-line-height': f,
- '--n-text-color': d,
- '--n-title-font-size': w,
- '--n-title-font-weight': p,
- '--n-title-text-color': v,
- '--n-icon-color': m || ''
- };
- }),
- i = n
- ? Mt(
- 'result',
- I(() => {
- const { size: a, status: s } = e;
- let c = '';
- return a && (c += a[0]), s && (c += s[0]), c;
- }),
- o,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- const { status: t, $slots: n, mergedClsPrefix: r, onRender: o } = this;
- return (
- o == null || o(),
- h(
- 'div',
- { class: [`${r}-result`, this.themeClass], style: this.cssVars },
- h(
- 'div',
- { class: `${r}-result-icon` },
- ((e = n.icon) === null || e === void 0 ? void 0 : e.call(n)) ||
- h(At, { clsPrefix: r }, { default: () => jee[t] })
- ),
- h(
- 'div',
- { class: `${r}-result-header` },
- this.title
- ? h('div', { class: `${r}-result-header__title` }, this.title)
- : null,
- this.description
- ? h(
- 'div',
- { class: `${r}-result-header__description` },
- this.description
- )
- : null
- ),
- n.default && h('div', { class: `${r}-result-content` }, n),
- n.footer && h('div', { class: `${r}-result-footer` }, n.footer())
- )
- );
- }
- }),
- Vee = e => {
- const {
- heightSmall: t,
- heightMedium: n,
- heightLarge: r,
- borderRadius: o
- } = e;
- return {
- color: '#eee',
- colorEnd: '#ddd',
- borderRadius: o,
- heightSmall: t,
- heightMedium: n,
- heightLarge: r
- };
- },
- Kee = { name: 'Skeleton', common: Nt, self: Vee },
- qee = F([
- O(
- 'skeleton',
- `
- height: 1em;
- width: 100%;
- transition: background-color .3s var(--n-bezier);
- transition:
- --n-color-start .3s var(--n-bezier),
- --n-color-end .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1);
- background-color: var(--n-color-start);
- `
- ),
- F(
- '@keyframes skeleton-loading',
- `
- 0% {
- background: var(--n-color-start);
- }
- 40% {
- background: var(--n-color-end);
- }
- 80% {
- background: var(--n-color-start);
- }
- 100% {
- background: var(--n-color-start);
- }
- `
- )
- ]),
- Yee = Object.assign(Object.assign({}, Ke.props), {
- text: Boolean,
- round: Boolean,
- circle: Boolean,
- height: [String, Number],
- width: [String, Number],
- size: String,
- repeat: { type: Number, default: 1 },
- animated: { type: Boolean, default: !0 },
- sharp: { type: Boolean, default: !0 }
- }),
- Gee = ke({
- name: 'Skeleton',
- inheritAttrs: !1,
- props: Yee,
- setup(e) {
- pD();
- const { mergedClsPrefixRef: t } = yt(e),
- n = Ke('Skeleton', '-skeleton', qee, Kee, e, t);
- return {
- mergedClsPrefix: t,
- style: I(() => {
- var r, o;
- const i = n.value,
- {
- common: { cubicBezierEaseInOut: a }
- } = i,
- s = i.self,
- { color: c, colorEnd: d, borderRadius: f } = s;
- let v;
- const {
- circle: p,
- sharp: m,
- round: g,
- width: w,
- height: x,
- size: y,
- text: C,
- animated: R
- } = e;
- y !== void 0 && (v = s[Ee('height', y)]);
- const S = p ? ((r = w ?? x) !== null && r !== void 0 ? r : v) : w,
- _ = (o = p ? w ?? x : x) !== null && o !== void 0 ? o : v;
- return {
- display: C ? 'inline-block' : '',
- verticalAlign: C ? '-0.125em' : '',
- borderRadius: p ? '50%' : g ? '4096px' : m ? '' : f,
- width: typeof S == 'number' ? lr(S) : S,
- height: typeof _ == 'number' ? lr(_) : _,
- animation: R ? '' : 'none',
- '--n-bezier': a,
- '--n-color-start': c,
- '--n-color-end': d
- };
- })
- };
- },
- render() {
- const { repeat: e, style: t, mergedClsPrefix: n, $attrs: r } = this,
- o = h('div', qr({ class: `${n}-skeleton`, style: t }, r));
- return e > 1
- ? h(
- on,
- null,
- Array.apply(null, { length: e }).map(i => [
- o,
- `
- `
- ])
- )
- : o;
- }
- }),
- Xee = F([
- F(
- '@keyframes spin-rotate',
- `
- from {
- transform: rotate(0);
- }
- to {
- transform: rotate(360deg);
- }
- `
- ),
- O('spin-container', { position: 'relative' }, [
- O(
- 'spin-body',
- `
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translateX(-50%) translateY(-50%);
- `,
- [Cs()]
- )
- ]),
- O(
- 'spin-body',
- `
- display: inline-flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- `
- ),
- O(
- 'spin',
- `
- display: inline-flex;
- height: var(--n-size);
- width: var(--n-size);
- font-size: var(--n-size);
- color: var(--n-color);
- `,
- [
- U(
- 'rotate',
- `
- animation: spin-rotate 2s linear infinite;
- `
- )
- ]
- ),
- O(
- 'spin-description',
- `
- display: inline-block;
- font-size: var(--n-font-size);
- color: var(--n-text-color);
- transition: color .3s var(--n-bezier);
- margin-top: 8px;
- `
- ),
- O(
- 'spin-content',
- `
- opacity: 1;
- transition: opacity .3s var(--n-bezier);
- pointer-events: all;
- `,
- [
- U(
- 'spinning',
- `
- user-select: none;
- -webkit-user-select: none;
- pointer-events: none;
- opacity: var(--n-opacity-spinning);
- `
- )
- ]
- )
- ]),
- Zee = { small: 20, medium: 18, large: 16 },
- Qee = Object.assign(Object.assign({}, Ke.props), {
- description: String,
- stroke: String,
- size: { type: [String, Number], default: 'medium' },
- show: { type: Boolean, default: !0 },
- strokeWidth: Number,
- rotate: { type: Boolean, default: !0 },
- spinning: { type: Boolean, validator: () => !0, default: void 0 }
- }),
- Jee = ke({
- name: 'Spin',
- props: Qee,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Spin', '-spin', Xee, GQ, e, t),
- o = I(() => {
- const { size: a } = e,
- {
- common: { cubicBezierEaseInOut: s },
- self: c
- } = r.value,
- { opacitySpinning: d, color: f, textColor: v } = c,
- p = typeof a == 'number' ? lr(a) : c[Ee('size', a)];
- return {
- '--n-bezier': s,
- '--n-opacity-spinning': d,
- '--n-size': p,
- '--n-color': f,
- '--n-text-color': v
- };
- }),
- i = n
- ? Mt(
- 'spin',
- I(() => {
- const { size: a } = e;
- return typeof a == 'number' ? String(a) : a[0];
- }),
- o,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- compitableShow: xs(e, ['spinning', 'show']),
- mergedStrokeWidth: I(() => {
- const { strokeWidth: a } = e;
- if (a !== void 0) return a;
- const { size: s } = e;
- return Zee[typeof s == 'number' ? 'medium' : s];
- }),
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e, t;
- const { $slots: n, mergedClsPrefix: r, description: o } = this,
- i = n.icon && this.rotate,
- a =
- (o || n.description) &&
- h(
- 'div',
- { class: `${r}-spin-description` },
- o ||
- ((e = n.description) === null || e === void 0
- ? void 0
- : e.call(n))
- ),
- s = n.icon
- ? h(
- 'div',
- { class: [`${r}-spin-body`, this.themeClass] },
- h(
- 'div',
- {
- class: [`${r}-spin`, i && `${r}-spin--rotate`],
- style: n.default ? '' : this.cssVars
- },
- n.icon()
- ),
- a
- )
- : h(
- 'div',
- { class: [`${r}-spin-body`, this.themeClass] },
- h(Oa, {
- clsPrefix: r,
- style: n.default ? '' : this.cssVars,
- stroke: this.stroke,
- 'stroke-width': this.mergedStrokeWidth,
- class: `${r}-spin`
- }),
- a
- );
- return (
- (t = this.onRender) === null || t === void 0 || t.call(this),
- n.default
- ? h(
- 'div',
- {
- class: [`${r}-spin-container`, this.themeClass],
- style: this.cssVars
- },
- h(
- 'div',
- {
- class: [
- `${r}-spin-content`,
- this.compitableShow && `${r}-spin-content--spinning`
- ]
- },
- n
- ),
- h(
- Kn,
- { name: 'fade-in-transition' },
- { default: () => (this.compitableShow ? s : null) }
- )
- )
- : s
- );
- }
- }),
- ete = O(
- 'steps',
- `
- width: 100%;
- display: flex;
- `,
- [
- O(
- 'step',
- `
- position: relative;
- display: flex;
- flex: 1;
- `,
- [
- U('disabled', 'cursor: not-allowed'),
- U(
- 'clickable',
- `
- cursor: pointer;
- `
- ),
- F('&:last-child', [O('step-splitor', 'display: none;')])
- ]
- ),
- O(
- 'step-splitor',
- `
- background-color: var(--n-splitor-color);
- margin-top: calc(var(--n-step-header-font-size) / 2);
- height: 1px;
- flex: 1;
- align-self: flex-start;
- margin-left: 12px;
- margin-right: 12px;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `
- ),
- O('step-content', 'flex: 1;', [
- O(
- 'step-content-header',
- `
- color: var(--n-header-text-color);
- margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2);
- line-height: var(--n-step-header-font-size);
- font-size: var(--n-step-header-font-size);
- position: relative;
- display: flex;
- font-weight: var(--n-step-header-font-weight);
- margin-left: 9px;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `,
- [
- V(
- 'title',
- `
- white-space: nowrap;
- flex: 0;
- `
- )
- ]
- ),
- V(
- 'description',
- `
- color: var(--n-description-text-color);
- margin-top: 12px;
- margin-left: 9px;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `
- )
- ]),
- O(
- 'step-indicator',
- `
- background-color: var(--n-indicator-color);
- box-shadow: 0 0 0 1px var(--n-indicator-border-color);
- height: var(--n-indicator-size);
- width: var(--n-indicator-size);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- transition:
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- `,
- [
- O(
- 'step-indicator-slot',
- `
- position: relative;
- width: var(--n-indicator-icon-size);
- height: var(--n-indicator-icon-size);
- font-size: var(--n-indicator-icon-size);
- line-height: var(--n-indicator-icon-size);
- `,
- [
- V(
- 'index',
- `
- display: inline-block;
- text-align: center;
- position: absolute;
- left: 0;
- top: 0;
- font-size: var(--n-indicator-index-font-size);
- width: var(--n-indicator-icon-size);
- height: var(--n-indicator-icon-size);
- line-height: var(--n-indicator-icon-size);
- color: var(--n-indicator-text-color);
- transition: color .3s var(--n-bezier);
- `,
- [br()]
- ),
- O(
- 'icon',
- `
- color: var(--n-indicator-text-color);
- transition: color .3s var(--n-bezier);
- `,
- [br()]
- ),
- O(
- 'base-icon',
- `
- color: var(--n-indicator-text-color);
- transition: color .3s var(--n-bezier);
- `,
- [br()]
- )
- ]
- )
- ]
- ),
- U('vertical', 'flex-direction: column;', [
- jt('show-description', [F('>', [O('step', 'padding-bottom: 8px;')])]),
- F('>', [
- O('step', 'margin-bottom: 16px;', [
- F('&:last-child', 'margin-bottom: 0;'),
- F('>', [
- O('step-indicator', [
- F('>', [
- O(
- 'step-splitor',
- `
- position: absolute;
- bottom: -8px;
- width: 1px;
- margin: 0 !important;
- left: calc(var(--n-indicator-size) / 2);
- height: calc(100% - var(--n-indicator-size));
- `
- )
- ])
- ]),
- O('step-content', [V('description', 'margin-top: 8px;')])
- ])
- ])
- ])
- ])
- ]
- );
- function tte(e, t) {
- return typeof e != 'object' || e === null || Array.isArray(e)
- ? null
- : (e.props || (e.props = {}), (e.props.internalIndex = t + 1), e);
- }
- function nte(e) {
- return e.map((t, n) => tte(t, n));
- }
- const rte = Object.assign(Object.assign({}, Ke.props), {
- current: Number,
- status: { type: String, default: 'process' },
- size: { type: String, default: 'medium' },
- vertical: Boolean,
- 'onUpdate:current': [Function, Array],
- onUpdateCurrent: [Function, Array]
- }),
- tT = 'n-steps',
- ote = ke({
- name: 'Steps',
- props: rte,
- setup(e, { slots: t }) {
- const { mergedClsPrefixRef: n, mergedRtlRef: r } = yt(e),
- o = cr('Steps', r, n),
- i = Ke('Steps', '-steps', ete, JQ, e, n);
- return (
- Rt(tT, {
- props: e,
- mergedThemeRef: i,
- mergedClsPrefixRef: n,
- stepsSlots: t
- }),
- { mergedClsPrefix: n, rtlEnabled: o }
- );
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h(
- 'div',
- {
- class: [
- `${e}-steps`,
- this.rtlEnabled && `${e}-steps--rtl`,
- this.vertical && `${e}-steps--vertical`
- ]
- },
- nte(hi(Wu(this)))
- );
- }
- }),
- ite = {
- status: String,
- title: String,
- description: String,
- disabled: Boolean,
- internalIndex: { type: Number, default: 0 }
- },
- ate = ke({
- name: 'Step',
- props: ite,
- setup(e) {
- const t = Ze(tT, null);
- t || io('step', '`n-step` must be placed inside `n-steps`.');
- const { inlineThemeDisabled: n } = yt(),
- {
- props: r,
- mergedThemeRef: o,
- mergedClsPrefixRef: i,
- stepsSlots: a
- } = t,
- s = I(() => r.vertical),
- c = I(() => {
- const { status: p } = e;
- if (p) return p;
- {
- const { internalIndex: m } = e,
- { current: g } = r;
- if (g === void 0) return 'process';
- if (m < g) return 'finish';
- if (m === g) return r.status || 'process';
- if (m > g) return 'wait';
- }
- return 'process';
- }),
- d = I(() => {
- const { value: p } = c,
- { size: m } = r,
- {
- common: { cubicBezierEaseInOut: g },
- self: {
- stepHeaderFontWeight: w,
- [Ee('stepHeaderFontSize', m)]: x,
- [Ee('indicatorIndexFontSize', m)]: y,
- [Ee('indicatorSize', m)]: C,
- [Ee('indicatorIconSize', m)]: R,
- [Ee('indicatorTextColor', p)]: S,
- [Ee('indicatorBorderColor', p)]: _,
- [Ee('headerTextColor', p)]: P,
- [Ee('splitorColor', p)]: T,
- [Ee('indicatorColor', p)]: E,
- [Ee('descriptionTextColor', p)]: z
- }
- } = o.value;
- return {
- '--n-bezier': g,
- '--n-description-text-color': z,
- '--n-header-text-color': P,
- '--n-indicator-border-color': _,
- '--n-indicator-color': E,
- '--n-indicator-icon-size': R,
- '--n-indicator-index-font-size': y,
- '--n-indicator-size': C,
- '--n-indicator-text-color': S,
- '--n-splitor-color': T,
- '--n-step-header-font-size': x,
- '--n-step-header-font-weight': w
- };
- }),
- f = n
- ? Mt(
- 'step',
- I(() => {
- const { value: p } = c,
- { size: m } = r;
- return `${p[0]}${m[0]}`;
- }),
- d,
- r
- )
- : void 0,
- v = I(() => {
- if (e.disabled) return;
- const { onUpdateCurrent: p, 'onUpdate:current': m } = r;
- return p || m
- ? () => {
- p && Me(p, e.internalIndex), m && Me(m, e.internalIndex);
- }
- : void 0;
- });
- return {
- stepsSlots: a,
- mergedClsPrefix: i,
- vertical: s,
- mergedStatus: c,
- handleStepClick: v,
- cssVars: n ? void 0 : d,
- themeClass: f == null ? void 0 : f.themeClass,
- onRender: f == null ? void 0 : f.onRender
- };
- },
- render() {
- const {
- mergedClsPrefix: e,
- onRender: t,
- handleStepClick: n,
- disabled: r
- } = this,
- o = cn(this.$slots.default, i => {
- const a = i || this.description;
- return a
- ? h('div', { class: `${e}-step-content__description` }, a)
- : null;
- });
- return (
- t == null || t(),
- h(
- 'div',
- {
- class: [
- `${e}-step`,
- r && `${e}-step--disabled`,
- !r && n && `${e}-step--clickable`,
- this.themeClass,
- o && `${e}-step--show-description`,
- `${e}-step--${this.mergedStatus}-status`
- ],
- style: this.cssVars,
- onClick: n
- },
- h(
- 'div',
- { class: `${e}-step-indicator` },
- h(
- 'div',
- { class: `${e}-step-indicator-slot` },
- h(Ji, null, {
- default: () =>
- cn(this.$slots.icon, i => {
- const { mergedStatus: a, stepsSlots: s } = this;
- return a === 'finish' || a === 'error'
- ? a === 'finish'
- ? h(
- At,
- { clsPrefix: e, key: 'finish' },
- {
- default: () =>
- Kt(s['finish-icon'], () => [h(gk, null)])
- }
- )
- : a === 'error'
- ? h(
- At,
- { clsPrefix: e, key: 'error' },
- {
- default: () =>
- Kt(s['error-icon'], () => [h(mk, null)])
- }
- )
- : null
- : i ||
- h(
- 'div',
- {
- key: this.internalIndex,
- class: `${e}-step-indicator-slot__index`
- },
- this.internalIndex
- );
- })
- })
- ),
- this.vertical ? h('div', { class: `${e}-step-splitor` }) : null
- ),
- h(
- 'div',
- { class: `${e}-step-content` },
- h(
- 'div',
- { class: `${e}-step-content-header` },
- h(
- 'div',
- { class: `${e}-step-content-header__title` },
- Kt(this.$slots.title, () => [this.title])
- ),
- this.vertical ? null : h('div', { class: `${e}-step-splitor` })
- ),
- o
- )
- )
- );
- }
- }),
- lte = O(
- 'switch',
- `
- height: var(--n-height);
- min-width: var(--n-width);
- vertical-align: middle;
- user-select: none;
- -webkit-user-select: none;
- display: inline-flex;
- outline: none;
- justify-content: center;
- align-items: center;
- `,
- [
- V(
- 'children-placeholder',
- `
- height: var(--n-rail-height);
- display: flex;
- flex-direction: column;
- overflow: hidden;
- pointer-events: none;
- visibility: hidden;
- `
- ),
- V(
- 'rail-placeholder',
- `
- display: flex;
- flex-wrap: none;
- `
- ),
- V(
- 'button-placeholder',
- `
- width: calc(1.75 * var(--n-rail-height));
- height: var(--n-rail-height);
- `
- ),
- O(
- 'base-loading',
- `
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translateX(-50%) translateY(-50%);
- font-size: calc(var(--n-button-width) - 4px);
- color: var(--n-loading-color);
- transition: color .3s var(--n-bezier);
- `,
- [
- br({
- left: '50%',
- top: '50%',
- originalTransform: 'translateX(-50%) translateY(-50%)'
- })
- ]
- ),
- V(
- 'checked, unchecked',
- `
- transition: color .3s var(--n-bezier);
- color: var(--n-text-color);
- box-sizing: border-box;
- position: absolute;
- white-space: nowrap;
- top: 0;
- bottom: 0;
- display: flex;
- align-items: center;
- line-height: 1;
- `
- ),
- V(
- 'checked',
- `
- right: 0;
- padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
- `
- ),
- V(
- 'unchecked',
- `
- left: 0;
- justify-content: flex-end;
- padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
- `
- ),
- F('&:focus', [
- V(
- 'rail',
- `
- box-shadow: var(--n-box-shadow-focus);
- `
- )
- ]),
- U('round', [
- V('rail', 'border-radius: calc(var(--n-rail-height) / 2);', [
- V('button', 'border-radius: calc(var(--n-button-height) / 2);')
- ])
- ]),
- jt('disabled', [
- jt('icon', [
- U('rubber-band', [
- U('pressed', [
- V('rail', [
- V('button', 'max-width: var(--n-button-width-pressed);')
- ])
- ]),
- V('rail', [
- F('&:active', [
- V('button', 'max-width: var(--n-button-width-pressed);')
- ])
- ]),
- U('active', [
- U('pressed', [
- V('rail', [
- V(
- 'button',
- 'left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));'
- )
- ])
- ]),
- V('rail', [
- F('&:active', [
- V(
- 'button',
- 'left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));'
- )
- ])
- ])
- ])
- ])
- ])
- ]),
- U('active', [
- V('rail', [
- V(
- 'button',
- 'left: calc(100% - var(--n-button-width) - var(--n-offset))'
- )
- ])
- ]),
- V(
- 'rail',
- `
- overflow: hidden;
- height: var(--n-rail-height);
- min-width: var(--n-rail-width);
- border-radius: var(--n-rail-border-radius);
- cursor: pointer;
- position: relative;
- transition:
- opacity .3s var(--n-bezier),
- background .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- background-color: var(--n-rail-color);
- `,
- [
- V(
- 'button-icon',
- `
- color: var(--n-icon-color);
- transition: color .3s var(--n-bezier);
- font-size: calc(var(--n-button-height) - 4px);
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- line-height: 1;
- `,
- [br()]
- ),
- V(
- 'button',
- `
- align-items: center;
- top: var(--n-offset);
- left: var(--n-offset);
- height: var(--n-button-height);
- width: var(--n-button-width-pressed);
- max-width: var(--n-button-width);
- border-radius: var(--n-button-border-radius);
- background-color: var(--n-button-color);
- box-shadow: var(--n-button-box-shadow);
- box-sizing: border-box;
- cursor: inherit;
- content: "";
- position: absolute;
- transition:
- background-color .3s var(--n-bezier),
- left .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- max-width .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- `
- )
- ]
- ),
- U('active', [V('rail', 'background-color: var(--n-rail-color-active);')]),
- U('loading', [
- V(
- 'rail',
- `
- cursor: wait;
- `
- )
- ]),
- U('disabled', [
- V(
- 'rail',
- `
- cursor: not-allowed;
- opacity: .5;
- `
- )
- ])
- ]
- ),
- ste = Object.assign(Object.assign({}, Ke.props), {
- size: { type: String, default: 'medium' },
- value: { type: [String, Number, Boolean], default: void 0 },
- loading: Boolean,
- defaultValue: { type: [String, Number, Boolean], default: !1 },
- disabled: { type: Boolean, default: void 0 },
- round: { type: Boolean, default: !0 },
- 'onUpdate:value': [Function, Array],
- onUpdateValue: [Function, Array],
- checkedValue: { type: [String, Number, Boolean], default: !0 },
- uncheckedValue: { type: [String, Number, Boolean], default: !1 },
- railStyle: Function,
- rubberBand: { type: Boolean, default: !0 },
- onChange: [Function, Array]
- });
- let Dd;
- const cte = ke({
- name: 'Switch',
- props: ste,
- setup(e) {
- Dd === void 0 &&
- (typeof CSS < 'u'
- ? typeof CSS.supports < 'u'
- ? (Dd = CSS.supports('width', 'max(1px)'))
- : (Dd = !1)
- : (Dd = !0));
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Switch', '-switch', lte, rJ, e, t),
- o = ei(e),
- { mergedSizeRef: i, mergedDisabledRef: a } = o,
- s = Z(e.defaultValue),
- c = Ie(e, 'value'),
- d = En(c, s),
- f = I(() => d.value === e.checkedValue),
- v = Z(!1),
- p = Z(!1),
- m = I(() => {
- const { railStyle: E } = e;
- if (E) return E({ focused: p.value, checked: f.value });
- });
- function g(E) {
- const { 'onUpdate:value': z, onChange: k, onUpdateValue: M } = e,
- { nTriggerFormInput: A, nTriggerFormChange: D } = o;
- z && Me(z, E), M && Me(M, E), k && Me(k, E), (s.value = E), A(), D();
- }
- function w() {
- const { nTriggerFormFocus: E } = o;
- E();
- }
- function x() {
- const { nTriggerFormBlur: E } = o;
- E();
- }
- function y() {
- e.loading ||
- a.value ||
- (d.value !== e.checkedValue
- ? g(e.checkedValue)
- : g(e.uncheckedValue));
- }
- function C() {
- (p.value = !0), w();
- }
- function R() {
- (p.value = !1), x(), (v.value = !1);
- }
- function S(E) {
- e.loading ||
- a.value ||
- (E.key === ' ' &&
- (d.value !== e.checkedValue
- ? g(e.checkedValue)
- : g(e.uncheckedValue),
- (v.value = !1)));
- }
- function _(E) {
- e.loading ||
- a.value ||
- (E.key === ' ' && (E.preventDefault(), (v.value = !0)));
- }
- const P = I(() => {
- const { value: E } = i,
- {
- self: {
- opacityDisabled: z,
- railColor: k,
- railColorActive: M,
- buttonBoxShadow: A,
- buttonColor: D,
- boxShadowFocus: L,
- loadingColor: H,
- textColor: B,
- iconColor: q,
- [Ee('buttonHeight', E)]: X,
- [Ee('buttonWidth', E)]: te,
- [Ee('buttonWidthPressed', E)]: G,
- [Ee('railHeight', E)]: Q,
- [Ee('railWidth', E)]: re,
- [Ee('railBorderRadius', E)]: se,
- [Ee('buttonBorderRadius', E)]: pe
- },
- common: { cubicBezierEaseInOut: ce }
- } = r.value;
- let xe, ve, be;
- return (
- Dd
- ? ((xe = `calc((${Q} - ${X}) / 2)`),
- (ve = `max(${Q}, ${X})`),
- (be = `max(${re}, calc(${re} + ${X} - ${Q}))`))
- : ((xe = lr((Lr(Q) - Lr(X)) / 2)),
- (ve = lr(Math.max(Lr(Q), Lr(X)))),
- (be = Lr(Q) > Lr(X) ? re : lr(Lr(re) + Lr(X) - Lr(Q)))),
- {
- '--n-bezier': ce,
- '--n-button-border-radius': pe,
- '--n-button-box-shadow': A,
- '--n-button-color': D,
- '--n-button-width': te,
- '--n-button-width-pressed': G,
- '--n-button-height': X,
- '--n-height': ve,
- '--n-offset': xe,
- '--n-opacity-disabled': z,
- '--n-rail-border-radius': se,
- '--n-rail-color': k,
- '--n-rail-color-active': M,
- '--n-rail-height': Q,
- '--n-rail-width': re,
- '--n-width': be,
- '--n-box-shadow-focus': L,
- '--n-loading-color': H,
- '--n-text-color': B,
- '--n-icon-color': q
- }
- );
- }),
- T = n
- ? Mt(
- 'switch',
- I(() => i.value[0]),
- P,
- e
- )
- : void 0;
- return {
- handleClick: y,
- handleBlur: R,
- handleFocus: C,
- handleKeyup: S,
- handleKeydown: _,
- mergedRailStyle: m,
- pressed: v,
- mergedClsPrefix: t,
- mergedValue: d,
- checked: f,
- mergedDisabled: a,
- cssVars: n ? void 0 : P,
- themeClass: T == null ? void 0 : T.themeClass,
- onRender: T == null ? void 0 : T.onRender
- };
- },
- render() {
- const {
- mergedClsPrefix: e,
- mergedDisabled: t,
- checked: n,
- mergedRailStyle: r,
- onRender: o,
- $slots: i
- } = this;
- o == null || o();
- const {
- checked: a,
- unchecked: s,
- icon: c,
- 'checked-icon': d,
- 'unchecked-icon': f
- } = i,
- v = !(ps(c) && ps(d) && ps(f));
- return h(
- 'div',
- {
- role: 'switch',
- 'aria-checked': n,
- class: [
- `${e}-switch`,
- this.themeClass,
- v && `${e}-switch--icon`,
- n && `${e}-switch--active`,
- t && `${e}-switch--disabled`,
- this.round && `${e}-switch--round`,
- this.loading && `${e}-switch--loading`,
- this.pressed && `${e}-switch--pressed`,
- this.rubberBand && `${e}-switch--rubber-band`
- ],
- tabindex: this.mergedDisabled ? void 0 : 0,
- style: this.cssVars,
- onClick: this.handleClick,
- onFocus: this.handleFocus,
- onBlur: this.handleBlur,
- onKeyup: this.handleKeyup,
- onKeydown: this.handleKeydown
- },
- h(
- 'div',
- { class: `${e}-switch__rail`, 'aria-hidden': 'true', style: r },
- cn(a, p =>
- cn(s, m =>
- p || m
- ? h(
- 'div',
- {
- 'aria-hidden': !0,
- class: `${e}-switch__children-placeholder`
- },
- h(
- 'div',
- { class: `${e}-switch__rail-placeholder` },
- h('div', { class: `${e}-switch__button-placeholder` }),
- p
- ),
- h(
- 'div',
- { class: `${e}-switch__rail-placeholder` },
- h('div', { class: `${e}-switch__button-placeholder` }),
- m
- )
- )
- : null
- )
- ),
- h(
- 'div',
- { class: `${e}-switch__button` },
- cn(c, p =>
- cn(d, m =>
- cn(f, g =>
- h(Ji, null, {
- default: () =>
- this.loading
- ? h(Oa, {
- key: 'loading',
- clsPrefix: e,
- strokeWidth: 20
- })
- : this.checked && (m || p)
- ? h(
- 'div',
- {
- class: `${e}-switch__button-icon`,
- key: m ? 'checked-icon' : 'icon'
- },
- m || p
- )
- : !this.checked && (g || p)
- ? h(
- 'div',
- {
- class: `${e}-switch__button-icon`,
- key: g ? 'unchecked-icon' : 'icon'
- },
- g || p
- )
- : null
- })
- )
- )
- ),
- cn(
- a,
- p =>
- p &&
- h('div', { key: 'checked', class: `${e}-switch__checked` }, p)
- ),
- cn(
- s,
- p =>
- p &&
- h(
- 'div',
- { key: 'unchecked', class: `${e}-switch__unchecked` },
- p
- )
- )
- )
- )
- );
- }
- }),
- dte = F([
- O(
- 'table',
- `
- font-size: var(--n-font-size);
- font-variant-numeric: tabular-nums;
- line-height: var(--n-line-height);
- width: 100%;
- border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
- text-align: left;
- border-collapse: separate;
- border-spacing: 0;
- overflow: hidden;
- background-color: var(--n-td-color);
- border-color: var(--n-merged-border-color);
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- --n-merged-border-color: var(--n-border-color);
- `,
- [
- F(
- 'th',
- `
- white-space: nowrap;
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- text-align: inherit;
- padding: var(--n-th-padding);
- vertical-align: inherit;
- text-transform: none;
- border: 0px solid var(--n-merged-border-color);
- font-weight: var(--n-th-font-weight);
- color: var(--n-th-text-color);
- background-color: var(--n-th-color);
- border-bottom: 1px solid var(--n-merged-border-color);
- border-right: 1px solid var(--n-merged-border-color);
- `,
- [
- F(
- '&:last-child',
- `
- border-right: 0px solid var(--n-merged-border-color);
- `
- )
- ]
- ),
- F(
- 'td',
- `
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- padding: var(--n-td-padding);
- color: var(--n-td-text-color);
- background-color: var(--n-td-color);
- border: 0px solid var(--n-merged-border-color);
- border-right: 1px solid var(--n-merged-border-color);
- border-bottom: 1px solid var(--n-merged-border-color);
- `,
- [
- F(
- '&:last-child',
- `
- border-right: 0px solid var(--n-merged-border-color);
- `
- )
- ]
- ),
- U(
- 'bordered',
- `
- border: 1px solid var(--n-merged-border-color);
- border-radius: var(--n-border-radius);
- `,
- [
- F('tr', [
- F('&:last-child', [
- F(
- 'td',
- `
- border-bottom: 0 solid var(--n-merged-border-color);
- `
- )
- ])
- ])
- ]
- ),
- U('single-line', [
- F(
- 'th',
- `
- border-right: 0px solid var(--n-merged-border-color);
- `
- ),
- F(
- 'td',
- `
- border-right: 0px solid var(--n-merged-border-color);
- `
- )
- ]),
- U('single-column', [
- F('tr', [
- F('&:not(:last-child)', [
- F(
- 'td',
- `
- border-bottom: 0px solid var(--n-merged-border-color);
- `
- )
- ])
- ])
- ]),
- U('striped', [
- F('tr:nth-of-type(even)', [
- F('td', 'background-color: var(--n-td-color-striped)')
- ])
- ]),
- jt('bottom-bordered', [
- F('tr', [
- F('&:last-child', [
- F(
- 'td',
- `
- border-bottom: 0px solid var(--n-merged-border-color);
- `
- )
- ])
- ])
- ])
- ]
- ),
- xl(
- O(
- 'table',
- `
- background-color: var(--n-td-color-modal);
- --n-merged-border-color: var(--n-border-color-modal);
- `,
- [
- F(
- 'th',
- `
- background-color: var(--n-th-color-modal);
- `
- ),
- F(
- 'td',
- `
- background-color: var(--n-td-color-modal);
- `
- )
- ]
- )
- ),
- Ps(
- O(
- 'table',
- `
- background-color: var(--n-td-color-popover);
- --n-merged-border-color: var(--n-border-color-popover);
- `,
- [
- F(
- 'th',
- `
- background-color: var(--n-th-color-popover);
- `
- ),
- F(
- 'td',
- `
- background-color: var(--n-td-color-popover);
- `
- )
- ]
- )
- )
- ]),
- ute = Object.assign(Object.assign({}, Ke.props), {
- bordered: { type: Boolean, default: !0 },
- bottomBordered: { type: Boolean, default: !0 },
- singleLine: { type: Boolean, default: !0 },
- striped: Boolean,
- singleColumn: Boolean,
- size: { type: String, default: 'medium' }
- }),
- fte = ke({
- name: 'Table',
- props: ute,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- inlineThemeDisabled: n,
- mergedRtlRef: r
- } = yt(e),
- o = Ke('Table', '-table', dte, lJ, e, t),
- i = cr('Table', r, t),
- a = I(() => {
- const { size: c } = e,
- {
- self: {
- borderColor: d,
- tdColor: f,
- tdColorModal: v,
- tdColorPopover: p,
- thColor: m,
- thColorModal: g,
- thColorPopover: w,
- thTextColor: x,
- tdTextColor: y,
- borderRadius: C,
- thFontWeight: R,
- lineHeight: S,
- borderColorModal: _,
- borderColorPopover: P,
- tdColorStriped: T,
- tdColorStripedModal: E,
- tdColorStripedPopover: z,
- [Ee('fontSize', c)]: k,
- [Ee('tdPadding', c)]: M,
- [Ee('thPadding', c)]: A
- },
- common: { cubicBezierEaseInOut: D }
- } = o.value;
- return {
- '--n-bezier': D,
- '--n-td-color': f,
- '--n-td-color-modal': v,
- '--n-td-color-popover': p,
- '--n-td-text-color': y,
- '--n-border-color': d,
- '--n-border-color-modal': _,
- '--n-border-color-popover': P,
- '--n-border-radius': C,
- '--n-font-size': k,
- '--n-th-color': m,
- '--n-th-color-modal': g,
- '--n-th-color-popover': w,
- '--n-th-font-weight': R,
- '--n-th-text-color': x,
- '--n-line-height': S,
- '--n-td-padding': M,
- '--n-th-padding': A,
- '--n-td-color-striped': T,
- '--n-td-color-striped-modal': E,
- '--n-td-color-striped-popover': z
- };
- }),
- s = n
- ? Mt(
- 'table',
- I(() => e.size[0]),
- a,
- e
- )
- : void 0;
- return {
- rtlEnabled: i,
- mergedClsPrefix: t,
- cssVars: n ? void 0 : a,
- themeClass: s == null ? void 0 : s.themeClass,
- onRender: s == null ? void 0 : s.onRender
- };
- },
- render() {
- var e;
- const { mergedClsPrefix: t } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'table',
- {
- class: [
- `${t}-table`,
- this.themeClass,
- {
- [`${t}-table--rtl`]: this.rtlEnabled,
- [`${t}-table--bottom-bordered`]: this.bottomBordered,
- [`${t}-table--bordered`]: this.bordered,
- [`${t}-table--single-line`]: this.singleLine,
- [`${t}-table--single-column`]: this.singleColumn,
- [`${t}-table--striped`]: this.striped
- }
- ],
- style: this.cssVars
- },
- this.$slots
- )
- );
- }
- }),
- Qy = 'n-tabs',
- nT = {
- tab: [String, Number, Object, Function],
- name: { type: [String, Number], required: !0 },
- disabled: Boolean,
- displayDirective: { type: String, default: 'if' },
- closable: { type: Boolean, default: void 0 },
- tabProps: Object,
- label: [String, Number, Object, Function]
- },
- hte = ke({
- __TAB_PANE__: !0,
- name: 'TabPane',
- alias: ['TabPanel'],
- props: nT,
- setup(e) {
- const t = Ze(Qy, null);
- return (
- t || io('tab-pane', '`n-tab-pane` must be placed inside `n-tabs`.'),
- {
- style: t.paneStyleRef,
- class: t.paneClassRef,
- mergedClsPrefix: t.mergedClsPrefixRef
- }
- );
- },
- render() {
- return h(
- 'div',
- {
- class: [`${this.mergedClsPrefix}-tab-pane`, this.class],
- style: this.style
- },
- this.$slots
- );
- }
- }),
- vte = Object.assign(
- {
- internalLeftPadded: Boolean,
- internalAddable: Boolean,
- internalCreatedByPane: Boolean
- },
- Xc(nT, ['displayDirective'])
- ),
- r0 = ke({
- __TAB__: !0,
- inheritAttrs: !1,
- name: 'Tab',
- props: vte,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- valueRef: n,
- typeRef: r,
- closableRef: o,
- tabStyleRef: i,
- tabChangeIdRef: a,
- onBeforeLeaveRef: s,
- triggerRef: c,
- handleAdd: d,
- activateTab: f,
- handleClose: v
- } = Ze(Qy);
- return {
- trigger: c,
- mergedClosable: I(() => {
- if (e.internalAddable) return !1;
- const { closable: p } = e;
- return p === void 0 ? o.value : p;
- }),
- style: i,
- clsPrefix: t,
- value: n,
- type: r,
- handleClose(p) {
- p.stopPropagation(), !e.disabled && v(e.name);
- },
- activateTab() {
- if (e.disabled) return;
- if (e.internalAddable) {
- d();
- return;
- }
- const { name: p } = e,
- m = ++a.id;
- if (p !== n.value) {
- const { value: g } = s;
- g
- ? Promise.resolve(g(e.name, n.value)).then(w => {
- w && a.id === m && f(p);
- })
- : f(p);
- }
- }
- };
- },
- render() {
- const {
- internalAddable: e,
- clsPrefix: t,
- name: n,
- disabled: r,
- label: o,
- tab: i,
- value: a,
- mergedClosable: s,
- style: c,
- trigger: d,
- $slots: { default: f }
- } = this,
- v = o ?? i;
- return h(
- 'div',
- { class: `${t}-tabs-tab-wrapper` },
- this.internalLeftPadded
- ? h('div', { class: `${t}-tabs-tab-pad` })
- : null,
- h(
- 'div',
- Object.assign(
- { key: n, 'data-name': n, 'data-disabled': r ? !0 : void 0 },
- qr(
- {
- class: [
- `${t}-tabs-tab`,
- a === n && `${t}-tabs-tab--active`,
- r && `${t}-tabs-tab--disabled`,
- s && `${t}-tabs-tab--closable`,
- e && `${t}-tabs-tab--addable`
- ],
- onClick: d === 'click' ? this.activateTab : void 0,
- onMouseenter: d === 'hover' ? this.activateTab : void 0,
- style: e ? void 0 : c
- },
- this.internalCreatedByPane ? this.tabProps || {} : this.$attrs
- )
- ),
- h(
- 'span',
- { class: `${t}-tabs-tab__label` },
- e
- ? h(
- on,
- null,
- h('div', { class: `${t}-tabs-tab__height-placeholder` }, ' '),
- h(At, { clsPrefix: t }, { default: () => h(wy, null) })
- )
- : f
- ? f()
- : typeof v == 'object'
- ? v
- : _n(v ?? n)
- ),
- s && this.type === 'card'
- ? h(Sl, {
- clsPrefix: t,
- class: `${t}-tabs-tab__close`,
- onClick: this.handleClose,
- disabled: r
- })
- : null
- )
- );
- }
- }),
- pte = O(
- 'tabs',
- `
- box-sizing: border-box;
- width: 100%;
- display: flex;
- flex-direction: column;
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- U('segment-type', [
- O('tabs-rail', [
- F('&.transition-disabled', 'color: red;', [
- O(
- 'tabs-tab',
- `
- transition: none;
- `
- )
- ])
- ])
- ]),
- U('top', [
- O(
- 'tab-pane',
- `
- padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
- `
- )
- ]),
- U('left', [
- O(
- 'tab-pane',
- `
- padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
- `
- )
- ]),
- U(
- 'left, right',
- `
- flex-direction: row;
- `,
- [
- O(
- 'tabs-bar',
- `
- width: 2px;
- right: 0;
- transition:
- top .2s var(--n-bezier),
- max-height .2s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `
- ),
- O(
- 'tabs-tab',
- `
- padding: var(--n-tab-padding-vertical);
- `
- )
- ]
- ),
- U(
- 'right',
- `
- flex-direction: row-reverse;
- `,
- [
- O(
- 'tab-pane',
- `
- padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
- `
- ),
- O(
- 'tabs-bar',
- `
- left: 0;
- `
- )
- ]
- ),
- U(
- 'bottom',
- `
- flex-direction: column-reverse;
- justify-content: flex-end;
- `,
- [
- O(
- 'tab-pane',
- `
- padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
- `
- ),
- O(
- 'tabs-bar',
- `
- top: 0;
- `
- )
- ]
- ),
- O(
- 'tabs-rail',
- `
- padding: 3px;
- border-radius: var(--n-tab-border-radius);
- width: 100%;
- background-color: var(--n-color-segment);
- transition: background-color .3s var(--n-bezier);
- display: flex;
- align-items: center;
- `,
- [
- O(
- 'tabs-tab-wrapper',
- `
- flex-basis: 0;
- flex-grow: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- `,
- [
- O(
- 'tabs-tab',
- `
- overflow: hidden;
- border-radius: var(--n-tab-border-radius);
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- `,
- [
- U(
- 'active',
- `
- font-weight: var(--n-font-weight-strong);
- color: var(--n-tab-text-color-active);
- background-color: var(--n-tab-color-segment);
- box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
- `
- ),
- F(
- '&:hover',
- `
- color: var(--n-tab-text-color-hover);
- `
- )
- ]
- )
- ]
- )
- ]
- ),
- U('flex', [
- O('tabs-nav', { width: '100%' }, [
- O('tabs-wrapper', { width: '100%' }, [
- O('tabs-tab', { marginRight: 0 })
- ])
- ])
- ]),
- O(
- 'tabs-nav',
- `
- box-sizing: border-box;
- line-height: 1.5;
- display: flex;
- transition: border-color .3s var(--n-bezier);
- `,
- [
- V(
- 'prefix, suffix',
- `
- display: flex;
- align-items: center;
- `
- ),
- V('prefix', 'padding-right: 16px;'),
- V('suffix', 'padding-left: 16px;')
- ]
- ),
- U('top, bottom', [
- O('tabs-nav-scroll-wrapper', [
- F(
- '&::before',
- `
- top: 0;
- bottom: 0;
- left: 0;
- width: 20px;
- `
- ),
- F(
- '&::after',
- `
- top: 0;
- bottom: 0;
- right: 0;
- width: 20px;
- `
- ),
- U('shadow-start', [
- F(
- '&::before',
- `
- box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
- `
- )
- ]),
- U('shadow-end', [
- F(
- '&::after',
- `
- box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
- `
- )
- ])
- ])
- ]),
- U('left, right', [
- O('tabs-nav-scroll-wrapper', [
- F(
- '&::before',
- `
- top: 0;
- left: 0;
- right: 0;
- height: 20px;
- `
- ),
- F(
- '&::after',
- `
- bottom: 0;
- left: 0;
- right: 0;
- height: 20px;
- `
- ),
- U('shadow-start', [
- F(
- '&::before',
- `
- box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
- `
- )
- ]),
- U('shadow-end', [
- F(
- '&::after',
- `
- box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
- `
- )
- ])
- ])
- ]),
- O(
- 'tabs-nav-scroll-wrapper',
- `
- flex: 1;
- position: relative;
- overflow: hidden;
- `,
- [
- O(
- 'tabs-nav-y-scroll',
- `
- height: 100%;
- width: 100%;
- overflow-y: auto;
- scrollbar-width: none;
- `,
- [
- F(
- '&::-webkit-scrollbar',
- `
- width: 0;
- height: 0;
- `
- )
- ]
- ),
- F(
- '&::before, &::after',
- `
- transition: box-shadow .3s var(--n-bezier);
- pointer-events: none;
- content: "";
- position: absolute;
- z-index: 1;
- `
- )
- ]
- ),
- O(
- 'tabs-nav-scroll-content',
- `
- display: flex;
- position: relative;
- min-width: 100%;
- width: fit-content;
- box-sizing: border-box;
- `
- ),
- O(
- 'tabs-wrapper',
- `
- display: inline-flex;
- flex-wrap: nowrap;
- position: relative;
- `
- ),
- O(
- 'tabs-tab-wrapper',
- `
- display: flex;
- flex-wrap: nowrap;
- flex-shrink: 0;
- flex-grow: 0;
- `
- ),
- O(
- 'tabs-tab',
- `
- cursor: pointer;
- white-space: nowrap;
- flex-wrap: nowrap;
- display: inline-flex;
- align-items: center;
- color: var(--n-tab-text-color);
- font-size: var(--n-tab-font-size);
- background-clip: padding-box;
- padding: var(--n-tab-padding);
- transition:
- box-shadow .3s var(--n-bezier),
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- U('disabled', { cursor: 'not-allowed' }),
- V(
- 'close',
- `
- margin-left: 6px;
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `
- ),
- V(
- 'label',
- `
- display: flex;
- align-items: center;
- `
- )
- ]
- ),
- O(
- 'tabs-bar',
- `
- position: absolute;
- bottom: 0;
- height: 2px;
- border-radius: 1px;
- background-color: var(--n-bar-color);
- transition:
- left .2s var(--n-bezier),
- max-width .2s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `,
- [
- F(
- '&.transition-disabled',
- `
- transition: none;
- `
- ),
- U(
- 'disabled',
- `
- background-color: var(--n-tab-text-color-disabled)
- `
- )
- ]
- ),
- O(
- 'tabs-pane-wrapper',
- `
- position: relative;
- overflow: hidden;
- transition: max-height .2s var(--n-bezier);
- `
- ),
- O(
- 'tab-pane',
- `
- color: var(--n-pane-text-color);
- width: 100%;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- opacity .2s var(--n-bezier);
- left: 0;
- right: 0;
- top: 0;
- `,
- [
- F(
- '&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active',
- `
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- transform .2s var(--n-bezier),
- opacity .2s var(--n-bezier);
- `
- ),
- F(
- '&.next-transition-leave-active, &.prev-transition-leave-active',
- `
- position: absolute;
- `
- ),
- F(
- '&.next-transition-enter-from, &.prev-transition-leave-to',
- `
- transform: translateX(32px);
- opacity: 0;
- `
- ),
- F(
- '&.next-transition-leave-to, &.prev-transition-enter-from',
- `
- transform: translateX(-32px);
- opacity: 0;
- `
- ),
- F(
- '&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to',
- `
- transform: translateX(0);
- opacity: 1;
- `
- )
- ]
- ),
- O(
- 'tabs-tab-pad',
- `
- box-sizing: border-box;
- width: var(--n-tab-gap);
- flex-grow: 0;
- flex-shrink: 0;
- `
- ),
- U('line-type, bar-type', [
- O(
- 'tabs-tab',
- `
- font-weight: var(--n-tab-font-weight);
- box-sizing: border-box;
- vertical-align: bottom;
- `,
- [
- F('&:hover', { color: 'var(--n-tab-text-color-hover)' }),
- U(
- 'active',
- `
- color: var(--n-tab-text-color-active);
- font-weight: var(--n-tab-font-weight-active);
- `
- ),
- U('disabled', { color: 'var(--n-tab-text-color-disabled)' })
- ]
- )
- ]),
- O('tabs-nav', [
- U('line-type', [
- U('top', [
- V(
- 'prefix, suffix',
- `
- border-bottom: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-nav-scroll-content',
- `
- border-bottom: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-bar',
- `
- bottom: -1px;
- `
- )
- ]),
- U('left', [
- V(
- 'prefix, suffix',
- `
- border-right: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-nav-scroll-content',
- `
- border-right: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-bar',
- `
- right: -1px;
- `
- )
- ]),
- U('right', [
- V(
- 'prefix, suffix',
- `
- border-left: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-nav-scroll-content',
- `
- border-left: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-bar',
- `
- left: -1px;
- `
- )
- ]),
- U('bottom', [
- V(
- 'prefix, suffix',
- `
- border-top: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-nav-scroll-content',
- `
- border-top: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-bar',
- `
- top: -1px;
- `
- )
- ]),
- V(
- 'prefix, suffix',
- `
- transition: border-color .3s var(--n-bezier);
- `
- ),
- O(
- 'tabs-nav-scroll-content',
- `
- transition: border-color .3s var(--n-bezier);
- `
- ),
- O(
- 'tabs-bar',
- `
- border-radius: 0;
- `
- )
- ]),
- U('card-type', [
- V(
- 'prefix, suffix',
- `
- transition: border-color .3s var(--n-bezier);
- border-bottom: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-pad',
- `
- flex-grow: 1;
- transition: border-color .3s var(--n-bezier);
- border-bottom: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-tab-pad',
- `
- transition: border-color .3s var(--n-bezier);
- `
- ),
- O(
- 'tabs-tab',
- `
- font-weight: var(--n-tab-font-weight);
- border: 1px solid var(--n-tab-border-color);
- background-color: var(--n-tab-color);
- box-sizing: border-box;
- position: relative;
- vertical-align: bottom;
- display: flex;
- justify-content: space-between;
- font-size: var(--n-tab-font-size);
- color: var(--n-tab-text-color);
- `,
- [
- U(
- 'addable',
- `
- padding-left: 8px;
- padding-right: 8px;
- font-size: 16px;
- `,
- [
- V(
- 'height-placeholder',
- `
- width: 0;
- font-size: var(--n-tab-font-size);
- `
- ),
- jt('disabled', [
- F(
- '&:hover',
- `
- color: var(--n-tab-text-color-hover);
- `
- )
- ])
- ]
- ),
- U('closable', 'padding-right: 8px;'),
- U(
- 'active',
- `
- background-color: #0000;
- font-weight: var(--n-tab-font-weight-active);
- color: var(--n-tab-text-color-active);
- `
- ),
- U('disabled', 'color: var(--n-tab-text-color-disabled);')
- ]
- ),
- O(
- 'tabs-scroll-padding',
- 'border-bottom: 1px solid var(--n-tab-border-color);'
- )
- ]),
- U('left, right', [
- O(
- 'tabs-wrapper',
- `
- flex-direction: column;
- `,
- [
- O(
- 'tabs-tab-wrapper',
- `
- flex-direction: column;
- `,
- [
- O(
- 'tabs-tab-pad',
- `
- height: var(--n-tab-gap-vertical);
- width: 100%;
- `
- )
- ]
- )
- ]
- )
- ]),
- U('top', [
- U('card-type', [
- O(
- 'tabs-tab',
- `
- border-top-left-radius: var(--n-tab-border-radius);
- border-top-right-radius: var(--n-tab-border-radius);
- `,
- [
- U(
- 'active',
- `
- border-bottom: 1px solid #0000;
- `
- )
- ]
- ),
- O(
- 'tabs-tab-pad',
- `
- border-bottom: 1px solid var(--n-tab-border-color);
- `
- )
- ])
- ]),
- U('left', [
- U('card-type', [
- O(
- 'tabs-tab',
- `
- border-top-left-radius: var(--n-tab-border-radius);
- border-bottom-left-radius: var(--n-tab-border-radius);
- `,
- [
- U(
- 'active',
- `
- border-right: 1px solid #0000;
- `
- )
- ]
- ),
- O(
- 'tabs-tab-pad',
- `
- border-right: 1px solid var(--n-tab-border-color);
- `
- )
- ])
- ]),
- U('right', [
- U('card-type', [
- O(
- 'tabs-tab',
- `
- border-top-right-radius: var(--n-tab-border-radius);
- border-bottom-right-radius: var(--n-tab-border-radius);
- `,
- [
- U(
- 'active',
- `
- border-left: 1px solid #0000;
- `
- )
- ]
- ),
- O(
- 'tabs-tab-pad',
- `
- border-left: 1px solid var(--n-tab-border-color);
- `
- )
- ])
- ]),
- U('bottom', [
- U('card-type', [
- O(
- 'tabs-tab',
- `
- border-bottom-left-radius: var(--n-tab-border-radius);
- border-bottom-right-radius: var(--n-tab-border-radius);
- `,
- [
- U(
- 'active',
- `
- border-top: 1px solid #0000;
- `
- )
- ]
- ),
- O(
- 'tabs-tab-pad',
- `
- border-top: 1px solid var(--n-tab-border-color);
- `
- )
- ])
- ])
- ])
- ]
- ),
- gte = Object.assign(Object.assign({}, Ke.props), {
- value: [String, Number],
- defaultValue: [String, Number],
- trigger: { type: String, default: 'click' },
- type: { type: String, default: 'bar' },
- closable: Boolean,
- justifyContent: String,
- size: { type: String, default: 'medium' },
- placement: { type: String, default: 'top' },
- tabStyle: [String, Object],
- barWidth: Number,
- paneClass: String,
- paneStyle: [String, Object],
- paneWrapperClass: String,
- paneWrapperStyle: [String, Object],
- addable: [Boolean, Object],
- tabsPadding: { type: Number, default: 0 },
- animated: Boolean,
- onBeforeLeave: Function,
- onAdd: Function,
- 'onUpdate:value': [Function, Array],
- onUpdateValue: [Function, Array],
- onClose: [Function, Array],
- labelSize: String,
- activeName: [String, Number],
- onActiveNameChange: [Function, Array]
- }),
- mte = ke({
- name: 'Tabs',
- props: gte,
- setup(e, { slots: t }) {
- var n, r, o, i;
- const { mergedClsPrefixRef: a, inlineThemeDisabled: s } = yt(e),
- c = Ke('Tabs', '-tabs', pte, uJ, e, a),
- d = Z(null),
- f = Z(null),
- v = Z(null),
- p = Z(null),
- m = Z(null),
- g = Z(!0),
- w = Z(!0),
- x = xs(e, ['labelSize', 'size']),
- y = xs(e, ['activeName', 'value']),
- C = Z(
- (r = (n = y.value) !== null && n !== void 0 ? n : e.defaultValue) !==
- null && r !== void 0
- ? r
- : t.default
- ? (i =
- (o = hi(t.default())[0]) === null || o === void 0
- ? void 0
- : o.props) === null || i === void 0
- ? void 0
- : i.name
- : null
- ),
- R = En(y, C),
- S = { id: 0 },
- _ = I(() => {
- if (!(!e.justifyContent || e.type === 'card'))
- return { display: 'flex', justifyContent: e.justifyContent };
- });
- $t(R, () => {
- (S.id = 0), z(), k();
- });
- function P() {
- var ie;
- const { value: W } = R;
- return W === null
- ? null
- : (ie = d.value) === null || ie === void 0
- ? void 0
- : ie.querySelector(`[data-name="${W}"]`);
- }
- function T(ie) {
- if (e.type === 'card') return;
- const { value: W } = f;
- if (W && ie) {
- const ae = `${a.value}-tabs-bar--disabled`,
- { barWidth: he, placement: _e } = e;
- if (
- (ie.dataset.disabled === 'true'
- ? W.classList.add(ae)
- : W.classList.remove(ae),
- ['top', 'bottom'].includes(_e))
- ) {
- if (
- (E(['top', 'maxHeight', 'height']),
- typeof he == 'number' && ie.offsetWidth >= he)
- ) {
- const le = Math.floor((ie.offsetWidth - he) / 2) + ie.offsetLeft;
- (W.style.left = `${le}px`), (W.style.maxWidth = `${he}px`);
- } else
- (W.style.left = `${ie.offsetLeft}px`),
- (W.style.maxWidth = `${ie.offsetWidth}px`);
- (W.style.width = '8192px'), W.offsetWidth;
- } else {
- if (
- (E(['left', 'maxWidth', 'width']),
- typeof he == 'number' && ie.offsetHeight >= he)
- ) {
- const le = Math.floor((ie.offsetHeight - he) / 2) + ie.offsetTop;
- (W.style.top = `${le}px`), (W.style.maxHeight = `${he}px`);
- } else
- (W.style.top = `${ie.offsetTop}px`),
- (W.style.maxHeight = `${ie.offsetHeight}px`);
- (W.style.height = '8192px'), W.offsetHeight;
- }
- }
- }
- function E(ie) {
- const { value: W } = f;
- if (W) for (const ae of ie) W.style[ae] = '';
- }
- function z() {
- if (e.type === 'card') return;
- const ie = P();
- ie && T(ie);
- }
- function k(ie) {
- var W;
- const ae = (W = m.value) === null || W === void 0 ? void 0 : W.$el;
- if (!ae) return;
- const he = P();
- if (!he) return;
- const { scrollLeft: _e, offsetWidth: le } = ae,
- { offsetLeft: Re, offsetWidth: Ne } = he;
- _e > Re
- ? ae.scrollTo({ top: 0, left: Re, behavior: 'smooth' })
- : Re + Ne > _e + le &&
- ae.scrollTo({ top: 0, left: Re + Ne - le, behavior: 'smooth' });
- }
- const M = Z(null);
- let A = 0,
- D = null;
- function L(ie) {
- const W = M.value;
- if (W) {
- A = ie.getBoundingClientRect().height;
- const ae = `${A}px`,
- he = () => {
- (W.style.height = ae), (W.style.maxHeight = ae);
- };
- D ? (he(), D(), (D = null)) : (D = he);
- }
- }
- function H(ie) {
- const W = M.value;
- if (W) {
- const ae = ie.getBoundingClientRect().height,
- he = () => {
- document.body.offsetHeight,
- (W.style.maxHeight = `${ae}px`),
- (W.style.height = `${Math.max(A, ae)}px`);
- };
- D ? (D(), (D = null), he()) : (D = he);
- }
- }
- function B() {
- const ie = M.value;
- ie && ((ie.style.maxHeight = ''), (ie.style.height = ''));
- }
- const q = { value: [] },
- X = Z('next');
- function te(ie) {
- const W = R.value;
- let ae = 'next';
- for (const he of q.value) {
- if (he === W) break;
- if (he === ie) {
- ae = 'prev';
- break;
- }
- }
- (X.value = ae), G(ie);
- }
- function G(ie) {
- const {
- onActiveNameChange: W,
- onUpdateValue: ae,
- 'onUpdate:value': he
- } = e;
- W && Me(W, ie), ae && Me(ae, ie), he && Me(he, ie), (C.value = ie);
- }
- function Q(ie) {
- const { onClose: W } = e;
- W && Me(W, ie);
- }
- function re() {
- const { value: ie } = f;
- if (!ie) return;
- const W = 'transition-disabled';
- ie.classList.add(W), z(), ie.classList.remove(W);
- }
- let se = 0;
- function pe(ie) {
- var W;
- if (
- (ie.contentRect.width === 0 && ie.contentRect.height === 0) ||
- se === ie.contentRect.width
- )
- return;
- se = ie.contentRect.width;
- const { type: ae } = e;
- (ae === 'line' || ae === 'bar') && re(),
- ae !== 'segment' &&
- ge((W = m.value) === null || W === void 0 ? void 0 : W.$el);
- }
- const ce = wm(pe, 64);
- $t([() => e.justifyContent, () => e.size], () => {
- mn(() => {
- const { type: ie } = e;
- (ie === 'line' || ie === 'bar') && re();
- });
- });
- const xe = Z(!1);
- function ve(ie) {
- var W;
- const {
- target: ae,
- contentRect: { width: he }
- } = ie,
- _e = ae.parentElement.offsetWidth;
- if (!xe.value) _e < he && (xe.value = !0);
- else {
- const { value: le } = p;
- if (!le) return;
- _e - he > le.$el.offsetWidth && (xe.value = !1);
- }
- ge((W = m.value) === null || W === void 0 ? void 0 : W.$el);
- }
- const be = wm(ve, 64);
- function Ce() {
- const { onAdd: ie } = e;
- ie && ie(),
- mn(() => {
- const W = P(),
- { value: ae } = m;
- !W ||
- !ae ||
- ae.scrollTo({ left: W.offsetLeft, top: 0, behavior: 'smooth' });
- });
- }
- function ge(ie) {
- if (!ie) return;
- const { placement: W } = e;
- if (W === 'top' || W === 'bottom') {
- const { scrollLeft: ae, scrollWidth: he, offsetWidth: _e } = ie;
- (g.value = ae <= 0), (w.value = ae + _e >= he);
- } else {
- const { scrollTop: ae, scrollHeight: he, offsetHeight: _e } = ie;
- (g.value = ae <= 0), (w.value = ae + _e >= he);
- }
- }
- const Ae = wm(ie => {
- ge(ie.target);
- }, 64);
- Rt(Qy, {
- triggerRef: Ie(e, 'trigger'),
- tabStyleRef: Ie(e, 'tabStyle'),
- paneClassRef: Ie(e, 'paneClass'),
- paneStyleRef: Ie(e, 'paneStyle'),
- mergedClsPrefixRef: a,
- typeRef: Ie(e, 'type'),
- closableRef: Ie(e, 'closable'),
- valueRef: R,
- tabChangeIdRef: S,
- onBeforeLeaveRef: Ie(e, 'onBeforeLeave'),
- activateTab: te,
- handleClose: Q,
- handleAdd: Ce
- }),
- jR(() => {
- z(), k();
- }),
- Bn(() => {
- const { value: ie } = v;
- if (!ie) return;
- const { value: W } = a,
- ae = `${W}-tabs-nav-scroll-wrapper--shadow-start`,
- he = `${W}-tabs-nav-scroll-wrapper--shadow-end`;
- g.value ? ie.classList.remove(ae) : ie.classList.add(ae),
- w.value ? ie.classList.remove(he) : ie.classList.add(he);
- });
- const j = Z(null);
- $t(R, () => {
- if (e.type === 'segment') {
- const ie = j.value;
- ie &&
- mn(() => {
- ie.classList.add('transition-disabled'),
- ie.offsetWidth,
- ie.classList.remove('transition-disabled');
- });
- }
- });
- const ee = {
- syncBarPosition: () => {
- z();
- }
- },
- ne = I(() => {
- const { value: ie } = x,
- { type: W } = e,
- ae = { card: 'Card', bar: 'Bar', line: 'Line', segment: 'Segment' }[
- W
- ],
- he = `${ie}${ae}`,
- {
- self: {
- barColor: _e,
- closeIconColor: le,
- closeIconColorHover: Re,
- closeIconColorPressed: Ne,
- tabColor: Ge,
- tabBorderColor: it,
- paneTextColor: dt,
- tabFontWeight: xt,
- tabBorderRadius: De,
- tabFontWeightActive: ut,
- colorSegment: wt,
- fontWeightStrong: Lt,
- tabColorSegment: ot,
- closeSize: ct,
- closeIconSize: Xe,
- closeColorHover: Qe,
- closeColorPressed: oe,
- closeBorderRadius: ze,
- [Ee('panePadding', ie)]: We,
- [Ee('tabPadding', he)]: lt,
- [Ee('tabPaddingVertical', he)]: st,
- [Ee('tabGap', he)]: me,
- [Ee('tabGap', `${he}Vertical`)]: He,
- [Ee('tabTextColor', W)]: tt,
- [Ee('tabTextColorActive', W)]: pt,
- [Ee('tabTextColorHover', W)]: Pe,
- [Ee('tabTextColorDisabled', W)]: Ve,
- [Ee('tabFontSize', ie)]: nt
- },
- common: { cubicBezierEaseInOut: Ot }
- } = c.value;
- return {
- '--n-bezier': Ot,
- '--n-color-segment': wt,
- '--n-bar-color': _e,
- '--n-tab-font-size': nt,
- '--n-tab-text-color': tt,
- '--n-tab-text-color-active': pt,
- '--n-tab-text-color-disabled': Ve,
- '--n-tab-text-color-hover': Pe,
- '--n-pane-text-color': dt,
- '--n-tab-border-color': it,
- '--n-tab-border-radius': De,
- '--n-close-size': ct,
- '--n-close-icon-size': Xe,
- '--n-close-color-hover': Qe,
- '--n-close-color-pressed': oe,
- '--n-close-border-radius': ze,
- '--n-close-icon-color': le,
- '--n-close-icon-color-hover': Re,
- '--n-close-icon-color-pressed': Ne,
- '--n-tab-color': Ge,
- '--n-tab-font-weight': xt,
- '--n-tab-font-weight-active': ut,
- '--n-tab-padding': lt,
- '--n-tab-padding-vertical': st,
- '--n-tab-gap': me,
- '--n-tab-gap-vertical': He,
- '--n-pane-padding-left': Go(We, 'left'),
- '--n-pane-padding-right': Go(We, 'right'),
- '--n-pane-padding-top': Go(We, 'top'),
- '--n-pane-padding-bottom': Go(We, 'bottom'),
- '--n-font-weight-strong': Lt,
- '--n-tab-color-segment': ot
- };
- }),
- fe = s
- ? Mt(
- 'tabs',
- I(() => `${x.value[0]}${e.type[0]}`),
- ne,
- e
- )
- : void 0;
- return Object.assign(
- {
- mergedClsPrefix: a,
- mergedValue: R,
- renderedNames: new Set(),
- tabsRailElRef: j,
- tabsPaneWrapperRef: M,
- tabsElRef: d,
- barElRef: f,
- addTabInstRef: p,
- xScrollInstRef: m,
- scrollWrapperElRef: v,
- addTabFixed: xe,
- tabWrapperStyle: _,
- handleNavResize: ce,
- mergedSize: x,
- handleScroll: Ae,
- handleTabsResize: be,
- cssVars: s ? void 0 : ne,
- themeClass: fe == null ? void 0 : fe.themeClass,
- animationDirection: X,
- renderNameListRef: q,
- onAnimationBeforeLeave: L,
- onAnimationEnter: H,
- onAnimationAfterEnter: B,
- onRender: fe == null ? void 0 : fe.onRender
- },
- ee
- );
- },
- render() {
- const {
- mergedClsPrefix: e,
- type: t,
- placement: n,
- addTabFixed: r,
- addable: o,
- mergedSize: i,
- renderNameListRef: a,
- onRender: s,
- paneWrapperClass: c,
- paneWrapperStyle: d,
- $slots: { default: f, prefix: v, suffix: p }
- } = this;
- s == null || s();
- const m = f ? hi(f()).filter(_ => _.type.__TAB_PANE__ === !0) : [],
- g = f ? hi(f()).filter(_ => _.type.__TAB__ === !0) : [],
- w = !g.length,
- x = t === 'card',
- y = t === 'segment',
- C = !x && !y && this.justifyContent;
- a.value = [];
- const R = () => {
- const _ = h(
- 'div',
- { style: this.tabWrapperStyle, class: [`${e}-tabs-wrapper`] },
- C
- ? null
- : h('div', {
- class: `${e}-tabs-scroll-padding`,
- style: { width: `${this.tabsPadding}px` }
- }),
- w
- ? m.map(
- (P, T) => (
- a.value.push(P.props.name),
- Gm(
- h(
- r0,
- Object.assign({}, P.props, {
- internalCreatedByPane: !0,
- internalLeftPadded:
- T !== 0 &&
- (!C ||
- C === 'center' ||
- C === 'start' ||
- C === 'end')
- }),
- P.children ? { default: P.children.tab } : void 0
- )
- )
- )
- )
- : g.map(
- (P, T) => (
- a.value.push(P.props.name), Gm(T !== 0 && !C ? g2(P) : P)
- )
- ),
- !r && o && x ? p2(o, (w ? m.length : g.length) !== 0) : null,
- C
- ? null
- : h('div', {
- class: `${e}-tabs-scroll-padding`,
- style: { width: `${this.tabsPadding}px` }
- })
- );
- return h(
- 'div',
- { ref: 'tabsElRef', class: `${e}-tabs-nav-scroll-content` },
- x && o
- ? h(qi, { onResize: this.handleTabsResize }, { default: () => _ })
- : _,
- x ? h('div', { class: `${e}-tabs-pad` }) : null,
- x ? null : h('div', { ref: 'barElRef', class: `${e}-tabs-bar` })
- );
- },
- S = y ? 'top' : n;
- return h(
- 'div',
- {
- class: [
- `${e}-tabs`,
- this.themeClass,
- `${e}-tabs--${t}-type`,
- `${e}-tabs--${i}-size`,
- C && `${e}-tabs--flex`,
- `${e}-tabs--${S}`
- ],
- style: this.cssVars
- },
- h(
- 'div',
- {
- class: [
- `${e}-tabs-nav--${t}-type`,
- `${e}-tabs-nav--${S}`,
- `${e}-tabs-nav`
- ]
- },
- cn(v, _ => _ && h('div', { class: `${e}-tabs-nav__prefix` }, _)),
- y
- ? h(
- 'div',
- { class: `${e}-tabs-rail`, ref: 'tabsRailElRef' },
- w
- ? m.map(
- (_, P) => (
- a.value.push(_.props.name),
- h(
- r0,
- Object.assign({}, _.props, {
- internalCreatedByPane: !0,
- internalLeftPadded: P !== 0
- }),
- _.children ? { default: _.children.tab } : void 0
- )
- )
- )
- : g.map(
- (_, P) => (
- a.value.push(_.props.name), P === 0 ? _ : g2(_)
- )
- )
- )
- : h(
- qi,
- { onResize: this.handleNavResize },
- {
- default: () =>
- h(
- 'div',
- {
- class: `${e}-tabs-nav-scroll-wrapper`,
- ref: 'scrollWrapperElRef'
- },
- ['top', 'bottom'].includes(S)
- ? h(
- lF,
- {
- ref: 'xScrollInstRef',
- onScroll: this.handleScroll
- },
- { default: R }
- )
- : h(
- 'div',
- {
- class: `${e}-tabs-nav-y-scroll`,
- onScroll: this.handleScroll
- },
- R()
- )
- )
- }
- ),
- r && o && x ? p2(o, !0) : null,
- cn(p, _ => _ && h('div', { class: `${e}-tabs-nav__suffix` }, _))
- ),
- w &&
- (this.animated && (S === 'top' || S === 'bottom')
- ? h(
- 'div',
- {
- ref: 'tabsPaneWrapperRef',
- style: d,
- class: [`${e}-tabs-pane-wrapper`, c]
- },
- v2(
- m,
- this.mergedValue,
- this.renderedNames,
- this.onAnimationBeforeLeave,
- this.onAnimationEnter,
- this.onAnimationAfterEnter,
- this.animationDirection
- )
- )
- : v2(m, this.mergedValue, this.renderedNames))
- );
- }
- });
- function v2(e, t, n, r, o, i, a) {
- const s = [];
- return (
- e.forEach(c => {
- const { name: d, displayDirective: f, 'display-directive': v } = c.props,
- p = g => f === g || v === g,
- m = t === d;
- if (
- (c.key !== void 0 && (c.key = d),
- m || p('show') || (p('show:lazy') && n.has(d)))
- ) {
- n.has(d) || n.add(d);
- const g = !p('if');
- s.push(g ? Er(c, [[vi, m]]) : c);
- }
- }),
- a
- ? h(
- Y0,
- {
- name: `${a}-transition`,
- onBeforeLeave: r,
- onEnter: o,
- onAfterEnter: i
- },
- { default: () => s }
- )
- : s
- );
- }
- function p2(e, t) {
- return h(r0, {
- ref: 'addTabInstRef',
- key: '__addable',
- name: '__addable',
- internalCreatedByPane: !0,
- internalAddable: !0,
- internalLeftPadded: t,
- disabled: typeof e == 'object' && e.disabled
- });
- }
- function g2(e) {
- const t = Ao(e);
- return (
- t.props
- ? (t.props.internalLeftPadded = !0)
- : (t.props = { internalLeftPadded: !0 }),
- t
- );
- }
- function Gm(e) {
- return (
- Array.isArray(e.dynamicProps)
- ? e.dynamicProps.includes('internalLeftPadded') ||
- e.dynamicProps.push('internalLeftPadded')
- : (e.dynamicProps = ['internalLeftPadded']),
- e
- );
- }
- const bte = O(
- 'thing',
- `
- display: flex;
- transition: color .3s var(--n-bezier);
- font-size: var(--n-font-size);
- color: var(--n-text-color);
- `,
- [
- O(
- 'thing-avatar',
- `
- margin-right: 12px;
- margin-top: 2px;
- `
- ),
- O(
- 'thing-avatar-header-wrapper',
- `
- display: flex;
- flex-wrap: nowrap;
- `,
- [
- O(
- 'thing-header-wrapper',
- `
- flex: 1;
- `
- )
- ]
- ),
- O(
- 'thing-main',
- `
- flex-grow: 1;
- `,
- [
- O(
- 'thing-header',
- `
- display: flex;
- margin-bottom: 4px;
- justify-content: space-between;
- align-items: center;
- `,
- [
- V(
- 'title',
- `
- font-size: 16px;
- font-weight: var(--n-title-font-weight);
- transition: color .3s var(--n-bezier);
- color: var(--n-title-text-color);
- `
- )
- ]
- ),
- V('description', [
- F(
- '&:not(:last-child)',
- `
- margin-bottom: 4px;
- `
- )
- ]),
- V('content', [
- F(
- '&:not(:first-child)',
- `
- margin-top: 12px;
- `
- )
- ]),
- V('footer', [
- F(
- '&:not(:first-child)',
- `
- margin-top: 12px;
- `
- )
- ]),
- V('action', [
- F(
- '&:not(:first-child)',
- `
- margin-top: 12px;
- `
- )
- ])
- ]
- )
- ]
- ),
- yte = Object.assign(Object.assign({}, Ke.props), {
- title: String,
- titleExtra: String,
- description: String,
- descriptionStyle: [String, Object],
- content: String,
- contentStyle: [String, Object],
- contentIndented: Boolean
- }),
- xte = ke({
- name: 'Thing',
- props: yte,
- setup(e, { slots: t }) {
- const {
- mergedClsPrefixRef: n,
- inlineThemeDisabled: r,
- mergedRtlRef: o
- } = yt(e),
- i = Ke('Thing', '-thing', bte, vJ, e, n),
- a = cr('Thing', o, n),
- s = I(() => {
- const {
- self: {
- titleTextColor: d,
- textColor: f,
- titleFontWeight: v,
- fontSize: p
- },
- common: { cubicBezierEaseInOut: m }
- } = i.value;
- return {
- '--n-bezier': m,
- '--n-font-size': p,
- '--n-text-color': f,
- '--n-title-font-weight': v,
- '--n-title-text-color': d
- };
- }),
- c = r ? Mt('thing', void 0, s, e) : void 0;
- return () => {
- var d;
- const { value: f } = n,
- v = a ? a.value : !1;
- return (
- (d = c == null ? void 0 : c.onRender) === null ||
- d === void 0 ||
- d.call(c),
- h(
- 'div',
- {
- class: [
- `${f}-thing`,
- c == null ? void 0 : c.themeClass,
- v && `${f}-thing--rtl`
- ],
- style: r ? void 0 : s.value
- },
- t.avatar && e.contentIndented
- ? h('div', { class: `${f}-thing-avatar` }, t.avatar())
- : null,
- h(
- 'div',
- { class: `${f}-thing-main` },
- !e.contentIndented &&
- (t.header ||
- e.title ||
- t['header-extra'] ||
- e.titleExtra ||
- t.avatar)
- ? h(
- 'div',
- { class: `${f}-thing-avatar-header-wrapper` },
- t.avatar
- ? h('div', { class: `${f}-thing-avatar` }, t.avatar())
- : null,
- t.header || e.title || t['header-extra'] || e.titleExtra
- ? h(
- 'div',
- { class: `${f}-thing-header-wrapper` },
- h(
- 'div',
- { class: `${f}-thing-header` },
- t.header || e.title
- ? h(
- 'div',
- { class: `${f}-thing-header__title` },
- t.header ? t.header() : e.title
- )
- : null,
- t['header-extra'] || e.titleExtra
- ? h(
- 'div',
- { class: `${f}-thing-header__extra` },
- t['header-extra']
- ? t['header-extra']()
- : e.titleExtra
- )
- : null
- ),
- t.description || e.description
- ? h(
- 'div',
- {
- class: `${f}-thing-main__description`,
- style: e.descriptionStyle
- },
- t.description ? t.description() : e.description
- )
- : null
- )
- : null
- )
- : h(
- on,
- null,
- t.header || e.title || t['header-extra'] || e.titleExtra
- ? h(
- 'div',
- { class: `${f}-thing-header` },
- t.header || e.title
- ? h(
- 'div',
- { class: `${f}-thing-header__title` },
- t.header ? t.header() : e.title
- )
- : null,
- t['header-extra'] || e.titleExtra
- ? h(
- 'div',
- { class: `${f}-thing-header__extra` },
- t['header-extra']
- ? t['header-extra']()
- : e.titleExtra
- )
- : null
- )
- : null,
- t.description || e.description
- ? h(
- 'div',
- {
- class: `${f}-thing-main__description`,
- style: e.descriptionStyle
- },
- t.description ? t.description() : e.description
- )
- : null
- ),
- t.default || e.content
- ? h(
- 'div',
- {
- class: `${f}-thing-main__content`,
- style: e.contentStyle
- },
- t.default ? t.default() : e.content
- )
- : null,
- t.footer
- ? h('div', { class: `${f}-thing-main__footer` }, t.footer())
- : null,
- t.action
- ? h('div', { class: `${f}-thing-main__action` }, t.action())
- : null
- )
- )
- );
- };
- }
- }),
- rT = 'n-tree-select',
- rf = 'n-tree',
- wte = ke({
- name: 'NTreeSwitcher',
- props: {
- clsPrefix: { type: String, required: !0 },
- expanded: Boolean,
- selected: Boolean,
- hide: Boolean,
- loading: Boolean,
- onClick: Function
- },
- setup(e) {
- const { renderSwitcherIconRef: t } = Ze(rf, null);
- return () => {
- const { clsPrefix: n } = e;
- return h(
- 'span',
- {
- 'data-switcher': !0,
- class: [
- `${n}-tree-node-switcher`,
- e.expanded && `${n}-tree-node-switcher--expanded`,
- e.hide && `${n}-tree-node-switcher--hide`
- ],
- onClick: e.onClick
- },
- h(
- 'div',
- { class: `${n}-tree-node-switcher__icon` },
- h(Ji, null, {
- default: () => {
- if (e.loading)
- return h(Oa, {
- clsPrefix: n,
- key: 'loading',
- radius: 85,
- strokeWidth: 20
- });
- const { value: r } = t;
- return r
- ? r({ expanded: e.expanded, selected: e.selected })
- : h(
- At,
- { clsPrefix: n, key: 'switcher' },
- { default: () => h(kW, null) }
- );
- }
- })
- )
- );
- };
- }
- }),
- Cte = ke({
- name: 'NTreeNodeCheckbox',
- props: {
- clsPrefix: { type: String, required: !0 },
- right: Boolean,
- focusable: Boolean,
- disabled: Boolean,
- checked: Boolean,
- indeterminate: Boolean,
- onCheck: Function
- },
- setup(e) {
- const t = Ze(rf);
- function n(o) {
- const { onCheck: i } = e;
- i && i(o);
- }
- function r(o) {
- e.indeterminate ? n(!1) : n(o);
- }
- return { handleUpdateValue: r, mergedTheme: t.mergedThemeRef };
- },
- render() {
- const {
- clsPrefix: e,
- mergedTheme: t,
- checked: n,
- indeterminate: r,
- disabled: o,
- focusable: i,
- handleUpdateValue: a
- } = this;
- return h(
- 'span',
- {
- class: [
- `${e}-tree-node-checkbox`,
- this.right && `${e}-tree-node-checkbox--right`
- ],
- 'data-checkbox': !0
- },
- h(Zu, {
- focusable: i,
- disabled: o,
- theme: t.peers.Checkbox,
- themeOverrides: t.peerOverrides.Checkbox,
- checked: n,
- indeterminate: r,
- onUpdateChecked: a
- })
- );
- }
- }),
- Ste = ke({
- name: 'TreeNodeContent',
- props: {
- clsPrefix: { type: String, required: !0 },
- disabled: Boolean,
- checked: Boolean,
- selected: Boolean,
- onClick: Function,
- onDragstart: Function,
- tmNode: { type: Object, required: !0 },
- nodeProps: Object
- },
- setup(e) {
- const {
- renderLabelRef: t,
- renderPrefixRef: n,
- renderSuffixRef: r,
- labelFieldRef: o
- } = Ze(rf),
- i = Z(null);
- function a(c) {
- const { onClick: d } = e;
- d && d(c);
- }
- function s(c) {
- a(c);
- }
- return {
- selfRef: i,
- renderLabel: t,
- renderPrefix: n,
- renderSuffix: r,
- labelField: o,
- handleClick: s
- };
- },
- render() {
- const {
- clsPrefix: e,
- labelField: t,
- nodeProps: n,
- checked: r = !1,
- selected: o = !1,
- renderLabel: i,
- renderPrefix: a,
- renderSuffix: s,
- handleClick: c,
- onDragstart: d,
- tmNode: {
- rawNode: f,
- rawNode: { prefix: v, suffix: p, [t]: m }
- }
- } = this;
- return h(
- 'span',
- Object.assign({}, n, {
- ref: 'selfRef',
- class: [`${e}-tree-node-content`, n == null ? void 0 : n.class],
- onClick: c,
- draggable: d === void 0 ? void 0 : !0,
- onDragstart: d
- }),
- a || v
- ? h(
- 'div',
- { class: `${e}-tree-node-content__prefix` },
- a ? a({ option: f, selected: o, checked: r }) : _n(v)
- )
- : null,
- h(
- 'div',
- { class: `${e}-tree-node-content__text` },
- i ? i({ option: f, selected: o, checked: r }) : _n(m)
- ),
- s || p
- ? h(
- 'div',
- { class: `${e}-tree-node-content__suffix` },
- s ? s({ option: f, selected: o, checked: r }) : _n(p)
- )
- : null
- );
- }
- });
- function m2({ position: e, offsetLevel: t, indent: n, el: r }) {
- const o = { position: 'absolute', boxSizing: 'border-box', right: 0 };
- if (e === 'inside')
- (o.left = 0),
- (o.top = 0),
- (o.bottom = 0),
- (o.borderRadius = 'inherit'),
- (o.boxShadow = 'inset 0 0 0 2px var(--n-drop-mark-color)');
- else {
- const i = e === 'before' ? 'top' : 'bottom';
- (o[i] = 0),
- (o.left = `${r.offsetLeft + 6 - t * n}px`),
- (o.height = '2px'),
- (o.backgroundColor = 'var(--n-drop-mark-color)'),
- (o.transformOrigin = i),
- (o.borderRadius = '1px'),
- (o.transform = e === 'before' ? 'translateY(-4px)' : 'translateY(4px)');
- }
- return h('div', { style: o });
- }
- function _te({ dropPosition: e, node: t }) {
- return t.isLeaf === !1 || t.children ? !0 : e !== 'inside';
- }
- function Rte(e) {
- return I(() => (e.leafOnly ? 'child' : e.checkStrategy));
- }
- function Qa(e, t) {
- return !!e.rawNode[t];
- }
- function oT(e, t, n, r) {
- e == null ||
- e.forEach(o => {
- n(o), oT(o[t], t, n, r), r(o);
- });
- }
- function Pte(e, t, n, r, o) {
- const i = new Set(),
- a = new Set(),
- s = [];
- return (
- oT(
- e,
- r,
- c => {
- if ((s.push(c), o(t, c))) {
- a.add(c[n]);
- for (let d = s.length - 2; d >= 0; --d)
- if (!i.has(s[d][n])) i.add(s[d][n]);
- else return;
- }
- },
- () => {
- s.pop();
- }
- ),
- { expandedKeys: Array.from(i), highlightKeySet: a }
- );
- }
- if (Fo && Image) {
- const e = new Image();
- e.src =
- 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';
- }
- function kte(e, t, n, r, o) {
- const i = new Set(),
- a = new Set(),
- s = new Set(),
- c = [],
- d = [],
- f = [];
- function v(m) {
- m.forEach(g => {
- if ((f.push(g), t(n, g))) {
- i.add(g[r]), s.add(g[r]);
- for (let x = f.length - 2; x >= 0; --x) {
- const y = f[x][r];
- if (!a.has(y)) a.add(y), i.has(y) && i.delete(y);
- else break;
- }
- }
- const w = g[o];
- w && v(w), f.pop();
- });
- }
- v(e);
- function p(m, g) {
- m.forEach(w => {
- const x = w[r],
- y = i.has(x),
- C = a.has(x);
- if (!y && !C) return;
- const R = w[o];
- if (R)
- if (y) g.push(w);
- else {
- c.push(x);
- const S = Object.assign(Object.assign({}, w), { [o]: [] });
- g.push(S), p(R, S[o]);
- }
- else g.push(w);
- });
- }
- return p(e, d), { filteredTree: d, highlightKeySet: s, expandedKeys: c };
- }
- const Tte = ke({
- name: 'TreeNode',
- props: {
- clsPrefix: { type: String, required: !0 },
- tmNode: { type: Object, required: !0 }
- },
- setup(e) {
- const t = Ze(rf),
- {
- droppingNodeParentRef: n,
- droppingMouseNodeRef: r,
- draggingNodeRef: o,
- droppingPositionRef: i,
- droppingOffsetLevelRef: a,
- nodePropsRef: s,
- indentRef: c,
- blockLineRef: d,
- checkboxPlacementRef: f,
- checkOnClickRef: v,
- disabledFieldRef: p
- } = t,
- m = kt(() => !!e.tmNode.rawNode.checkboxDisabled),
- g = kt(() => Qa(e.tmNode, p.value)),
- w = kt(() => t.disabledRef.value || g.value),
- x = I(() => {
- const { value: X } = s;
- if (X) return X({ option: e.tmNode.rawNode });
- }),
- y = Z(null),
- C = { value: null };
- Hn(() => {
- C.value = y.value.$el;
- });
- function R() {
- const { tmNode: X } = e;
- if (!X.isLeaf && !X.shallowLoaded) {
- if (!t.loadingKeysRef.value.has(X.key))
- t.loadingKeysRef.value.add(X.key);
- else return;
- const {
- onLoadRef: { value: te }
- } = t;
- te &&
- te(X.rawNode)
- .then(G => {
- G !== !1 && t.handleSwitcherClick(X);
- })
- .finally(() => {
- t.loadingKeysRef.value.delete(X.key);
- });
- } else t.handleSwitcherClick(X);
- }
- const S = kt(
- () =>
- !g.value &&
- t.selectableRef.value &&
- (t.internalTreeSelect
- ? t.mergedCheckStrategyRef.value !== 'child' ||
- (t.multipleRef.value && t.cascadeRef.value) ||
- e.tmNode.isLeaf
- : !0)
- ),
- _ = kt(
- () =>
- t.checkableRef.value &&
- (t.cascadeRef.value ||
- t.mergedCheckStrategyRef.value !== 'child' ||
- e.tmNode.isLeaf)
- ),
- P = kt(() => t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),
- T = kt(() => {
- const { value: X } = _;
- if (!X) return !1;
- const { value: te } = v;
- return typeof te == 'boolean' ? te : te(e.tmNode.rawNode);
- });
- function E(X) {
- const { value: te } = t.expandOnClickRef,
- { value: G } = S,
- { value: Q } = T;
- if ((!G && !te && !Q) || Mo(X, 'checkbox') || Mo(X, 'switcher')) return;
- const { tmNode: re } = e;
- G && t.handleSelect(re), te && !re.isLeaf && R(), Q && M(!P.value);
- }
- function z(X) {
- var te, G;
- d.value ||
- (w.value || E(X),
- (G =
- (te = x.value) === null || te === void 0 ? void 0 : te.onClick) ===
- null ||
- G === void 0 ||
- G.call(te, X));
- }
- function k(X) {
- var te, G;
- d.value &&
- (w.value || E(X),
- (G =
- (te = x.value) === null || te === void 0 ? void 0 : te.onClick) ===
- null ||
- G === void 0 ||
- G.call(te, X));
- }
- function M(X) {
- t.handleCheck(e.tmNode, X);
- }
- function A(X) {
- t.handleDragStart({ event: X, node: e.tmNode });
- }
- function D(X) {
- X.currentTarget === X.target &&
- t.handleDragEnter({ event: X, node: e.tmNode });
- }
- function L(X) {
- X.preventDefault(), t.handleDragOver({ event: X, node: e.tmNode });
- }
- function H(X) {
- t.handleDragEnd({ event: X, node: e.tmNode });
- }
- function B(X) {
- X.currentTarget === X.target &&
- t.handleDragLeave({ event: X, node: e.tmNode });
- }
- function q(X) {
- X.preventDefault(),
- i.value !== null &&
- t.handleDrop({ event: X, node: e.tmNode, dropPosition: i.value });
- }
- return {
- showDropMark: kt(() => {
- const { value: X } = o;
- if (!X) return;
- const { value: te } = i;
- if (!te) return;
- const { value: G } = r;
- if (!G) return;
- const { tmNode: Q } = e;
- return Q.key === G.key;
- }),
- showDropMarkAsParent: kt(() => {
- const { value: X } = n;
- if (!X) return !1;
- const { tmNode: te } = e,
- { value: G } = i;
- return G === 'before' || G === 'after' ? X.key === te.key : !1;
- }),
- pending: kt(() => t.pendingNodeKeyRef.value === e.tmNode.key),
- loading: kt(() => t.loadingKeysRef.value.has(e.tmNode.key)),
- highlight: kt(() => {
- var X;
- return (X = t.highlightKeySetRef.value) === null || X === void 0
- ? void 0
- : X.has(e.tmNode.key);
- }),
- checked: P,
- indeterminate: kt(() =>
- t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)
- ),
- selected: kt(() =>
- t.mergedSelectedKeysRef.value.includes(e.tmNode.key)
- ),
- expanded: kt(() =>
- t.mergedExpandedKeysRef.value.includes(e.tmNode.key)
- ),
- disabled: w,
- checkable: _,
- mergedCheckOnClick: T,
- checkboxDisabled: m,
- selectable: S,
- expandOnClick: t.expandOnClickRef,
- internalScrollable: t.internalScrollableRef,
- draggable: t.draggableRef,
- blockLine: d,
- nodeProps: x,
- checkboxFocusable: t.internalCheckboxFocusableRef,
- droppingPosition: i,
- droppingOffsetLevel: a,
- indent: c,
- checkboxPlacement: f,
- contentInstRef: y,
- contentElRef: C,
- handleCheck: M,
- handleDrop: q,
- handleDragStart: A,
- handleDragEnter: D,
- handleDragOver: L,
- handleDragEnd: H,
- handleDragLeave: B,
- handleLineClick: k,
- handleContentClick: z,
- handleSwitcherClick: R
- };
- },
- render() {
- const {
- tmNode: e,
- clsPrefix: t,
- checkable: n,
- expandOnClick: r,
- selectable: o,
- selected: i,
- checked: a,
- highlight: s,
- draggable: c,
- blockLine: d,
- indent: f,
- disabled: v,
- pending: p,
- internalScrollable: m,
- nodeProps: g,
- checkboxPlacement: w
- } = this,
- x =
- c && !v
- ? {
- onDragenter: this.handleDragEnter,
- onDragleave: this.handleDragLeave,
- onDragend: this.handleDragEnd,
- onDrop: this.handleDrop,
- onDragover: this.handleDragOver
- }
- : void 0,
- y = m ? OR(e.key) : void 0,
- C = w === 'right',
- R = n
- ? h(Cte, {
- right: C,
- focusable: this.checkboxFocusable,
- disabled: v || this.checkboxDisabled,
- clsPrefix: t,
- checked: this.checked,
- indeterminate: this.indeterminate,
- onCheck: this.handleCheck
- })
- : null;
- return h(
- 'div',
- Object.assign({ class: `${t}-tree-node-wrapper` }, x),
- h(
- 'div',
- Object.assign({}, d ? g : void 0, {
- class: [
- `${t}-tree-node`,
- {
- [`${t}-tree-node--selected`]: i,
- [`${t}-tree-node--checkable`]: n,
- [`${t}-tree-node--highlight`]: s,
- [`${t}-tree-node--pending`]: p,
- [`${t}-tree-node--disabled`]: v,
- [`${t}-tree-node--selectable`]: o,
- [`${t}-tree-node--clickable`]: o || r || this.mergedCheckOnClick
- },
- g == null ? void 0 : g.class
- ],
- 'data-key': y,
- draggable: c && d,
- onClick: this.handleLineClick,
- onDragstart: c && d && !v ? this.handleDragStart : void 0
- }),
- TR(
- e.level,
- h(
- 'div',
- { class: `${t}-tree-node-indent` },
- h('div', { style: { width: `${f}px` } })
- )
- ),
- h(wte, {
- clsPrefix: t,
- expanded: this.expanded,
- selected: i,
- loading: this.loading,
- hide: e.isLeaf,
- onClick: this.handleSwitcherClick
- }),
- C ? null : R,
- h(Ste, {
- ref: 'contentInstRef',
- clsPrefix: t,
- checked: a,
- selected: i,
- onClick: this.handleContentClick,
- nodeProps: d ? void 0 : g,
- onDragstart: c && !d && !v ? this.handleDragStart : void 0,
- tmNode: e
- }),
- c
- ? this.showDropMark
- ? m2({
- el: this.contentElRef.value,
- position: this.droppingPosition,
- offsetLevel: this.droppingOffsetLevel,
- indent: f
- })
- : this.showDropMarkAsParent
- ? m2({
- el: this.contentElRef.value,
- position: 'inside',
- offsetLevel: this.droppingOffsetLevel,
- indent: f
- })
- : null
- : null,
- C ? R : null
- )
- );
- }
- }),
- iT = Tte;
- function $te({
- props: e,
- fNodesRef: t,
- mergedExpandedKeysRef: n,
- mergedSelectedKeysRef: r,
- handleSelect: o,
- handleSwitcherClick: i
- }) {
- const { value: a } = r,
- s = Ze(rT, null),
- c = s ? s.pendingNodeKeyRef : Z(a.length ? a[a.length - 1] : null);
- function d(f) {
- if (!e.keyboard) return;
- const { value: v } = c;
- if (v === null) {
- if (
- ((f.key === 'ArrowDown' || f.key === 'ArrowUp') && f.preventDefault(),
- ['ArrowDown', 'ArrowUp', 'ArrowLeft', 'ArrowRight'].includes(f.key) &&
- v === null)
- ) {
- const { value: p } = t;
- let m = 0;
- for (; m < p.length; ) {
- if (!p[m].disabled) {
- c.value = p[m].key;
- break;
- }
- m += 1;
- }
- }
- } else {
- const { value: p } = t;
- let m = p.findIndex(g => g.key === v);
- if (!~m) return;
- if (f.key === 'Enter') o(p[m]);
- else if (f.key === 'ArrowDown')
- for (f.preventDefault(), m += 1; m < p.length; ) {
- if (!p[m].disabled) {
- c.value = p[m].key;
- break;
- }
- m += 1;
- }
- else if (f.key === 'ArrowUp')
- for (f.preventDefault(), m -= 1; m >= 0; ) {
- if (!p[m].disabled) {
- c.value = p[m].key;
- break;
- }
- m -= 1;
- }
- else if (f.key === 'ArrowLeft') {
- const g = p[m];
- if (g.isLeaf || !n.value.includes(v)) {
- const w = g.getParent();
- w && (c.value = w.key);
- } else i(g);
- } else if (f.key === 'ArrowRight') {
- const g = p[m];
- if (g.isLeaf) return;
- if (!n.value.includes(v)) i(g);
- else
- for (m += 1; m < p.length; ) {
- if (!p[m].disabled) {
- c.value = p[m].key;
- break;
- }
- m += 1;
- }
- }
- }
- }
- return { pendingNodeKeyRef: c, handleKeydown: d };
- }
- const Ote = ke({
- name: 'TreeMotionWrapper',
- props: {
- clsPrefix: { type: String, required: !0 },
- height: Number,
- nodes: { type: Array, required: !0 },
- mode: { type: String, required: !0 },
- onAfterEnter: { type: Function, required: !0 }
- },
- render() {
- const { clsPrefix: e } = this;
- return h(
- Cl,
- {
- onAfterEnter: this.onAfterEnter,
- appear: !0,
- reverse: this.mode === 'collapse'
- },
- {
- default: () =>
- h(
- 'div',
- {
- class: [
- `${e}-tree-motion-wrapper`,
- `${e}-tree-motion-wrapper--${this.mode}`
- ],
- style: { height: lr(this.height) }
- },
- this.nodes.map(t => h(iT, { clsPrefix: e, tmNode: t }))
- )
- }
- );
- }
- }),
- zte = O(
- 'tree',
- `
- font-size: var(--n-font-size);
- outline: none;
- `,
- [
- F(
- 'ul, li',
- `
- margin: 0;
- padding: 0;
- list-style: none;
- `
- ),
- F('>', [O('tree-node', [F('&:first-child', { marginTop: 0 })])]),
- O(
- 'tree-node-indent',
- `
- flex-grow: 0;
- flex-shrink: 0;
- height: 0;
- `
- ),
- O('tree-motion-wrapper', [
- U('expand', [Ss({ duration: '0.2s' })]),
- U('collapse', [Ss({ duration: '0.2s', reverse: !0 })])
- ]),
- O(
- 'tree-node-wrapper',
- `
- box-sizing: border-box;
- padding: 3px 0;
- `
- ),
- O(
- 'tree-node',
- `
- transform: translate3d(0,0,0);
- position: relative;
- display: flex;
- border-radius: var(--n-node-border-radius);
- transition: background-color .3s var(--n-bezier);
- `,
- [
- U('highlight', [
- O('tree-node-content', [
- V('text', {
- borderBottomColor: 'var(--n-node-text-color-disabled)'
- })
- ])
- ]),
- U('disabled', [
- O(
- 'tree-node-content',
- `
- color: var(--n-node-text-color-disabled);
- cursor: not-allowed;
- `
- )
- ]),
- jt('disabled', [
- U('clickable', [
- O(
- 'tree-node-content',
- `
- cursor: pointer;
- `
- )
- ])
- ])
- ]
- ),
- U('block-node', [
- O(
- 'tree-node-content',
- `
- flex: 1;
- min-width: 0;
- `
- )
- ]),
- jt('block-line', [
- O('tree-node', [
- jt('disabled', [
- O('tree-node-content', [
- F('&:hover', { backgroundColor: 'var(--n-node-color-hover)' })
- ]),
- U('selectable', [
- O('tree-node-content', [
- F('&:active', {
- backgroundColor: 'var(--n-node-color-pressed)'
- })
- ])
- ]),
- U('pending', [
- O(
- 'tree-node-content',
- `
- background-color: var(--n-node-color-hover);
- `
- )
- ]),
- U('selected', [
- O('tree-node-content', {
- backgroundColor: 'var(--n-node-color-active)'
- })
- ])
- ])
- ])
- ]),
- U('block-line', [
- O('tree-node', [
- jt('disabled', [
- F('&:hover', { backgroundColor: 'var(--n-node-color-hover)' }),
- U(
- 'pending',
- `
- background-color: var(--n-node-color-hover);
- `
- ),
- U('selectable', [
- jt('selected', [
- F('&:active', {
- backgroundColor: 'var(--n-node-color-pressed)'
- })
- ])
- ]),
- U('selected', { backgroundColor: 'var(--n-node-color-active)' })
- ]),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- `
- )
- ])
- ]),
- O(
- 'tree-node-switcher',
- `
- cursor: pointer;
- display: inline-flex;
- flex-shrink: 0;
- height: 24px;
- width: 24px;
- align-items: center;
- justify-content: center;
- transition: transform .15s var(--n-bezier);
- vertical-align: bottom;
- `,
- [
- V(
- 'icon',
- `
- position: relative;
- height: 14px;
- width: 14px;
- display: flex;
- color: var(--n-arrow-color);
- transition: color .3s var(--n-bezier);
- font-size: 14px;
- `,
- [
- O('icon', [br()]),
- O(
- 'base-loading',
- `
- color: var(--n-loading-color);
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- `,
- [br()]
- ),
- O('base-icon', [br()])
- ]
- ),
- U('hide', { visibility: 'hidden' }),
- U('expanded', { transform: 'rotate(90deg)' })
- ]
- ),
- O(
- 'tree-node-checkbox',
- `
- display: inline-flex;
- height: 24px;
- width: 16px;
- vertical-align: bottom;
- align-items: center;
- justify-content: center;
- margin-right: 4px;
- `,
- [U('right', 'margin-left: 4px;')]
- ),
- U('checkable', [
- O(
- 'tree-node-content',
- `
- padding: 0 6px;
- `
- )
- ]),
- O(
- 'tree-node-content',
- `
- position: relative;
- display: inline-flex;
- align-items: center;
- min-height: 24px;
- box-sizing: border-box;
- line-height: 1.5;
- vertical-align: bottom;
- padding: 0 6px 0 4px;
- cursor: default;
- border-radius: var(--n-node-border-radius);
- text-decoration-color: #0000;
- text-decoration-line: underline;
- color: var(--n-node-text-color);
- transition:
- color .3s var(--n-bezier),
- text-decoration-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- F('&:last-child', { marginBottom: 0 }),
- V(
- 'prefix',
- `
- display: inline-flex;
- margin-right: 8px;
- `
- ),
- V(
- 'text',
- `
- border-bottom: 1px solid #0000;
- transition: border-color .3s var(--n-bezier);
- flex-grow: 1;
- max-width: 100%;
- `
- ),
- V(
- 'suffix',
- `
- display: inline-flex;
- `
- )
- ]
- ),
- V('empty', 'margin: auto;')
- ]
- );
- var Ete =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- const Ah = 30;
- function Ate(e, t, n, r) {
- return {
- getIsGroup() {
- return !1;
- },
- getKey(i) {
- return i[e];
- },
- getChildren: r || (i => i[t]),
- getDisabled(i) {
- return !!(i[n] || i.checkboxDisabled);
- }
- };
- }
- const Mte = {
- allowCheckingNotLoaded: Boolean,
- filter: Function,
- defaultExpandAll: Boolean,
- expandedKeys: Array,
- keyField: { type: String, default: 'key' },
- labelField: { type: String, default: 'label' },
- childrenField: { type: String, default: 'children' },
- disabledField: { type: String, default: 'disabled' },
- defaultExpandedKeys: { type: Array, default: () => [] },
- indeterminateKeys: Array,
- renderSwitcherIcon: Function,
- onUpdateIndeterminateKeys: [Function, Array],
- 'onUpdate:indeterminateKeys': [Function, Array],
- onUpdateExpandedKeys: [Function, Array],
- 'onUpdate:expandedKeys': [Function, Array]
- },
- Ite = Object.assign(
- Object.assign(
- Object.assign(Object.assign({}, Ke.props), {
- accordion: Boolean,
- showIrrelevantNodes: { type: Boolean, default: !0 },
- data: { type: Array, default: () => [] },
- expandOnDragenter: { type: Boolean, default: !0 },
- expandOnClick: Boolean,
- checkOnClick: { type: [Boolean, Function], default: !1 },
- cancelable: { type: Boolean, default: !0 },
- checkable: Boolean,
- draggable: Boolean,
- blockNode: Boolean,
- blockLine: Boolean,
- disabled: Boolean,
- checkedKeys: Array,
- defaultCheckedKeys: { type: Array, default: () => [] },
- selectedKeys: Array,
- defaultSelectedKeys: { type: Array, default: () => [] },
- multiple: Boolean,
- pattern: { type: String, default: '' },
- onLoad: Function,
- cascade: Boolean,
- selectable: { type: Boolean, default: !0 },
- indent: { type: Number, default: 16 },
- allowDrop: { type: Function, default: _te },
- animated: { type: Boolean, default: !0 },
- checkboxPlacement: { type: String, default: 'left' },
- virtualScroll: Boolean,
- watchProps: Array,
- renderLabel: Function,
- renderPrefix: Function,
- renderSuffix: Function,
- nodeProps: Function,
- keyboard: { type: Boolean, default: !0 },
- getChildren: Function,
- onDragenter: [Function, Array],
- onDragleave: [Function, Array],
- onDragend: [Function, Array],
- onDragstart: [Function, Array],
- onDragover: [Function, Array],
- onDrop: [Function, Array],
- onUpdateCheckedKeys: [Function, Array],
- 'onUpdate:checkedKeys': [Function, Array],
- onUpdateSelectedKeys: [Function, Array],
- 'onUpdate:selectedKeys': [Function, Array]
- }),
- Mte
- ),
- {
- internalTreeSelect: Boolean,
- internalScrollable: Boolean,
- internalScrollablePadding: String,
- internalRenderEmpty: Function,
- internalHighlightKeySet: Object,
- internalUnifySelectCheck: Boolean,
- internalCheckboxFocusable: { type: Boolean, default: !0 },
- internalFocusable: { type: Boolean, default: !0 },
- checkStrategy: { type: String, default: 'all' },
- leafOnly: Boolean
- }
- ),
- Dte = ke({
- name: 'Tree',
- props: Ite,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- inlineThemeDisabled: n,
- mergedRtlRef: r
- } = yt(e),
- o = cr('Tree', r, t),
- i = Ke('Tree', '-tree', zte, mJ, e, t),
- a = Z(null),
- s = Z(null),
- c = Z(null);
- function d() {
- var we;
- return (we = c.value) === null || we === void 0 ? void 0 : we.listElRef;
- }
- function f() {
- var we;
- return (we = c.value) === null || we === void 0
- ? void 0
- : we.itemsElRef;
- }
- const v = I(() => {
- const { filter: we } = e;
- if (we) return we;
- const { labelField: Fe } = e;
- return (rt, ft) => {
- if (!rt.length) return !0;
- const gt = ft[Fe];
- return typeof gt == 'string'
- ? gt.toLowerCase().includes(rt.toLowerCase())
- : !1;
- };
- }),
- p = I(() => {
- const { pattern: we } = e;
- return we
- ? !we.length || !v.value
- ? {
- filteredTree: e.data,
- highlightKeySet: null,
- expandedKeys: void 0
- }
- : kte(e.data, v.value, we, e.keyField, e.childrenField)
- : {
- filteredTree: e.data,
- highlightKeySet: null,
- expandedKeys: void 0
- };
- }),
- m = I(() =>
- rd(
- e.showIrrelevantNodes ? e.data : p.value.filteredTree,
- Ate(e.keyField, e.childrenField, e.disabledField, e.getChildren)
- )
- ),
- g = Ze(rT, null),
- w = e.internalTreeSelect ? g.dataTreeMate : m,
- { watchProps: x } = e,
- y = Z([]);
- x != null && x.includes('defaultCheckedKeys')
- ? Bn(() => {
- y.value = e.defaultCheckedKeys;
- })
- : (y.value = e.defaultCheckedKeys);
- const C = Ie(e, 'checkedKeys'),
- R = En(C, y),
- S = I(() =>
- w.value.getCheckedKeys(R.value, {
- cascade: e.cascade,
- allowNotLoaded: e.allowCheckingNotLoaded
- })
- ),
- _ = Rte(e),
- P = I(() => S.value.checkedKeys),
- T = I(() => {
- const { indeterminateKeys: we } = e;
- return we !== void 0 ? we : S.value.indeterminateKeys;
- }),
- E = Z([]);
- x != null && x.includes('defaultSelectedKeys')
- ? Bn(() => {
- E.value = e.defaultSelectedKeys;
- })
- : (E.value = e.defaultSelectedKeys);
- const z = Ie(e, 'selectedKeys'),
- k = En(z, E),
- M = Z([]),
- A = we => {
- M.value = e.defaultExpandAll
- ? w.value.getNonLeafKeys()
- : we === void 0
- ? e.defaultExpandedKeys
- : we;
- };
- x != null && x.includes('defaultExpandedKeys')
- ? Bn(() => {
- A(void 0);
- })
- : Bn(() => {
- A(e.defaultExpandedKeys);
- });
- const D = Ie(e, 'expandedKeys'),
- L = En(D, M),
- H = I(() => m.value.getFlattenedNodes(L.value)),
- { pendingNodeKeyRef: B, handleKeydown: q } = $te({
- props: e,
- mergedSelectedKeysRef: k,
- fNodesRef: H,
- mergedExpandedKeysRef: L,
- handleSelect: st,
- handleSwitcherClick: lt
- });
- let X = null,
- te = null;
- const G = Z(new Set()),
- Q = I(() => e.internalHighlightKeySet || p.value.highlightKeySet),
- re = En(Q, G),
- se = Z(new Set()),
- pe = I(() => L.value.filter(we => !se.value.has(we)));
- let ce = 0;
- const xe = Z(null),
- ve = Z(null),
- be = Z(null),
- Ce = Z(null),
- ge = Z(0),
- Ae = I(() => {
- const { value: we } = ve;
- return we ? we.parent : null;
- });
- $t(
- Ie(e, 'data'),
- () => {
- se.value.clear(), (B.value = null), ct();
- },
- { deep: !1 }
- );
- let j = !1;
- const ee = () => {
- (j = !0),
- mn(() => {
- j = !1;
- });
- };
- let ne;
- $t(Ie(e, 'pattern'), (we, Fe) => {
- if (e.showIrrelevantNodes)
- if (((ne = void 0), we)) {
- const { expandedKeys: rt, highlightKeySet: ft } = Pte(
- e.data,
- e.pattern,
- e.keyField,
- e.childrenField,
- v.value
- );
- (G.value = ft),
- ee(),
- Ne(rt, Re(rt), { node: null, action: 'filter' });
- } else G.value = new Set();
- else if (!we.length)
- ne !== void 0 &&
- (ee(), Ne(ne, Re(ne), { node: null, action: 'filter' }));
- else {
- Fe.length || (ne = L.value);
- const { expandedKeys: rt } = p.value;
- rt !== void 0 &&
- (ee(), Ne(rt, Re(rt), { node: null, action: 'filter' }));
- }
- });
- function fe(we) {
- return Ete(this, void 0, void 0, function* () {
- const { onLoad: Fe } = e;
- if (!Fe) {
- yield Promise.resolve();
- return;
- }
- const { value: rt } = se;
- if (!rt.has(we.key)) {
- rt.add(we.key);
- try {
- (yield Fe(we.rawNode)) === !1 && oe();
- } catch (ft) {
- console.error(ft), oe();
- }
- rt.delete(we.key);
- }
- });
- }
- Bn(() => {
- var we;
- const { value: Fe } = m;
- if (!Fe) return;
- const { getNode: rt } = Fe;
- (we = L.value) === null ||
- we === void 0 ||
- we.forEach(ft => {
- const gt = rt(ft);
- gt && !gt.shallowLoaded && fe(gt);
- });
- });
- const ie = Z(!1),
- W = Z([]);
- $t(pe, (we, Fe) => {
- if (!e.animated || j) {
- mn(_e);
- return;
- }
- const rt = new Set(Fe);
- let ft = null,
- gt = null;
- for (const Wt of we)
- if (!rt.has(Wt)) {
- if (ft !== null) return;
- ft = Wt;
- }
- const bn = new Set(we);
- for (const Wt of Fe)
- if (!bn.has(Wt)) {
- if (gt !== null) return;
- gt = Wt;
- }
- if (ft === null && gt === null) return;
- const { virtualScroll: ln } = e,
- $e = (ln ? c.value.listElRef : a.value).offsetHeight,
- Je = Math.ceil($e / Ah) + 1;
- let vt;
- if (
- (ft !== null && (vt = Fe),
- gt !== null &&
- (vt === void 0 ? (vt = we) : (vt = vt.filter(Wt => Wt !== gt))),
- (ie.value = !0),
- (W.value = m.value.getFlattenedNodes(vt)),
- ft !== null)
- ) {
- const Wt = W.value.findIndex(dn => dn.key === ft);
- if (~Wt) {
- const dn = W.value[Wt].children;
- if (dn) {
- const nn = Ub(dn, we);
- W.value.splice(Wt + 1, 0, {
- __motion: !0,
- mode: 'expand',
- height: ln ? nn.length * Ah : void 0,
- nodes: ln ? nn.slice(0, Je) : nn
- });
- }
- }
- }
- if (gt !== null) {
- const Wt = W.value.findIndex(dn => dn.key === gt);
- if (~Wt) {
- const dn = W.value[Wt].children;
- if (!dn) return;
- ie.value = !0;
- const nn = Ub(dn, we);
- W.value.splice(Wt + 1, 0, {
- __motion: !0,
- mode: 'collapse',
- height: ln ? nn.length * Ah : void 0,
- nodes: ln ? nn.slice(0, Je) : nn
- });
- }
- }
- });
- const ae = I(() => wk(H.value)),
- he = I(() => (ie.value ? W.value : H.value));
- function _e() {
- const { value: we } = s;
- we && we.sync();
- }
- function le() {
- (ie.value = !1), e.virtualScroll && mn(_e);
- }
- function Re(we) {
- const { getNode: Fe } = w.value;
- return we.map(rt => {
- var ft;
- return (
- ((ft = Fe(rt)) === null || ft === void 0 ? void 0 : ft.rawNode) ||
- null
- );
- });
- }
- function Ne(we, Fe, rt) {
- const { 'onUpdate:expandedKeys': ft, onUpdateExpandedKeys: gt } = e;
- (M.value = we), ft && Me(ft, we, Fe, rt), gt && Me(gt, we, Fe, rt);
- }
- function Ge(we, Fe, rt) {
- const { 'onUpdate:checkedKeys': ft, onUpdateCheckedKeys: gt } = e;
- (y.value = we), gt && Me(gt, we, Fe, rt), ft && Me(ft, we, Fe, rt);
- }
- function it(we, Fe) {
- const {
- 'onUpdate:indeterminateKeys': rt,
- onUpdateIndeterminateKeys: ft
- } = e;
- rt && Me(rt, we, Fe), ft && Me(ft, we, Fe);
- }
- function dt(we, Fe, rt) {
- const { 'onUpdate:selectedKeys': ft, onUpdateSelectedKeys: gt } = e;
- (E.value = we), gt && Me(gt, we, Fe, rt), ft && Me(ft, we, Fe, rt);
- }
- function xt(we) {
- const { onDragenter: Fe } = e;
- Fe && Me(Fe, we);
- }
- function De(we) {
- const { onDragleave: Fe } = e;
- Fe && Me(Fe, we);
- }
- function ut(we) {
- const { onDragend: Fe } = e;
- Fe && Me(Fe, we);
- }
- function wt(we) {
- const { onDragstart: Fe } = e;
- Fe && Me(Fe, we);
- }
- function Lt(we) {
- const { onDragover: Fe } = e;
- Fe && Me(Fe, we);
- }
- function ot(we) {
- const { onDrop: Fe } = e;
- Fe && Me(Fe, we);
- }
- function ct() {
- Xe(), Qe();
- }
- function Xe() {
- xe.value = null;
- }
- function Qe() {
- (ge.value = 0),
- (ve.value = null),
- (be.value = null),
- (Ce.value = null),
- oe();
- }
- function oe() {
- X && (window.clearTimeout(X), (X = null)), (te = null);
- }
- function ze(we, Fe) {
- if (e.disabled || Qa(we, e.disabledField)) return;
- if (e.internalUnifySelectCheck && !e.multiple) {
- st(we);
- return;
- }
- const rt = Fe ? 'check' : 'uncheck',
- { checkedKeys: ft, indeterminateKeys: gt } = w.value[rt](
- we.key,
- P.value,
- {
- cascade: e.cascade,
- checkStrategy: _.value,
- allowNotLoaded: e.allowCheckingNotLoaded
- }
- );
- Ge(ft, Re(ft), { node: we.rawNode, action: rt }), it(gt, Re(gt));
- }
- function We(we) {
- if (e.disabled) return;
- const { key: Fe } = we,
- { value: rt } = L,
- ft = rt.findIndex(gt => gt === Fe);
- if (~ft) {
- const gt = Array.from(rt);
- gt.splice(ft, 1),
- Ne(gt, Re(gt), { node: we.rawNode, action: 'collapse' });
- } else {
- const gt = m.value.getNode(Fe);
- if (!gt || gt.isLeaf) return;
- let bn;
- if (e.accordion) {
- const ln = new Set(we.siblings.map(({ key: $e }) => $e));
- (bn = rt.filter($e => !ln.has($e))), bn.push(Fe);
- } else bn = rt.concat(Fe);
- Ne(bn, Re(bn), { node: we.rawNode, action: 'expand' });
- }
- }
- function lt(we) {
- e.disabled || ie.value || We(we);
- }
- function st(we) {
- if (!(e.disabled || !e.selectable)) {
- if (((B.value = we.key), e.internalUnifySelectCheck)) {
- const {
- value: { checkedKeys: Fe, indeterminateKeys: rt }
- } = S;
- e.multiple
- ? ze(we, !(Fe.includes(we.key) || rt.includes(we.key)))
- : Ge([we.key], Re([we.key]), {
- node: we.rawNode,
- action: 'check'
- });
- }
- if (e.multiple) {
- const Fe = Array.from(k.value),
- rt = Fe.findIndex(ft => ft === we.key);
- ~rt ? e.cancelable && Fe.splice(rt, 1) : ~rt || Fe.push(we.key),
- dt(Fe, Re(Fe), {
- node: we.rawNode,
- action: ~rt ? 'unselect' : 'select'
- });
- } else
- k.value.includes(we.key)
- ? e.cancelable &&
- dt([], [], { node: we.rawNode, action: 'unselect' })
- : dt([we.key], Re([we.key]), {
- node: we.rawNode,
- action: 'select'
- });
- }
- }
- function me(we) {
- if ((X && (window.clearTimeout(X), (X = null)), we.isLeaf)) return;
- te = we.key;
- const Fe = () => {
- if (te !== we.key) return;
- const { value: rt } = be;
- if (rt && rt.key === we.key && !L.value.includes(we.key)) {
- const ft = L.value.concat(we.key);
- Ne(ft, Re(ft), { node: we.rawNode, action: 'expand' });
- }
- (X = null), (te = null);
- };
- we.shallowLoaded
- ? (X = window.setTimeout(() => {
- Fe();
- }, 1e3))
- : (X = window.setTimeout(() => {
- fe(we).then(() => {
- Fe();
- });
- }, 1e3));
- }
- function He({ event: we, node: Fe }) {
- !e.draggable ||
- e.disabled ||
- Qa(Fe, e.disabledField) ||
- (nt({ event: we, node: Fe }, !1),
- xt({ event: we, node: Fe.rawNode }));
- }
- function tt({ event: we, node: Fe }) {
- !e.draggable ||
- e.disabled ||
- Qa(Fe, e.disabledField) ||
- De({ event: we, node: Fe.rawNode });
- }
- function pt(we) {
- we.target === we.currentTarget && Qe();
- }
- function Pe({ event: we, node: Fe }) {
- ct(),
- !(!e.draggable || e.disabled || Qa(Fe, e.disabledField)) &&
- ut({ event: we, node: Fe.rawNode });
- }
- function Ve({ event: we, node: Fe }) {
- !e.draggable ||
- e.disabled ||
- Qa(Fe, e.disabledField) ||
- ((ce = we.clientX),
- (xe.value = Fe),
- wt({ event: we, node: Fe.rawNode }));
- }
- function nt({ event: we, node: Fe }, rt = !0) {
- var ft;
- if (!e.draggable || e.disabled || Qa(Fe, e.disabledField)) return;
- const { value: gt } = xe;
- if (!gt) return;
- const { allowDrop: bn, indent: ln } = e;
- rt && Lt({ event: we, node: Fe.rawNode });
- const $e = we.currentTarget,
- { height: Je, top: vt } = $e.getBoundingClientRect(),
- Wt = we.clientY - vt;
- let dn;
- bn({ node: Fe.rawNode, dropPosition: 'inside', phase: 'drag' })
- ? Wt <= 8
- ? (dn = 'before')
- : Wt >= Je - 8
- ? (dn = 'after')
- : (dn = 'inside')
- : Wt <= Je / 2
- ? (dn = 'before')
- : (dn = 'after');
- const { value: kr } = ae;
- let Yt, On;
- const Co = kr(Fe.key);
- if (Co === null) {
- Qe();
- return;
- }
- let Lo = !1;
- dn === 'inside'
- ? ((Yt = Fe), (On = 'inside'))
- : dn === 'before'
- ? Fe.isFirstChild
- ? ((Yt = Fe), (On = 'before'))
- : ((Yt = H.value[Co - 1]), (On = 'after'))
- : ((Yt = Fe), (On = 'after')),
- !Yt.isLeaf &&
- L.value.includes(Yt.key) &&
- ((Lo = !0),
- On === 'after' &&
- ((Yt = H.value[Co + 1]),
- Yt ? (On = 'before') : ((Yt = Fe), (On = 'inside'))));
- const No = Yt;
- if (
- ((be.value = No),
- !Lo && gt.isLastChild && gt.key === Yt.key && (On = 'after'),
- On === 'after')
- ) {
- let So = ce - we.clientX,
- Xr = 0;
- for (
- ;
- So >= ln / 2 && Yt.parent !== null && Yt.isLastChild && Xr < 1;
- )
- (So -= ln), (Xr += 1), (Yt = Yt.parent);
- ge.value = Xr;
- } else ge.value = 0;
- if (
- (gt.contains(Yt) ||
- (On === 'inside' &&
- ((ft = gt.parent) === null || ft === void 0 ? void 0 : ft.key) ===
- Yt.key)) &&
- !(gt.key === No.key && gt.key === Yt.key)
- ) {
- Qe();
- return;
- }
- if (!bn({ node: Yt.rawNode, dropPosition: On, phase: 'drag' })) {
- Qe();
- return;
- }
- if (gt.key === Yt.key) oe();
- else if (te !== Yt.key)
- if (On === 'inside') {
- if (e.expandOnDragenter) {
- if ((me(Yt), !Yt.shallowLoaded && te !== Yt.key)) {
- ct();
- return;
- }
- } else if (!Yt.shallowLoaded) {
- ct();
- return;
- }
- } else oe();
- else On !== 'inside' && oe();
- (Ce.value = On), (ve.value = Yt);
- }
- function Ot({ event: we, node: Fe, dropPosition: rt }) {
- if (!e.draggable || e.disabled || Qa(Fe, e.disabledField)) return;
- const { value: ft } = xe,
- { value: gt } = ve,
- { value: bn } = Ce;
- if (
- !(!ft || !gt || !bn) &&
- e.allowDrop({ node: gt.rawNode, dropPosition: bn, phase: 'drag' }) &&
- ft.key !== gt.key
- ) {
- if (bn === 'before') {
- const ln = ft.getNext({ includeDisabled: !0 });
- if (ln && ln.key === gt.key) {
- Qe();
- return;
- }
- }
- if (bn === 'after') {
- const ln = ft.getPrev({ includeDisabled: !0 });
- if (ln && ln.key === gt.key) {
- Qe();
- return;
- }
- }
- ot({
- event: we,
- node: gt.rawNode,
- dragNode: ft.rawNode,
- dropPosition: rt
- }),
- ct();
- }
- }
- function $n() {
- _e();
- }
- function jn() {
- _e();
- }
- function Zt(we) {
- var Fe;
- if (e.virtualScroll || e.internalScrollable) {
- const { value: rt } = s;
- if (
- !(
- (Fe = rt == null ? void 0 : rt.containerRef) === null ||
- Fe === void 0
- ) &&
- Fe.contains(we.relatedTarget)
- )
- return;
- B.value = null;
- } else {
- const { value: rt } = a;
- if (rt != null && rt.contains(we.relatedTarget)) return;
- B.value = null;
- }
- }
- $t(B, we => {
- var Fe, rt;
- if (we !== null) {
- if (e.virtualScroll)
- (Fe = c.value) === null ||
- Fe === void 0 ||
- Fe.scrollTo({ key: we });
- else if (e.internalScrollable) {
- const { value: ft } = s;
- if (ft === null) return;
- const gt =
- (rt = ft.contentRef) === null || rt === void 0
- ? void 0
- : rt.querySelector(`[data-key="${OR(we)}"]`);
- if (!gt) return;
- ft.scrollTo({ el: gt });
- }
- }
- }),
- Rt(rf, {
- loadingKeysRef: se,
- highlightKeySetRef: re,
- displayedCheckedKeysRef: P,
- displayedIndeterminateKeysRef: T,
- mergedSelectedKeysRef: k,
- mergedExpandedKeysRef: L,
- mergedThemeRef: i,
- mergedCheckStrategyRef: _,
- nodePropsRef: Ie(e, 'nodeProps'),
- disabledRef: Ie(e, 'disabled'),
- checkableRef: Ie(e, 'checkable'),
- selectableRef: Ie(e, 'selectable'),
- expandOnClickRef: Ie(e, 'expandOnClick'),
- onLoadRef: Ie(e, 'onLoad'),
- draggableRef: Ie(e, 'draggable'),
- blockLineRef: Ie(e, 'blockLine'),
- indentRef: Ie(e, 'indent'),
- cascadeRef: Ie(e, 'cascade'),
- checkOnClickRef: Ie(e, 'checkOnClick'),
- checkboxPlacementRef: e.checkboxPlacement,
- droppingMouseNodeRef: be,
- droppingNodeParentRef: Ae,
- draggingNodeRef: xe,
- droppingPositionRef: Ce,
- droppingOffsetLevelRef: ge,
- fNodesRef: H,
- pendingNodeKeyRef: B,
- disabledFieldRef: Ie(e, 'disabledField'),
- internalScrollableRef: Ie(e, 'internalScrollable'),
- internalCheckboxFocusableRef: Ie(e, 'internalCheckboxFocusable'),
- internalTreeSelect: e.internalTreeSelect,
- renderLabelRef: Ie(e, 'renderLabel'),
- renderPrefixRef: Ie(e, 'renderPrefix'),
- renderSuffixRef: Ie(e, 'renderSuffix'),
- renderSwitcherIconRef: Ie(e, 'renderSwitcherIcon'),
- labelFieldRef: Ie(e, 'labelField'),
- multipleRef: Ie(e, 'multiple'),
- handleSwitcherClick: lt,
- handleDragEnd: Pe,
- handleDragEnter: He,
- handleDragLeave: tt,
- handleDragStart: Ve,
- handleDrop: Ot,
- handleDragOver: nt,
- handleSelect: st,
- handleCheck: ze
- });
- function Se(we) {
- var Fe;
- (Fe = c.value) === null || Fe === void 0 || Fe.scrollTo(we);
- }
- const je = {
- handleKeydown: q,
- scrollTo: Se,
- getCheckedData: () => {
- if (!e.checkable) return { keys: [], options: [] };
- const { checkedKeys: we } = S.value;
- return { keys: we, options: Re(we) };
- },
- getIndeterminateData: () => {
- if (!e.checkable) return { keys: [], options: [] };
- const { indeterminateKeys: we } = S.value;
- return { keys: we, options: Re(we) };
- }
- },
- Ct = I(() => {
- const {
- common: { cubicBezierEaseInOut: we },
- self: {
- fontSize: Fe,
- nodeBorderRadius: rt,
- nodeColorHover: ft,
- nodeColorPressed: gt,
- nodeColorActive: bn,
- arrowColor: ln,
- loadingColor: $e,
- nodeTextColor: Je,
- nodeTextColorDisabled: vt,
- dropMarkColor: Wt
- }
- } = i.value;
- return {
- '--n-arrow-color': ln,
- '--n-loading-color': $e,
- '--n-bezier': we,
- '--n-font-size': Fe,
- '--n-node-border-radius': rt,
- '--n-node-color-active': bn,
- '--n-node-color-hover': ft,
- '--n-node-color-pressed': gt,
- '--n-node-text-color': Je,
- '--n-node-text-color-disabled': vt,
- '--n-drop-mark-color': Wt
- };
- }),
- qt = n ? Mt('tree', void 0, Ct, e) : void 0;
- return Object.assign(Object.assign({}, je), {
- mergedClsPrefix: t,
- mergedTheme: i,
- rtlEnabled: o,
- fNodes: he,
- aip: ie,
- selfElRef: a,
- virtualListInstRef: c,
- scrollbarInstRef: s,
- handleFocusout: Zt,
- handleDragLeaveTree: pt,
- handleScroll: $n,
- getScrollContainer: d,
- getScrollContent: f,
- handleAfterEnter: le,
- handleResize: jn,
- cssVars: n ? void 0 : Ct,
- themeClass: qt == null ? void 0 : qt.themeClass,
- onRender: qt == null ? void 0 : qt.onRender
- });
- },
- render() {
- var e;
- const { fNodes: t, internalRenderEmpty: n } = this;
- if (!t.length && n) return n();
- const {
- mergedClsPrefix: r,
- blockNode: o,
- blockLine: i,
- draggable: a,
- disabled: s,
- internalFocusable: c,
- checkable: d,
- handleKeydown: f,
- rtlEnabled: v,
- handleFocusout: p
- } = this,
- m = c && !s,
- g = m ? '0' : void 0,
- w = [
- `${r}-tree`,
- v && `${r}-tree--rtl`,
- d && `${r}-tree--checkable`,
- (i || o) && `${r}-tree--block-node`,
- i && `${r}-tree--block-line`
- ],
- x = C =>
- '__motion' in C
- ? h(Ote, {
- height: C.height,
- nodes: C.nodes,
- clsPrefix: r,
- mode: C.mode,
- onAfterEnter: this.handleAfterEnter
- })
- : h(iT, { key: C.key, tmNode: C, clsPrefix: r });
- if (this.virtualScroll) {
- const { mergedTheme: C, internalScrollablePadding: R } = this,
- S = Go(R || '0');
- return h(
- vv,
- {
- ref: 'scrollbarInstRef',
- onDragleave: a ? this.handleDragLeaveTree : void 0,
- container: this.getScrollContainer,
- content: this.getScrollContent,
- class: w,
- theme: C.peers.Scrollbar,
- themeOverrides: C.peerOverrides.Scrollbar,
- tabindex: g,
- onKeydown: m ? f : void 0,
- onFocusout: m ? p : void 0
- },
- {
- default: () => {
- var _;
- return (
- (_ = this.onRender) === null || _ === void 0 || _.call(this),
- h(
- Ec,
- {
- ref: 'virtualListInstRef',
- items: this.fNodes,
- itemSize: Ah,
- ignoreItemResize: this.aip,
- paddingTop: S.top,
- paddingBottom: S.bottom,
- class: this.themeClass,
- style: [
- this.cssVars,
- { paddingLeft: S.left, paddingRight: S.right }
- ],
- onScroll: this.handleScroll,
- onResize: this.handleResize,
- showScrollbar: !1,
- itemResizable: !0
- },
- { default: ({ item: P }) => x(P) }
- )
- );
- }
- }
- );
- }
- const { internalScrollable: y } = this;
- return (
- w.push(this.themeClass),
- (e = this.onRender) === null || e === void 0 || e.call(this),
- y
- ? h(
- vv,
- {
- class: w,
- tabindex: g,
- onKeydown: m ? f : void 0,
- onFocusout: m ? p : void 0,
- style: this.cssVars,
- contentStyle: { padding: this.internalScrollablePadding }
- },
- {
- default: () =>
- h(
- 'div',
- {
- onDragleave: a ? this.handleDragLeaveTree : void 0,
- ref: 'selfElRef'
- },
- this.fNodes.map(x)
- )
- }
- )
- : h(
- 'div',
- {
- class: w,
- tabindex: g,
- ref: 'selfElRef',
- style: this.cssVars,
- onKeydown: m ? f : void 0,
- onFocusout: m ? p : void 0,
- onDragleave: a ? this.handleDragLeaveTree : void 0
- },
- t.length
- ? t.map(x)
- : Kt(this.$slots.empty, () => [
- h(_y, {
- class: `${r}-tree__empty`,
- theme: this.mergedTheme.peers.Empty,
- themeOverrides: this.mergedTheme.peerOverrides.Empty
- })
- ])
- )
- );
- }
- }),
- ad = 'n-upload',
- aT = '__UPLOAD_DRAGGER__',
- Fte = ke({
- name: 'UploadDragger',
- [aT]: !0,
- setup(e, { slots: t }) {
- const n = Ze(ad, null);
- return (
- n ||
- io(
- 'upload-dragger',
- '`n-upload-dragger` must be placed inside `n-upload`.'
- ),
- () => {
- const {
- mergedClsPrefixRef: { value: r },
- mergedDisabledRef: { value: o },
- maxReachedRef: { value: i }
- } = n;
- return h(
- 'div',
- {
- class: [
- `${r}-upload-dragger`,
- (o || i) && `${r}-upload-dragger--disabled`
- ]
- },
- t
- );
- }
- );
- }
- });
- var lT =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- const sT = e => e.includes('image/'),
- b2 = (e = '') => {
- const t = e.split('/'),
- r = t[t.length - 1].split(/#|\?/)[0];
- return (/\.[^./\\]*$/.exec(r) || [''])[0];
- },
- y2 = /(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,
- cT = e => {
- if (e.type) return sT(e.type);
- const t = b2(e.name || '');
- if (y2.test(t)) return !0;
- const n = e.thumbnailUrl || e.url || '',
- r = b2(n);
- return !!(/^data:image\//.test(n) || y2.test(r));
- };
- function Bte(e) {
- return lT(this, void 0, void 0, function* () {
- return yield new Promise(t => {
- if (!e.type || !sT(e.type)) {
- t('');
- return;
- }
- t(window.URL.createObjectURL(e));
- });
- });
- }
- const Lte = Fo && window.FileReader && window.File;
- function Nte(e) {
- return e.isDirectory;
- }
- function Hte(e) {
- return e.isFile;
- }
- function jte(e, t) {
- return lT(this, void 0, void 0, function* () {
- const n = [];
- let r,
- o = 0;
- function i() {
- o++;
- }
- function a() {
- o--, o || r(n);
- }
- function s(c) {
- c.forEach(d => {
- if (d) {
- if ((i(), t && Nte(d))) {
- const f = d.createReader();
- i(),
- f.readEntries(
- v => {
- s(v), a();
- },
- () => {
- a();
- }
- );
- } else
- Hte(d) &&
- (i(),
- d.file(
- f => {
- n.push({ file: f, entry: d, source: 'dnd' }), a();
- },
- () => {
- a();
- }
- ));
- a();
- }
- });
- }
- return (
- yield new Promise(c => {
- (r = c), s(e);
- }),
- n
- );
- });
- }
- function Du(e) {
- const {
- id: t,
- name: n,
- percentage: r,
- status: o,
- url: i,
- file: a,
- thumbnailUrl: s,
- type: c,
- fullPath: d,
- batchId: f
- } = e;
- return {
- id: t,
- name: n,
- percentage: r ?? null,
- status: o,
- url: i ?? null,
- file: a ?? null,
- thumbnailUrl: s ?? null,
- type: c ?? null,
- fullPath: d ?? null,
- batchId: f ?? null
- };
- }
- function Wte(e, t, n) {
- return (
- (e = e.toLowerCase()),
- (t = t.toLocaleLowerCase()),
- (n = n.toLocaleLowerCase()),
- n
- .split(',')
- .map(o => o.trim())
- .filter(Boolean)
- .some(o => {
- if (o.startsWith('.')) {
- if (e.endsWith(o)) return !0;
- } else if (o.includes('/')) {
- const [i, a] = t.split('/'),
- [s, c] = o.split('/');
- if (
- (s === '*' || (i && s && s === i)) &&
- (c === '*' || (a && c && c === a))
- )
- return !0;
- } else return !0;
- return !1;
- })
- );
- }
- const Ute = (e, t) => {
- if (!e) return;
- const n = document.createElement('a');
- (n.href = e),
- t !== void 0 && (n.download = t),
- document.body.appendChild(n),
- n.click(),
- document.body.removeChild(n);
- },
- dT = ke({
- name: 'UploadTrigger',
- props: { abstract: Boolean },
- setup(e, { slots: t }) {
- const n = Ze(ad, null);
- n ||
- io(
- 'upload-trigger',
- '`n-upload-trigger` must be placed inside `n-upload`.'
- );
- const {
- mergedClsPrefixRef: r,
- mergedDisabledRef: o,
- maxReachedRef: i,
- listTypeRef: a,
- dragOverRef: s,
- openOpenFileDialog: c,
- draggerInsideRef: d,
- handleFileAddition: f,
- mergedDirectoryDndRef: v,
- triggerStyleRef: p
- } = n,
- m = I(() => a.value === 'image-card');
- function g() {
- o.value || i.value || c();
- }
- function w(R) {
- R.preventDefault(), (s.value = !0);
- }
- function x(R) {
- R.preventDefault(), (s.value = !0);
- }
- function y(R) {
- R.preventDefault(), (s.value = !1);
- }
- function C(R) {
- var S;
- if ((R.preventDefault(), !d.value || o.value || i.value)) {
- s.value = !1;
- return;
- }
- const _ =
- (S = R.dataTransfer) === null || S === void 0 ? void 0 : S.items;
- _ != null && _.length
- ? jte(
- Array.from(_).map(P => P.webkitGetAsEntry()),
- v.value
- )
- .then(P => {
- f(P);
- })
- .finally(() => {
- s.value = !1;
- })
- : (s.value = !1);
- }
- return () => {
- var R;
- const { value: S } = r;
- return e.abstract
- ? (R = t.default) === null || R === void 0
- ? void 0
- : R.call(t, {
- handleClick: g,
- handleDrop: C,
- handleDragOver: w,
- handleDragEnter: x,
- handleDragLeave: y
- })
- : h(
- 'div',
- {
- class: [
- `${S}-upload-trigger`,
- (o.value || i.value) && `${S}-upload-trigger--disabled`,
- m.value && `${S}-upload-trigger--image-card`
- ],
- style: p.value,
- onClick: g,
- onDrop: C,
- onDragover: w,
- onDragenter: x,
- onDragleave: y
- },
- m.value
- ? h(Fte, null, {
- default: () =>
- Kt(t.default, () => [
- h(At, { clsPrefix: S }, { default: () => h(wy, null) })
- ])
- })
- : t
- );
- };
- }
- }),
- Vte = ke({
- name: 'UploadProgress',
- props: {
- show: Boolean,
- percentage: { type: Number, required: !0 },
- status: { type: String, required: !0 }
- },
- setup() {
- return { mergedTheme: Ze(ad).mergedThemeRef };
- },
- render() {
- return h(Cl, null, {
- default: () =>
- this.show
- ? h(eT, {
- type: 'line',
- showIndicator: !1,
- percentage: this.percentage,
- status: this.status,
- height: 2,
- theme: this.mergedTheme.peers.Progress,
- themeOverrides: this.mergedTheme.peerOverrides.Progress
- })
- : null
- });
- }
- }),
- Kte = h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 28 28' },
- h(
- 'g',
- { fill: 'none' },
- h('path', {
- d: 'M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z',
- fill: 'currentColor'
- })
- )
- ),
- qte = h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 28 28' },
- h(
- 'g',
- { fill: 'none' },
- h('path', {
- d: 'M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z',
- fill: 'currentColor'
- })
- )
- );
- var Yte =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- const Mh = {
- paddingMedium: '0 3px',
- heightMedium: '24px',
- iconSizeMedium: '18px'
- },
- Gte = ke({
- name: 'UploadFile',
- props: {
- clsPrefix: { type: String, required: !0 },
- file: { type: Object, required: !0 },
- listType: { type: String, required: !0 }
- },
- setup(e) {
- const t = Ze(ad),
- n = Z(null),
- r = Z(''),
- o = I(() => {
- const { file: _ } = e;
- return _.status === 'finished'
- ? 'success'
- : _.status === 'error'
- ? 'error'
- : 'info';
- }),
- i = I(() => {
- const { file: _ } = e;
- if (_.status === 'error') return 'error';
- }),
- a = I(() => {
- const { file: _ } = e;
- return _.status === 'uploading';
- }),
- s = I(() => {
- if (!t.showCancelButtonRef.value) return !1;
- const { file: _ } = e;
- return ['uploading', 'pending', 'error'].includes(_.status);
- }),
- c = I(() => {
- if (!t.showRemoveButtonRef.value) return !1;
- const { file: _ } = e;
- return ['finished'].includes(_.status);
- }),
- d = I(() => {
- if (!t.showDownloadButtonRef.value) return !1;
- const { file: _ } = e;
- return ['finished'].includes(_.status);
- }),
- f = I(() => {
- if (!t.showRetryButtonRef.value) return !1;
- const { file: _ } = e;
- return ['error'].includes(_.status);
- }),
- v = kt(() => r.value || e.file.thumbnailUrl || e.file.url),
- p = I(() => {
- if (!t.showPreviewButtonRef.value) return !1;
- const {
- file: { status: _ },
- listType: P
- } = e;
- return ['finished'].includes(_) && v.value && P === 'image-card';
- });
- function m() {
- t.submit(e.file.id);
- }
- function g(_) {
- _.preventDefault();
- const { file: P } = e;
- ['finished', 'pending', 'error'].includes(P.status)
- ? x(P)
- : ['uploading'].includes(P.status)
- ? C(P)
- : Io('upload', 'The button clicked type is unknown.');
- }
- function w(_) {
- _.preventDefault(), y(e.file);
- }
- function x(_) {
- const {
- xhrMap: P,
- doChange: T,
- onRemoveRef: { value: E },
- mergedFileListRef: { value: z }
- } = t;
- Promise.resolve(
- E ? E({ file: Object.assign({}, _), fileList: z }) : !0
- ).then(k => {
- if (k === !1) return;
- const M = Object.assign({}, _, { status: 'removed' });
- P.delete(_.id), T(M, void 0, { remove: !0 });
- });
- }
- function y(_) {
- const {
- onDownloadRef: { value: P }
- } = t;
- Promise.resolve(P ? P(Object.assign({}, _)) : !0).then(T => {
- T !== !1 && Ute(_.url, _.name);
- });
- }
- function C(_) {
- const { xhrMap: P } = t,
- T = P.get(_.id);
- T == null || T.abort(), x(Object.assign({}, _));
- }
- function R() {
- const {
- onPreviewRef: { value: _ }
- } = t;
- if (_) _(e.file);
- else if (e.listType === 'image-card') {
- const { value: P } = n;
- if (!P) return;
- P.click();
- }
- }
- const S = () =>
- Yte(this, void 0, void 0, function* () {
- const { listType: _ } = e;
- (_ !== 'image' && _ !== 'image-card') ||
- (t.shouldUseThumbnailUrlRef.value(e.file) &&
- (r.value = yield t.getFileThumbnailUrlResolver(e.file)));
- });
- return (
- Bn(() => {
- S();
- }),
- {
- mergedTheme: t.mergedThemeRef,
- progressStatus: o,
- buttonType: i,
- showProgress: a,
- disabled: t.mergedDisabledRef,
- showCancelButton: s,
- showRemoveButton: c,
- showDownloadButton: d,
- showRetryButton: f,
- showPreviewButton: p,
- mergedThumbnailUrl: v,
- shouldUseThumbnailUrl: t.shouldUseThumbnailUrlRef,
- renderIcon: t.renderIconRef,
- imageRef: n,
- handleRemoveOrCancelClick: g,
- handleDownloadClick: w,
- handleRetryClick: m,
- handlePreviewClick: R
- }
- );
- },
- render() {
- const {
- clsPrefix: e,
- mergedTheme: t,
- listType: n,
- file: r,
- renderIcon: o
- } = this;
- let i;
- const a = n === 'image';
- a || n === 'image-card'
- ? (i =
- !this.shouldUseThumbnailUrl(r) || !this.mergedThumbnailUrl
- ? h(
- 'span',
- { class: `${e}-upload-file-info__thumbnail` },
- o
- ? o(r)
- : cT(r)
- ? h(At, { clsPrefix: e }, { default: () => Kte })
- : h(At, { clsPrefix: e }, { default: () => qte })
- )
- : h(
- 'a',
- {
- rel: 'noopener noreferer',
- target: '_blank',
- href: r.url || void 0,
- class: `${e}-upload-file-info__thumbnail`,
- onClick: this.handlePreviewClick
- },
- n === 'image-card'
- ? h(TJ, {
- src: this.mergedThumbnailUrl || void 0,
- previewSrc: r.url || void 0,
- alt: r.name,
- ref: 'imageRef'
- })
- : h('img', {
- src: this.mergedThumbnailUrl || void 0,
- alt: r.name
- })
- ))
- : (i = h(
- 'span',
- { class: `${e}-upload-file-info__thumbnail` },
- o ? o(r) : h(At, { clsPrefix: e }, { default: () => h(xW, null) })
- ));
- const c = h(Vte, {
- show: this.showProgress,
- percentage: r.percentage || 0,
- status: this.progressStatus
- }),
- d = n === 'text' || n === 'image';
- return h(
- 'div',
- {
- class: [
- `${e}-upload-file`,
- `${e}-upload-file--${this.progressStatus}-status`,
- r.url &&
- r.status !== 'error' &&
- n !== 'image-card' &&
- `${e}-upload-file--with-url`,
- `${e}-upload-file--${n}-type`
- ]
- },
- h(
- 'div',
- { class: `${e}-upload-file-info` },
- i,
- h(
- 'div',
- { class: `${e}-upload-file-info__name` },
- d &&
- (r.url && r.status !== 'error'
- ? h(
- 'a',
- {
- rel: 'noopener noreferer',
- target: '_blank',
- href: r.url || void 0,
- onClick: this.handlePreviewClick
- },
- r.name
- )
- : h('span', { onClick: this.handlePreviewClick }, r.name)),
- a && c
- ),
- h(
- 'div',
- {
- class: [
- `${e}-upload-file-info__action`,
- `${e}-upload-file-info__action--${n}-type`
- ]
- },
- this.showPreviewButton
- ? h(
- nr,
- {
- key: 'preview',
- quaternary: !0,
- type: this.buttonType,
- onClick: this.handlePreviewClick,
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- builtinThemeOverrides: Mh
- },
- {
- icon: () =>
- h(At, { clsPrefix: e }, { default: () => h(bk, null) })
- }
- )
- : null,
- (this.showRemoveButton || this.showCancelButton) &&
- !this.disabled &&
- h(
- nr,
- {
- key: 'cancelOrTrash',
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- quaternary: !0,
- builtinThemeOverrides: Mh,
- type: this.buttonType,
- onClick: this.handleRemoveOrCancelClick
- },
- {
- icon: () =>
- h(Ji, null, {
- default: () =>
- this.showRemoveButton
- ? h(
- At,
- { clsPrefix: e, key: 'trash' },
- { default: () => h(CW, null) }
- )
- : h(
- At,
- { clsPrefix: e, key: 'cancel' },
- { default: () => h($W, null) }
- )
- })
- }
- ),
- this.showRetryButton &&
- !this.disabled &&
- h(
- nr,
- {
- key: 'retry',
- quaternary: !0,
- type: this.buttonType,
- onClick: this.handleRetryClick,
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- builtinThemeOverrides: Mh
- },
- {
- icon: () =>
- h(At, { clsPrefix: e }, { default: () => h(AW, null) })
- }
- ),
- this.showDownloadButton
- ? h(
- nr,
- {
- key: 'download',
- quaternary: !0,
- type: this.buttonType,
- onClick: this.handleDownloadClick,
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- builtinThemeOverrides: Mh
- },
- {
- icon: () =>
- h(At, { clsPrefix: e }, { default: () => h(SW, null) })
- }
- )
- : null
- )
- ),
- !a && c
- );
- }
- }),
- Xte = ke({
- name: 'UploadFileList',
- setup(e, { slots: t }) {
- const n = Ze(ad, null);
- n ||
- io(
- 'upload-file-list',
- '`n-upload-file-list` must be placed inside `n-upload`.'
- );
- const {
- abstractRef: r,
- mergedClsPrefixRef: o,
- listTypeRef: i,
- mergedFileListRef: a,
- fileListStyleRef: s,
- cssVarsRef: c,
- themeClassRef: d,
- maxReachedRef: f,
- showTriggerRef: v,
- imageGroupPropsRef: p
- } = n,
- m = I(() => i.value === 'image-card'),
- g = () =>
- a.value.map(x =>
- h(Gte, {
- clsPrefix: o.value,
- key: x.id,
- file: x,
- listType: i.value
- })
- ),
- w = () =>
- m.value
- ? h(PJ, Object.assign({}, p.value), { default: g })
- : h(Cl, { group: !0 }, { default: g });
- return () => {
- const { value: x } = o,
- { value: y } = r;
- return h(
- 'div',
- {
- class: [
- `${x}-upload-file-list`,
- m.value && `${x}-upload-file-list--grid`,
- y ? (d == null ? void 0 : d.value) : void 0
- ],
- style: [y && c ? c.value : '', s.value]
- },
- w(),
- v.value && !f.value && m.value && h(dT, null, t)
- );
- };
- }
- }),
- Zte = F([
- O('upload', 'width: 100%;', [
- U('dragger-inside', [
- O(
- 'upload-trigger',
- `
- display: block;
- `
- )
- ]),
- U('drag-over', [
- O(
- 'upload-dragger',
- `
- border: var(--n-dragger-border-hover);
- `
- )
- ])
- ]),
- O(
- 'upload-dragger',
- `
- cursor: pointer;
- box-sizing: border-box;
- width: 100%;
- text-align: center;
- border-radius: var(--n-border-radius);
- padding: 24px;
- opacity: 1;
- transition:
- opacity .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- background-color: var(--n-dragger-color);
- border: var(--n-dragger-border);
- `,
- [
- F(
- '&:hover',
- `
- border: var(--n-dragger-border-hover);
- `
- ),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- `
- )
- ]
- ),
- O(
- 'upload-trigger',
- `
- display: inline-block;
- box-sizing: border-box;
- opacity: 1;
- transition: opacity .3s var(--n-bezier);
- `,
- [
- F('+', [O('upload-file-list', 'margin-top: 8px;')]),
- U(
- 'disabled',
- `
- opacity: var(--n-item-disabled-opacity);
- cursor: not-allowed;
- `
- ),
- U(
- 'image-card',
- `
- width: 96px;
- height: 96px;
- `,
- [
- O(
- 'base-icon',
- `
- font-size: 24px;
- `
- ),
- O(
- 'upload-dragger',
- `
- padding: 0;
- height: 100%;
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- `
- )
- ]
- )
- ]
- ),
- O(
- 'upload-file-list',
- `
- line-height: var(--n-line-height);
- opacity: 1;
- transition: opacity .3s var(--n-bezier);
- `,
- [
- F('a, img', 'outline: none;'),
- U(
- 'disabled',
- `
- opacity: var(--n-item-disabled-opacity);
- cursor: not-allowed;
- `,
- [O('upload-file', 'cursor: not-allowed;')]
- ),
- U(
- 'grid',
- `
- display: grid;
- grid-template-columns: repeat(auto-fill, 96px);
- grid-gap: 8px;
- margin-top: 0;
- `
- ),
- O(
- 'upload-file',
- `
- display: block;
- box-sizing: border-box;
- cursor: default;
- padding: 0px 12px 0 6px;
- transition: background-color .3s var(--n-bezier);
- border-radius: var(--n-border-radius);
- `,
- [
- Ss(),
- O('progress', [Ss({ foldPadding: !0 })]),
- F(
- '&:hover',
- `
- background-color: var(--n-item-color-hover);
- `,
- [
- O('upload-file-info', [
- V(
- 'action',
- `
- opacity: 1;
- `
- )
- ])
- ]
- ),
- U(
- 'image-type',
- `
- border-radius: var(--n-border-radius);
- text-decoration: underline;
- text-decoration-color: #0000;
- `,
- [
- O(
- 'upload-file-info',
- `
- padding-top: 0px;
- padding-bottom: 0px;
- width: 100%;
- height: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 6px 0;
- `,
- [
- O(
- 'progress',
- `
- padding: 2px 0;
- margin-bottom: 0;
- `
- ),
- V(
- 'name',
- `
- padding: 0 8px;
- `
- ),
- V(
- 'thumbnail',
- `
- width: 32px;
- height: 32px;
- font-size: 28px;
- display: flex;
- justify-content: center;
- align-items: center;
- `,
- [
- F(
- 'img',
- `
- width: 100%;
- `
- )
- ]
- )
- ]
- )
- ]
- ),
- U('text-type', [
- O(
- 'progress',
- `
- box-sizing: border-box;
- padding-bottom: 6px;
- margin-bottom: 6px;
- `
- )
- ]),
- U(
- 'image-card-type',
- `
- position: relative;
- width: 96px;
- height: 96px;
- border: var(--n-item-border-image-card);
- border-radius: var(--n-border-radius);
- padding: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier);
- border-radius: var(--n-border-radius);
- overflow: hidden;
- `,
- [
- O(
- 'progress',
- `
- position: absolute;
- left: 8px;
- bottom: 8px;
- right: 8px;
- width: unset;
- `
- ),
- O(
- 'upload-file-info',
- `
- padding: 0;
- width: 100%;
- height: 100%;
- `,
- [
- V(
- 'thumbnail',
- `
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- font-size: 36px;
- `,
- [
- F(
- 'img',
- `
- width: 100%;
- `
- )
- ]
- )
- ]
- ),
- F(
- '&::before',
- `
- position: absolute;
- z-index: 1;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- border-radius: inherit;
- opacity: 0;
- transition: opacity .2s var(--n-bezier);
- content: "";
- `
- ),
- F('&:hover', [
- F('&::before', 'opacity: 1;'),
- O('upload-file-info', [V('thumbnail', 'opacity: .12;')])
- ])
- ]
- ),
- U('error-status', [
- F(
- '&:hover',
- `
- background-color: var(--n-item-color-hover-error);
- `
- ),
- O('upload-file-info', [
- V('name', 'color: var(--n-item-text-color-error);'),
- V('thumbnail', 'color: var(--n-item-text-color-error);')
- ]),
- U(
- 'image-card-type',
- `
- border: var(--n-item-border-image-card-error);
- `
- )
- ]),
- U(
- 'with-url',
- `
- cursor: pointer;
- `,
- [
- O('upload-file-info', [
- V(
- 'name',
- `
- color: var(--n-item-text-color-success);
- text-decoration-color: var(--n-item-text-color-success);
- `,
- [
- F(
- 'a',
- `
- text-decoration: underline;
- `
- )
- ]
- )
- ])
- ]
- ),
- O(
- 'upload-file-info',
- `
- position: relative;
- padding-top: 6px;
- padding-bottom: 6px;
- display: flex;
- flex-wrap: nowrap;
- `,
- [
- V(
- 'thumbnail',
- `
- font-size: 18px;
- opacity: 1;
- transition: opacity .2s var(--n-bezier);
- color: var(--n-item-icon-color);
- `,
- [
- O(
- 'base-icon',
- `
- margin-right: 2px;
- vertical-align: middle;
- transition: color .3s var(--n-bezier);
- `
- )
- ]
- ),
- V(
- 'action',
- `
- padding-top: inherit;
- padding-bottom: inherit;
- position: absolute;
- right: 0;
- top: 0;
- bottom: 0;
- width: 80px;
- display: flex;
- align-items: center;
- transition: opacity .2s var(--n-bezier);
- justify-content: flex-end;
- opacity: 0;
- `,
- [
- O('button', [
- F('&:not(:last-child)', { marginRight: '4px' }),
- O('base-icon', [F('svg', [br()])])
- ]),
- U(
- 'image-type',
- `
- position: relative;
- max-width: 80px;
- width: auto;
- `
- ),
- U(
- 'image-card-type',
- `
- z-index: 2;
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- `
- )
- ]
- ),
- V(
- 'name',
- `
- color: var(--n-item-text-color);
- flex: 1;
- display: flex;
- justify-content: center;
- text-overflow: ellipsis;
- overflow: hidden;
- flex-direction: column;
- text-decoration-color: #0000;
- font-size: var(--n-font-size);
- transition:
- color .3s var(--n-bezier),
- text-decoration-color .3s var(--n-bezier);
- `,
- [
- F(
- 'a',
- `
- color: inherit;
- text-decoration: underline;
- `
- )
- ]
- )
- ]
- )
- ]
- )
- ]
- ),
- O(
- 'upload-file-input',
- `
- display: block;
- width: 0;
- height: 0;
- opacity: 0;
- `
- )
- ]);
- var x2 =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- function Qte(e, t, n) {
- const { doChange: r, xhrMap: o } = e;
- let i = 0;
- function a(c) {
- var d;
- let f = Object.assign({}, t, { status: 'error', percentage: i });
- o.delete(t.id),
- (f = Du(
- ((d = e.onError) === null || d === void 0
- ? void 0
- : d.call(e, { file: f, event: c })) || f
- )),
- r(f, c);
- }
- function s(c) {
- var d;
- if (e.isErrorState) {
- if (e.isErrorState(n)) {
- a(c);
- return;
- }
- } else if (n.status < 200 || n.status >= 300) {
- a(c);
- return;
- }
- let f = Object.assign({}, t, { status: 'finished', percentage: i });
- o.delete(t.id),
- (f = Du(
- ((d = e.onFinish) === null || d === void 0
- ? void 0
- : d.call(e, { file: f, event: c })) || f
- )),
- r(f, c);
- }
- return {
- handleXHRLoad: s,
- handleXHRError: a,
- handleXHRAbort(c) {
- const d = Object.assign({}, t, {
- status: 'removed',
- file: null,
- percentage: i
- });
- o.delete(t.id), r(d, c);
- },
- handleXHRProgress(c) {
- const d = Object.assign({}, t, { status: 'uploading' });
- if (c.lengthComputable) {
- const f = Math.ceil((c.loaded / c.total) * 100);
- (d.percentage = f), (i = f);
- }
- r(d, c);
- }
- };
- }
- function Jte(e) {
- const {
- inst: t,
- file: n,
- data: r,
- headers: o,
- withCredentials: i,
- action: a,
- customRequest: s
- } = e,
- { doChange: c } = e.inst;
- let d = 0;
- s({
- file: n,
- data: r,
- headers: o,
- withCredentials: i,
- action: a,
- onProgress(f) {
- const v = Object.assign({}, n, { status: 'uploading' }),
- p = f.percent;
- (v.percentage = p), (d = p), c(v);
- },
- onFinish() {
- var f;
- let v = Object.assign({}, n, { status: 'finished', percentage: d });
- (v = Du(
- ((f = t.onFinish) === null || f === void 0
- ? void 0
- : f.call(t, { file: v })) || v
- )),
- c(v);
- },
- onError() {
- var f;
- let v = Object.assign({}, n, { status: 'error', percentage: d });
- (v = Du(
- ((f = t.onError) === null || f === void 0
- ? void 0
- : f.call(t, { file: v })) || v
- )),
- c(v);
- }
- });
- }
- function ene(e, t, n) {
- const r = Qte(e, t, n);
- (n.onabort = r.handleXHRAbort),
- (n.onerror = r.handleXHRError),
- (n.onload = r.handleXHRLoad),
- n.upload && (n.upload.onprogress = r.handleXHRProgress);
- }
- function uT(e, t) {
- return typeof e == 'function' ? e({ file: t }) : e || {};
- }
- function tne(e, t, n) {
- const r = uT(t, n);
- r &&
- Object.keys(r).forEach(o => {
- e.setRequestHeader(o, r[o]);
- });
- }
- function nne(e, t, n) {
- const r = uT(t, n);
- r &&
- Object.keys(r).forEach(o => {
- e.append(o, r[o]);
- });
- }
- function rne(
- e,
- t,
- n,
- {
- method: r,
- action: o,
- withCredentials: i,
- responseType: a,
- headers: s,
- data: c
- }
- ) {
- const d = new XMLHttpRequest();
- (d.responseType = a), e.xhrMap.set(n.id, d), (d.withCredentials = i);
- const f = new FormData();
- if ((nne(f, c, n), f.append(t, n.file), ene(e, n, d), o !== void 0)) {
- d.open(r.toUpperCase(), o), tne(d, s, n), d.send(f);
- const v = Object.assign({}, n, { status: 'uploading' });
- e.doChange(v);
- }
- }
- const one = Object.assign(Object.assign({}, Ke.props), {
- name: { type: String, default: 'file' },
- accept: String,
- action: String,
- customRequest: Function,
- directory: Boolean,
- directoryDnd: { type: Boolean, default: void 0 },
- method: { type: String, default: 'POST' },
- multiple: Boolean,
- showFileList: { type: Boolean, default: !0 },
- data: [Object, Function],
- headers: [Object, Function],
- withCredentials: Boolean,
- responseType: { type: String, default: '' },
- disabled: { type: Boolean, default: void 0 },
- onChange: Function,
- onRemove: Function,
- onFinish: Function,
- onError: Function,
- onBeforeUpload: Function,
- isErrorState: Function,
- onDownload: Function,
- defaultUpload: { type: Boolean, default: !0 },
- fileList: Array,
- 'onUpdate:fileList': [Function, Array],
- onUpdateFileList: [Function, Array],
- fileListStyle: [String, Object],
- defaultFileList: { type: Array, default: () => [] },
- showCancelButton: { type: Boolean, default: !0 },
- showRemoveButton: { type: Boolean, default: !0 },
- showDownloadButton: Boolean,
- showRetryButton: { type: Boolean, default: !0 },
- showPreviewButton: { type: Boolean, default: !0 },
- listType: { type: String, default: 'text' },
- onPreview: Function,
- shouldUseThumbnailUrl: { type: Function, default: e => (Lte ? cT(e) : !1) },
- createThumbnailUrl: Function,
- abstract: Boolean,
- max: Number,
- showTrigger: { type: Boolean, default: !0 },
- imageGroupProps: Object,
- inputProps: Object,
- triggerStyle: [String, Object],
- renderIcon: Object
- }),
- ine = ke({
- name: 'Upload',
- props: one,
- setup(e) {
- e.abstract &&
- e.listType === 'image-card' &&
- io(
- 'upload',
- 'when the list-type is image-card, abstract is not supported.'
- );
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Upload', '-upload', Zte, xJ, e, t),
- o = ei(e),
- i = I(() => {
- const { max: z } = e;
- return z !== void 0 ? m.value.length >= z : !1;
- }),
- a = Z(e.defaultFileList),
- s = Ie(e, 'fileList'),
- c = Z(null),
- d = { value: !1 },
- f = Z(!1),
- v = new Map(),
- p = En(s, a),
- m = I(() => p.value.map(Du));
- function g() {
- var z;
- (z = c.value) === null || z === void 0 || z.click();
- }
- function w(z) {
- const k = z.target;
- C(
- k.files
- ? Array.from(k.files).map(M => ({
- file: M,
- entry: null,
- source: 'input'
- }))
- : null,
- z
- ),
- (k.value = '');
- }
- function x(z) {
- const { 'onUpdate:fileList': k, onUpdateFileList: M } = e;
- k && Me(k, z), M && Me(M, z), (a.value = z);
- }
- const y = I(() => e.multiple || e.directory);
- function C(z, k) {
- if (!z || z.length === 0) return;
- const { onBeforeUpload: M } = e;
- z = y.value ? z : [z[0]];
- const { max: A, accept: D } = e;
- (z = z.filter(({ file: H, source: B }) =>
- B === 'dnd' && D != null && D.trim() ? Wte(H.name, H.type, D) : !0
- )),
- A && (z = z.slice(0, A - m.value.length));
- const L = pi();
- Promise.all(
- z.map(({ file: H, entry: B }) =>
- x2(this, void 0, void 0, function* () {
- var q;
- const X = {
- id: pi(),
- batchId: L,
- name: H.name,
- status: 'pending',
- percentage: 0,
- file: H,
- url: null,
- type: H.type,
- thumbnailUrl: null,
- fullPath:
- (q = B == null ? void 0 : B.fullPath) !== null && q !== void 0
- ? q
- : `/${H.webkitRelativePath || H.name}`
- };
- return !M || (yield M({ file: X, fileList: m.value })) !== !1
- ? X
- : null;
- })
- )
- )
- .then(H =>
- x2(this, void 0, void 0, function* () {
- let B = Promise.resolve();
- H.forEach(q => {
- B = B.then(mn).then(() => {
- q && S(q, k, { append: !0 });
- });
- }),
- yield B;
- })
- )
- .then(() => {
- e.defaultUpload && R();
- });
- }
- function R(z) {
- const {
- method: k,
- action: M,
- withCredentials: A,
- headers: D,
- data: L,
- name: H
- } = e,
- B = z !== void 0 ? m.value.filter(X => X.id === z) : m.value,
- q = z !== void 0;
- B.forEach(X => {
- const { status: te } = X;
- (te === 'pending' || (te === 'error' && q)) &&
- (e.customRequest
- ? Jte({
- inst: {
- doChange: S,
- xhrMap: v,
- onFinish: e.onFinish,
- onError: e.onError
- },
- file: X,
- action: M,
- withCredentials: A,
- headers: D,
- data: L,
- customRequest: e.customRequest
- })
- : rne(
- {
- doChange: S,
- xhrMap: v,
- onFinish: e.onFinish,
- onError: e.onError,
- isErrorState: e.isErrorState
- },
- H,
- X,
- {
- method: k,
- action: M,
- withCredentials: A,
- responseType: e.responseType,
- headers: D,
- data: L
- }
- ));
- });
- }
- const S = (z, k, M = { append: !1, remove: !1 }) => {
- const { append: A, remove: D } = M,
- L = Array.from(m.value),
- H = L.findIndex(B => B.id === z.id);
- if (A || D || ~H) {
- A ? L.push(z) : D ? L.splice(H, 1) : L.splice(H, 1, z);
- const { onChange: B } = e;
- B && B({ file: z, fileList: L, event: k }), x(L);
- }
- };
- function _(z) {
- var k;
- if (z.thumbnailUrl) return z.thumbnailUrl;
- const { createThumbnailUrl: M } = e;
- return M
- ? (k = M(z.file, z)) !== null && k !== void 0
- ? k
- : z.url || ''
- : z.url
- ? z.url
- : z.file
- ? Bte(z.file)
- : '';
- }
- const P = I(() => {
- const {
- common: { cubicBezierEaseInOut: z },
- self: {
- draggerColor: k,
- draggerBorder: M,
- draggerBorderHover: A,
- itemColorHover: D,
- itemColorHoverError: L,
- itemTextColorError: H,
- itemTextColorSuccess: B,
- itemTextColor: q,
- itemIconColor: X,
- itemDisabledOpacity: te,
- lineHeight: G,
- borderRadius: Q,
- fontSize: re,
- itemBorderImageCardError: se,
- itemBorderImageCard: pe
- }
- } = r.value;
- return {
- '--n-bezier': z,
- '--n-border-radius': Q,
- '--n-dragger-border': M,
- '--n-dragger-border-hover': A,
- '--n-dragger-color': k,
- '--n-font-size': re,
- '--n-item-color-hover': D,
- '--n-item-color-hover-error': L,
- '--n-item-disabled-opacity': te,
- '--n-item-icon-color': X,
- '--n-item-text-color': q,
- '--n-item-text-color-error': H,
- '--n-item-text-color-success': B,
- '--n-line-height': G,
- '--n-item-border-image-card-error': se,
- '--n-item-border-image-card': pe
- };
- }),
- T = n ? Mt('upload', void 0, P, e) : void 0;
- Rt(ad, {
- mergedClsPrefixRef: t,
- mergedThemeRef: r,
- showCancelButtonRef: Ie(e, 'showCancelButton'),
- showDownloadButtonRef: Ie(e, 'showDownloadButton'),
- showRemoveButtonRef: Ie(e, 'showRemoveButton'),
- showRetryButtonRef: Ie(e, 'showRetryButton'),
- onRemoveRef: Ie(e, 'onRemove'),
- onDownloadRef: Ie(e, 'onDownload'),
- mergedFileListRef: m,
- triggerStyleRef: Ie(e, 'triggerStyle'),
- shouldUseThumbnailUrlRef: Ie(e, 'shouldUseThumbnailUrl'),
- renderIconRef: Ie(e, 'renderIcon'),
- xhrMap: v,
- submit: R,
- doChange: S,
- showPreviewButtonRef: Ie(e, 'showPreviewButton'),
- onPreviewRef: Ie(e, 'onPreview'),
- getFileThumbnailUrlResolver: _,
- listTypeRef: Ie(e, 'listType'),
- dragOverRef: f,
- openOpenFileDialog: g,
- draggerInsideRef: d,
- handleFileAddition: C,
- mergedDisabledRef: o.mergedDisabledRef,
- maxReachedRef: i,
- fileListStyleRef: Ie(e, 'fileListStyle'),
- abstractRef: Ie(e, 'abstract'),
- acceptRef: Ie(e, 'accept'),
- cssVarsRef: n ? void 0 : P,
- themeClassRef: T == null ? void 0 : T.themeClass,
- onRender: T == null ? void 0 : T.onRender,
- showTriggerRef: Ie(e, 'showTrigger'),
- imageGroupPropsRef: Ie(e, 'imageGroupProps'),
- mergedDirectoryDndRef: I(() => {
- var z;
- return (z = e.directoryDnd) !== null && z !== void 0
- ? z
- : e.directory;
- })
- });
- const E = {
- clear: () => {
- a.value = [];
- },
- submit: R,
- openOpenFileDialog: g
- };
- return Object.assign(
- {
- mergedClsPrefix: t,
- draggerInsideRef: d,
- inputElRef: c,
- mergedTheme: r,
- dragOver: f,
- mergedMultiple: y,
- cssVars: n ? void 0 : P,
- themeClass: T == null ? void 0 : T.themeClass,
- onRender: T == null ? void 0 : T.onRender,
- handleFileInputChange: w
- },
- E
- );
- },
- render() {
- var e, t;
- const {
- draggerInsideRef: n,
- mergedClsPrefix: r,
- $slots: o,
- directory: i,
- onRender: a
- } = this;
- if (o.default && !this.abstract) {
- const c = o.default()[0];
- !((e = c == null ? void 0 : c.type) === null || e === void 0) &&
- e[aT] &&
- (n.value = !0);
- }
- const s = h(
- 'input',
- Object.assign({}, this.inputProps, {
- ref: 'inputElRef',
- type: 'file',
- class: `${r}-upload-file-input`,
- accept: this.accept,
- multiple: this.mergedMultiple,
- onChange: this.handleFileInputChange,
- webkitdirectory: i || void 0,
- directory: i || void 0
- })
- );
- return this.abstract
- ? h(
- on,
- null,
- (t = o.default) === null || t === void 0 ? void 0 : t.call(o),
- h(Hu, { to: 'body' }, s)
- )
- : (a == null || a(),
- h(
- 'div',
- {
- class: [
- `${r}-upload`,
- n.value && `${r}-upload--dragger-inside`,
- this.dragOver && `${r}-upload--drag-over`,
- this.themeClass
- ],
- style: this.cssVars
- },
- s,
- this.showTrigger &&
- this.listType !== 'image-card' &&
- h(dT, null, o),
- this.showFileList && h(Xte, null, o)
- ));
- }
- }),
- ane = ke({
- name: 'InjectionExtractor',
- props: { onSetup: Function },
- setup(e, { slots: t }) {
- var n;
- return (
- (n = e.onSetup) === null || n === void 0 || n.call(e),
- () => {
- var r;
- return (r = t.default) === null || r === void 0 ? void 0 : r.call(t);
- }
- );
- }
- }),
- lne = { message: xee, notification: $ee, loadingBar: nee, dialog: TX };
- function sne({ providersAndProps: e, configProviderProps: t }) {
- let r = RR(() =>
- h(Ty, ll(t), {
- default: () =>
- e.map(({ type: s, Provider: c, props: d }) =>
- h(c, ll(d), {
- default: () => h(ane, { onSetup: () => (o[s] = lne[s]()) })
- })
- )
- })
- );
- const o = { app: r };
- let i;
- return (
- Fo &&
- ((i = document.createElement('div')),
- document.body.appendChild(i),
- r.mount(i)),
- Object.assign(
- {
- unmount: () => {
- var s;
- if (r === null || i === null) {
- Io(
- 'discrete',
- 'unmount call no need because discrete app has been unmounted'
- );
- return;
- }
- r.unmount(),
- (s = i.parentNode) === null || s === void 0 || s.removeChild(i),
- (i = null),
- (r = null);
- }
- },
- o
- )
- );
- }
- function cne(
- e,
- {
- configProviderProps: t,
- messageProviderProps: n,
- dialogProviderProps: r,
- notificationProviderProps: o,
- loadingBarProviderProps: i
- } = {}
- ) {
- const a = [];
- return (
- e.forEach(c => {
- switch (c) {
- case 'message':
- a.push({ type: c, Provider: Gy, props: n });
- break;
- case 'notification':
- a.push({ type: c, Provider: Zy, props: o });
- break;
- case 'dialog':
- a.push({ type: c, Provider: jy, props: r });
- break;
- case 'loadingBar':
- a.push({ type: c, Provider: U3, props: i });
- break;
- }
- }),
- sne({ providersAndProps: a, configProviderProps: t })
- );
- }
- const dne = '2.34.4';
- function une({ componentPrefix: e = 'N', components: t = [] } = {}) {
- const n = [];
- function r(i, a, s) {
- i.component(e + a) || i.component(e + a, s);
- }
- function o(i) {
- n.includes(i) ||
- (n.push(i),
- t.forEach(a => {
- const { name: s, alias: c } = a;
- r(i, s, a),
- c &&
- c.forEach(d => {
- r(i, d, a);
- });
- }));
- }
- return { version: dne, componentPrefix: e, install: o };
- }
- const fne = ke({
- name: 'application-page',
- setup(e, { slots: t }) {
- return () =>
- hr(jy, null, {
- default: () => [
- hr(Zy, null, {
- default: () => [
- hr(Gy, { max: 1 }, { default: () => [t.default && t.default()] })
- ]
- })
- ]
- });
- }
- });
- /*!
- * vue-router v4.1.6
- * (c) 2022 Eduardo San Martin Morote
- * @license MIT
- */ const bc = typeof window < 'u';
- function hne(e) {
- return e.__esModule || e[Symbol.toStringTag] === 'Module';
- }
- const Fn = Object.assign;
- function Xm(e, t) {
- const n = {};
- for (const r in t) {
- const o = t[r];
- n[r] = mi(o) ? o.map(e) : e(o);
- }
- return n;
- }
- const ou = () => {},
- mi = Array.isArray,
- vne = /\/$/,
- pne = e => e.replace(vne, '');
- function Zm(e, t, n = '/') {
- let r,
- o = {},
- i = '',
- a = '';
- const s = t.indexOf('#');
- let c = t.indexOf('?');
- return (
- s < c && s >= 0 && (c = -1),
- c > -1 &&
- ((r = t.slice(0, c)),
- (i = t.slice(c + 1, s > -1 ? s : t.length)),
- (o = e(i))),
- s > -1 && ((r = r || t.slice(0, s)), (a = t.slice(s, t.length))),
- (r = yne(r ?? t, n)),
- { fullPath: r + (i && '?') + i + a, path: r, query: o, hash: a }
- );
- }
- function gne(e, t) {
- const n = t.query ? e(t.query) : '';
- return t.path + (n && '?') + n + (t.hash || '');
- }
- function w2(e, t) {
- return !t || !e.toLowerCase().startsWith(t.toLowerCase())
- ? e
- : e.slice(t.length) || '/';
- }
- function mne(e, t, n) {
- const r = t.matched.length - 1,
- o = n.matched.length - 1;
- return (
- r > -1 &&
- r === o &&
- Lc(t.matched[r], n.matched[o]) &&
- fT(t.params, n.params) &&
- e(t.query) === e(n.query) &&
- t.hash === n.hash
- );
- }
- function Lc(e, t) {
- return (e.aliasOf || e) === (t.aliasOf || t);
- }
- function fT(e, t) {
- if (Object.keys(e).length !== Object.keys(t).length) return !1;
- for (const n in e) if (!bne(e[n], t[n])) return !1;
- return !0;
- }
- function bne(e, t) {
- return mi(e) ? C2(e, t) : mi(t) ? C2(t, e) : e === t;
- }
- function C2(e, t) {
- return mi(t)
- ? e.length === t.length && e.every((n, r) => n === t[r])
- : e.length === 1 && e[0] === t;
- }
- function yne(e, t) {
- if (e.startsWith('/')) return e;
- if (!e) return t;
- const n = t.split('/'),
- r = e.split('/');
- let o = n.length - 1,
- i,
- a;
- for (i = 0; i < r.length; i++)
- if (((a = r[i]), a !== '.'))
- if (a === '..') o > 1 && o--;
- else break;
- return (
- n.slice(0, o).join('/') +
- '/' +
- r.slice(i - (i === r.length ? 1 : 0)).join('/')
- );
- }
- var Fu;
- (function (e) {
- (e.pop = 'pop'), (e.push = 'push');
- })(Fu || (Fu = {}));
- var iu;
- (function (e) {
- (e.back = 'back'), (e.forward = 'forward'), (e.unknown = '');
- })(iu || (iu = {}));
- function xne(e) {
- if (!e)
- if (bc) {
- const t = document.querySelector('base');
- (e = (t && t.getAttribute('href')) || '/'),
- (e = e.replace(/^\w+:\/\/[^\/]+/, ''));
- } else e = '/';
- return e[0] !== '/' && e[0] !== '#' && (e = '/' + e), pne(e);
- }
- const wne = /^[^#]+#/;
- function Cne(e, t) {
- return e.replace(wne, '#') + t;
- }
- function Sne(e, t) {
- const n = document.documentElement.getBoundingClientRect(),
- r = e.getBoundingClientRect();
- return {
- behavior: t.behavior,
- left: r.left - n.left - (t.left || 0),
- top: r.top - n.top - (t.top || 0)
- };
- }
- const jp = () => ({ left: window.pageXOffset, top: window.pageYOffset });
- function _ne(e) {
- let t;
- if ('el' in e) {
- const n = e.el,
- r = typeof n == 'string' && n.startsWith('#'),
- o =
- typeof n == 'string'
- ? r
- ? document.getElementById(n.slice(1))
- : document.querySelector(n)
- : n;
- if (!o) return;
- t = Sne(o, e);
- } else t = e;
- 'scrollBehavior' in document.documentElement.style
- ? window.scrollTo(t)
- : window.scrollTo(
- t.left != null ? t.left : window.pageXOffset,
- t.top != null ? t.top : window.pageYOffset
- );
- }
- function S2(e, t) {
- return (history.state ? history.state.position - t : -1) + e;
- }
- const o0 = new Map();
- function Rne(e, t) {
- o0.set(e, t);
- }
- function Pne(e) {
- const t = o0.get(e);
- return o0.delete(e), t;
- }
- let kne = () => location.protocol + '//' + location.host;
- function hT(e, t) {
- const { pathname: n, search: r, hash: o } = t,
- i = e.indexOf('#');
- if (i > -1) {
- let s = o.includes(e.slice(i)) ? e.slice(i).length : 1,
- c = o.slice(s);
- return c[0] !== '/' && (c = '/' + c), w2(c, '');
- }
- return w2(n, e) + r + o;
- }
- function Tne(e, t, n, r) {
- let o = [],
- i = [],
- a = null;
- const s = ({ state: p }) => {
- const m = hT(e, location),
- g = n.value,
- w = t.value;
- let x = 0;
- if (p) {
- if (((n.value = m), (t.value = p), a && a === g)) {
- a = null;
- return;
- }
- x = w ? p.position - w.position : 0;
- } else r(m);
- o.forEach(y => {
- y(n.value, g, {
- delta: x,
- type: Fu.pop,
- direction: x ? (x > 0 ? iu.forward : iu.back) : iu.unknown
- });
- });
- };
- function c() {
- a = n.value;
- }
- function d(p) {
- o.push(p);
- const m = () => {
- const g = o.indexOf(p);
- g > -1 && o.splice(g, 1);
- };
- return i.push(m), m;
- }
- function f() {
- const { history: p } = window;
- p.state && p.replaceState(Fn({}, p.state, { scroll: jp() }), '');
- }
- function v() {
- for (const p of i) p();
- (i = []),
- window.removeEventListener('popstate', s),
- window.removeEventListener('beforeunload', f);
- }
- return (
- window.addEventListener('popstate', s),
- window.addEventListener('beforeunload', f),
- { pauseListeners: c, listen: d, destroy: v }
- );
- }
- function _2(e, t, n, r = !1, o = !1) {
- return {
- back: e,
- current: t,
- forward: n,
- replaced: r,
- position: window.history.length,
- scroll: o ? jp() : null
- };
- }
- function $ne(e) {
- const { history: t, location: n } = window,
- r = { value: hT(e, n) },
- o = { value: t.state };
- o.value ||
- i(
- r.value,
- {
- back: null,
- current: r.value,
- forward: null,
- position: t.length - 1,
- replaced: !0,
- scroll: null
- },
- !0
- );
- function i(c, d, f) {
- const v = e.indexOf('#'),
- p =
- v > -1
- ? (n.host && document.querySelector('base') ? e : e.slice(v)) + c
- : kne() + e + c;
- try {
- t[f ? 'replaceState' : 'pushState'](d, '', p), (o.value = d);
- } catch (m) {
- console.error(m), n[f ? 'replace' : 'assign'](p);
- }
- }
- function a(c, d) {
- const f = Fn({}, t.state, _2(o.value.back, c, o.value.forward, !0), d, {
- position: o.value.position
- });
- i(c, f, !0), (r.value = c);
- }
- function s(c, d) {
- const f = Fn({}, o.value, t.state, { forward: c, scroll: jp() });
- i(f.current, f, !0);
- const v = Fn({}, _2(r.value, c, null), { position: f.position + 1 }, d);
- i(c, v, !1), (r.value = c);
- }
- return { location: r, state: o, push: s, replace: a };
- }
- function One(e) {
- e = xne(e);
- const t = $ne(e),
- n = Tne(e, t.state, t.location, t.replace);
- function r(i, a = !0) {
- a || n.pauseListeners(), history.go(i);
- }
- const o = Fn(
- { location: '', base: e, go: r, createHref: Cne.bind(null, e) },
- t,
- n
- );
- return (
- Object.defineProperty(o, 'location', {
- enumerable: !0,
- get: () => t.location.value
- }),
- Object.defineProperty(o, 'state', {
- enumerable: !0,
- get: () => t.state.value
- }),
- o
- );
- }
- function zne(e) {
- return typeof e == 'string' || (e && typeof e == 'object');
- }
- function vT(e) {
- return typeof e == 'string' || typeof e == 'symbol';
- }
- const Xa = {
- path: '/',
- name: void 0,
- params: {},
- query: {},
- hash: '',
- fullPath: '/',
- matched: [],
- meta: {},
- redirectedFrom: void 0
- },
- pT = Symbol('');
- var R2;
- (function (e) {
- (e[(e.aborted = 4)] = 'aborted'),
- (e[(e.cancelled = 8)] = 'cancelled'),
- (e[(e.duplicated = 16)] = 'duplicated');
- })(R2 || (R2 = {}));
- function Nc(e, t) {
- return Fn(new Error(), { type: e, [pT]: !0 }, t);
- }
- function zi(e, t) {
- return e instanceof Error && pT in e && (t == null || !!(e.type & t));
- }
- const P2 = '[^/]+?',
- Ene = { sensitive: !1, strict: !1, start: !0, end: !0 },
- Ane = /[.+*?^${}()[\]/\\]/g;
- function Mne(e, t) {
- const n = Fn({}, Ene, t),
- r = [];
- let o = n.start ? '^' : '';
- const i = [];
- for (const d of e) {
- const f = d.length ? [] : [90];
- n.strict && !d.length && (o += '/');
- for (let v = 0; v < d.length; v++) {
- const p = d[v];
- let m = 40 + (n.sensitive ? 0.25 : 0);
- if (p.type === 0)
- v || (o += '/'), (o += p.value.replace(Ane, '\\$&')), (m += 40);
- else if (p.type === 1) {
- const { value: g, repeatable: w, optional: x, regexp: y } = p;
- i.push({ name: g, repeatable: w, optional: x });
- const C = y || P2;
- if (C !== P2) {
- m += 10;
- try {
- new RegExp(`(${C})`);
- } catch (S) {
- throw new Error(
- `Invalid custom RegExp for param "${g}" (${C}): ` + S.message
- );
- }
- }
- let R = w ? `((?:${C})(?:/(?:${C}))*)` : `(${C})`;
- v || (R = x && d.length < 2 ? `(?:/${R})` : '/' + R),
- x && (R += '?'),
- (o += R),
- (m += 20),
- x && (m += -8),
- w && (m += -20),
- C === '.*' && (m += -50);
- }
- f.push(m);
- }
- r.push(f);
- }
- if (n.strict && n.end) {
- const d = r.length - 1;
- r[d][r[d].length - 1] += 0.7000000000000001;
- }
- n.strict || (o += '/?'), n.end ? (o += '$') : n.strict && (o += '(?:/|$)');
- const a = new RegExp(o, n.sensitive ? '' : 'i');
- function s(d) {
- const f = d.match(a),
- v = {};
- if (!f) return null;
- for (let p = 1; p < f.length; p++) {
- const m = f[p] || '',
- g = i[p - 1];
- v[g.name] = m && g.repeatable ? m.split('/') : m;
- }
- return v;
- }
- function c(d) {
- let f = '',
- v = !1;
- for (const p of e) {
- (!v || !f.endsWith('/')) && (f += '/'), (v = !1);
- for (const m of p)
- if (m.type === 0) f += m.value;
- else if (m.type === 1) {
- const { value: g, repeatable: w, optional: x } = m,
- y = g in d ? d[g] : '';
- if (mi(y) && !w)
- throw new Error(
- `Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`
- );
- const C = mi(y) ? y.join('/') : y;
- if (!C)
- if (x)
- p.length < 2 &&
- (f.endsWith('/') ? (f = f.slice(0, -1)) : (v = !0));
- else throw new Error(`Missing required param "${g}"`);
- f += C;
- }
- }
- return f || '/';
- }
- return { re: a, score: r, keys: i, parse: s, stringify: c };
- }
- function Ine(e, t) {
- let n = 0;
- for (; n < e.length && n < t.length; ) {
- const r = t[n] - e[n];
- if (r) return r;
- n++;
- }
- return e.length < t.length
- ? e.length === 1 && e[0] === 40 + 40
- ? -1
- : 1
- : e.length > t.length
- ? t.length === 1 && t[0] === 40 + 40
- ? 1
- : -1
- : 0;
- }
- function Dne(e, t) {
- let n = 0;
- const r = e.score,
- o = t.score;
- for (; n < r.length && n < o.length; ) {
- const i = Ine(r[n], o[n]);
- if (i) return i;
- n++;
- }
- if (Math.abs(o.length - r.length) === 1) {
- if (k2(r)) return 1;
- if (k2(o)) return -1;
- }
- return o.length - r.length;
- }
- function k2(e) {
- const t = e[e.length - 1];
- return e.length > 0 && t[t.length - 1] < 0;
- }
- const Fne = { type: 0, value: '' },
- Bne = /[a-zA-Z0-9_]/;
- function Lne(e) {
- if (!e) return [[]];
- if (e === '/') return [[Fne]];
- if (!e.startsWith('/')) throw new Error(`Invalid path "${e}"`);
- function t(m) {
- throw new Error(`ERR (${n})/"${d}": ${m}`);
- }
- let n = 0,
- r = n;
- const o = [];
- let i;
- function a() {
- i && o.push(i), (i = []);
- }
- let s = 0,
- c,
- d = '',
- f = '';
- function v() {
- d &&
- (n === 0
- ? i.push({ type: 0, value: d })
- : n === 1 || n === 2 || n === 3
- ? (i.length > 1 &&
- (c === '*' || c === '+') &&
- t(
- `A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`
- ),
- i.push({
- type: 1,
- value: d,
- regexp: f,
- repeatable: c === '*' || c === '+',
- optional: c === '*' || c === '?'
- }))
- : t('Invalid state to consume buffer'),
- (d = ''));
- }
- function p() {
- d += c;
- }
- for (; s < e.length; ) {
- if (((c = e[s++]), c === '\\' && n !== 2)) {
- (r = n), (n = 4);
- continue;
- }
- switch (n) {
- case 0:
- c === '/' ? (d && v(), a()) : c === ':' ? (v(), (n = 1)) : p();
- break;
- case 4:
- p(), (n = r);
- break;
- case 1:
- c === '('
- ? (n = 2)
- : Bne.test(c)
- ? p()
- : (v(), (n = 0), c !== '*' && c !== '?' && c !== '+' && s--);
- break;
- case 2:
- c === ')'
- ? f[f.length - 1] == '\\'
- ? (f = f.slice(0, -1) + c)
- : (n = 3)
- : (f += c);
- break;
- case 3:
- v(), (n = 0), c !== '*' && c !== '?' && c !== '+' && s--, (f = '');
- break;
- default:
- t('Unknown state');
- break;
- }
- }
- return n === 2 && t(`Unfinished custom RegExp for param "${d}"`), v(), a(), o;
- }
- function Nne(e, t, n) {
- const r = Mne(Lne(e.path), n),
- o = Fn(r, { record: e, parent: t, children: [], alias: [] });
- return t && !o.record.aliasOf == !t.record.aliasOf && t.children.push(o), o;
- }
- function Hne(e, t) {
- const n = [],
- r = new Map();
- t = O2({ strict: !1, end: !0, sensitive: !1 }, t);
- function o(f) {
- return r.get(f);
- }
- function i(f, v, p) {
- const m = !p,
- g = jne(f);
- g.aliasOf = p && p.record;
- const w = O2(t, f),
- x = [g];
- if ('alias' in f) {
- const R = typeof f.alias == 'string' ? [f.alias] : f.alias;
- for (const S of R)
- x.push(
- Fn({}, g, {
- components: p ? p.record.components : g.components,
- path: S,
- aliasOf: p ? p.record : g
- })
- );
- }
- let y, C;
- for (const R of x) {
- const { path: S } = R;
- if (v && S[0] !== '/') {
- const _ = v.record.path,
- P = _[_.length - 1] === '/' ? '' : '/';
- R.path = v.record.path + (S && P + S);
- }
- if (
- ((y = Nne(R, v, w)),
- p
- ? p.alias.push(y)
- : ((C = C || y),
- C !== y && C.alias.push(y),
- m && f.name && !$2(y) && a(f.name)),
- g.children)
- ) {
- const _ = g.children;
- for (let P = 0; P < _.length; P++) i(_[P], y, p && p.children[P]);
- }
- (p = p || y),
- ((y.record.components && Object.keys(y.record.components).length) ||
- y.record.name ||
- y.record.redirect) &&
- c(y);
- }
- return C
- ? () => {
- a(C);
- }
- : ou;
- }
- function a(f) {
- if (vT(f)) {
- const v = r.get(f);
- v &&
- (r.delete(f),
- n.splice(n.indexOf(v), 1),
- v.children.forEach(a),
- v.alias.forEach(a));
- } else {
- const v = n.indexOf(f);
- v > -1 &&
- (n.splice(v, 1),
- f.record.name && r.delete(f.record.name),
- f.children.forEach(a),
- f.alias.forEach(a));
- }
- }
- function s() {
- return n;
- }
- function c(f) {
- let v = 0;
- for (
- ;
- v < n.length &&
- Dne(f, n[v]) >= 0 &&
- (f.record.path !== n[v].record.path || !gT(f, n[v]));
- )
- v++;
- n.splice(v, 0, f), f.record.name && !$2(f) && r.set(f.record.name, f);
- }
- function d(f, v) {
- let p,
- m = {},
- g,
- w;
- if ('name' in f && f.name) {
- if (((p = r.get(f.name)), !p)) throw Nc(1, { location: f });
- (w = p.record.name),
- (m = Fn(
- T2(
- v.params,
- p.keys.filter(C => !C.optional).map(C => C.name)
- ),
- f.params &&
- T2(
- f.params,
- p.keys.map(C => C.name)
- )
- )),
- (g = p.stringify(m));
- } else if ('path' in f)
- (g = f.path),
- (p = n.find(C => C.re.test(g))),
- p && ((m = p.parse(g)), (w = p.record.name));
- else {
- if (((p = v.name ? r.get(v.name) : n.find(C => C.re.test(v.path))), !p))
- throw Nc(1, { location: f, currentLocation: v });
- (w = p.record.name),
- (m = Fn({}, v.params, f.params)),
- (g = p.stringify(m));
- }
- const x = [];
- let y = p;
- for (; y; ) x.unshift(y.record), (y = y.parent);
- return { name: w, path: g, params: m, matched: x, meta: Une(x) };
- }
- return (
- e.forEach(f => i(f)),
- {
- addRoute: i,
- resolve: d,
- removeRoute: a,
- getRoutes: s,
- getRecordMatcher: o
- }
- );
- }
- function T2(e, t) {
- const n = {};
- for (const r of t) r in e && (n[r] = e[r]);
- return n;
- }
- function jne(e) {
- return {
- path: e.path,
- redirect: e.redirect,
- name: e.name,
- meta: e.meta || {},
- aliasOf: void 0,
- beforeEnter: e.beforeEnter,
- props: Wne(e),
- children: e.children || [],
- instances: {},
- leaveGuards: new Set(),
- updateGuards: new Set(),
- enterCallbacks: {},
- components:
- 'components' in e
- ? e.components || null
- : e.component && { default: e.component }
- };
- }
- function Wne(e) {
- const t = {},
- n = e.props || !1;
- if ('component' in e) t.default = n;
- else for (const r in e.components) t[r] = typeof n == 'boolean' ? n : n[r];
- return t;
- }
- function $2(e) {
- for (; e; ) {
- if (e.record.aliasOf) return !0;
- e = e.parent;
- }
- return !1;
- }
- function Une(e) {
- return e.reduce((t, n) => Fn(t, n.meta), {});
- }
- function O2(e, t) {
- const n = {};
- for (const r in e) n[r] = r in t ? t[r] : e[r];
- return n;
- }
- function gT(e, t) {
- return t.children.some(n => n === e || gT(e, n));
- }
- const mT = /#/g,
- Vne = /&/g,
- Kne = /\//g,
- qne = /=/g,
- Yne = /\?/g,
- bT = /\+/g,
- Gne = /%5B/g,
- Xne = /%5D/g,
- yT = /%5E/g,
- Zne = /%60/g,
- xT = /%7B/g,
- Qne = /%7C/g,
- wT = /%7D/g,
- Jne = /%20/g;
- function Jy(e) {
- return encodeURI('' + e)
- .replace(Qne, '|')
- .replace(Gne, '[')
- .replace(Xne, ']');
- }
- function ere(e) {
- return Jy(e).replace(xT, '{').replace(wT, '}').replace(yT, '^');
- }
- function i0(e) {
- return Jy(e)
- .replace(bT, '%2B')
- .replace(Jne, '+')
- .replace(mT, '%23')
- .replace(Vne, '%26')
- .replace(Zne, '`')
- .replace(xT, '{')
- .replace(wT, '}')
- .replace(yT, '^');
- }
- function tre(e) {
- return i0(e).replace(qne, '%3D');
- }
- function nre(e) {
- return Jy(e).replace(mT, '%23').replace(Yne, '%3F');
- }
- function rre(e) {
- return e == null ? '' : nre(e).replace(Kne, '%2F');
- }
- function Kv(e) {
- try {
- return decodeURIComponent('' + e);
- } catch {}
- return '' + e;
- }
- function ore(e) {
- const t = {};
- if (e === '' || e === '?') return t;
- const r = (e[0] === '?' ? e.slice(1) : e).split('&');
- for (let o = 0; o < r.length; ++o) {
- const i = r[o].replace(bT, ' '),
- a = i.indexOf('='),
- s = Kv(a < 0 ? i : i.slice(0, a)),
- c = a < 0 ? null : Kv(i.slice(a + 1));
- if (s in t) {
- let d = t[s];
- mi(d) || (d = t[s] = [d]), d.push(c);
- } else t[s] = c;
- }
- return t;
- }
- function z2(e) {
- let t = '';
- for (let n in e) {
- const r = e[n];
- if (((n = tre(n)), r == null)) {
- r !== void 0 && (t += (t.length ? '&' : '') + n);
- continue;
- }
- (mi(r) ? r.map(i => i && i0(i)) : [r && i0(r)]).forEach(i => {
- i !== void 0 &&
- ((t += (t.length ? '&' : '') + n), i != null && (t += '=' + i));
- });
- }
- return t;
- }
- function ire(e) {
- const t = {};
- for (const n in e) {
- const r = e[n];
- r !== void 0 &&
- (t[n] = mi(r)
- ? r.map(o => (o == null ? null : '' + o))
- : r == null
- ? r
- : '' + r);
- }
- return t;
- }
- const CT = Symbol(''),
- E2 = Symbol(''),
- Wp = Symbol(''),
- e1 = Symbol(''),
- a0 = Symbol('');
- function Fd() {
- let e = [];
- function t(r) {
- return (
- e.push(r),
- () => {
- const o = e.indexOf(r);
- o > -1 && e.splice(o, 1);
- }
- );
- }
- function n() {
- e = [];
- }
- return { add: t, list: () => e, reset: n };
- }
- function are(e, t, n) {
- const r = () => {
- e[t].delete(n);
- };
- Nu(r),
- qc(r),
- xp(() => {
- e[t].add(n);
- }),
- e[t].add(n);
- }
- function ale(e) {
- const t = Ze(CT, {}).value;
- t && are(t, 'updateGuards', e);
- }
- function tl(e, t, n, r, o) {
- const i = r && (r.enterCallbacks[o] = r.enterCallbacks[o] || []);
- return () =>
- new Promise((a, s) => {
- const c = v => {
- v === !1
- ? s(Nc(4, { from: n, to: t }))
- : v instanceof Error
- ? s(v)
- : zne(v)
- ? s(Nc(2, { from: t, to: v }))
- : (i &&
- r.enterCallbacks[o] === i &&
- typeof v == 'function' &&
- i.push(v),
- a());
- },
- d = e.call(r && r.instances[o], t, n, c);
- let f = Promise.resolve(d);
- e.length < 3 && (f = f.then(c)), f.catch(v => s(v));
- });
- }
- function Qm(e, t, n, r) {
- const o = [];
- for (const i of e)
- for (const a in i.components) {
- let s = i.components[a];
- if (!(t !== 'beforeRouteEnter' && !i.instances[a]))
- if (lre(s)) {
- const d = (s.__vccOpts || s)[t];
- d && o.push(tl(d, n, r, i, a));
- } else {
- let c = s();
- o.push(() =>
- c.then(d => {
- if (!d)
- return Promise.reject(
- new Error(`Couldn't resolve component "${a}" at "${i.path}"`)
- );
- const f = hne(d) ? d.default : d;
- i.components[a] = f;
- const p = (f.__vccOpts || f)[t];
- return p && tl(p, n, r, i, a)();
- })
- );
- }
- }
- return o;
- }
- function lre(e) {
- return (
- typeof e == 'object' ||
- 'displayName' in e ||
- 'props' in e ||
- '__vccOpts' in e
- );
- }
- function A2(e) {
- const t = Ze(Wp),
- n = Ze(e1),
- r = I(() => t.resolve(ll(e.to))),
- o = I(() => {
- const { matched: c } = r.value,
- { length: d } = c,
- f = c[d - 1],
- v = n.matched;
- if (!f || !v.length) return -1;
- const p = v.findIndex(Lc.bind(null, f));
- if (p > -1) return p;
- const m = M2(c[d - 2]);
- return d > 1 && M2(f) === m && v[v.length - 1].path !== m
- ? v.findIndex(Lc.bind(null, c[d - 2]))
- : p;
- }),
- i = I(() => o.value > -1 && ure(n.params, r.value.params)),
- a = I(
- () =>
- o.value > -1 &&
- o.value === n.matched.length - 1 &&
- fT(n.params, r.value.params)
- );
- function s(c = {}) {
- return dre(c)
- ? t[ll(e.replace) ? 'replace' : 'push'](ll(e.to)).catch(ou)
- : Promise.resolve();
- }
- return {
- route: r,
- href: I(() => r.value.href),
- isActive: i,
- isExactActive: a,
- navigate: s
- };
- }
- const sre = ke({
- name: 'RouterLink',
- compatConfig: { MODE: 3 },
- props: {
- to: { type: [String, Object], required: !0 },
- replace: Boolean,
- activeClass: String,
- exactActiveClass: String,
- custom: Boolean,
- ariaCurrentValue: { type: String, default: 'page' }
- },
- useLink: A2,
- setup(e, { slots: t }) {
- const n = Qi(A2(e)),
- { options: r } = Ze(Wp),
- o = I(() => ({
- [I2(e.activeClass, r.linkActiveClass, 'router-link-active')]:
- n.isActive,
- [I2(
- e.exactActiveClass,
- r.linkExactActiveClass,
- 'router-link-exact-active'
- )]: n.isExactActive
- }));
- return () => {
- const i = t.default && t.default(n);
- return e.custom
- ? i
- : h(
- 'a',
- {
- 'aria-current': n.isExactActive ? e.ariaCurrentValue : null,
- href: n.href,
- onClick: n.navigate,
- class: o.value
- },
- i
- );
- };
- }
- }),
- cre = sre;
- function dre(e) {
- if (
- !(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) &&
- !e.defaultPrevented &&
- !(e.button !== void 0 && e.button !== 0)
- ) {
- if (e.currentTarget && e.currentTarget.getAttribute) {
- const t = e.currentTarget.getAttribute('target');
- if (/\b_blank\b/i.test(t)) return;
- }
- return e.preventDefault && e.preventDefault(), !0;
- }
- }
- function ure(e, t) {
- for (const n in t) {
- const r = t[n],
- o = e[n];
- if (typeof r == 'string') {
- if (r !== o) return !1;
- } else if (!mi(o) || o.length !== r.length || r.some((i, a) => i !== o[a]))
- return !1;
- }
- return !0;
- }
- function M2(e) {
- return e ? (e.aliasOf ? e.aliasOf.path : e.path) : '';
- }
- const I2 = (e, t, n) => e ?? t ?? n,
- fre = ke({
- name: 'RouterView',
- inheritAttrs: !1,
- props: { name: { type: String, default: 'default' }, route: Object },
- compatConfig: { MODE: 3 },
- setup(e, { attrs: t, slots: n }) {
- const r = Ze(a0),
- o = I(() => e.route || r.value),
- i = Ze(E2, 0),
- a = I(() => {
- let d = ll(i);
- const { matched: f } = o.value;
- let v;
- for (; (v = f[d]) && !v.components; ) d++;
- return d;
- }),
- s = I(() => o.value.matched[a.value]);
- Rt(
- E2,
- I(() => a.value + 1)
- ),
- Rt(CT, s),
- Rt(a0, o);
- const c = Z();
- return (
- $t(
- () => [c.value, s.value, e.name],
- ([d, f, v], [p, m, g]) => {
- f &&
- ((f.instances[v] = d),
- m &&
- m !== f &&
- d &&
- d === p &&
- (f.leaveGuards.size || (f.leaveGuards = m.leaveGuards),
- f.updateGuards.size || (f.updateGuards = m.updateGuards))),
- d &&
- f &&
- (!m || !Lc(f, m) || !p) &&
- (f.enterCallbacks[v] || []).forEach(w => w(d));
- },
- { flush: 'post' }
- ),
- () => {
- const d = o.value,
- f = e.name,
- v = s.value,
- p = v && v.components[f];
- if (!p) return D2(n.default, { Component: p, route: d });
- const m = v.props[f],
- g = m
- ? m === !0
- ? d.params
- : typeof m == 'function'
- ? m(d)
- : m
- : null,
- x = h(
- p,
- Fn({}, g, t, {
- onVnodeUnmounted: y => {
- y.component.isUnmounted && (v.instances[f] = null);
- },
- ref: c
- })
- );
- return D2(n.default, { Component: x, route: d }) || x;
- }
- );
- }
- });
- function D2(e, t) {
- if (!e) return null;
- const n = e(t);
- return n.length === 1 ? n[0] : n;
- }
- const ST = fre;
- function hre(e) {
- const t = Hne(e.routes, e),
- n = e.parseQuery || ore,
- r = e.stringifyQuery || z2,
- o = e.history,
- i = Fd(),
- a = Fd(),
- s = Fd(),
- c = k6(Xa);
- let d = Xa;
- bc &&
- e.scrollBehavior &&
- 'scrollRestoration' in history &&
- (history.scrollRestoration = 'manual');
- const f = Xm.bind(null, ce => '' + ce),
- v = Xm.bind(null, rre),
- p = Xm.bind(null, Kv);
- function m(ce, xe) {
- let ve, be;
- return (
- vT(ce) ? ((ve = t.getRecordMatcher(ce)), (be = xe)) : (be = ce),
- t.addRoute(be, ve)
- );
- }
- function g(ce) {
- const xe = t.getRecordMatcher(ce);
- xe && t.removeRoute(xe);
- }
- function w() {
- return t.getRoutes().map(ce => ce.record);
- }
- function x(ce) {
- return !!t.getRecordMatcher(ce);
- }
- function y(ce, xe) {
- if (((xe = Fn({}, xe || c.value)), typeof ce == 'string')) {
- const j = Zm(n, ce, xe.path),
- ee = t.resolve({ path: j.path }, xe),
- ne = o.createHref(j.fullPath);
- return Fn(j, ee, {
- params: p(ee.params),
- hash: Kv(j.hash),
- redirectedFrom: void 0,
- href: ne
- });
- }
- let ve;
- if ('path' in ce) ve = Fn({}, ce, { path: Zm(n, ce.path, xe.path).path });
- else {
- const j = Fn({}, ce.params);
- for (const ee in j) j[ee] == null && delete j[ee];
- (ve = Fn({}, ce, { params: v(ce.params) })), (xe.params = v(xe.params));
- }
- const be = t.resolve(ve, xe),
- Ce = ce.hash || '';
- be.params = f(p(be.params));
- const ge = gne(r, Fn({}, ce, { hash: ere(Ce), path: be.path })),
- Ae = o.createHref(ge);
- return Fn(
- {
- fullPath: ge,
- hash: Ce,
- query: r === z2 ? ire(ce.query) : ce.query || {}
- },
- be,
- { redirectedFrom: void 0, href: Ae }
- );
- }
- function C(ce) {
- return typeof ce == 'string' ? Zm(n, ce, c.value.path) : Fn({}, ce);
- }
- function R(ce, xe) {
- if (d !== ce) return Nc(8, { from: xe, to: ce });
- }
- function S(ce) {
- return T(ce);
- }
- function _(ce) {
- return S(Fn(C(ce), { replace: !0 }));
- }
- function P(ce) {
- const xe = ce.matched[ce.matched.length - 1];
- if (xe && xe.redirect) {
- const { redirect: ve } = xe;
- let be = typeof ve == 'function' ? ve(ce) : ve;
- return (
- typeof be == 'string' &&
- ((be =
- be.includes('?') || be.includes('#') ? (be = C(be)) : { path: be }),
- (be.params = {})),
- Fn(
- {
- query: ce.query,
- hash: ce.hash,
- params: 'path' in be ? {} : ce.params
- },
- be
- )
- );
- }
- }
- function T(ce, xe) {
- const ve = (d = y(ce)),
- be = c.value,
- Ce = ce.state,
- ge = ce.force,
- Ae = ce.replace === !0,
- j = P(ve);
- if (j)
- return T(
- Fn(C(j), {
- state: typeof j == 'object' ? Fn({}, Ce, j.state) : Ce,
- force: ge,
- replace: Ae
- }),
- xe || ve
- );
- const ee = ve;
- ee.redirectedFrom = xe;
- let ne;
- return (
- !ge &&
- mne(r, be, ve) &&
- ((ne = Nc(16, { to: ee, from: be })), G(be, be, !0, !1)),
- (ne ? Promise.resolve(ne) : z(ee, be))
- .catch(fe => (zi(fe) ? (zi(fe, 2) ? fe : te(fe)) : q(fe, ee, be)))
- .then(fe => {
- if (fe) {
- if (zi(fe, 2))
- return T(
- Fn({ replace: Ae }, C(fe.to), {
- state:
- typeof fe.to == 'object' ? Fn({}, Ce, fe.to.state) : Ce,
- force: ge
- }),
- xe || ee
- );
- } else fe = M(ee, be, !0, Ae, Ce);
- return k(ee, be, fe), fe;
- })
- );
- }
- function E(ce, xe) {
- const ve = R(ce, xe);
- return ve ? Promise.reject(ve) : Promise.resolve();
- }
- function z(ce, xe) {
- let ve;
- const [be, Ce, ge] = vre(ce, xe);
- ve = Qm(be.reverse(), 'beforeRouteLeave', ce, xe);
- for (const j of be)
- j.leaveGuards.forEach(ee => {
- ve.push(tl(ee, ce, xe));
- });
- const Ae = E.bind(null, ce, xe);
- return (
- ve.push(Ae),
- hc(ve)
- .then(() => {
- ve = [];
- for (const j of i.list()) ve.push(tl(j, ce, xe));
- return ve.push(Ae), hc(ve);
- })
- .then(() => {
- ve = Qm(Ce, 'beforeRouteUpdate', ce, xe);
- for (const j of Ce)
- j.updateGuards.forEach(ee => {
- ve.push(tl(ee, ce, xe));
- });
- return ve.push(Ae), hc(ve);
- })
- .then(() => {
- ve = [];
- for (const j of ce.matched)
- if (j.beforeEnter && !xe.matched.includes(j))
- if (mi(j.beforeEnter))
- for (const ee of j.beforeEnter) ve.push(tl(ee, ce, xe));
- else ve.push(tl(j.beforeEnter, ce, xe));
- return ve.push(Ae), hc(ve);
- })
- .then(
- () => (
- ce.matched.forEach(j => (j.enterCallbacks = {})),
- (ve = Qm(ge, 'beforeRouteEnter', ce, xe)),
- ve.push(Ae),
- hc(ve)
- )
- )
- .then(() => {
- ve = [];
- for (const j of a.list()) ve.push(tl(j, ce, xe));
- return ve.push(Ae), hc(ve);
- })
- .catch(j => (zi(j, 8) ? j : Promise.reject(j)))
- );
- }
- function k(ce, xe, ve) {
- for (const be of s.list()) be(ce, xe, ve);
- }
- function M(ce, xe, ve, be, Ce) {
- const ge = R(ce, xe);
- if (ge) return ge;
- const Ae = xe === Xa,
- j = bc ? history.state : {};
- ve &&
- (be || Ae
- ? o.replace(ce.fullPath, Fn({ scroll: Ae && j && j.scroll }, Ce))
- : o.push(ce.fullPath, Ce)),
- (c.value = ce),
- G(ce, xe, ve, Ae),
- te();
- }
- let A;
- function D() {
- A ||
- (A = o.listen((ce, xe, ve) => {
- if (!pe.listening) return;
- const be = y(ce),
- Ce = P(be);
- if (Ce) {
- T(Fn(Ce, { replace: !0 }), be).catch(ou);
- return;
- }
- d = be;
- const ge = c.value;
- bc && Rne(S2(ge.fullPath, ve.delta), jp()),
- z(be, ge)
- .catch(Ae =>
- zi(Ae, 12)
- ? Ae
- : zi(Ae, 2)
- ? (T(Ae.to, be)
- .then(j => {
- zi(j, 20) &&
- !ve.delta &&
- ve.type === Fu.pop &&
- o.go(-1, !1);
- })
- .catch(ou),
- Promise.reject())
- : (ve.delta && o.go(-ve.delta, !1), q(Ae, be, ge))
- )
- .then(Ae => {
- (Ae = Ae || M(be, ge, !1)),
- Ae &&
- (ve.delta && !zi(Ae, 8)
- ? o.go(-ve.delta, !1)
- : ve.type === Fu.pop && zi(Ae, 20) && o.go(-1, !1)),
- k(be, ge, Ae);
- })
- .catch(ou);
- }));
- }
- let L = Fd(),
- H = Fd(),
- B;
- function q(ce, xe, ve) {
- te(ce);
- const be = H.list();
- return (
- be.length ? be.forEach(Ce => Ce(ce, xe, ve)) : console.error(ce),
- Promise.reject(ce)
- );
- }
- function X() {
- return B && c.value !== Xa
- ? Promise.resolve()
- : new Promise((ce, xe) => {
- L.add([ce, xe]);
- });
- }
- function te(ce) {
- return (
- B ||
- ((B = !ce),
- D(),
- L.list().forEach(([xe, ve]) => (ce ? ve(ce) : xe())),
- L.reset()),
- ce
- );
- }
- function G(ce, xe, ve, be) {
- const { scrollBehavior: Ce } = e;
- if (!bc || !Ce) return Promise.resolve();
- const ge =
- (!ve && Pne(S2(ce.fullPath, 0))) ||
- ((be || !ve) && history.state && history.state.scroll) ||
- null;
- return mn()
- .then(() => Ce(ce, xe, ge))
- .then(Ae => Ae && _ne(Ae))
- .catch(Ae => q(Ae, ce, xe));
- }
- const Q = ce => o.go(ce);
- let re;
- const se = new Set(),
- pe = {
- currentRoute: c,
- listening: !0,
- addRoute: m,
- removeRoute: g,
- hasRoute: x,
- getRoutes: w,
- resolve: y,
- options: e,
- push: S,
- replace: _,
- go: Q,
- back: () => Q(-1),
- forward: () => Q(1),
- beforeEach: i.add,
- beforeResolve: a.add,
- afterEach: s.add,
- onError: H.add,
- isReady: X,
- install(ce) {
- const xe = this;
- ce.component('RouterLink', cre),
- ce.component('RouterView', ST),
- (ce.config.globalProperties.$router = xe),
- Object.defineProperty(ce.config.globalProperties, '$route', {
- enumerable: !0,
- get: () => ll(c)
- }),
- bc &&
- !re &&
- c.value === Xa &&
- ((re = !0), S(o.location).catch(Ce => {}));
- const ve = {};
- for (const Ce in Xa) ve[Ce] = I(() => c.value[Ce]);
- ce.provide(Wp, xe), ce.provide(e1, Qi(ve)), ce.provide(a0, c);
- const be = ce.unmount;
- se.add(ce),
- (ce.unmount = function () {
- se.delete(ce),
- se.size < 1 &&
- ((d = Xa),
- A && A(),
- (A = null),
- (c.value = Xa),
- (re = !1),
- (B = !1)),
- be();
- });
- }
- };
- return pe;
- }
- function hc(e) {
- return e.reduce((t, n) => t.then(() => n()), Promise.resolve());
- }
- function vre(e, t) {
- const n = [],
- r = [],
- o = [],
- i = Math.max(t.matched.length, e.matched.length);
- for (let a = 0; a < i; a++) {
- const s = t.matched[a];
- s && (e.matched.find(d => Lc(d, s)) ? r.push(s) : n.push(s));
- const c = e.matched[a];
- c && (t.matched.find(d => Lc(d, c)) || o.push(c));
- }
- return [n, r, o];
- }
- function lle() {
- return Ze(Wp);
- }
- function sle() {
- return Ze(e1);
- }
- const pre = [
- '#2d8cf0',
- '#0960bd',
- '#0084f4',
- '#009688',
- '#536dfe',
- '#ff5c93',
- '#ee4f12',
- '#0096c7',
- '#9c27b0',
- '#ff9800',
- '#FF3D68',
- '#00C1D4',
- '#71EFA3',
- '#171010',
- '#78DEC7',
- '#1768AC',
- '#FB9300',
- '#FC5404'
- ],
- xc = { darkTheme: !1, appTheme: '#198CFE', appThemeList: pre };
- var t1 = (e => (
- (e.BASE_LOGIN = '/login'),
- (e.BASE_LOGIN_NAME = 'Login'),
- (e.REDIRECT = '/redirect'),
- (e.BASE_HOME = '/home'),
- e
- ))(t1 || {}),
- l0 = {},
- gre = {
- get exports() {
- return l0;
- },
- set exports(e) {
- l0 = e;
- }
- };
- /**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */ (function (e, t) {
- (function () {
- var n,
- r = '4.17.21',
- o = 200,
- i = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
- a = 'Expected a function',
- s = 'Invalid `variable` option passed into `_.template`',
- c = '__lodash_hash_undefined__',
- d = 500,
- f = '__lodash_placeholder__',
- v = 1,
- p = 2,
- m = 4,
- g = 1,
- w = 2,
- x = 1,
- y = 2,
- C = 4,
- R = 8,
- S = 16,
- _ = 32,
- P = 64,
- T = 128,
- E = 256,
- z = 512,
- k = 30,
- M = '...',
- A = 800,
- D = 16,
- L = 1,
- H = 2,
- B = 3,
- q = 1 / 0,
- X = 9007199254740991,
- te = 17976931348623157e292,
- G = 0 / 0,
- Q = 4294967295,
- re = Q - 1,
- se = Q >>> 1,
- pe = [
- ['ary', T],
- ['bind', x],
- ['bindKey', y],
- ['curry', R],
- ['curryRight', S],
- ['flip', z],
- ['partial', _],
- ['partialRight', P],
- ['rearg', E]
- ],
- ce = '[object Arguments]',
- xe = '[object Array]',
- ve = '[object AsyncFunction]',
- be = '[object Boolean]',
- Ce = '[object Date]',
- ge = '[object DOMException]',
- Ae = '[object Error]',
- j = '[object Function]',
- ee = '[object GeneratorFunction]',
- ne = '[object Map]',
- fe = '[object Number]',
- ie = '[object Null]',
- W = '[object Object]',
- ae = '[object Promise]',
- he = '[object Proxy]',
- _e = '[object RegExp]',
- le = '[object Set]',
- Re = '[object String]',
- Ne = '[object Symbol]',
- Ge = '[object Undefined]',
- it = '[object WeakMap]',
- dt = '[object WeakSet]',
- xt = '[object ArrayBuffer]',
- De = '[object DataView]',
- ut = '[object Float32Array]',
- wt = '[object Float64Array]',
- Lt = '[object Int8Array]',
- ot = '[object Int16Array]',
- ct = '[object Int32Array]',
- Xe = '[object Uint8Array]',
- Qe = '[object Uint8ClampedArray]',
- oe = '[object Uint16Array]',
- ze = '[object Uint32Array]',
- We = /\b__p \+= '';/g,
- lt = /\b(__p \+=) '' \+/g,
- st = /(__e\(.*?\)|\b__t\)) \+\n'';/g,
- me = /&(?:amp|lt|gt|quot|#39);/g,
- He = /[&<>"']/g,
- tt = RegExp(me.source),
- pt = RegExp(He.source),
- Pe = /<%-([\s\S]+?)%>/g,
- Ve = /<%([\s\S]+?)%>/g,
- nt = /<%=([\s\S]+?)%>/g,
- Ot = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- $n = /^\w*$/,
- jn =
- /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
- Zt = /[\\^$.*+?()[\]{}|]/g,
- Se = RegExp(Zt.source),
- je = /^\s+/,
- Ct = /\s/,
- qt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
- we = /\{\n\/\* \[wrapped with (.+)\] \*/,
- Fe = /,? & /,
- rt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,
- ft = /[()=,{}\[\]\/\s]/,
- gt = /\\(\\)?/g,
- bn = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,
- ln = /\w*$/,
- $e = /^[-+]0x[0-9a-f]+$/i,
- Je = /^0b[01]+$/i,
- vt = /^\[object .+?Constructor\]$/,
- Wt = /^0o[0-7]+$/i,
- dn = /^(?:0|[1-9]\d*)$/,
- nn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,
- kr = /($^)/,
- Yt = /['\n\r\u2028\u2029\\]/g,
- On = '\\ud800-\\udfff',
- Co = '\\u0300-\\u036f',
- Lo = '\\ufe20-\\ufe2f',
- No = '\\u20d0-\\u20ff',
- So = Co + Lo + No,
- Xr = '\\u2700-\\u27bf',
- za = 'a-z\\xdf-\\xf6\\xf8-\\xff',
- Pl = '\\xac\\xb1\\xd7\\xf7',
- Zr = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
- kl = '\\u2000-\\u206f',
- Tl =
- ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
- Ea = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
- Aa = '\\ufe0e\\ufe0f',
- Ma = Pl + Zr + kl + Tl,
- $l = "['’]",
- Ia = '[' + On + ']',
- Is = '[' + Ma + ']',
- Da = '[' + So + ']',
- Ds = '\\d+',
- Fs = '[' + Xr + ']',
- Bs = '[' + za + ']',
- Ls = '[^' + On + Ma + Ds + Xr + za + Ea + ']',
- na = '\\ud83c[\\udffb-\\udfff]',
- sd = '(?:' + Da + '|' + na + ')',
- Ns = '[^' + On + ']',
- Ol = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- zl = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- Ci = '[' + Ea + ']',
- Hs = '\\u200d',
- js = '(?:' + Bs + '|' + Ls + ')',
- cd = '(?:' + Ci + '|' + Ls + ')',
- sf = '(?:' + $l + '(?:d|ll|m|re|s|t|ve))?',
- cf = '(?:' + $l + '(?:D|LL|M|RE|S|T|VE))?',
- dd = sd + '?',
- df = '[' + Aa + ']?',
- uf = '(?:' + Hs + '(?:' + [Ns, Ol, zl].join('|') + ')' + df + dd + ')*',
- Kp = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
- qp = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
- El = df + dd + uf,
- Yp = '(?:' + [Fs, Ol, zl].join('|') + ')' + El,
- Fa = '(?:' + [Ns + Da + '?', Da, Ol, zl, Ia].join('|') + ')',
- Si = RegExp($l, 'g'),
- Gp = RegExp(Da, 'g'),
- Ws = RegExp(na + '(?=' + na + ')|' + Fa + El, 'g'),
- Us = RegExp(
- [
- Ci + '?' + Bs + '+' + sf + '(?=' + [Is, Ci, '$'].join('|') + ')',
- cd + '+' + cf + '(?=' + [Is, Ci + js, '$'].join('|') + ')',
- Ci + '?' + js + '+' + sf,
- Ci + '+' + cf,
- qp,
- Kp,
- Ds,
- Yp
- ].join('|'),
- 'g'
- ),
- Xp = RegExp('[' + Hs + On + So + Aa + ']'),
- Zp = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,
- Qp = [
- 'Array',
- 'Buffer',
- 'DataView',
- 'Date',
- 'Error',
- 'Float32Array',
- 'Float64Array',
- 'Function',
- 'Int8Array',
- 'Int16Array',
- 'Int32Array',
- 'Map',
- 'Math',
- 'Object',
- 'Promise',
- 'RegExp',
- 'Set',
- 'String',
- 'Symbol',
- 'TypeError',
- 'Uint8Array',
- 'Uint8ClampedArray',
- 'Uint16Array',
- 'Uint32Array',
- 'WeakMap',
- '_',
- 'clearTimeout',
- 'isFinite',
- 'parseInt',
- 'setTimeout'
- ],
- ff = -1,
- Wn = {};
- (Wn[ut] =
- Wn[wt] =
- Wn[Lt] =
- Wn[ot] =
- Wn[ct] =
- Wn[Xe] =
- Wn[Qe] =
- Wn[oe] =
- Wn[ze] =
- !0),
- (Wn[ce] =
- Wn[xe] =
- Wn[xt] =
- Wn[be] =
- Wn[De] =
- Wn[Ce] =
- Wn[Ae] =
- Wn[j] =
- Wn[ne] =
- Wn[fe] =
- Wn[W] =
- Wn[_e] =
- Wn[le] =
- Wn[Re] =
- Wn[it] =
- !1);
- var Un = {};
- (Un[ce] =
- Un[xe] =
- Un[xt] =
- Un[De] =
- Un[be] =
- Un[Ce] =
- Un[ut] =
- Un[wt] =
- Un[Lt] =
- Un[ot] =
- Un[ct] =
- Un[ne] =
- Un[fe] =
- Un[W] =
- Un[_e] =
- Un[le] =
- Un[Re] =
- Un[Ne] =
- Un[Xe] =
- Un[Qe] =
- Un[oe] =
- Un[ze] =
- !0),
- (Un[Ae] = Un[j] = Un[it] = !1);
- var Vs = {
- À: 'A',
- Á: 'A',
- Â: 'A',
- Ã: 'A',
- Ä: 'A',
- Å: 'A',
- à: 'a',
- á: 'a',
- â: 'a',
- ã: 'a',
- ä: 'a',
- å: 'a',
- Ç: 'C',
- ç: 'c',
- Ð: 'D',
- ð: 'd',
- È: 'E',
- É: 'E',
- Ê: 'E',
- Ë: 'E',
- è: 'e',
- é: 'e',
- ê: 'e',
- ë: 'e',
- Ì: 'I',
- Í: 'I',
- Î: 'I',
- Ï: 'I',
- ì: 'i',
- í: 'i',
- î: 'i',
- ï: 'i',
- Ñ: 'N',
- ñ: 'n',
- Ò: 'O',
- Ó: 'O',
- Ô: 'O',
- Õ: 'O',
- Ö: 'O',
- Ø: 'O',
- ò: 'o',
- ó: 'o',
- ô: 'o',
- õ: 'o',
- ö: 'o',
- ø: 'o',
- Ù: 'U',
- Ú: 'U',
- Û: 'U',
- Ü: 'U',
- ù: 'u',
- ú: 'u',
- û: 'u',
- ü: 'u',
- Ý: 'Y',
- ý: 'y',
- ÿ: 'y',
- Æ: 'Ae',
- æ: 'ae',
- Þ: 'Th',
- þ: 'th',
- ß: 'ss',
- Ā: 'A',
- Ă: 'A',
- Ą: 'A',
- ā: 'a',
- ă: 'a',
- ą: 'a',
- Ć: 'C',
- Ĉ: 'C',
- Ċ: 'C',
- Č: 'C',
- ć: 'c',
- ĉ: 'c',
- ċ: 'c',
- č: 'c',
- Ď: 'D',
- Đ: 'D',
- ď: 'd',
- đ: 'd',
- Ē: 'E',
- Ĕ: 'E',
- Ė: 'E',
- Ę: 'E',
- Ě: 'E',
- ē: 'e',
- ĕ: 'e',
- ė: 'e',
- ę: 'e',
- ě: 'e',
- Ĝ: 'G',
- Ğ: 'G',
- Ġ: 'G',
- Ģ: 'G',
- ĝ: 'g',
- ğ: 'g',
- ġ: 'g',
- ģ: 'g',
- Ĥ: 'H',
- Ħ: 'H',
- ĥ: 'h',
- ħ: 'h',
- Ĩ: 'I',
- Ī: 'I',
- Ĭ: 'I',
- Į: 'I',
- İ: 'I',
- ĩ: 'i',
- ī: 'i',
- ĭ: 'i',
- į: 'i',
- ı: 'i',
- Ĵ: 'J',
- ĵ: 'j',
- Ķ: 'K',
- ķ: 'k',
- ĸ: 'k',
- Ĺ: 'L',
- Ļ: 'L',
- Ľ: 'L',
- Ŀ: 'L',
- Ł: 'L',
- ĺ: 'l',
- ļ: 'l',
- ľ: 'l',
- ŀ: 'l',
- ł: 'l',
- Ń: 'N',
- Ņ: 'N',
- Ň: 'N',
- Ŋ: 'N',
- ń: 'n',
- ņ: 'n',
- ň: 'n',
- ŋ: 'n',
- Ō: 'O',
- Ŏ: 'O',
- Ő: 'O',
- ō: 'o',
- ŏ: 'o',
- ő: 'o',
- Ŕ: 'R',
- Ŗ: 'R',
- Ř: 'R',
- ŕ: 'r',
- ŗ: 'r',
- ř: 'r',
- Ś: 'S',
- Ŝ: 'S',
- Ş: 'S',
- Š: 'S',
- ś: 's',
- ŝ: 's',
- ş: 's',
- š: 's',
- Ţ: 'T',
- Ť: 'T',
- Ŧ: 'T',
- ţ: 't',
- ť: 't',
- ŧ: 't',
- Ũ: 'U',
- Ū: 'U',
- Ŭ: 'U',
- Ů: 'U',
- Ű: 'U',
- Ų: 'U',
- ũ: 'u',
- ū: 'u',
- ŭ: 'u',
- ů: 'u',
- ű: 'u',
- ų: 'u',
- Ŵ: 'W',
- ŵ: 'w',
- Ŷ: 'Y',
- ŷ: 'y',
- Ÿ: 'Y',
- Ź: 'Z',
- Ż: 'Z',
- Ž: 'Z',
- ź: 'z',
- ż: 'z',
- ž: 'z',
- IJ: 'IJ',
- ij: 'ij',
- Œ: 'Oe',
- œ: 'oe',
- ʼn: "'n",
- ſ: 's'
- },
- ra = {
- '&': '&',
- '<': '<',
- '>': '>',
- '"': '"',
- "'": '''
- },
- ud = {
- '&': '&',
- '<': '<',
- '>': '>',
- '"': '"',
- ''': "'"
- },
- hf = {
- '\\': '\\',
- "'": "'",
- '\n': 'n',
- '\r': 'r',
- '\u2028': 'u2028',
- '\u2029': 'u2029'
- },
- vf = parseFloat,
- ti = parseInt,
- fd = typeof Nn == 'object' && Nn && Nn.Object === Object && Nn,
- Jp = typeof self == 'object' && self && self.Object === Object && self,
- dr = fd || Jp || Function('return this')(),
- Al = t && !t.nodeType && t,
- ao = Al && !0 && e && !e.nodeType && e,
- Ml = ao && ao.exports === Al,
- Il = Ml && fd.process,
- Qr = (function () {
- try {
- var Te = ao && ao.require && ao.require('util').types;
- return Te || (Il && Il.binding && Il.binding('util'));
- } catch {}
- })(),
- pf = Qr && Qr.isArrayBuffer,
- gf = Qr && Qr.isDate,
- mf = Qr && Qr.isMap,
- Dl = Qr && Qr.isRegExp,
- bf = Qr && Qr.isSet,
- yf = Qr && Qr.isTypedArray;
- function Jr(Te, Ue, Be) {
- switch (Be.length) {
- case 0:
- return Te.call(Ue);
- case 1:
- return Te.call(Ue, Be[0]);
- case 2:
- return Te.call(Ue, Be[0], Be[1]);
- case 3:
- return Te.call(Ue, Be[0], Be[1], Be[2]);
- }
- return Te.apply(Ue, Be);
- }
- function K(Te, Ue, Be, St) {
- for (var Qt = -1, zn = Te == null ? 0 : Te.length; ++Qt < zn; ) {
- var xr = Te[Qt];
- Ue(St, xr, Be(xr), Te);
- }
- return St;
- }
- function de(Te, Ue) {
- for (
- var Be = -1, St = Te == null ? 0 : Te.length;
- ++Be < St && Ue(Te[Be], Be, Te) !== !1;
- );
- return Te;
- }
- function Le(Te, Ue) {
- for (
- var Be = Te == null ? 0 : Te.length;
- Be-- && Ue(Te[Be], Be, Te) !== !1;
- );
- return Te;
- }
- function at(Te, Ue) {
- for (var Be = -1, St = Te == null ? 0 : Te.length; ++Be < St; )
- if (!Ue(Te[Be], Be, Te)) return !1;
- return !0;
- }
- function It(Te, Ue) {
- for (
- var Be = -1, St = Te == null ? 0 : Te.length, Qt = 0, zn = [];
- ++Be < St;
- ) {
- var xr = Te[Be];
- Ue(xr, Be, Te) && (zn[Qt++] = xr);
- }
- return zn;
- }
- function Pt(Te, Ue) {
- var Be = Te == null ? 0 : Te.length;
- return !!Be && uo(Te, Ue, 0) > -1;
- }
- function un(Te, Ue, Be) {
- for (var St = -1, Qt = Te == null ? 0 : Te.length; ++St < Qt; )
- if (Be(Ue, Te[St])) return !0;
- return !1;
- }
- function Dt(Te, Ue) {
- for (
- var Be = -1, St = Te == null ? 0 : Te.length, Qt = Array(St);
- ++Be < St;
- )
- Qt[Be] = Ue(Te[Be], Be, Te);
- return Qt;
- }
- function kn(Te, Ue) {
- for (var Be = -1, St = Ue.length, Qt = Te.length; ++Be < St; )
- Te[Qt + Be] = Ue[Be];
- return Te;
- }
- function or(Te, Ue, Be, St) {
- var Qt = -1,
- zn = Te == null ? 0 : Te.length;
- for (St && zn && (Be = Te[++Qt]); ++Qt < zn; )
- Be = Ue(Be, Te[Qt], Qt, Te);
- return Be;
- }
- function Ir(Te, Ue, Be, St) {
- var Qt = Te == null ? 0 : Te.length;
- for (St && Qt && (Be = Te[--Qt]); Qt--; ) Be = Ue(Be, Te[Qt], Qt, Te);
- return Be;
- }
- function Tr(Te, Ue) {
- for (var Be = -1, St = Te == null ? 0 : Te.length; ++Be < St; )
- if (Ue(Te[Be], Be, Te)) return !0;
- return !1;
- }
- var mr = eg('length');
- function lo(Te) {
- return Te.split('');
- }
- function so(Te) {
- return Te.match(rt) || [];
- }
- function ni(Te, Ue, Be) {
- var St;
- return (
- Be(Te, function (Qt, zn, xr) {
- if (Ue(Qt, zn, xr)) return (St = zn), !1;
- }),
- St
- );
- }
- function co(Te, Ue, Be, St) {
- for (var Qt = Te.length, zn = Be + (St ? 1 : -1); St ? zn-- : ++zn < Qt; )
- if (Ue(Te[zn], zn, Te)) return zn;
- return -1;
- }
- function uo(Te, Ue, Be) {
- return Ue === Ue ? b$(Te, Ue, Be) : co(Te, Fl, Be);
- }
- function xf(Te, Ue, Be, St) {
- for (var Qt = Be - 1, zn = Te.length; ++Qt < zn; )
- if (St(Te[Qt], Ue)) return Qt;
- return -1;
- }
- function Fl(Te) {
- return Te !== Te;
- }
- function Bl(Te, Ue) {
- var Be = Te == null ? 0 : Te.length;
- return Be ? ng(Te, Ue) / Be : G;
- }
- function eg(Te) {
- return function (Ue) {
- return Ue == null ? n : Ue[Te];
- };
- }
- function tg(Te) {
- return function (Ue) {
- return Te == null ? n : Te[Ue];
- };
- }
- function m1(Te, Ue, Be, St, Qt) {
- return (
- Qt(Te, function (zn, xr, Vn) {
- Be = St ? ((St = !1), zn) : Ue(Be, zn, xr, Vn);
- }),
- Be
- );
- }
- function s$(Te, Ue) {
- var Be = Te.length;
- for (Te.sort(Ue); Be--; ) Te[Be] = Te[Be].value;
- return Te;
- }
- function ng(Te, Ue) {
- for (var Be, St = -1, Qt = Te.length; ++St < Qt; ) {
- var zn = Ue(Te[St]);
- zn !== n && (Be = Be === n ? zn : Be + zn);
- }
- return Be;
- }
- function rg(Te, Ue) {
- for (var Be = -1, St = Array(Te); ++Be < Te; ) St[Be] = Ue(Be);
- return St;
- }
- function c$(Te, Ue) {
- return Dt(Ue, function (Be) {
- return [Be, Te[Be]];
- });
- }
- function b1(Te) {
- return Te && Te.slice(0, C1(Te) + 1).replace(je, '');
- }
- function _o(Te) {
- return function (Ue) {
- return Te(Ue);
- };
- }
- function og(Te, Ue) {
- return Dt(Ue, function (Be) {
- return Te[Be];
- });
- }
- function hd(Te, Ue) {
- return Te.has(Ue);
- }
- function y1(Te, Ue) {
- for (var Be = -1, St = Te.length; ++Be < St && uo(Ue, Te[Be], 0) > -1; );
- return Be;
- }
- function x1(Te, Ue) {
- for (var Be = Te.length; Be-- && uo(Ue, Te[Be], 0) > -1; );
- return Be;
- }
- function d$(Te, Ue) {
- for (var Be = Te.length, St = 0; Be--; ) Te[Be] === Ue && ++St;
- return St;
- }
- var u$ = tg(Vs),
- f$ = tg(ra);
- function h$(Te) {
- return '\\' + hf[Te];
- }
- function v$(Te, Ue) {
- return Te == null ? n : Te[Ue];
- }
- function Ks(Te) {
- return Xp.test(Te);
- }
- function p$(Te) {
- return Zp.test(Te);
- }
- function g$(Te) {
- for (var Ue, Be = []; !(Ue = Te.next()).done; ) Be.push(Ue.value);
- return Be;
- }
- function ig(Te) {
- var Ue = -1,
- Be = Array(Te.size);
- return (
- Te.forEach(function (St, Qt) {
- Be[++Ue] = [Qt, St];
- }),
- Be
- );
- }
- function w1(Te, Ue) {
- return function (Be) {
- return Te(Ue(Be));
- };
- }
- function Ba(Te, Ue) {
- for (var Be = -1, St = Te.length, Qt = 0, zn = []; ++Be < St; ) {
- var xr = Te[Be];
- (xr === Ue || xr === f) && ((Te[Be] = f), (zn[Qt++] = Be));
- }
- return zn;
- }
- function wf(Te) {
- var Ue = -1,
- Be = Array(Te.size);
- return (
- Te.forEach(function (St) {
- Be[++Ue] = St;
- }),
- Be
- );
- }
- function m$(Te) {
- var Ue = -1,
- Be = Array(Te.size);
- return (
- Te.forEach(function (St) {
- Be[++Ue] = [St, St];
- }),
- Be
- );
- }
- function b$(Te, Ue, Be) {
- for (var St = Be - 1, Qt = Te.length; ++St < Qt; )
- if (Te[St] === Ue) return St;
- return -1;
- }
- function y$(Te, Ue, Be) {
- for (var St = Be + 1; St--; ) if (Te[St] === Ue) return St;
- return St;
- }
- function qs(Te) {
- return Ks(Te) ? w$(Te) : mr(Te);
- }
- function ri(Te) {
- return Ks(Te) ? C$(Te) : lo(Te);
- }
- function C1(Te) {
- for (var Ue = Te.length; Ue-- && Ct.test(Te.charAt(Ue)); );
- return Ue;
- }
- var x$ = tg(ud);
- function w$(Te) {
- for (var Ue = (Ws.lastIndex = 0); Ws.test(Te); ) ++Ue;
- return Ue;
- }
- function C$(Te) {
- return Te.match(Ws) || [];
- }
- function S$(Te) {
- return Te.match(Us) || [];
- }
- var _$ = function Te(Ue) {
- Ue = Ue == null ? dr : Ys.defaults(dr.Object(), Ue, Ys.pick(dr, Qp));
- var Be = Ue.Array,
- St = Ue.Date,
- Qt = Ue.Error,
- zn = Ue.Function,
- xr = Ue.Math,
- Vn = Ue.Object,
- ag = Ue.RegExp,
- R$ = Ue.String,
- Ho = Ue.TypeError,
- Cf = Be.prototype,
- P$ = zn.prototype,
- Gs = Vn.prototype,
- Sf = Ue['__core-js_shared__'],
- _f = P$.toString,
- In = Gs.hasOwnProperty,
- k$ = 0,
- S1 = (function () {
- var l = /[^.]+$/.exec((Sf && Sf.keys && Sf.keys.IE_PROTO) || '');
- return l ? 'Symbol(src)_1.' + l : '';
- })(),
- Rf = Gs.toString,
- T$ = _f.call(Vn),
- $$ = dr._,
- O$ = ag(
- '^' +
- _f
- .call(In)
- .replace(Zt, '\\$&')
- .replace(
- /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
- '$1.*?'
- ) +
- '$'
- ),
- Pf = Ml ? Ue.Buffer : n,
- La = Ue.Symbol,
- kf = Ue.Uint8Array,
- _1 = Pf ? Pf.allocUnsafe : n,
- Tf = w1(Vn.getPrototypeOf, Vn),
- R1 = Vn.create,
- P1 = Gs.propertyIsEnumerable,
- $f = Cf.splice,
- k1 = La ? La.isConcatSpreadable : n,
- vd = La ? La.iterator : n,
- Ll = La ? La.toStringTag : n,
- Of = (function () {
- try {
- var l = Ul(Vn, 'defineProperty');
- return l({}, '', {}), l;
- } catch {}
- })(),
- z$ = Ue.clearTimeout !== dr.clearTimeout && Ue.clearTimeout,
- E$ = St && St.now !== dr.Date.now && St.now,
- A$ = Ue.setTimeout !== dr.setTimeout && Ue.setTimeout,
- zf = xr.ceil,
- Ef = xr.floor,
- lg = Vn.getOwnPropertySymbols,
- M$ = Pf ? Pf.isBuffer : n,
- T1 = Ue.isFinite,
- I$ = Cf.join,
- D$ = w1(Vn.keys, Vn),
- wr = xr.max,
- Nr = xr.min,
- F$ = St.now,
- B$ = Ue.parseInt,
- $1 = xr.random,
- L$ = Cf.reverse,
- sg = Ul(Ue, 'DataView'),
- pd = Ul(Ue, 'Map'),
- cg = Ul(Ue, 'Promise'),
- Xs = Ul(Ue, 'Set'),
- gd = Ul(Ue, 'WeakMap'),
- md = Ul(Vn, 'create'),
- Af = gd && new gd(),
- Zs = {},
- N$ = Vl(sg),
- H$ = Vl(pd),
- j$ = Vl(cg),
- W$ = Vl(Xs),
- U$ = Vl(gd),
- Mf = La ? La.prototype : n,
- bd = Mf ? Mf.valueOf : n,
- O1 = Mf ? Mf.toString : n;
- function Y(l) {
- if (ir(l) && !Jt(l) && !(l instanceof fn)) {
- if (l instanceof jo) return l;
- if (In.call(l, '__wrapped__')) return zx(l);
- }
- return new jo(l);
- }
- var Qs = (function () {
- function l() {}
- return function (u) {
- if (!Jn(u)) return {};
- if (R1) return R1(u);
- l.prototype = u;
- var b = new l();
- return (l.prototype = n), b;
- };
- })();
- function If() {}
- function jo(l, u) {
- (this.__wrapped__ = l),
- (this.__actions__ = []),
- (this.__chain__ = !!u),
- (this.__index__ = 0),
- (this.__values__ = n);
- }
- (Y.templateSettings = {
- escape: Pe,
- evaluate: Ve,
- interpolate: nt,
- variable: '',
- imports: { _: Y }
- }),
- (Y.prototype = If.prototype),
- (Y.prototype.constructor = Y),
- (jo.prototype = Qs(If.prototype)),
- (jo.prototype.constructor = jo);
- function fn(l) {
- (this.__wrapped__ = l),
- (this.__actions__ = []),
- (this.__dir__ = 1),
- (this.__filtered__ = !1),
- (this.__iteratees__ = []),
- (this.__takeCount__ = Q),
- (this.__views__ = []);
- }
- function V$() {
- var l = new fn(this.__wrapped__);
- return (
- (l.__actions__ = fo(this.__actions__)),
- (l.__dir__ = this.__dir__),
- (l.__filtered__ = this.__filtered__),
- (l.__iteratees__ = fo(this.__iteratees__)),
- (l.__takeCount__ = this.__takeCount__),
- (l.__views__ = fo(this.__views__)),
- l
- );
- }
- function K$() {
- if (this.__filtered__) {
- var l = new fn(this);
- (l.__dir__ = -1), (l.__filtered__ = !0);
- } else (l = this.clone()), (l.__dir__ *= -1);
- return l;
- }
- function q$() {
- var l = this.__wrapped__.value(),
- u = this.__dir__,
- b = Jt(l),
- $ = u < 0,
- N = b ? l.length : 0,
- J = iO(0, N, this.__views__),
- ue = J.start,
- ye = J.end,
- Oe = ye - ue,
- qe = $ ? ye : ue - 1,
- Ye = this.__iteratees__,
- et = Ye.length,
- mt = 0,
- Tt = Nr(Oe, this.__takeCount__);
- if (!b || (!$ && N == Oe && Tt == Oe)) return ex(l, this.__actions__);
- var Ut = [];
- e: for (; Oe-- && mt < Tt; ) {
- qe += u;
- for (var rn = -1, Vt = l[qe]; ++rn < et; ) {
- var sn = Ye[rn],
- yn = sn.iteratee,
- ko = sn.type,
- no = yn(Vt);
- if (ko == H) Vt = no;
- else if (!no) {
- if (ko == L) continue e;
- break e;
- }
- }
- Ut[mt++] = Vt;
- }
- return Ut;
- }
- (fn.prototype = Qs(If.prototype)), (fn.prototype.constructor = fn);
- function Nl(l) {
- var u = -1,
- b = l == null ? 0 : l.length;
- for (this.clear(); ++u < b; ) {
- var $ = l[u];
- this.set($[0], $[1]);
- }
- }
- function Y$() {
- (this.__data__ = md ? md(null) : {}), (this.size = 0);
- }
- function G$(l) {
- var u = this.has(l) && delete this.__data__[l];
- return (this.size -= u ? 1 : 0), u;
- }
- function X$(l) {
- var u = this.__data__;
- if (md) {
- var b = u[l];
- return b === c ? n : b;
- }
- return In.call(u, l) ? u[l] : n;
- }
- function Z$(l) {
- var u = this.__data__;
- return md ? u[l] !== n : In.call(u, l);
- }
- function Q$(l, u) {
- var b = this.__data__;
- return (
- (this.size += this.has(l) ? 0 : 1),
- (b[l] = md && u === n ? c : u),
- this
- );
- }
- (Nl.prototype.clear = Y$),
- (Nl.prototype.delete = G$),
- (Nl.prototype.get = X$),
- (Nl.prototype.has = Z$),
- (Nl.prototype.set = Q$);
- function oa(l) {
- var u = -1,
- b = l == null ? 0 : l.length;
- for (this.clear(); ++u < b; ) {
- var $ = l[u];
- this.set($[0], $[1]);
- }
- }
- function J$() {
- (this.__data__ = []), (this.size = 0);
- }
- function e5(l) {
- var u = this.__data__,
- b = Df(u, l);
- if (b < 0) return !1;
- var $ = u.length - 1;
- return b == $ ? u.pop() : $f.call(u, b, 1), --this.size, !0;
- }
- function t5(l) {
- var u = this.__data__,
- b = Df(u, l);
- return b < 0 ? n : u[b][1];
- }
- function n5(l) {
- return Df(this.__data__, l) > -1;
- }
- function r5(l, u) {
- var b = this.__data__,
- $ = Df(b, l);
- return $ < 0 ? (++this.size, b.push([l, u])) : (b[$][1] = u), this;
- }
- (oa.prototype.clear = J$),
- (oa.prototype.delete = e5),
- (oa.prototype.get = t5),
- (oa.prototype.has = n5),
- (oa.prototype.set = r5);
- function ia(l) {
- var u = -1,
- b = l == null ? 0 : l.length;
- for (this.clear(); ++u < b; ) {
- var $ = l[u];
- this.set($[0], $[1]);
- }
- }
- function o5() {
- (this.size = 0),
- (this.__data__ = {
- hash: new Nl(),
- map: new (pd || oa)(),
- string: new Nl()
- });
- }
- function i5(l) {
- var u = Yf(this, l).delete(l);
- return (this.size -= u ? 1 : 0), u;
- }
- function a5(l) {
- return Yf(this, l).get(l);
- }
- function l5(l) {
- return Yf(this, l).has(l);
- }
- function s5(l, u) {
- var b = Yf(this, l),
- $ = b.size;
- return b.set(l, u), (this.size += b.size == $ ? 0 : 1), this;
- }
- (ia.prototype.clear = o5),
- (ia.prototype.delete = i5),
- (ia.prototype.get = a5),
- (ia.prototype.has = l5),
- (ia.prototype.set = s5);
- function Hl(l) {
- var u = -1,
- b = l == null ? 0 : l.length;
- for (this.__data__ = new ia(); ++u < b; ) this.add(l[u]);
- }
- function c5(l) {
- return this.__data__.set(l, c), this;
- }
- function d5(l) {
- return this.__data__.has(l);
- }
- (Hl.prototype.add = Hl.prototype.push = c5), (Hl.prototype.has = d5);
- function oi(l) {
- var u = (this.__data__ = new oa(l));
- this.size = u.size;
- }
- function u5() {
- (this.__data__ = new oa()), (this.size = 0);
- }
- function f5(l) {
- var u = this.__data__,
- b = u.delete(l);
- return (this.size = u.size), b;
- }
- function h5(l) {
- return this.__data__.get(l);
- }
- function v5(l) {
- return this.__data__.has(l);
- }
- function p5(l, u) {
- var b = this.__data__;
- if (b instanceof oa) {
- var $ = b.__data__;
- if (!pd || $.length < o - 1)
- return $.push([l, u]), (this.size = ++b.size), this;
- b = this.__data__ = new ia($);
- }
- return b.set(l, u), (this.size = b.size), this;
- }
- (oi.prototype.clear = u5),
- (oi.prototype.delete = f5),
- (oi.prototype.get = h5),
- (oi.prototype.has = v5),
- (oi.prototype.set = p5);
- function z1(l, u) {
- var b = Jt(l),
- $ = !b && Kl(l),
- N = !b && !$ && Ua(l),
- J = !b && !$ && !N && nc(l),
- ue = b || $ || N || J,
- ye = ue ? rg(l.length, R$) : [],
- Oe = ye.length;
- for (var qe in l)
- (u || In.call(l, qe)) &&
- !(
- ue &&
- (qe == 'length' ||
- (N && (qe == 'offset' || qe == 'parent')) ||
- (J &&
- (qe == 'buffer' ||
- qe == 'byteLength' ||
- qe == 'byteOffset')) ||
- ca(qe, Oe))
- ) &&
- ye.push(qe);
- return ye;
- }
- function E1(l) {
- var u = l.length;
- return u ? l[xg(0, u - 1)] : n;
- }
- function g5(l, u) {
- return Gf(fo(l), jl(u, 0, l.length));
- }
- function m5(l) {
- return Gf(fo(l));
- }
- function dg(l, u, b) {
- ((b !== n && !ii(l[u], b)) || (b === n && !(u in l))) && aa(l, u, b);
- }
- function yd(l, u, b) {
- var $ = l[u];
- (!(In.call(l, u) && ii($, b)) || (b === n && !(u in l))) &&
- aa(l, u, b);
- }
- function Df(l, u) {
- for (var b = l.length; b--; ) if (ii(l[b][0], u)) return b;
- return -1;
- }
- function b5(l, u, b, $) {
- return (
- Na(l, function (N, J, ue) {
- u($, N, b(N), ue);
- }),
- $
- );
- }
- function A1(l, u) {
- return l && Ri(u, $r(u), l);
- }
- function y5(l, u) {
- return l && Ri(u, vo(u), l);
- }
- function aa(l, u, b) {
- u == '__proto__' && Of
- ? Of(l, u, {
- configurable: !0,
- enumerable: !0,
- value: b,
- writable: !0
- })
- : (l[u] = b);
- }
- function ug(l, u) {
- for (var b = -1, $ = u.length, N = Be($), J = l == null; ++b < $; )
- N[b] = J ? n : Vg(l, u[b]);
- return N;
- }
- function jl(l, u, b) {
- return (
- l === l &&
- (b !== n && (l = l <= b ? l : b),
- u !== n && (l = l >= u ? l : u)),
- l
- );
- }
- function Wo(l, u, b, $, N, J) {
- var ue,
- ye = u & v,
- Oe = u & p,
- qe = u & m;
- if ((b && (ue = N ? b(l, $, N, J) : b(l)), ue !== n)) return ue;
- if (!Jn(l)) return l;
- var Ye = Jt(l);
- if (Ye) {
- if (((ue = lO(l)), !ye)) return fo(l, ue);
- } else {
- var et = Hr(l),
- mt = et == j || et == ee;
- if (Ua(l)) return rx(l, ye);
- if (et == W || et == ce || (mt && !N)) {
- if (((ue = Oe || mt ? {} : Cx(l)), !ye))
- return Oe ? X5(l, y5(ue, l)) : G5(l, A1(ue, l));
- } else {
- if (!Un[et]) return N ? l : {};
- ue = sO(l, et, ye);
- }
- }
- J || (J = new oi());
- var Tt = J.get(l);
- if (Tt) return Tt;
- J.set(l, ue),
- Zx(l)
- ? l.forEach(function (Vt) {
- ue.add(Wo(Vt, u, b, Vt, l, J));
- })
- : Gx(l) &&
- l.forEach(function (Vt, sn) {
- ue.set(sn, Wo(Vt, u, b, sn, l, J));
- });
- var Ut = qe ? (Oe ? zg : Og) : Oe ? vo : $r,
- rn = Ye ? n : Ut(l);
- return (
- de(rn || l, function (Vt, sn) {
- rn && ((sn = Vt), (Vt = l[sn])),
- yd(ue, sn, Wo(Vt, u, b, sn, l, J));
- }),
- ue
- );
- }
- function x5(l) {
- var u = $r(l);
- return function (b) {
- return M1(b, l, u);
- };
- }
- function M1(l, u, b) {
- var $ = b.length;
- if (l == null) return !$;
- for (l = Vn(l); $--; ) {
- var N = b[$],
- J = u[N],
- ue = l[N];
- if ((ue === n && !(N in l)) || !J(ue)) return !1;
- }
- return !0;
- }
- function I1(l, u, b) {
- if (typeof l != 'function') throw new Ho(a);
- return Pd(function () {
- l.apply(n, b);
- }, u);
- }
- function xd(l, u, b, $) {
- var N = -1,
- J = Pt,
- ue = !0,
- ye = l.length,
- Oe = [],
- qe = u.length;
- if (!ye) return Oe;
- b && (u = Dt(u, _o(b))),
- $
- ? ((J = un), (ue = !1))
- : u.length >= o && ((J = hd), (ue = !1), (u = new Hl(u)));
- e: for (; ++N < ye; ) {
- var Ye = l[N],
- et = b == null ? Ye : b(Ye);
- if (((Ye = $ || Ye !== 0 ? Ye : 0), ue && et === et)) {
- for (var mt = qe; mt--; ) if (u[mt] === et) continue e;
- Oe.push(Ye);
- } else J(u, et, $) || Oe.push(Ye);
- }
- return Oe;
- }
- var Na = sx(_i),
- D1 = sx(hg, !0);
- function w5(l, u) {
- var b = !0;
- return (
- Na(l, function ($, N, J) {
- return (b = !!u($, N, J)), b;
- }),
- b
- );
- }
- function Ff(l, u, b) {
- for (var $ = -1, N = l.length; ++$ < N; ) {
- var J = l[$],
- ue = u(J);
- if (ue != null && (ye === n ? ue === ue && !Po(ue) : b(ue, ye)))
- var ye = ue,
- Oe = J;
- }
- return Oe;
- }
- function C5(l, u, b, $) {
- var N = l.length;
- for (
- b = en(b),
- b < 0 && (b = -b > N ? 0 : N + b),
- $ = $ === n || $ > N ? N : en($),
- $ < 0 && ($ += N),
- $ = b > $ ? 0 : Jx($);
- b < $;
- )
- l[b++] = u;
- return l;
- }
- function F1(l, u) {
- var b = [];
- return (
- Na(l, function ($, N, J) {
- u($, N, J) && b.push($);
- }),
- b
- );
- }
- function Dr(l, u, b, $, N) {
- var J = -1,
- ue = l.length;
- for (b || (b = dO), N || (N = []); ++J < ue; ) {
- var ye = l[J];
- u > 0 && b(ye)
- ? u > 1
- ? Dr(ye, u - 1, b, $, N)
- : kn(N, ye)
- : $ || (N[N.length] = ye);
- }
- return N;
- }
- var fg = cx(),
- B1 = cx(!0);
- function _i(l, u) {
- return l && fg(l, u, $r);
- }
- function hg(l, u) {
- return l && B1(l, u, $r);
- }
- function Bf(l, u) {
- return It(u, function (b) {
- return da(l[b]);
- });
- }
- function Wl(l, u) {
- u = ja(u, l);
- for (var b = 0, $ = u.length; l != null && b < $; ) l = l[Pi(u[b++])];
- return b && b == $ ? l : n;
- }
- function L1(l, u, b) {
- var $ = u(l);
- return Jt(l) ? $ : kn($, b(l));
- }
- function eo(l) {
- return l == null
- ? l === n
- ? Ge
- : ie
- : Ll && Ll in Vn(l)
- ? oO(l)
- : mO(l);
- }
- function vg(l, u) {
- return l > u;
- }
- function S5(l, u) {
- return l != null && In.call(l, u);
- }
- function _5(l, u) {
- return l != null && u in Vn(l);
- }
- function R5(l, u, b) {
- return l >= Nr(u, b) && l < wr(u, b);
- }
- function pg(l, u, b) {
- for (
- var $ = b ? un : Pt,
- N = l[0].length,
- J = l.length,
- ue = J,
- ye = Be(J),
- Oe = 1 / 0,
- qe = [];
- ue--;
- ) {
- var Ye = l[ue];
- ue && u && (Ye = Dt(Ye, _o(u))),
- (Oe = Nr(Ye.length, Oe)),
- (ye[ue] =
- !b && (u || (N >= 120 && Ye.length >= 120))
- ? new Hl(ue && Ye)
- : n);
- }
- Ye = l[0];
- var et = -1,
- mt = ye[0];
- e: for (; ++et < N && qe.length < Oe; ) {
- var Tt = Ye[et],
- Ut = u ? u(Tt) : Tt;
- if (
- ((Tt = b || Tt !== 0 ? Tt : 0), !(mt ? hd(mt, Ut) : $(qe, Ut, b)))
- ) {
- for (ue = J; --ue; ) {
- var rn = ye[ue];
- if (!(rn ? hd(rn, Ut) : $(l[ue], Ut, b))) continue e;
- }
- mt && mt.push(Ut), qe.push(Tt);
- }
- }
- return qe;
- }
- function P5(l, u, b, $) {
- return (
- _i(l, function (N, J, ue) {
- u($, b(N), J, ue);
- }),
- $
- );
- }
- function wd(l, u, b) {
- (u = ja(u, l)), (l = Px(l, u));
- var $ = l == null ? l : l[Pi(Vo(u))];
- return $ == null ? n : Jr($, l, b);
- }
- function N1(l) {
- return ir(l) && eo(l) == ce;
- }
- function k5(l) {
- return ir(l) && eo(l) == xt;
- }
- function T5(l) {
- return ir(l) && eo(l) == Ce;
- }
- function Cd(l, u, b, $, N) {
- return l === u
- ? !0
- : l == null || u == null || (!ir(l) && !ir(u))
- ? l !== l && u !== u
- : $5(l, u, b, $, Cd, N);
- }
- function $5(l, u, b, $, N, J) {
- var ue = Jt(l),
- ye = Jt(u),
- Oe = ue ? xe : Hr(l),
- qe = ye ? xe : Hr(u);
- (Oe = Oe == ce ? W : Oe), (qe = qe == ce ? W : qe);
- var Ye = Oe == W,
- et = qe == W,
- mt = Oe == qe;
- if (mt && Ua(l)) {
- if (!Ua(u)) return !1;
- (ue = !0), (Ye = !1);
- }
- if (mt && !Ye)
- return (
- J || (J = new oi()),
- ue || nc(l) ? yx(l, u, b, $, N, J) : nO(l, u, Oe, b, $, N, J)
- );
- if (!(b & g)) {
- var Tt = Ye && In.call(l, '__wrapped__'),
- Ut = et && In.call(u, '__wrapped__');
- if (Tt || Ut) {
- var rn = Tt ? l.value() : l,
- Vt = Ut ? u.value() : u;
- return J || (J = new oi()), N(rn, Vt, b, $, J);
- }
- }
- return mt ? (J || (J = new oi()), rO(l, u, b, $, N, J)) : !1;
- }
- function O5(l) {
- return ir(l) && Hr(l) == ne;
- }
- function gg(l, u, b, $) {
- var N = b.length,
- J = N,
- ue = !$;
- if (l == null) return !J;
- for (l = Vn(l); N--; ) {
- var ye = b[N];
- if (ue && ye[2] ? ye[1] !== l[ye[0]] : !(ye[0] in l)) return !1;
- }
- for (; ++N < J; ) {
- ye = b[N];
- var Oe = ye[0],
- qe = l[Oe],
- Ye = ye[1];
- if (ue && ye[2]) {
- if (qe === n && !(Oe in l)) return !1;
- } else {
- var et = new oi();
- if ($) var mt = $(qe, Ye, Oe, l, u, et);
- if (!(mt === n ? Cd(Ye, qe, g | w, $, et) : mt)) return !1;
- }
- }
- return !0;
- }
- function H1(l) {
- if (!Jn(l) || fO(l)) return !1;
- var u = da(l) ? O$ : vt;
- return u.test(Vl(l));
- }
- function z5(l) {
- return ir(l) && eo(l) == _e;
- }
- function E5(l) {
- return ir(l) && Hr(l) == le;
- }
- function A5(l) {
- return ir(l) && th(l.length) && !!Wn[eo(l)];
- }
- function j1(l) {
- return typeof l == 'function'
- ? l
- : l == null
- ? po
- : typeof l == 'object'
- ? Jt(l)
- ? V1(l[0], l[1])
- : U1(l)
- : dw(l);
- }
- function mg(l) {
- if (!Rd(l)) return D$(l);
- var u = [];
- for (var b in Vn(l)) In.call(l, b) && b != 'constructor' && u.push(b);
- return u;
- }
- function M5(l) {
- if (!Jn(l)) return gO(l);
- var u = Rd(l),
- b = [];
- for (var $ in l)
- ($ == 'constructor' && (u || !In.call(l, $))) || b.push($);
- return b;
- }
- function bg(l, u) {
- return l < u;
- }
- function W1(l, u) {
- var b = -1,
- $ = ho(l) ? Be(l.length) : [];
- return (
- Na(l, function (N, J, ue) {
- $[++b] = u(N, J, ue);
- }),
- $
- );
- }
- function U1(l) {
- var u = Ag(l);
- return u.length == 1 && u[0][2]
- ? _x(u[0][0], u[0][1])
- : function (b) {
- return b === l || gg(b, l, u);
- };
- }
- function V1(l, u) {
- return Ig(l) && Sx(u)
- ? _x(Pi(l), u)
- : function (b) {
- var $ = Vg(b, l);
- return $ === n && $ === u ? Kg(b, l) : Cd(u, $, g | w);
- };
- }
- function Lf(l, u, b, $, N) {
- l !== u &&
- fg(
- u,
- function (J, ue) {
- if ((N || (N = new oi()), Jn(J))) I5(l, u, ue, b, Lf, $, N);
- else {
- var ye = $ ? $(Fg(l, ue), J, ue + '', l, u, N) : n;
- ye === n && (ye = J), dg(l, ue, ye);
- }
- },
- vo
- );
- }
- function I5(l, u, b, $, N, J, ue) {
- var ye = Fg(l, b),
- Oe = Fg(u, b),
- qe = ue.get(Oe);
- if (qe) {
- dg(l, b, qe);
- return;
- }
- var Ye = J ? J(ye, Oe, b + '', l, u, ue) : n,
- et = Ye === n;
- if (et) {
- var mt = Jt(Oe),
- Tt = !mt && Ua(Oe),
- Ut = !mt && !Tt && nc(Oe);
- (Ye = Oe),
- mt || Tt || Ut
- ? Jt(ye)
- ? (Ye = ye)
- : ur(ye)
- ? (Ye = fo(ye))
- : Tt
- ? ((et = !1), (Ye = rx(Oe, !0)))
- : Ut
- ? ((et = !1), (Ye = ox(Oe, !0)))
- : (Ye = [])
- : kd(Oe) || Kl(Oe)
- ? ((Ye = ye),
- Kl(ye) ? (Ye = ew(ye)) : (!Jn(ye) || da(ye)) && (Ye = Cx(Oe)))
- : (et = !1);
- }
- et && (ue.set(Oe, Ye), N(Ye, Oe, $, J, ue), ue.delete(Oe)),
- dg(l, b, Ye);
- }
- function K1(l, u) {
- var b = l.length;
- if (b) return (u += u < 0 ? b : 0), ca(u, b) ? l[u] : n;
- }
- function q1(l, u, b) {
- u.length
- ? (u = Dt(u, function (J) {
- return Jt(J)
- ? function (ue) {
- return Wl(ue, J.length === 1 ? J[0] : J);
- }
- : J;
- }))
- : (u = [po]);
- var $ = -1;
- u = Dt(u, _o(Ht()));
- var N = W1(l, function (J, ue, ye) {
- var Oe = Dt(u, function (qe) {
- return qe(J);
- });
- return { criteria: Oe, index: ++$, value: J };
- });
- return s$(N, function (J, ue) {
- return Y5(J, ue, b);
- });
- }
- function D5(l, u) {
- return Y1(l, u, function (b, $) {
- return Kg(l, $);
- });
- }
- function Y1(l, u, b) {
- for (var $ = -1, N = u.length, J = {}; ++$ < N; ) {
- var ue = u[$],
- ye = Wl(l, ue);
- b(ye, ue) && Sd(J, ja(ue, l), ye);
- }
- return J;
- }
- function F5(l) {
- return function (u) {
- return Wl(u, l);
- };
- }
- function yg(l, u, b, $) {
- var N = $ ? xf : uo,
- J = -1,
- ue = u.length,
- ye = l;
- for (l === u && (u = fo(u)), b && (ye = Dt(l, _o(b))); ++J < ue; )
- for (
- var Oe = 0, qe = u[J], Ye = b ? b(qe) : qe;
- (Oe = N(ye, Ye, Oe, $)) > -1;
- )
- ye !== l && $f.call(ye, Oe, 1), $f.call(l, Oe, 1);
- return l;
- }
- function G1(l, u) {
- for (var b = l ? u.length : 0, $ = b - 1; b--; ) {
- var N = u[b];
- if (b == $ || N !== J) {
- var J = N;
- ca(N) ? $f.call(l, N, 1) : Sg(l, N);
- }
- }
- return l;
- }
- function xg(l, u) {
- return l + Ef($1() * (u - l + 1));
- }
- function B5(l, u, b, $) {
- for (var N = -1, J = wr(zf((u - l) / (b || 1)), 0), ue = Be(J); J--; )
- (ue[$ ? J : ++N] = l), (l += b);
- return ue;
- }
- function wg(l, u) {
- var b = '';
- if (!l || u < 1 || u > X) return b;
- do u % 2 && (b += l), (u = Ef(u / 2)), u && (l += l);
- while (u);
- return b;
- }
- function an(l, u) {
- return Bg(Rx(l, u, po), l + '');
- }
- function L5(l) {
- return E1(rc(l));
- }
- function N5(l, u) {
- var b = rc(l);
- return Gf(b, jl(u, 0, b.length));
- }
- function Sd(l, u, b, $) {
- if (!Jn(l)) return l;
- u = ja(u, l);
- for (
- var N = -1, J = u.length, ue = J - 1, ye = l;
- ye != null && ++N < J;
- ) {
- var Oe = Pi(u[N]),
- qe = b;
- if (
- Oe === '__proto__' ||
- Oe === 'constructor' ||
- Oe === 'prototype'
- )
- return l;
- if (N != ue) {
- var Ye = ye[Oe];
- (qe = $ ? $(Ye, Oe, ye) : n),
- qe === n && (qe = Jn(Ye) ? Ye : ca(u[N + 1]) ? [] : {});
- }
- yd(ye, Oe, qe), (ye = ye[Oe]);
- }
- return l;
- }
- var X1 = Af
- ? function (l, u) {
- return Af.set(l, u), l;
- }
- : po,
- H5 = Of
- ? function (l, u) {
- return Of(l, 'toString', {
- configurable: !0,
- enumerable: !1,
- value: Yg(u),
- writable: !0
- });
- }
- : po;
- function j5(l) {
- return Gf(rc(l));
- }
- function Uo(l, u, b) {
- var $ = -1,
- N = l.length;
- u < 0 && (u = -u > N ? 0 : N + u),
- (b = b > N ? N : b),
- b < 0 && (b += N),
- (N = u > b ? 0 : (b - u) >>> 0),
- (u >>>= 0);
- for (var J = Be(N); ++$ < N; ) J[$] = l[$ + u];
- return J;
- }
- function W5(l, u) {
- var b;
- return (
- Na(l, function ($, N, J) {
- return (b = u($, N, J)), !b;
- }),
- !!b
- );
- }
- function Nf(l, u, b) {
- var $ = 0,
- N = l == null ? $ : l.length;
- if (typeof u == 'number' && u === u && N <= se) {
- for (; $ < N; ) {
- var J = ($ + N) >>> 1,
- ue = l[J];
- ue !== null && !Po(ue) && (b ? ue <= u : ue < u)
- ? ($ = J + 1)
- : (N = J);
- }
- return N;
- }
- return Cg(l, u, po, b);
- }
- function Cg(l, u, b, $) {
- var N = 0,
- J = l == null ? 0 : l.length;
- if (J === 0) return 0;
- u = b(u);
- for (
- var ue = u !== u, ye = u === null, Oe = Po(u), qe = u === n;
- N < J;
- ) {
- var Ye = Ef((N + J) / 2),
- et = b(l[Ye]),
- mt = et !== n,
- Tt = et === null,
- Ut = et === et,
- rn = Po(et);
- if (ue) var Vt = $ || Ut;
- else
- qe
- ? (Vt = Ut && ($ || mt))
- : ye
- ? (Vt = Ut && mt && ($ || !Tt))
- : Oe
- ? (Vt = Ut && mt && !Tt && ($ || !rn))
- : Tt || rn
- ? (Vt = !1)
- : (Vt = $ ? et <= u : et < u);
- Vt ? (N = Ye + 1) : (J = Ye);
- }
- return Nr(J, re);
- }
- function Z1(l, u) {
- for (var b = -1, $ = l.length, N = 0, J = []; ++b < $; ) {
- var ue = l[b],
- ye = u ? u(ue) : ue;
- if (!b || !ii(ye, Oe)) {
- var Oe = ye;
- J[N++] = ue === 0 ? 0 : ue;
- }
- }
- return J;
- }
- function Q1(l) {
- return typeof l == 'number' ? l : Po(l) ? G : +l;
- }
- function Ro(l) {
- if (typeof l == 'string') return l;
- if (Jt(l)) return Dt(l, Ro) + '';
- if (Po(l)) return O1 ? O1.call(l) : '';
- var u = l + '';
- return u == '0' && 1 / l == -q ? '-0' : u;
- }
- function Ha(l, u, b) {
- var $ = -1,
- N = Pt,
- J = l.length,
- ue = !0,
- ye = [],
- Oe = ye;
- if (b) (ue = !1), (N = un);
- else if (J >= o) {
- var qe = u ? null : eO(l);
- if (qe) return wf(qe);
- (ue = !1), (N = hd), (Oe = new Hl());
- } else Oe = u ? [] : ye;
- e: for (; ++$ < J; ) {
- var Ye = l[$],
- et = u ? u(Ye) : Ye;
- if (((Ye = b || Ye !== 0 ? Ye : 0), ue && et === et)) {
- for (var mt = Oe.length; mt--; ) if (Oe[mt] === et) continue e;
- u && Oe.push(et), ye.push(Ye);
- } else N(Oe, et, b) || (Oe !== ye && Oe.push(et), ye.push(Ye));
- }
- return ye;
- }
- function Sg(l, u) {
- return (
- (u = ja(u, l)), (l = Px(l, u)), l == null || delete l[Pi(Vo(u))]
- );
- }
- function J1(l, u, b, $) {
- return Sd(l, u, b(Wl(l, u)), $);
- }
- function Hf(l, u, b, $) {
- for (
- var N = l.length, J = $ ? N : -1;
- ($ ? J-- : ++J < N) && u(l[J], J, l);
- );
- return b
- ? Uo(l, $ ? 0 : J, $ ? J + 1 : N)
- : Uo(l, $ ? J + 1 : 0, $ ? N : J);
- }
- function ex(l, u) {
- var b = l;
- return (
- b instanceof fn && (b = b.value()),
- or(
- u,
- function ($, N) {
- return N.func.apply(N.thisArg, kn([$], N.args));
- },
- b
- )
- );
- }
- function _g(l, u, b) {
- var $ = l.length;
- if ($ < 2) return $ ? Ha(l[0]) : [];
- for (var N = -1, J = Be($); ++N < $; )
- for (var ue = l[N], ye = -1; ++ye < $; )
- ye != N && (J[N] = xd(J[N] || ue, l[ye], u, b));
- return Ha(Dr(J, 1), u, b);
- }
- function tx(l, u, b) {
- for (var $ = -1, N = l.length, J = u.length, ue = {}; ++$ < N; ) {
- var ye = $ < J ? u[$] : n;
- b(ue, l[$], ye);
- }
- return ue;
- }
- function Rg(l) {
- return ur(l) ? l : [];
- }
- function Pg(l) {
- return typeof l == 'function' ? l : po;
- }
- function ja(l, u) {
- return Jt(l) ? l : Ig(l, u) ? [l] : Ox(Mn(l));
- }
- var U5 = an;
- function Wa(l, u, b) {
- var $ = l.length;
- return (b = b === n ? $ : b), !u && b >= $ ? l : Uo(l, u, b);
- }
- var nx =
- z$ ||
- function (l) {
- return dr.clearTimeout(l);
- };
- function rx(l, u) {
- if (u) return l.slice();
- var b = l.length,
- $ = _1 ? _1(b) : new l.constructor(b);
- return l.copy($), $;
- }
- function kg(l) {
- var u = new l.constructor(l.byteLength);
- return new kf(u).set(new kf(l)), u;
- }
- function V5(l, u) {
- var b = u ? kg(l.buffer) : l.buffer;
- return new l.constructor(b, l.byteOffset, l.byteLength);
- }
- function K5(l) {
- var u = new l.constructor(l.source, ln.exec(l));
- return (u.lastIndex = l.lastIndex), u;
- }
- function q5(l) {
- return bd ? Vn(bd.call(l)) : {};
- }
- function ox(l, u) {
- var b = u ? kg(l.buffer) : l.buffer;
- return new l.constructor(b, l.byteOffset, l.length);
- }
- function ix(l, u) {
- if (l !== u) {
- var b = l !== n,
- $ = l === null,
- N = l === l,
- J = Po(l),
- ue = u !== n,
- ye = u === null,
- Oe = u === u,
- qe = Po(u);
- if (
- (!ye && !qe && !J && l > u) ||
- (J && ue && Oe && !ye && !qe) ||
- ($ && ue && Oe) ||
- (!b && Oe) ||
- !N
- )
- return 1;
- if (
- (!$ && !J && !qe && l < u) ||
- (qe && b && N && !$ && !J) ||
- (ye && b && N) ||
- (!ue && N) ||
- !Oe
- )
- return -1;
- }
- return 0;
- }
- function Y5(l, u, b) {
- for (
- var $ = -1,
- N = l.criteria,
- J = u.criteria,
- ue = N.length,
- ye = b.length;
- ++$ < ue;
- ) {
- var Oe = ix(N[$], J[$]);
- if (Oe) {
- if ($ >= ye) return Oe;
- var qe = b[$];
- return Oe * (qe == 'desc' ? -1 : 1);
- }
- }
- return l.index - u.index;
- }
- function ax(l, u, b, $) {
- for (
- var N = -1,
- J = l.length,
- ue = b.length,
- ye = -1,
- Oe = u.length,
- qe = wr(J - ue, 0),
- Ye = Be(Oe + qe),
- et = !$;
- ++ye < Oe;
- )
- Ye[ye] = u[ye];
- for (; ++N < ue; ) (et || N < J) && (Ye[b[N]] = l[N]);
- for (; qe--; ) Ye[ye++] = l[N++];
- return Ye;
- }
- function lx(l, u, b, $) {
- for (
- var N = -1,
- J = l.length,
- ue = -1,
- ye = b.length,
- Oe = -1,
- qe = u.length,
- Ye = wr(J - ye, 0),
- et = Be(Ye + qe),
- mt = !$;
- ++N < Ye;
- )
- et[N] = l[N];
- for (var Tt = N; ++Oe < qe; ) et[Tt + Oe] = u[Oe];
- for (; ++ue < ye; ) (mt || N < J) && (et[Tt + b[ue]] = l[N++]);
- return et;
- }
- function fo(l, u) {
- var b = -1,
- $ = l.length;
- for (u || (u = Be($)); ++b < $; ) u[b] = l[b];
- return u;
- }
- function Ri(l, u, b, $) {
- var N = !b;
- b || (b = {});
- for (var J = -1, ue = u.length; ++J < ue; ) {
- var ye = u[J],
- Oe = $ ? $(b[ye], l[ye], ye, b, l) : n;
- Oe === n && (Oe = l[ye]), N ? aa(b, ye, Oe) : yd(b, ye, Oe);
- }
- return b;
- }
- function G5(l, u) {
- return Ri(l, Mg(l), u);
- }
- function X5(l, u) {
- return Ri(l, xx(l), u);
- }
- function jf(l, u) {
- return function (b, $) {
- var N = Jt(b) ? K : b5,
- J = u ? u() : {};
- return N(b, l, Ht($, 2), J);
- };
- }
- function Js(l) {
- return an(function (u, b) {
- var $ = -1,
- N = b.length,
- J = N > 1 ? b[N - 1] : n,
- ue = N > 2 ? b[2] : n;
- for (
- J = l.length > 3 && typeof J == 'function' ? (N--, J) : n,
- ue && to(b[0], b[1], ue) && ((J = N < 3 ? n : J), (N = 1)),
- u = Vn(u);
- ++$ < N;
- ) {
- var ye = b[$];
- ye && l(u, ye, $, J);
- }
- return u;
- });
- }
- function sx(l, u) {
- return function (b, $) {
- if (b == null) return b;
- if (!ho(b)) return l(b, $);
- for (
- var N = b.length, J = u ? N : -1, ue = Vn(b);
- (u ? J-- : ++J < N) && $(ue[J], J, ue) !== !1;
- );
- return b;
- };
- }
- function cx(l) {
- return function (u, b, $) {
- for (var N = -1, J = Vn(u), ue = $(u), ye = ue.length; ye--; ) {
- var Oe = ue[l ? ye : ++N];
- if (b(J[Oe], Oe, J) === !1) break;
- }
- return u;
- };
- }
- function Z5(l, u, b) {
- var $ = u & x,
- N = _d(l);
- function J() {
- var ue = this && this !== dr && this instanceof J ? N : l;
- return ue.apply($ ? b : this, arguments);
- }
- return J;
- }
- function dx(l) {
- return function (u) {
- u = Mn(u);
- var b = Ks(u) ? ri(u) : n,
- $ = b ? b[0] : u.charAt(0),
- N = b ? Wa(b, 1).join('') : u.slice(1);
- return $[l]() + N;
- };
- }
- function ec(l) {
- return function (u) {
- return or(sw(lw(u).replace(Si, '')), l, '');
- };
- }
- function _d(l) {
- return function () {
- var u = arguments;
- switch (u.length) {
- case 0:
- return new l();
- case 1:
- return new l(u[0]);
- case 2:
- return new l(u[0], u[1]);
- case 3:
- return new l(u[0], u[1], u[2]);
- case 4:
- return new l(u[0], u[1], u[2], u[3]);
- case 5:
- return new l(u[0], u[1], u[2], u[3], u[4]);
- case 6:
- return new l(u[0], u[1], u[2], u[3], u[4], u[5]);
- case 7:
- return new l(u[0], u[1], u[2], u[3], u[4], u[5], u[6]);
- }
- var b = Qs(l.prototype),
- $ = l.apply(b, u);
- return Jn($) ? $ : b;
- };
- }
- function Q5(l, u, b) {
- var $ = _d(l);
- function N() {
- for (
- var J = arguments.length, ue = Be(J), ye = J, Oe = tc(N);
- ye--;
- )
- ue[ye] = arguments[ye];
- var qe =
- J < 3 && ue[0] !== Oe && ue[J - 1] !== Oe ? [] : Ba(ue, Oe);
- if (((J -= qe.length), J < b))
- return px(l, u, Wf, N.placeholder, n, ue, qe, n, n, b - J);
- var Ye = this && this !== dr && this instanceof N ? $ : l;
- return Jr(Ye, this, ue);
- }
- return N;
- }
- function ux(l) {
- return function (u, b, $) {
- var N = Vn(u);
- if (!ho(u)) {
- var J = Ht(b, 3);
- (u = $r(u)),
- (b = function (ye) {
- return J(N[ye], ye, N);
- });
- }
- var ue = l(u, b, $);
- return ue > -1 ? N[J ? u[ue] : ue] : n;
- };
- }
- function fx(l) {
- return sa(function (u) {
- var b = u.length,
- $ = b,
- N = jo.prototype.thru;
- for (l && u.reverse(); $--; ) {
- var J = u[$];
- if (typeof J != 'function') throw new Ho(a);
- if (N && !ue && qf(J) == 'wrapper') var ue = new jo([], !0);
- }
- for ($ = ue ? $ : b; ++$ < b; ) {
- J = u[$];
- var ye = qf(J),
- Oe = ye == 'wrapper' ? Eg(J) : n;
- Oe &&
- Dg(Oe[0]) &&
- Oe[1] == (T | R | _ | E) &&
- !Oe[4].length &&
- Oe[9] == 1
- ? (ue = ue[qf(Oe[0])].apply(ue, Oe[3]))
- : (ue = J.length == 1 && Dg(J) ? ue[ye]() : ue.thru(J));
- }
- return function () {
- var qe = arguments,
- Ye = qe[0];
- if (ue && qe.length == 1 && Jt(Ye)) return ue.plant(Ye).value();
- for (var et = 0, mt = b ? u[et].apply(this, qe) : Ye; ++et < b; )
- mt = u[et].call(this, mt);
- return mt;
- };
- });
- }
- function Wf(l, u, b, $, N, J, ue, ye, Oe, qe) {
- var Ye = u & T,
- et = u & x,
- mt = u & y,
- Tt = u & (R | S),
- Ut = u & z,
- rn = mt ? n : _d(l);
- function Vt() {
- for (var sn = arguments.length, yn = Be(sn), ko = sn; ko--; )
- yn[ko] = arguments[ko];
- if (Tt)
- var no = tc(Vt),
- To = d$(yn, no);
- if (
- ($ && (yn = ax(yn, $, N, Tt)),
- J && (yn = lx(yn, J, ue, Tt)),
- (sn -= To),
- Tt && sn < qe)
- ) {
- var fr = Ba(yn, no);
- return px(l, u, Wf, Vt.placeholder, b, yn, fr, ye, Oe, qe - sn);
- }
- var ai = et ? b : this,
- fa = mt ? ai[l] : l;
- return (
- (sn = yn.length),
- ye ? (yn = bO(yn, ye)) : Ut && sn > 1 && yn.reverse(),
- Ye && Oe < sn && (yn.length = Oe),
- this && this !== dr && this instanceof Vt && (fa = rn || _d(fa)),
- fa.apply(ai, yn)
- );
- }
- return Vt;
- }
- function hx(l, u) {
- return function (b, $) {
- return P5(b, l, u($), {});
- };
- }
- function Uf(l, u) {
- return function (b, $) {
- var N;
- if (b === n && $ === n) return u;
- if ((b !== n && (N = b), $ !== n)) {
- if (N === n) return $;
- typeof b == 'string' || typeof $ == 'string'
- ? ((b = Ro(b)), ($ = Ro($)))
- : ((b = Q1(b)), ($ = Q1($))),
- (N = l(b, $));
- }
- return N;
- };
- }
- function Tg(l) {
- return sa(function (u) {
- return (
- (u = Dt(u, _o(Ht()))),
- an(function (b) {
- var $ = this;
- return l(u, function (N) {
- return Jr(N, $, b);
- });
- })
- );
- });
- }
- function Vf(l, u) {
- u = u === n ? ' ' : Ro(u);
- var b = u.length;
- if (b < 2) return b ? wg(u, l) : u;
- var $ = wg(u, zf(l / qs(u)));
- return Ks(u) ? Wa(ri($), 0, l).join('') : $.slice(0, l);
- }
- function J5(l, u, b, $) {
- var N = u & x,
- J = _d(l);
- function ue() {
- for (
- var ye = -1,
- Oe = arguments.length,
- qe = -1,
- Ye = $.length,
- et = Be(Ye + Oe),
- mt = this && this !== dr && this instanceof ue ? J : l;
- ++qe < Ye;
- )
- et[qe] = $[qe];
- for (; Oe--; ) et[qe++] = arguments[++ye];
- return Jr(mt, N ? b : this, et);
- }
- return ue;
- }
- function vx(l) {
- return function (u, b, $) {
- return (
- $ && typeof $ != 'number' && to(u, b, $) && (b = $ = n),
- (u = ua(u)),
- b === n ? ((b = u), (u = 0)) : (b = ua(b)),
- ($ = $ === n ? (u < b ? 1 : -1) : ua($)),
- B5(u, b, $, l)
- );
- };
- }
- function Kf(l) {
- return function (u, b) {
- return (
- (typeof u == 'string' && typeof b == 'string') ||
- ((u = Ko(u)), (b = Ko(b))),
- l(u, b)
- );
- };
- }
- function px(l, u, b, $, N, J, ue, ye, Oe, qe) {
- var Ye = u & R,
- et = Ye ? ue : n,
- mt = Ye ? n : ue,
- Tt = Ye ? J : n,
- Ut = Ye ? n : J;
- (u |= Ye ? _ : P), (u &= ~(Ye ? P : _)), u & C || (u &= ~(x | y));
- var rn = [l, u, N, Tt, et, Ut, mt, ye, Oe, qe],
- Vt = b.apply(n, rn);
- return Dg(l) && kx(Vt, rn), (Vt.placeholder = $), Tx(Vt, l, u);
- }
- function $g(l) {
- var u = xr[l];
- return function (b, $) {
- if (
- ((b = Ko(b)), ($ = $ == null ? 0 : Nr(en($), 292)), $ && T1(b))
- ) {
- var N = (Mn(b) + 'e').split('e'),
- J = u(N[0] + 'e' + (+N[1] + $));
- return (
- (N = (Mn(J) + 'e').split('e')), +(N[0] + 'e' + (+N[1] - $))
- );
- }
- return u(b);
- };
- }
- var eO =
- Xs && 1 / wf(new Xs([, -0]))[1] == q
- ? function (l) {
- return new Xs(l);
- }
- : Zg;
- function gx(l) {
- return function (u) {
- var b = Hr(u);
- return b == ne ? ig(u) : b == le ? m$(u) : c$(u, l(u));
- };
- }
- function la(l, u, b, $, N, J, ue, ye) {
- var Oe = u & y;
- if (!Oe && typeof l != 'function') throw new Ho(a);
- var qe = $ ? $.length : 0;
- if (
- (qe || ((u &= ~(_ | P)), ($ = N = n)),
- (ue = ue === n ? ue : wr(en(ue), 0)),
- (ye = ye === n ? ye : en(ye)),
- (qe -= N ? N.length : 0),
- u & P)
- ) {
- var Ye = $,
- et = N;
- $ = N = n;
- }
- var mt = Oe ? n : Eg(l),
- Tt = [l, u, b, $, N, Ye, et, J, ue, ye];
- if (
- (mt && pO(Tt, mt),
- (l = Tt[0]),
- (u = Tt[1]),
- (b = Tt[2]),
- ($ = Tt[3]),
- (N = Tt[4]),
- (ye = Tt[9] =
- Tt[9] === n ? (Oe ? 0 : l.length) : wr(Tt[9] - qe, 0)),
- !ye && u & (R | S) && (u &= ~(R | S)),
- !u || u == x)
- )
- var Ut = Z5(l, u, b);
- else
- u == R || u == S
- ? (Ut = Q5(l, u, ye))
- : (u == _ || u == (x | _)) && !N.length
- ? (Ut = J5(l, u, b, $))
- : (Ut = Wf.apply(n, Tt));
- var rn = mt ? X1 : kx;
- return Tx(rn(Ut, Tt), l, u);
- }
- function mx(l, u, b, $) {
- return l === n || (ii(l, Gs[b]) && !In.call($, b)) ? u : l;
- }
- function bx(l, u, b, $, N, J) {
- return (
- Jn(l) && Jn(u) && (J.set(u, l), Lf(l, u, n, bx, J), J.delete(u)), l
- );
- }
- function tO(l) {
- return kd(l) ? n : l;
- }
- function yx(l, u, b, $, N, J) {
- var ue = b & g,
- ye = l.length,
- Oe = u.length;
- if (ye != Oe && !(ue && Oe > ye)) return !1;
- var qe = J.get(l),
- Ye = J.get(u);
- if (qe && Ye) return qe == u && Ye == l;
- var et = -1,
- mt = !0,
- Tt = b & w ? new Hl() : n;
- for (J.set(l, u), J.set(u, l); ++et < ye; ) {
- var Ut = l[et],
- rn = u[et];
- if ($)
- var Vt = ue ? $(rn, Ut, et, u, l, J) : $(Ut, rn, et, l, u, J);
- if (Vt !== n) {
- if (Vt) continue;
- mt = !1;
- break;
- }
- if (Tt) {
- if (
- !Tr(u, function (sn, yn) {
- if (!hd(Tt, yn) && (Ut === sn || N(Ut, sn, b, $, J)))
- return Tt.push(yn);
- })
- ) {
- mt = !1;
- break;
- }
- } else if (!(Ut === rn || N(Ut, rn, b, $, J))) {
- mt = !1;
- break;
- }
- }
- return J.delete(l), J.delete(u), mt;
- }
- function nO(l, u, b, $, N, J, ue) {
- switch (b) {
- case De:
- if (l.byteLength != u.byteLength || l.byteOffset != u.byteOffset)
- return !1;
- (l = l.buffer), (u = u.buffer);
- case xt:
- return !(
- l.byteLength != u.byteLength || !J(new kf(l), new kf(u))
- );
- case be:
- case Ce:
- case fe:
- return ii(+l, +u);
- case Ae:
- return l.name == u.name && l.message == u.message;
- case _e:
- case Re:
- return l == u + '';
- case ne:
- var ye = ig;
- case le:
- var Oe = $ & g;
- if ((ye || (ye = wf), l.size != u.size && !Oe)) return !1;
- var qe = ue.get(l);
- if (qe) return qe == u;
- ($ |= w), ue.set(l, u);
- var Ye = yx(ye(l), ye(u), $, N, J, ue);
- return ue.delete(l), Ye;
- case Ne:
- if (bd) return bd.call(l) == bd.call(u);
- }
- return !1;
- }
- function rO(l, u, b, $, N, J) {
- var ue = b & g,
- ye = Og(l),
- Oe = ye.length,
- qe = Og(u),
- Ye = qe.length;
- if (Oe != Ye && !ue) return !1;
- for (var et = Oe; et--; ) {
- var mt = ye[et];
- if (!(ue ? mt in u : In.call(u, mt))) return !1;
- }
- var Tt = J.get(l),
- Ut = J.get(u);
- if (Tt && Ut) return Tt == u && Ut == l;
- var rn = !0;
- J.set(l, u), J.set(u, l);
- for (var Vt = ue; ++et < Oe; ) {
- mt = ye[et];
- var sn = l[mt],
- yn = u[mt];
- if ($)
- var ko = ue ? $(yn, sn, mt, u, l, J) : $(sn, yn, mt, l, u, J);
- if (!(ko === n ? sn === yn || N(sn, yn, b, $, J) : ko)) {
- rn = !1;
- break;
- }
- Vt || (Vt = mt == 'constructor');
- }
- if (rn && !Vt) {
- var no = l.constructor,
- To = u.constructor;
- no != To &&
- 'constructor' in l &&
- 'constructor' in u &&
- !(
- typeof no == 'function' &&
- no instanceof no &&
- typeof To == 'function' &&
- To instanceof To
- ) &&
- (rn = !1);
- }
- return J.delete(l), J.delete(u), rn;
- }
- function sa(l) {
- return Bg(Rx(l, n, Mx), l + '');
- }
- function Og(l) {
- return L1(l, $r, Mg);
- }
- function zg(l) {
- return L1(l, vo, xx);
- }
- var Eg = Af
- ? function (l) {
- return Af.get(l);
- }
- : Zg;
- function qf(l) {
- for (
- var u = l.name + '', b = Zs[u], $ = In.call(Zs, u) ? b.length : 0;
- $--;
- ) {
- var N = b[$],
- J = N.func;
- if (J == null || J == l) return N.name;
- }
- return u;
- }
- function tc(l) {
- var u = In.call(Y, 'placeholder') ? Y : l;
- return u.placeholder;
- }
- function Ht() {
- var l = Y.iteratee || Gg;
- return (
- (l = l === Gg ? j1 : l),
- arguments.length ? l(arguments[0], arguments[1]) : l
- );
- }
- function Yf(l, u) {
- var b = l.__data__;
- return uO(u) ? b[typeof u == 'string' ? 'string' : 'hash'] : b.map;
- }
- function Ag(l) {
- for (var u = $r(l), b = u.length; b--; ) {
- var $ = u[b],
- N = l[$];
- u[b] = [$, N, Sx(N)];
- }
- return u;
- }
- function Ul(l, u) {
- var b = v$(l, u);
- return H1(b) ? b : n;
- }
- function oO(l) {
- var u = In.call(l, Ll),
- b = l[Ll];
- try {
- l[Ll] = n;
- var $ = !0;
- } catch {}
- var N = Rf.call(l);
- return $ && (u ? (l[Ll] = b) : delete l[Ll]), N;
- }
- var Mg = lg
- ? function (l) {
- return l == null
- ? []
- : ((l = Vn(l)),
- It(lg(l), function (u) {
- return P1.call(l, u);
- }));
- }
- : Qg,
- xx = lg
- ? function (l) {
- for (var u = []; l; ) kn(u, Mg(l)), (l = Tf(l));
- return u;
- }
- : Qg,
- Hr = eo;
- ((sg && Hr(new sg(new ArrayBuffer(1))) != De) ||
- (pd && Hr(new pd()) != ne) ||
- (cg && Hr(cg.resolve()) != ae) ||
- (Xs && Hr(new Xs()) != le) ||
- (gd && Hr(new gd()) != it)) &&
- (Hr = function (l) {
- var u = eo(l),
- b = u == W ? l.constructor : n,
- $ = b ? Vl(b) : '';
- if ($)
- switch ($) {
- case N$:
- return De;
- case H$:
- return ne;
- case j$:
- return ae;
- case W$:
- return le;
- case U$:
- return it;
- }
- return u;
- });
- function iO(l, u, b) {
- for (var $ = -1, N = b.length; ++$ < N; ) {
- var J = b[$],
- ue = J.size;
- switch (J.type) {
- case 'drop':
- l += ue;
- break;
- case 'dropRight':
- u -= ue;
- break;
- case 'take':
- u = Nr(u, l + ue);
- break;
- case 'takeRight':
- l = wr(l, u - ue);
- break;
- }
- }
- return { start: l, end: u };
- }
- function aO(l) {
- var u = l.match(we);
- return u ? u[1].split(Fe) : [];
- }
- function wx(l, u, b) {
- u = ja(u, l);
- for (var $ = -1, N = u.length, J = !1; ++$ < N; ) {
- var ue = Pi(u[$]);
- if (!(J = l != null && b(l, ue))) break;
- l = l[ue];
- }
- return J || ++$ != N
- ? J
- : ((N = l == null ? 0 : l.length),
- !!N && th(N) && ca(ue, N) && (Jt(l) || Kl(l)));
- }
- function lO(l) {
- var u = l.length,
- b = new l.constructor(u);
- return (
- u &&
- typeof l[0] == 'string' &&
- In.call(l, 'index') &&
- ((b.index = l.index), (b.input = l.input)),
- b
- );
- }
- function Cx(l) {
- return typeof l.constructor == 'function' && !Rd(l) ? Qs(Tf(l)) : {};
- }
- function sO(l, u, b) {
- var $ = l.constructor;
- switch (u) {
- case xt:
- return kg(l);
- case be:
- case Ce:
- return new $(+l);
- case De:
- return V5(l, b);
- case ut:
- case wt:
- case Lt:
- case ot:
- case ct:
- case Xe:
- case Qe:
- case oe:
- case ze:
- return ox(l, b);
- case ne:
- return new $();
- case fe:
- case Re:
- return new $(l);
- case _e:
- return K5(l);
- case le:
- return new $();
- case Ne:
- return q5(l);
- }
- }
- function cO(l, u) {
- var b = u.length;
- if (!b) return l;
- var $ = b - 1;
- return (
- (u[$] = (b > 1 ? '& ' : '') + u[$]),
- (u = u.join(b > 2 ? ', ' : ' ')),
- l.replace(
- qt,
- `{
- /* [wrapped with ` +
- u +
- `] */
- `
- )
- );
- }
- function dO(l) {
- return Jt(l) || Kl(l) || !!(k1 && l && l[k1]);
- }
- function ca(l, u) {
- var b = typeof l;
- return (
- (u = u ?? X),
- !!u &&
- (b == 'number' || (b != 'symbol' && dn.test(l))) &&
- l > -1 &&
- l % 1 == 0 &&
- l < u
- );
- }
- function to(l, u, b) {
- if (!Jn(b)) return !1;
- var $ = typeof u;
- return (
- $ == 'number' ? ho(b) && ca(u, b.length) : $ == 'string' && u in b
- )
- ? ii(b[u], l)
- : !1;
- }
- function Ig(l, u) {
- if (Jt(l)) return !1;
- var b = typeof l;
- return b == 'number' ||
- b == 'symbol' ||
- b == 'boolean' ||
- l == null ||
- Po(l)
- ? !0
- : $n.test(l) || !Ot.test(l) || (u != null && l in Vn(u));
- }
- function uO(l) {
- var u = typeof l;
- return u == 'string' ||
- u == 'number' ||
- u == 'symbol' ||
- u == 'boolean'
- ? l !== '__proto__'
- : l === null;
- }
- function Dg(l) {
- var u = qf(l),
- b = Y[u];
- if (typeof b != 'function' || !(u in fn.prototype)) return !1;
- if (l === b) return !0;
- var $ = Eg(b);
- return !!$ && l === $[0];
- }
- function fO(l) {
- return !!S1 && S1 in l;
- }
- var hO = Sf ? da : Jg;
- function Rd(l) {
- var u = l && l.constructor,
- b = (typeof u == 'function' && u.prototype) || Gs;
- return l === b;
- }
- function Sx(l) {
- return l === l && !Jn(l);
- }
- function _x(l, u) {
- return function (b) {
- return b == null ? !1 : b[l] === u && (u !== n || l in Vn(b));
- };
- }
- function vO(l) {
- var u = Jf(l, function ($) {
- return b.size === d && b.clear(), $;
- }),
- b = u.cache;
- return u;
- }
- function pO(l, u) {
- var b = l[1],
- $ = u[1],
- N = b | $,
- J = N < (x | y | T),
- ue =
- ($ == T && b == R) ||
- ($ == T && b == E && l[7].length <= u[8]) ||
- ($ == (T | E) && u[7].length <= u[8] && b == R);
- if (!(J || ue)) return l;
- $ & x && ((l[2] = u[2]), (N |= b & x ? 0 : C));
- var ye = u[3];
- if (ye) {
- var Oe = l[3];
- (l[3] = Oe ? ax(Oe, ye, u[4]) : ye),
- (l[4] = Oe ? Ba(l[3], f) : u[4]);
- }
- return (
- (ye = u[5]),
- ye &&
- ((Oe = l[5]),
- (l[5] = Oe ? lx(Oe, ye, u[6]) : ye),
- (l[6] = Oe ? Ba(l[5], f) : u[6])),
- (ye = u[7]),
- ye && (l[7] = ye),
- $ & T && (l[8] = l[8] == null ? u[8] : Nr(l[8], u[8])),
- l[9] == null && (l[9] = u[9]),
- (l[0] = u[0]),
- (l[1] = N),
- l
- );
- }
- function gO(l) {
- var u = [];
- if (l != null) for (var b in Vn(l)) u.push(b);
- return u;
- }
- function mO(l) {
- return Rf.call(l);
- }
- function Rx(l, u, b) {
- return (
- (u = wr(u === n ? l.length - 1 : u, 0)),
- function () {
- for (
- var $ = arguments, N = -1, J = wr($.length - u, 0), ue = Be(J);
- ++N < J;
- )
- ue[N] = $[u + N];
- N = -1;
- for (var ye = Be(u + 1); ++N < u; ) ye[N] = $[N];
- return (ye[u] = b(ue)), Jr(l, this, ye);
- }
- );
- }
- function Px(l, u) {
- return u.length < 2 ? l : Wl(l, Uo(u, 0, -1));
- }
- function bO(l, u) {
- for (var b = l.length, $ = Nr(u.length, b), N = fo(l); $--; ) {
- var J = u[$];
- l[$] = ca(J, b) ? N[J] : n;
- }
- return l;
- }
- function Fg(l, u) {
- if (
- !(u === 'constructor' && typeof l[u] == 'function') &&
- u != '__proto__'
- )
- return l[u];
- }
- var kx = $x(X1),
- Pd =
- A$ ||
- function (l, u) {
- return dr.setTimeout(l, u);
- },
- Bg = $x(H5);
- function Tx(l, u, b) {
- var $ = u + '';
- return Bg(l, cO($, yO(aO($), b)));
- }
- function $x(l) {
- var u = 0,
- b = 0;
- return function () {
- var $ = F$(),
- N = D - ($ - b);
- if (((b = $), N > 0)) {
- if (++u >= A) return arguments[0];
- } else u = 0;
- return l.apply(n, arguments);
- };
- }
- function Gf(l, u) {
- var b = -1,
- $ = l.length,
- N = $ - 1;
- for (u = u === n ? $ : u; ++b < u; ) {
- var J = xg(b, N),
- ue = l[J];
- (l[J] = l[b]), (l[b] = ue);
- }
- return (l.length = u), l;
- }
- var Ox = vO(function (l) {
- var u = [];
- return (
- l.charCodeAt(0) === 46 && u.push(''),
- l.replace(jn, function (b, $, N, J) {
- u.push(N ? J.replace(gt, '$1') : $ || b);
- }),
- u
- );
- });
- function Pi(l) {
- if (typeof l == 'string' || Po(l)) return l;
- var u = l + '';
- return u == '0' && 1 / l == -q ? '-0' : u;
- }
- function Vl(l) {
- if (l != null) {
- try {
- return _f.call(l);
- } catch {}
- try {
- return l + '';
- } catch {}
- }
- return '';
- }
- function yO(l, u) {
- return (
- de(pe, function (b) {
- var $ = '_.' + b[0];
- u & b[1] && !Pt(l, $) && l.push($);
- }),
- l.sort()
- );
- }
- function zx(l) {
- if (l instanceof fn) return l.clone();
- var u = new jo(l.__wrapped__, l.__chain__);
- return (
- (u.__actions__ = fo(l.__actions__)),
- (u.__index__ = l.__index__),
- (u.__values__ = l.__values__),
- u
- );
- }
- function xO(l, u, b) {
- (b ? to(l, u, b) : u === n) ? (u = 1) : (u = wr(en(u), 0));
- var $ = l == null ? 0 : l.length;
- if (!$ || u < 1) return [];
- for (var N = 0, J = 0, ue = Be(zf($ / u)); N < $; )
- ue[J++] = Uo(l, N, (N += u));
- return ue;
- }
- function wO(l) {
- for (
- var u = -1, b = l == null ? 0 : l.length, $ = 0, N = [];
- ++u < b;
- ) {
- var J = l[u];
- J && (N[$++] = J);
- }
- return N;
- }
- function CO() {
- var l = arguments.length;
- if (!l) return [];
- for (var u = Be(l - 1), b = arguments[0], $ = l; $--; )
- u[$ - 1] = arguments[$];
- return kn(Jt(b) ? fo(b) : [b], Dr(u, 1));
- }
- var SO = an(function (l, u) {
- return ur(l) ? xd(l, Dr(u, 1, ur, !0)) : [];
- }),
- _O = an(function (l, u) {
- var b = Vo(u);
- return (
- ur(b) && (b = n), ur(l) ? xd(l, Dr(u, 1, ur, !0), Ht(b, 2)) : []
- );
- }),
- RO = an(function (l, u) {
- var b = Vo(u);
- return ur(b) && (b = n), ur(l) ? xd(l, Dr(u, 1, ur, !0), n, b) : [];
- });
- function PO(l, u, b) {
- var $ = l == null ? 0 : l.length;
- return $
- ? ((u = b || u === n ? 1 : en(u)), Uo(l, u < 0 ? 0 : u, $))
- : [];
- }
- function kO(l, u, b) {
- var $ = l == null ? 0 : l.length;
- return $
- ? ((u = b || u === n ? 1 : en(u)),
- (u = $ - u),
- Uo(l, 0, u < 0 ? 0 : u))
- : [];
- }
- function TO(l, u) {
- return l && l.length ? Hf(l, Ht(u, 3), !0, !0) : [];
- }
- function $O(l, u) {
- return l && l.length ? Hf(l, Ht(u, 3), !0) : [];
- }
- function OO(l, u, b, $) {
- var N = l == null ? 0 : l.length;
- return N
- ? (b && typeof b != 'number' && to(l, u, b) && ((b = 0), ($ = N)),
- C5(l, u, b, $))
- : [];
- }
- function Ex(l, u, b) {
- var $ = l == null ? 0 : l.length;
- if (!$) return -1;
- var N = b == null ? 0 : en(b);
- return N < 0 && (N = wr($ + N, 0)), co(l, Ht(u, 3), N);
- }
- function Ax(l, u, b) {
- var $ = l == null ? 0 : l.length;
- if (!$) return -1;
- var N = $ - 1;
- return (
- b !== n && ((N = en(b)), (N = b < 0 ? wr($ + N, 0) : Nr(N, $ - 1))),
- co(l, Ht(u, 3), N, !0)
- );
- }
- function Mx(l) {
- var u = l == null ? 0 : l.length;
- return u ? Dr(l, 1) : [];
- }
- function zO(l) {
- var u = l == null ? 0 : l.length;
- return u ? Dr(l, q) : [];
- }
- function EO(l, u) {
- var b = l == null ? 0 : l.length;
- return b ? ((u = u === n ? 1 : en(u)), Dr(l, u)) : [];
- }
- function AO(l) {
- for (var u = -1, b = l == null ? 0 : l.length, $ = {}; ++u < b; ) {
- var N = l[u];
- $[N[0]] = N[1];
- }
- return $;
- }
- function Ix(l) {
- return l && l.length ? l[0] : n;
- }
- function MO(l, u, b) {
- var $ = l == null ? 0 : l.length;
- if (!$) return -1;
- var N = b == null ? 0 : en(b);
- return N < 0 && (N = wr($ + N, 0)), uo(l, u, N);
- }
- function IO(l) {
- var u = l == null ? 0 : l.length;
- return u ? Uo(l, 0, -1) : [];
- }
- var DO = an(function (l) {
- var u = Dt(l, Rg);
- return u.length && u[0] === l[0] ? pg(u) : [];
- }),
- FO = an(function (l) {
- var u = Vo(l),
- b = Dt(l, Rg);
- return (
- u === Vo(b) ? (u = n) : b.pop(),
- b.length && b[0] === l[0] ? pg(b, Ht(u, 2)) : []
- );
- }),
- BO = an(function (l) {
- var u = Vo(l),
- b = Dt(l, Rg);
- return (
- (u = typeof u == 'function' ? u : n),
- u && b.pop(),
- b.length && b[0] === l[0] ? pg(b, n, u) : []
- );
- });
- function LO(l, u) {
- return l == null ? '' : I$.call(l, u);
- }
- function Vo(l) {
- var u = l == null ? 0 : l.length;
- return u ? l[u - 1] : n;
- }
- function NO(l, u, b) {
- var $ = l == null ? 0 : l.length;
- if (!$) return -1;
- var N = $;
- return (
- b !== n && ((N = en(b)), (N = N < 0 ? wr($ + N, 0) : Nr(N, $ - 1))),
- u === u ? y$(l, u, N) : co(l, Fl, N, !0)
- );
- }
- function HO(l, u) {
- return l && l.length ? K1(l, en(u)) : n;
- }
- var jO = an(Dx);
- function Dx(l, u) {
- return l && l.length && u && u.length ? yg(l, u) : l;
- }
- function WO(l, u, b) {
- return l && l.length && u && u.length ? yg(l, u, Ht(b, 2)) : l;
- }
- function UO(l, u, b) {
- return l && l.length && u && u.length ? yg(l, u, n, b) : l;
- }
- var VO = sa(function (l, u) {
- var b = l == null ? 0 : l.length,
- $ = ug(l, u);
- return (
- G1(
- l,
- Dt(u, function (N) {
- return ca(N, b) ? +N : N;
- }).sort(ix)
- ),
- $
- );
- });
- function KO(l, u) {
- var b = [];
- if (!(l && l.length)) return b;
- var $ = -1,
- N = [],
- J = l.length;
- for (u = Ht(u, 3); ++$ < J; ) {
- var ue = l[$];
- u(ue, $, l) && (b.push(ue), N.push($));
- }
- return G1(l, N), b;
- }
- function Lg(l) {
- return l == null ? l : L$.call(l);
- }
- function qO(l, u, b) {
- var $ = l == null ? 0 : l.length;
- return $
- ? (b && typeof b != 'number' && to(l, u, b)
- ? ((u = 0), (b = $))
- : ((u = u == null ? 0 : en(u)), (b = b === n ? $ : en(b))),
- Uo(l, u, b))
- : [];
- }
- function YO(l, u) {
- return Nf(l, u);
- }
- function GO(l, u, b) {
- return Cg(l, u, Ht(b, 2));
- }
- function XO(l, u) {
- var b = l == null ? 0 : l.length;
- if (b) {
- var $ = Nf(l, u);
- if ($ < b && ii(l[$], u)) return $;
- }
- return -1;
- }
- function ZO(l, u) {
- return Nf(l, u, !0);
- }
- function QO(l, u, b) {
- return Cg(l, u, Ht(b, 2), !0);
- }
- function JO(l, u) {
- var b = l == null ? 0 : l.length;
- if (b) {
- var $ = Nf(l, u, !0) - 1;
- if (ii(l[$], u)) return $;
- }
- return -1;
- }
- function e4(l) {
- return l && l.length ? Z1(l) : [];
- }
- function t4(l, u) {
- return l && l.length ? Z1(l, Ht(u, 2)) : [];
- }
- function n4(l) {
- var u = l == null ? 0 : l.length;
- return u ? Uo(l, 1, u) : [];
- }
- function r4(l, u, b) {
- return l && l.length
- ? ((u = b || u === n ? 1 : en(u)), Uo(l, 0, u < 0 ? 0 : u))
- : [];
- }
- function o4(l, u, b) {
- var $ = l == null ? 0 : l.length;
- return $
- ? ((u = b || u === n ? 1 : en(u)),
- (u = $ - u),
- Uo(l, u < 0 ? 0 : u, $))
- : [];
- }
- function i4(l, u) {
- return l && l.length ? Hf(l, Ht(u, 3), !1, !0) : [];
- }
- function a4(l, u) {
- return l && l.length ? Hf(l, Ht(u, 3)) : [];
- }
- var l4 = an(function (l) {
- return Ha(Dr(l, 1, ur, !0));
- }),
- s4 = an(function (l) {
- var u = Vo(l);
- return ur(u) && (u = n), Ha(Dr(l, 1, ur, !0), Ht(u, 2));
- }),
- c4 = an(function (l) {
- var u = Vo(l);
- return (
- (u = typeof u == 'function' ? u : n), Ha(Dr(l, 1, ur, !0), n, u)
- );
- });
- function d4(l) {
- return l && l.length ? Ha(l) : [];
- }
- function u4(l, u) {
- return l && l.length ? Ha(l, Ht(u, 2)) : [];
- }
- function f4(l, u) {
- return (
- (u = typeof u == 'function' ? u : n),
- l && l.length ? Ha(l, n, u) : []
- );
- }
- function Ng(l) {
- if (!(l && l.length)) return [];
- var u = 0;
- return (
- (l = It(l, function (b) {
- if (ur(b)) return (u = wr(b.length, u)), !0;
- })),
- rg(u, function (b) {
- return Dt(l, eg(b));
- })
- );
- }
- function Fx(l, u) {
- if (!(l && l.length)) return [];
- var b = Ng(l);
- return u == null
- ? b
- : Dt(b, function ($) {
- return Jr(u, n, $);
- });
- }
- var h4 = an(function (l, u) {
- return ur(l) ? xd(l, u) : [];
- }),
- v4 = an(function (l) {
- return _g(It(l, ur));
- }),
- p4 = an(function (l) {
- var u = Vo(l);
- return ur(u) && (u = n), _g(It(l, ur), Ht(u, 2));
- }),
- g4 = an(function (l) {
- var u = Vo(l);
- return (u = typeof u == 'function' ? u : n), _g(It(l, ur), n, u);
- }),
- m4 = an(Ng);
- function b4(l, u) {
- return tx(l || [], u || [], yd);
- }
- function y4(l, u) {
- return tx(l || [], u || [], Sd);
- }
- var x4 = an(function (l) {
- var u = l.length,
- b = u > 1 ? l[u - 1] : n;
- return (b = typeof b == 'function' ? (l.pop(), b) : n), Fx(l, b);
- });
- function Bx(l) {
- var u = Y(l);
- return (u.__chain__ = !0), u;
- }
- function w4(l, u) {
- return u(l), l;
- }
- function Xf(l, u) {
- return u(l);
- }
- var C4 = sa(function (l) {
- var u = l.length,
- b = u ? l[0] : 0,
- $ = this.__wrapped__,
- N = function (J) {
- return ug(J, l);
- };
- return u > 1 ||
- this.__actions__.length ||
- !($ instanceof fn) ||
- !ca(b)
- ? this.thru(N)
- : (($ = $.slice(b, +b + (u ? 1 : 0))),
- $.__actions__.push({ func: Xf, args: [N], thisArg: n }),
- new jo($, this.__chain__).thru(function (J) {
- return u && !J.length && J.push(n), J;
- }));
- });
- function S4() {
- return Bx(this);
- }
- function _4() {
- return new jo(this.value(), this.__chain__);
- }
- function R4() {
- this.__values__ === n && (this.__values__ = Qx(this.value()));
- var l = this.__index__ >= this.__values__.length,
- u = l ? n : this.__values__[this.__index__++];
- return { done: l, value: u };
- }
- function P4() {
- return this;
- }
- function k4(l) {
- for (var u, b = this; b instanceof If; ) {
- var $ = zx(b);
- ($.__index__ = 0),
- ($.__values__ = n),
- u ? (N.__wrapped__ = $) : (u = $);
- var N = $;
- b = b.__wrapped__;
- }
- return (N.__wrapped__ = l), u;
- }
- function T4() {
- var l = this.__wrapped__;
- if (l instanceof fn) {
- var u = l;
- return (
- this.__actions__.length && (u = new fn(this)),
- (u = u.reverse()),
- u.__actions__.push({ func: Xf, args: [Lg], thisArg: n }),
- new jo(u, this.__chain__)
- );
- }
- return this.thru(Lg);
- }
- function $4() {
- return ex(this.__wrapped__, this.__actions__);
- }
- var O4 = jf(function (l, u, b) {
- In.call(l, b) ? ++l[b] : aa(l, b, 1);
- });
- function z4(l, u, b) {
- var $ = Jt(l) ? at : w5;
- return b && to(l, u, b) && (u = n), $(l, Ht(u, 3));
- }
- function E4(l, u) {
- var b = Jt(l) ? It : F1;
- return b(l, Ht(u, 3));
- }
- var A4 = ux(Ex),
- M4 = ux(Ax);
- function I4(l, u) {
- return Dr(Zf(l, u), 1);
- }
- function D4(l, u) {
- return Dr(Zf(l, u), q);
- }
- function F4(l, u, b) {
- return (b = b === n ? 1 : en(b)), Dr(Zf(l, u), b);
- }
- function Lx(l, u) {
- var b = Jt(l) ? de : Na;
- return b(l, Ht(u, 3));
- }
- function Nx(l, u) {
- var b = Jt(l) ? Le : D1;
- return b(l, Ht(u, 3));
- }
- var B4 = jf(function (l, u, b) {
- In.call(l, b) ? l[b].push(u) : aa(l, b, [u]);
- });
- function L4(l, u, b, $) {
- (l = ho(l) ? l : rc(l)), (b = b && !$ ? en(b) : 0);
- var N = l.length;
- return (
- b < 0 && (b = wr(N + b, 0)),
- nh(l) ? b <= N && l.indexOf(u, b) > -1 : !!N && uo(l, u, b) > -1
- );
- }
- var N4 = an(function (l, u, b) {
- var $ = -1,
- N = typeof u == 'function',
- J = ho(l) ? Be(l.length) : [];
- return (
- Na(l, function (ue) {
- J[++$] = N ? Jr(u, ue, b) : wd(ue, u, b);
- }),
- J
- );
- }),
- H4 = jf(function (l, u, b) {
- aa(l, b, u);
- });
- function Zf(l, u) {
- var b = Jt(l) ? Dt : W1;
- return b(l, Ht(u, 3));
- }
- function j4(l, u, b, $) {
- return l == null
- ? []
- : (Jt(u) || (u = u == null ? [] : [u]),
- (b = $ ? n : b),
- Jt(b) || (b = b == null ? [] : [b]),
- q1(l, u, b));
- }
- var W4 = jf(
- function (l, u, b) {
- l[b ? 0 : 1].push(u);
- },
- function () {
- return [[], []];
- }
- );
- function U4(l, u, b) {
- var $ = Jt(l) ? or : m1,
- N = arguments.length < 3;
- return $(l, Ht(u, 4), b, N, Na);
- }
- function V4(l, u, b) {
- var $ = Jt(l) ? Ir : m1,
- N = arguments.length < 3;
- return $(l, Ht(u, 4), b, N, D1);
- }
- function K4(l, u) {
- var b = Jt(l) ? It : F1;
- return b(l, eh(Ht(u, 3)));
- }
- function q4(l) {
- var u = Jt(l) ? E1 : L5;
- return u(l);
- }
- function Y4(l, u, b) {
- (b ? to(l, u, b) : u === n) ? (u = 1) : (u = en(u));
- var $ = Jt(l) ? g5 : N5;
- return $(l, u);
- }
- function G4(l) {
- var u = Jt(l) ? m5 : j5;
- return u(l);
- }
- function X4(l) {
- if (l == null) return 0;
- if (ho(l)) return nh(l) ? qs(l) : l.length;
- var u = Hr(l);
- return u == ne || u == le ? l.size : mg(l).length;
- }
- function Z4(l, u, b) {
- var $ = Jt(l) ? Tr : W5;
- return b && to(l, u, b) && (u = n), $(l, Ht(u, 3));
- }
- var Q4 = an(function (l, u) {
- if (l == null) return [];
- var b = u.length;
- return (
- b > 1 && to(l, u[0], u[1])
- ? (u = [])
- : b > 2 && to(u[0], u[1], u[2]) && (u = [u[0]]),
- q1(l, Dr(u, 1), [])
- );
- }),
- Qf =
- E$ ||
- function () {
- return dr.Date.now();
- };
- function J4(l, u) {
- if (typeof u != 'function') throw new Ho(a);
- return (
- (l = en(l)),
- function () {
- if (--l < 1) return u.apply(this, arguments);
- }
- );
- }
- function Hx(l, u, b) {
- return (
- (u = b ? n : u),
- (u = l && u == null ? l.length : u),
- la(l, T, n, n, n, n, u)
- );
- }
- function jx(l, u) {
- var b;
- if (typeof u != 'function') throw new Ho(a);
- return (
- (l = en(l)),
- function () {
- return (
- --l > 0 && (b = u.apply(this, arguments)), l <= 1 && (u = n), b
- );
- }
- );
- }
- var Hg = an(function (l, u, b) {
- var $ = x;
- if (b.length) {
- var N = Ba(b, tc(Hg));
- $ |= _;
- }
- return la(l, $, u, b, N);
- }),
- Wx = an(function (l, u, b) {
- var $ = x | y;
- if (b.length) {
- var N = Ba(b, tc(Wx));
- $ |= _;
- }
- return la(u, $, l, b, N);
- });
- function Ux(l, u, b) {
- u = b ? n : u;
- var $ = la(l, R, n, n, n, n, n, u);
- return ($.placeholder = Ux.placeholder), $;
- }
- function Vx(l, u, b) {
- u = b ? n : u;
- var $ = la(l, S, n, n, n, n, n, u);
- return ($.placeholder = Vx.placeholder), $;
- }
- function Kx(l, u, b) {
- var $,
- N,
- J,
- ue,
- ye,
- Oe,
- qe = 0,
- Ye = !1,
- et = !1,
- mt = !0;
- if (typeof l != 'function') throw new Ho(a);
- (u = Ko(u) || 0),
- Jn(b) &&
- ((Ye = !!b.leading),
- (et = 'maxWait' in b),
- (J = et ? wr(Ko(b.maxWait) || 0, u) : J),
- (mt = 'trailing' in b ? !!b.trailing : mt));
- function Tt(fr) {
- var ai = $,
- fa = N;
- return ($ = N = n), (qe = fr), (ue = l.apply(fa, ai)), ue;
- }
- function Ut(fr) {
- return (qe = fr), (ye = Pd(sn, u)), Ye ? Tt(fr) : ue;
- }
- function rn(fr) {
- var ai = fr - Oe,
- fa = fr - qe,
- uw = u - ai;
- return et ? Nr(uw, J - fa) : uw;
- }
- function Vt(fr) {
- var ai = fr - Oe,
- fa = fr - qe;
- return Oe === n || ai >= u || ai < 0 || (et && fa >= J);
- }
- function sn() {
- var fr = Qf();
- if (Vt(fr)) return yn(fr);
- ye = Pd(sn, rn(fr));
- }
- function yn(fr) {
- return (ye = n), mt && $ ? Tt(fr) : (($ = N = n), ue);
- }
- function ko() {
- ye !== n && nx(ye), (qe = 0), ($ = Oe = N = ye = n);
- }
- function no() {
- return ye === n ? ue : yn(Qf());
- }
- function To() {
- var fr = Qf(),
- ai = Vt(fr);
- if ((($ = arguments), (N = this), (Oe = fr), ai)) {
- if (ye === n) return Ut(Oe);
- if (et) return nx(ye), (ye = Pd(sn, u)), Tt(Oe);
- }
- return ye === n && (ye = Pd(sn, u)), ue;
- }
- return (To.cancel = ko), (To.flush = no), To;
- }
- var ez = an(function (l, u) {
- return I1(l, 1, u);
- }),
- tz = an(function (l, u, b) {
- return I1(l, Ko(u) || 0, b);
- });
- function nz(l) {
- return la(l, z);
- }
- function Jf(l, u) {
- if (typeof l != 'function' || (u != null && typeof u != 'function'))
- throw new Ho(a);
- var b = function () {
- var $ = arguments,
- N = u ? u.apply(this, $) : $[0],
- J = b.cache;
- if (J.has(N)) return J.get(N);
- var ue = l.apply(this, $);
- return (b.cache = J.set(N, ue) || J), ue;
- };
- return (b.cache = new (Jf.Cache || ia)()), b;
- }
- Jf.Cache = ia;
- function eh(l) {
- if (typeof l != 'function') throw new Ho(a);
- return function () {
- var u = arguments;
- switch (u.length) {
- case 0:
- return !l.call(this);
- case 1:
- return !l.call(this, u[0]);
- case 2:
- return !l.call(this, u[0], u[1]);
- case 3:
- return !l.call(this, u[0], u[1], u[2]);
- }
- return !l.apply(this, u);
- };
- }
- function rz(l) {
- return jx(2, l);
- }
- var oz = U5(function (l, u) {
- u =
- u.length == 1 && Jt(u[0])
- ? Dt(u[0], _o(Ht()))
- : Dt(Dr(u, 1), _o(Ht()));
- var b = u.length;
- return an(function ($) {
- for (var N = -1, J = Nr($.length, b); ++N < J; )
- $[N] = u[N].call(this, $[N]);
- return Jr(l, this, $);
- });
- }),
- jg = an(function (l, u) {
- var b = Ba(u, tc(jg));
- return la(l, _, n, u, b);
- }),
- qx = an(function (l, u) {
- var b = Ba(u, tc(qx));
- return la(l, P, n, u, b);
- }),
- iz = sa(function (l, u) {
- return la(l, E, n, n, n, u);
- });
- function az(l, u) {
- if (typeof l != 'function') throw new Ho(a);
- return (u = u === n ? u : en(u)), an(l, u);
- }
- function lz(l, u) {
- if (typeof l != 'function') throw new Ho(a);
- return (
- (u = u == null ? 0 : wr(en(u), 0)),
- an(function (b) {
- var $ = b[u],
- N = Wa(b, 0, u);
- return $ && kn(N, $), Jr(l, this, N);
- })
- );
- }
- function sz(l, u, b) {
- var $ = !0,
- N = !0;
- if (typeof l != 'function') throw new Ho(a);
- return (
- Jn(b) &&
- (($ = 'leading' in b ? !!b.leading : $),
- (N = 'trailing' in b ? !!b.trailing : N)),
- Kx(l, u, { leading: $, maxWait: u, trailing: N })
- );
- }
- function cz(l) {
- return Hx(l, 1);
- }
- function dz(l, u) {
- return jg(Pg(u), l);
- }
- function uz() {
- if (!arguments.length) return [];
- var l = arguments[0];
- return Jt(l) ? l : [l];
- }
- function fz(l) {
- return Wo(l, m);
- }
- function hz(l, u) {
- return (u = typeof u == 'function' ? u : n), Wo(l, m, u);
- }
- function vz(l) {
- return Wo(l, v | m);
- }
- function pz(l, u) {
- return (u = typeof u == 'function' ? u : n), Wo(l, v | m, u);
- }
- function gz(l, u) {
- return u == null || M1(l, u, $r(u));
- }
- function ii(l, u) {
- return l === u || (l !== l && u !== u);
- }
- var mz = Kf(vg),
- bz = Kf(function (l, u) {
- return l >= u;
- }),
- Kl = N1(
- (function () {
- return arguments;
- })()
- )
- ? N1
- : function (l) {
- return ir(l) && In.call(l, 'callee') && !P1.call(l, 'callee');
- },
- Jt = Be.isArray,
- yz = pf ? _o(pf) : k5;
- function ho(l) {
- return l != null && th(l.length) && !da(l);
- }
- function ur(l) {
- return ir(l) && ho(l);
- }
- function xz(l) {
- return l === !0 || l === !1 || (ir(l) && eo(l) == be);
- }
- var Ua = M$ || Jg,
- wz = gf ? _o(gf) : T5;
- function Cz(l) {
- return ir(l) && l.nodeType === 1 && !kd(l);
- }
- function Sz(l) {
- if (l == null) return !0;
- if (
- ho(l) &&
- (Jt(l) ||
- typeof l == 'string' ||
- typeof l.splice == 'function' ||
- Ua(l) ||
- nc(l) ||
- Kl(l))
- )
- return !l.length;
- var u = Hr(l);
- if (u == ne || u == le) return !l.size;
- if (Rd(l)) return !mg(l).length;
- for (var b in l) if (In.call(l, b)) return !1;
- return !0;
- }
- function _z(l, u) {
- return Cd(l, u);
- }
- function Rz(l, u, b) {
- b = typeof b == 'function' ? b : n;
- var $ = b ? b(l, u) : n;
- return $ === n ? Cd(l, u, n, b) : !!$;
- }
- function Wg(l) {
- if (!ir(l)) return !1;
- var u = eo(l);
- return (
- u == Ae ||
- u == ge ||
- (typeof l.message == 'string' &&
- typeof l.name == 'string' &&
- !kd(l))
- );
- }
- function Pz(l) {
- return typeof l == 'number' && T1(l);
- }
- function da(l) {
- if (!Jn(l)) return !1;
- var u = eo(l);
- return u == j || u == ee || u == ve || u == he;
- }
- function Yx(l) {
- return typeof l == 'number' && l == en(l);
- }
- function th(l) {
- return typeof l == 'number' && l > -1 && l % 1 == 0 && l <= X;
- }
- function Jn(l) {
- var u = typeof l;
- return l != null && (u == 'object' || u == 'function');
- }
- function ir(l) {
- return l != null && typeof l == 'object';
- }
- var Gx = mf ? _o(mf) : O5;
- function kz(l, u) {
- return l === u || gg(l, u, Ag(u));
- }
- function Tz(l, u, b) {
- return (b = typeof b == 'function' ? b : n), gg(l, u, Ag(u), b);
- }
- function $z(l) {
- return Xx(l) && l != +l;
- }
- function Oz(l) {
- if (hO(l)) throw new Qt(i);
- return H1(l);
- }
- function zz(l) {
- return l === null;
- }
- function Ez(l) {
- return l == null;
- }
- function Xx(l) {
- return typeof l == 'number' || (ir(l) && eo(l) == fe);
- }
- function kd(l) {
- if (!ir(l) || eo(l) != W) return !1;
- var u = Tf(l);
- if (u === null) return !0;
- var b = In.call(u, 'constructor') && u.constructor;
- return typeof b == 'function' && b instanceof b && _f.call(b) == T$;
- }
- var Ug = Dl ? _o(Dl) : z5;
- function Az(l) {
- return Yx(l) && l >= -X && l <= X;
- }
- var Zx = bf ? _o(bf) : E5;
- function nh(l) {
- return typeof l == 'string' || (!Jt(l) && ir(l) && eo(l) == Re);
- }
- function Po(l) {
- return typeof l == 'symbol' || (ir(l) && eo(l) == Ne);
- }
- var nc = yf ? _o(yf) : A5;
- function Mz(l) {
- return l === n;
- }
- function Iz(l) {
- return ir(l) && Hr(l) == it;
- }
- function Dz(l) {
- return ir(l) && eo(l) == dt;
- }
- var Fz = Kf(bg),
- Bz = Kf(function (l, u) {
- return l <= u;
- });
- function Qx(l) {
- if (!l) return [];
- if (ho(l)) return nh(l) ? ri(l) : fo(l);
- if (vd && l[vd]) return g$(l[vd]());
- var u = Hr(l),
- b = u == ne ? ig : u == le ? wf : rc;
- return b(l);
- }
- function ua(l) {
- if (!l) return l === 0 ? l : 0;
- if (((l = Ko(l)), l === q || l === -q)) {
- var u = l < 0 ? -1 : 1;
- return u * te;
- }
- return l === l ? l : 0;
- }
- function en(l) {
- var u = ua(l),
- b = u % 1;
- return u === u ? (b ? u - b : u) : 0;
- }
- function Jx(l) {
- return l ? jl(en(l), 0, Q) : 0;
- }
- function Ko(l) {
- if (typeof l == 'number') return l;
- if (Po(l)) return G;
- if (Jn(l)) {
- var u = typeof l.valueOf == 'function' ? l.valueOf() : l;
- l = Jn(u) ? u + '' : u;
- }
- if (typeof l != 'string') return l === 0 ? l : +l;
- l = b1(l);
- var b = Je.test(l);
- return b || Wt.test(l)
- ? ti(l.slice(2), b ? 2 : 8)
- : $e.test(l)
- ? G
- : +l;
- }
- function ew(l) {
- return Ri(l, vo(l));
- }
- function Lz(l) {
- return l ? jl(en(l), -X, X) : l === 0 ? l : 0;
- }
- function Mn(l) {
- return l == null ? '' : Ro(l);
- }
- var Nz = Js(function (l, u) {
- if (Rd(u) || ho(u)) {
- Ri(u, $r(u), l);
- return;
- }
- for (var b in u) In.call(u, b) && yd(l, b, u[b]);
- }),
- tw = Js(function (l, u) {
- Ri(u, vo(u), l);
- }),
- rh = Js(function (l, u, b, $) {
- Ri(u, vo(u), l, $);
- }),
- Hz = Js(function (l, u, b, $) {
- Ri(u, $r(u), l, $);
- }),
- jz = sa(ug);
- function Wz(l, u) {
- var b = Qs(l);
- return u == null ? b : A1(b, u);
- }
- var Uz = an(function (l, u) {
- l = Vn(l);
- var b = -1,
- $ = u.length,
- N = $ > 2 ? u[2] : n;
- for (N && to(u[0], u[1], N) && ($ = 1); ++b < $; )
- for (
- var J = u[b], ue = vo(J), ye = -1, Oe = ue.length;
- ++ye < Oe;
- ) {
- var qe = ue[ye],
- Ye = l[qe];
- (Ye === n || (ii(Ye, Gs[qe]) && !In.call(l, qe))) &&
- (l[qe] = J[qe]);
- }
- return l;
- }),
- Vz = an(function (l) {
- return l.push(n, bx), Jr(nw, n, l);
- });
- function Kz(l, u) {
- return ni(l, Ht(u, 3), _i);
- }
- function qz(l, u) {
- return ni(l, Ht(u, 3), hg);
- }
- function Yz(l, u) {
- return l == null ? l : fg(l, Ht(u, 3), vo);
- }
- function Gz(l, u) {
- return l == null ? l : B1(l, Ht(u, 3), vo);
- }
- function Xz(l, u) {
- return l && _i(l, Ht(u, 3));
- }
- function Zz(l, u) {
- return l && hg(l, Ht(u, 3));
- }
- function Qz(l) {
- return l == null ? [] : Bf(l, $r(l));
- }
- function Jz(l) {
- return l == null ? [] : Bf(l, vo(l));
- }
- function Vg(l, u, b) {
- var $ = l == null ? n : Wl(l, u);
- return $ === n ? b : $;
- }
- function eE(l, u) {
- return l != null && wx(l, u, S5);
- }
- function Kg(l, u) {
- return l != null && wx(l, u, _5);
- }
- var tE = hx(function (l, u, b) {
- u != null && typeof u.toString != 'function' && (u = Rf.call(u)),
- (l[u] = b);
- }, Yg(po)),
- nE = hx(function (l, u, b) {
- u != null && typeof u.toString != 'function' && (u = Rf.call(u)),
- In.call(l, u) ? l[u].push(b) : (l[u] = [b]);
- }, Ht),
- rE = an(wd);
- function $r(l) {
- return ho(l) ? z1(l) : mg(l);
- }
- function vo(l) {
- return ho(l) ? z1(l, !0) : M5(l);
- }
- function oE(l, u) {
- var b = {};
- return (
- (u = Ht(u, 3)),
- _i(l, function ($, N, J) {
- aa(b, u($, N, J), $);
- }),
- b
- );
- }
- function iE(l, u) {
- var b = {};
- return (
- (u = Ht(u, 3)),
- _i(l, function ($, N, J) {
- aa(b, N, u($, N, J));
- }),
- b
- );
- }
- var aE = Js(function (l, u, b) {
- Lf(l, u, b);
- }),
- nw = Js(function (l, u, b, $) {
- Lf(l, u, b, $);
- }),
- lE = sa(function (l, u) {
- var b = {};
- if (l == null) return b;
- var $ = !1;
- (u = Dt(u, function (J) {
- return (J = ja(J, l)), $ || ($ = J.length > 1), J;
- })),
- Ri(l, zg(l), b),
- $ && (b = Wo(b, v | p | m, tO));
- for (var N = u.length; N--; ) Sg(b, u[N]);
- return b;
- });
- function sE(l, u) {
- return rw(l, eh(Ht(u)));
- }
- var cE = sa(function (l, u) {
- return l == null ? {} : D5(l, u);
- });
- function rw(l, u) {
- if (l == null) return {};
- var b = Dt(zg(l), function ($) {
- return [$];
- });
- return (
- (u = Ht(u)),
- Y1(l, b, function ($, N) {
- return u($, N[0]);
- })
- );
- }
- function dE(l, u, b) {
- u = ja(u, l);
- var $ = -1,
- N = u.length;
- for (N || ((N = 1), (l = n)); ++$ < N; ) {
- var J = l == null ? n : l[Pi(u[$])];
- J === n && (($ = N), (J = b)), (l = da(J) ? J.call(l) : J);
- }
- return l;
- }
- function uE(l, u, b) {
- return l == null ? l : Sd(l, u, b);
- }
- function fE(l, u, b, $) {
- return (
- ($ = typeof $ == 'function' ? $ : n), l == null ? l : Sd(l, u, b, $)
- );
- }
- var ow = gx($r),
- iw = gx(vo);
- function hE(l, u, b) {
- var $ = Jt(l),
- N = $ || Ua(l) || nc(l);
- if (((u = Ht(u, 4)), b == null)) {
- var J = l && l.constructor;
- N
- ? (b = $ ? new J() : [])
- : Jn(l)
- ? (b = da(J) ? Qs(Tf(l)) : {})
- : (b = {});
- }
- return (
- (N ? de : _i)(l, function (ue, ye, Oe) {
- return u(b, ue, ye, Oe);
- }),
- b
- );
- }
- function vE(l, u) {
- return l == null ? !0 : Sg(l, u);
- }
- function pE(l, u, b) {
- return l == null ? l : J1(l, u, Pg(b));
- }
- function gE(l, u, b, $) {
- return (
- ($ = typeof $ == 'function' ? $ : n),
- l == null ? l : J1(l, u, Pg(b), $)
- );
- }
- function rc(l) {
- return l == null ? [] : og(l, $r(l));
- }
- function mE(l) {
- return l == null ? [] : og(l, vo(l));
- }
- function bE(l, u, b) {
- return (
- b === n && ((b = u), (u = n)),
- b !== n && ((b = Ko(b)), (b = b === b ? b : 0)),
- u !== n && ((u = Ko(u)), (u = u === u ? u : 0)),
- jl(Ko(l), u, b)
- );
- }
- function yE(l, u, b) {
- return (
- (u = ua(u)),
- b === n ? ((b = u), (u = 0)) : (b = ua(b)),
- (l = Ko(l)),
- R5(l, u, b)
- );
- }
- function xE(l, u, b) {
- if (
- (b && typeof b != 'boolean' && to(l, u, b) && (u = b = n),
- b === n &&
- (typeof u == 'boolean'
- ? ((b = u), (u = n))
- : typeof l == 'boolean' && ((b = l), (l = n))),
- l === n && u === n
- ? ((l = 0), (u = 1))
- : ((l = ua(l)), u === n ? ((u = l), (l = 0)) : (u = ua(u))),
- l > u)
- ) {
- var $ = l;
- (l = u), (u = $);
- }
- if (b || l % 1 || u % 1) {
- var N = $1();
- return Nr(l + N * (u - l + vf('1e-' + ((N + '').length - 1))), u);
- }
- return xg(l, u);
- }
- var wE = ec(function (l, u, b) {
- return (u = u.toLowerCase()), l + (b ? aw(u) : u);
- });
- function aw(l) {
- return qg(Mn(l).toLowerCase());
- }
- function lw(l) {
- return (l = Mn(l)), l && l.replace(nn, u$).replace(Gp, '');
- }
- function CE(l, u, b) {
- (l = Mn(l)), (u = Ro(u));
- var $ = l.length;
- b = b === n ? $ : jl(en(b), 0, $);
- var N = b;
- return (b -= u.length), b >= 0 && l.slice(b, N) == u;
- }
- function SE(l) {
- return (l = Mn(l)), l && pt.test(l) ? l.replace(He, f$) : l;
- }
- function _E(l) {
- return (l = Mn(l)), l && Se.test(l) ? l.replace(Zt, '\\$&') : l;
- }
- var RE = ec(function (l, u, b) {
- return l + (b ? '-' : '') + u.toLowerCase();
- }),
- PE = ec(function (l, u, b) {
- return l + (b ? ' ' : '') + u.toLowerCase();
- }),
- kE = dx('toLowerCase');
- function TE(l, u, b) {
- (l = Mn(l)), (u = en(u));
- var $ = u ? qs(l) : 0;
- if (!u || $ >= u) return l;
- var N = (u - $) / 2;
- return Vf(Ef(N), b) + l + Vf(zf(N), b);
- }
- function $E(l, u, b) {
- (l = Mn(l)), (u = en(u));
- var $ = u ? qs(l) : 0;
- return u && $ < u ? l + Vf(u - $, b) : l;
- }
- function OE(l, u, b) {
- (l = Mn(l)), (u = en(u));
- var $ = u ? qs(l) : 0;
- return u && $ < u ? Vf(u - $, b) + l : l;
- }
- function zE(l, u, b) {
- return (
- b || u == null ? (u = 0) : u && (u = +u),
- B$(Mn(l).replace(je, ''), u || 0)
- );
- }
- function EE(l, u, b) {
- return (
- (b ? to(l, u, b) : u === n) ? (u = 1) : (u = en(u)), wg(Mn(l), u)
- );
- }
- function AE() {
- var l = arguments,
- u = Mn(l[0]);
- return l.length < 3 ? u : u.replace(l[1], l[2]);
- }
- var ME = ec(function (l, u, b) {
- return l + (b ? '_' : '') + u.toLowerCase();
- });
- function IE(l, u, b) {
- return (
- b && typeof b != 'number' && to(l, u, b) && (u = b = n),
- (b = b === n ? Q : b >>> 0),
- b
- ? ((l = Mn(l)),
- l &&
- (typeof u == 'string' || (u != null && !Ug(u))) &&
- ((u = Ro(u)), !u && Ks(l))
- ? Wa(ri(l), 0, b)
- : l.split(u, b))
- : []
- );
- }
- var DE = ec(function (l, u, b) {
- return l + (b ? ' ' : '') + qg(u);
- });
- function FE(l, u, b) {
- return (
- (l = Mn(l)),
- (b = b == null ? 0 : jl(en(b), 0, l.length)),
- (u = Ro(u)),
- l.slice(b, b + u.length) == u
- );
- }
- function BE(l, u, b) {
- var $ = Y.templateSettings;
- b && to(l, u, b) && (u = n), (l = Mn(l)), (u = rh({}, u, $, mx));
- var N = rh({}, u.imports, $.imports, mx),
- J = $r(N),
- ue = og(N, J),
- ye,
- Oe,
- qe = 0,
- Ye = u.interpolate || kr,
- et = "__p += '",
- mt = ag(
- (u.escape || kr).source +
- '|' +
- Ye.source +
- '|' +
- (Ye === nt ? bn : kr).source +
- '|' +
- (u.evaluate || kr).source +
- '|$',
- 'g'
- ),
- Tt =
- '//# sourceURL=' +
- (In.call(u, 'sourceURL')
- ? (u.sourceURL + '').replace(/\s/g, ' ')
- : 'lodash.templateSources[' + ++ff + ']') +
- `
- `;
- l.replace(mt, function (Vt, sn, yn, ko, no, To) {
- return (
- yn || (yn = ko),
- (et += l.slice(qe, To).replace(Yt, h$)),
- sn &&
- ((ye = !0),
- (et +=
- `' +
- __e(` +
- sn +
- `) +
- '`)),
- no &&
- ((Oe = !0),
- (et +=
- `';
- ` +
- no +
- `;
- __p += '`)),
- yn &&
- (et +=
- `' +
- ((__t = (` +
- yn +
- `)) == null ? '' : __t) +
- '`),
- (qe = To + Vt.length),
- Vt
- );
- }),
- (et += `';
- `);
- var Ut = In.call(u, 'variable') && u.variable;
- if (!Ut)
- et =
- `with (obj) {
- ` +
- et +
- `
- }
- `;
- else if (ft.test(Ut)) throw new Qt(s);
- (et = (Oe ? et.replace(We, '') : et)
- .replace(lt, '$1')
- .replace(st, '$1;')),
- (et =
- 'function(' +
- (Ut || 'obj') +
- `) {
- ` +
- (Ut
- ? ''
- : `obj || (obj = {});
- `) +
- "var __t, __p = ''" +
- (ye ? ', __e = _.escape' : '') +
- (Oe
- ? `, __j = Array.prototype.join;
- function print() { __p += __j.call(arguments, '') }
- `
- : `;
- `) +
- et +
- `return __p
- }`);
- var rn = cw(function () {
- return zn(J, Tt + 'return ' + et).apply(n, ue);
- });
- if (((rn.source = et), Wg(rn))) throw rn;
- return rn;
- }
- function LE(l) {
- return Mn(l).toLowerCase();
- }
- function NE(l) {
- return Mn(l).toUpperCase();
- }
- function HE(l, u, b) {
- if (((l = Mn(l)), l && (b || u === n))) return b1(l);
- if (!l || !(u = Ro(u))) return l;
- var $ = ri(l),
- N = ri(u),
- J = y1($, N),
- ue = x1($, N) + 1;
- return Wa($, J, ue).join('');
- }
- function jE(l, u, b) {
- if (((l = Mn(l)), l && (b || u === n))) return l.slice(0, C1(l) + 1);
- if (!l || !(u = Ro(u))) return l;
- var $ = ri(l),
- N = x1($, ri(u)) + 1;
- return Wa($, 0, N).join('');
- }
- function WE(l, u, b) {
- if (((l = Mn(l)), l && (b || u === n))) return l.replace(je, '');
- if (!l || !(u = Ro(u))) return l;
- var $ = ri(l),
- N = y1($, ri(u));
- return Wa($, N).join('');
- }
- function UE(l, u) {
- var b = k,
- $ = M;
- if (Jn(u)) {
- var N = 'separator' in u ? u.separator : N;
- (b = 'length' in u ? en(u.length) : b),
- ($ = 'omission' in u ? Ro(u.omission) : $);
- }
- l = Mn(l);
- var J = l.length;
- if (Ks(l)) {
- var ue = ri(l);
- J = ue.length;
- }
- if (b >= J) return l;
- var ye = b - qs($);
- if (ye < 1) return $;
- var Oe = ue ? Wa(ue, 0, ye).join('') : l.slice(0, ye);
- if (N === n) return Oe + $;
- if ((ue && (ye += Oe.length - ye), Ug(N))) {
- if (l.slice(ye).search(N)) {
- var qe,
- Ye = Oe;
- for (
- N.global || (N = ag(N.source, Mn(ln.exec(N)) + 'g')),
- N.lastIndex = 0;
- (qe = N.exec(Ye));
- )
- var et = qe.index;
- Oe = Oe.slice(0, et === n ? ye : et);
- }
- } else if (l.indexOf(Ro(N), ye) != ye) {
- var mt = Oe.lastIndexOf(N);
- mt > -1 && (Oe = Oe.slice(0, mt));
- }
- return Oe + $;
- }
- function VE(l) {
- return (l = Mn(l)), l && tt.test(l) ? l.replace(me, x$) : l;
- }
- var KE = ec(function (l, u, b) {
- return l + (b ? ' ' : '') + u.toUpperCase();
- }),
- qg = dx('toUpperCase');
- function sw(l, u, b) {
- return (
- (l = Mn(l)),
- (u = b ? n : u),
- u === n ? (p$(l) ? S$(l) : so(l)) : l.match(u) || []
- );
- }
- var cw = an(function (l, u) {
- try {
- return Jr(l, n, u);
- } catch (b) {
- return Wg(b) ? b : new Qt(b);
- }
- }),
- qE = sa(function (l, u) {
- return (
- de(u, function (b) {
- (b = Pi(b)), aa(l, b, Hg(l[b], l));
- }),
- l
- );
- });
- function YE(l) {
- var u = l == null ? 0 : l.length,
- b = Ht();
- return (
- (l = u
- ? Dt(l, function ($) {
- if (typeof $[1] != 'function') throw new Ho(a);
- return [b($[0]), $[1]];
- })
- : []),
- an(function ($) {
- for (var N = -1; ++N < u; ) {
- var J = l[N];
- if (Jr(J[0], this, $)) return Jr(J[1], this, $);
- }
- })
- );
- }
- function GE(l) {
- return x5(Wo(l, v));
- }
- function Yg(l) {
- return function () {
- return l;
- };
- }
- function XE(l, u) {
- return l == null || l !== l ? u : l;
- }
- var ZE = fx(),
- QE = fx(!0);
- function po(l) {
- return l;
- }
- function Gg(l) {
- return j1(typeof l == 'function' ? l : Wo(l, v));
- }
- function JE(l) {
- return U1(Wo(l, v));
- }
- function eA(l, u) {
- return V1(l, Wo(u, v));
- }
- var tA = an(function (l, u) {
- return function (b) {
- return wd(b, l, u);
- };
- }),
- nA = an(function (l, u) {
- return function (b) {
- return wd(l, b, u);
- };
- });
- function Xg(l, u, b) {
- var $ = $r(u),
- N = Bf(u, $);
- b == null &&
- !(Jn(u) && (N.length || !$.length)) &&
- ((b = u), (u = l), (l = this), (N = Bf(u, $r(u))));
- var J = !(Jn(b) && 'chain' in b) || !!b.chain,
- ue = da(l);
- return (
- de(N, function (ye) {
- var Oe = u[ye];
- (l[ye] = Oe),
- ue &&
- (l.prototype[ye] = function () {
- var qe = this.__chain__;
- if (J || qe) {
- var Ye = l(this.__wrapped__),
- et = (Ye.__actions__ = fo(this.__actions__));
- return (
- et.push({ func: Oe, args: arguments, thisArg: l }),
- (Ye.__chain__ = qe),
- Ye
- );
- }
- return Oe.apply(l, kn([this.value()], arguments));
- });
- }),
- l
- );
- }
- function rA() {
- return dr._ === this && (dr._ = $$), this;
- }
- function Zg() {}
- function oA(l) {
- return (
- (l = en(l)),
- an(function (u) {
- return K1(u, l);
- })
- );
- }
- var iA = Tg(Dt),
- aA = Tg(at),
- lA = Tg(Tr);
- function dw(l) {
- return Ig(l) ? eg(Pi(l)) : F5(l);
- }
- function sA(l) {
- return function (u) {
- return l == null ? n : Wl(l, u);
- };
- }
- var cA = vx(),
- dA = vx(!0);
- function Qg() {
- return [];
- }
- function Jg() {
- return !1;
- }
- function uA() {
- return {};
- }
- function fA() {
- return '';
- }
- function hA() {
- return !0;
- }
- function vA(l, u) {
- if (((l = en(l)), l < 1 || l > X)) return [];
- var b = Q,
- $ = Nr(l, Q);
- (u = Ht(u)), (l -= Q);
- for (var N = rg($, u); ++b < l; ) u(b);
- return N;
- }
- function pA(l) {
- return Jt(l) ? Dt(l, Pi) : Po(l) ? [l] : fo(Ox(Mn(l)));
- }
- function gA(l) {
- var u = ++k$;
- return Mn(l) + u;
- }
- var mA = Uf(function (l, u) {
- return l + u;
- }, 0),
- bA = $g('ceil'),
- yA = Uf(function (l, u) {
- return l / u;
- }, 1),
- xA = $g('floor');
- function wA(l) {
- return l && l.length ? Ff(l, po, vg) : n;
- }
- function CA(l, u) {
- return l && l.length ? Ff(l, Ht(u, 2), vg) : n;
- }
- function SA(l) {
- return Bl(l, po);
- }
- function _A(l, u) {
- return Bl(l, Ht(u, 2));
- }
- function RA(l) {
- return l && l.length ? Ff(l, po, bg) : n;
- }
- function PA(l, u) {
- return l && l.length ? Ff(l, Ht(u, 2), bg) : n;
- }
- var kA = Uf(function (l, u) {
- return l * u;
- }, 1),
- TA = $g('round'),
- $A = Uf(function (l, u) {
- return l - u;
- }, 0);
- function OA(l) {
- return l && l.length ? ng(l, po) : 0;
- }
- function zA(l, u) {
- return l && l.length ? ng(l, Ht(u, 2)) : 0;
- }
- return (
- (Y.after = J4),
- (Y.ary = Hx),
- (Y.assign = Nz),
- (Y.assignIn = tw),
- (Y.assignInWith = rh),
- (Y.assignWith = Hz),
- (Y.at = jz),
- (Y.before = jx),
- (Y.bind = Hg),
- (Y.bindAll = qE),
- (Y.bindKey = Wx),
- (Y.castArray = uz),
- (Y.chain = Bx),
- (Y.chunk = xO),
- (Y.compact = wO),
- (Y.concat = CO),
- (Y.cond = YE),
- (Y.conforms = GE),
- (Y.constant = Yg),
- (Y.countBy = O4),
- (Y.create = Wz),
- (Y.curry = Ux),
- (Y.curryRight = Vx),
- (Y.debounce = Kx),
- (Y.defaults = Uz),
- (Y.defaultsDeep = Vz),
- (Y.defer = ez),
- (Y.delay = tz),
- (Y.difference = SO),
- (Y.differenceBy = _O),
- (Y.differenceWith = RO),
- (Y.drop = PO),
- (Y.dropRight = kO),
- (Y.dropRightWhile = TO),
- (Y.dropWhile = $O),
- (Y.fill = OO),
- (Y.filter = E4),
- (Y.flatMap = I4),
- (Y.flatMapDeep = D4),
- (Y.flatMapDepth = F4),
- (Y.flatten = Mx),
- (Y.flattenDeep = zO),
- (Y.flattenDepth = EO),
- (Y.flip = nz),
- (Y.flow = ZE),
- (Y.flowRight = QE),
- (Y.fromPairs = AO),
- (Y.functions = Qz),
- (Y.functionsIn = Jz),
- (Y.groupBy = B4),
- (Y.initial = IO),
- (Y.intersection = DO),
- (Y.intersectionBy = FO),
- (Y.intersectionWith = BO),
- (Y.invert = tE),
- (Y.invertBy = nE),
- (Y.invokeMap = N4),
- (Y.iteratee = Gg),
- (Y.keyBy = H4),
- (Y.keys = $r),
- (Y.keysIn = vo),
- (Y.map = Zf),
- (Y.mapKeys = oE),
- (Y.mapValues = iE),
- (Y.matches = JE),
- (Y.matchesProperty = eA),
- (Y.memoize = Jf),
- (Y.merge = aE),
- (Y.mergeWith = nw),
- (Y.method = tA),
- (Y.methodOf = nA),
- (Y.mixin = Xg),
- (Y.negate = eh),
- (Y.nthArg = oA),
- (Y.omit = lE),
- (Y.omitBy = sE),
- (Y.once = rz),
- (Y.orderBy = j4),
- (Y.over = iA),
- (Y.overArgs = oz),
- (Y.overEvery = aA),
- (Y.overSome = lA),
- (Y.partial = jg),
- (Y.partialRight = qx),
- (Y.partition = W4),
- (Y.pick = cE),
- (Y.pickBy = rw),
- (Y.property = dw),
- (Y.propertyOf = sA),
- (Y.pull = jO),
- (Y.pullAll = Dx),
- (Y.pullAllBy = WO),
- (Y.pullAllWith = UO),
- (Y.pullAt = VO),
- (Y.range = cA),
- (Y.rangeRight = dA),
- (Y.rearg = iz),
- (Y.reject = K4),
- (Y.remove = KO),
- (Y.rest = az),
- (Y.reverse = Lg),
- (Y.sampleSize = Y4),
- (Y.set = uE),
- (Y.setWith = fE),
- (Y.shuffle = G4),
- (Y.slice = qO),
- (Y.sortBy = Q4),
- (Y.sortedUniq = e4),
- (Y.sortedUniqBy = t4),
- (Y.split = IE),
- (Y.spread = lz),
- (Y.tail = n4),
- (Y.take = r4),
- (Y.takeRight = o4),
- (Y.takeRightWhile = i4),
- (Y.takeWhile = a4),
- (Y.tap = w4),
- (Y.throttle = sz),
- (Y.thru = Xf),
- (Y.toArray = Qx),
- (Y.toPairs = ow),
- (Y.toPairsIn = iw),
- (Y.toPath = pA),
- (Y.toPlainObject = ew),
- (Y.transform = hE),
- (Y.unary = cz),
- (Y.union = l4),
- (Y.unionBy = s4),
- (Y.unionWith = c4),
- (Y.uniq = d4),
- (Y.uniqBy = u4),
- (Y.uniqWith = f4),
- (Y.unset = vE),
- (Y.unzip = Ng),
- (Y.unzipWith = Fx),
- (Y.update = pE),
- (Y.updateWith = gE),
- (Y.values = rc),
- (Y.valuesIn = mE),
- (Y.without = h4),
- (Y.words = sw),
- (Y.wrap = dz),
- (Y.xor = v4),
- (Y.xorBy = p4),
- (Y.xorWith = g4),
- (Y.zip = m4),
- (Y.zipObject = b4),
- (Y.zipObjectDeep = y4),
- (Y.zipWith = x4),
- (Y.entries = ow),
- (Y.entriesIn = iw),
- (Y.extend = tw),
- (Y.extendWith = rh),
- Xg(Y, Y),
- (Y.add = mA),
- (Y.attempt = cw),
- (Y.camelCase = wE),
- (Y.capitalize = aw),
- (Y.ceil = bA),
- (Y.clamp = bE),
- (Y.clone = fz),
- (Y.cloneDeep = vz),
- (Y.cloneDeepWith = pz),
- (Y.cloneWith = hz),
- (Y.conformsTo = gz),
- (Y.deburr = lw),
- (Y.defaultTo = XE),
- (Y.divide = yA),
- (Y.endsWith = CE),
- (Y.eq = ii),
- (Y.escape = SE),
- (Y.escapeRegExp = _E),
- (Y.every = z4),
- (Y.find = A4),
- (Y.findIndex = Ex),
- (Y.findKey = Kz),
- (Y.findLast = M4),
- (Y.findLastIndex = Ax),
- (Y.findLastKey = qz),
- (Y.floor = xA),
- (Y.forEach = Lx),
- (Y.forEachRight = Nx),
- (Y.forIn = Yz),
- (Y.forInRight = Gz),
- (Y.forOwn = Xz),
- (Y.forOwnRight = Zz),
- (Y.get = Vg),
- (Y.gt = mz),
- (Y.gte = bz),
- (Y.has = eE),
- (Y.hasIn = Kg),
- (Y.head = Ix),
- (Y.identity = po),
- (Y.includes = L4),
- (Y.indexOf = MO),
- (Y.inRange = yE),
- (Y.invoke = rE),
- (Y.isArguments = Kl),
- (Y.isArray = Jt),
- (Y.isArrayBuffer = yz),
- (Y.isArrayLike = ho),
- (Y.isArrayLikeObject = ur),
- (Y.isBoolean = xz),
- (Y.isBuffer = Ua),
- (Y.isDate = wz),
- (Y.isElement = Cz),
- (Y.isEmpty = Sz),
- (Y.isEqual = _z),
- (Y.isEqualWith = Rz),
- (Y.isError = Wg),
- (Y.isFinite = Pz),
- (Y.isFunction = da),
- (Y.isInteger = Yx),
- (Y.isLength = th),
- (Y.isMap = Gx),
- (Y.isMatch = kz),
- (Y.isMatchWith = Tz),
- (Y.isNaN = $z),
- (Y.isNative = Oz),
- (Y.isNil = Ez),
- (Y.isNull = zz),
- (Y.isNumber = Xx),
- (Y.isObject = Jn),
- (Y.isObjectLike = ir),
- (Y.isPlainObject = kd),
- (Y.isRegExp = Ug),
- (Y.isSafeInteger = Az),
- (Y.isSet = Zx),
- (Y.isString = nh),
- (Y.isSymbol = Po),
- (Y.isTypedArray = nc),
- (Y.isUndefined = Mz),
- (Y.isWeakMap = Iz),
- (Y.isWeakSet = Dz),
- (Y.join = LO),
- (Y.kebabCase = RE),
- (Y.last = Vo),
- (Y.lastIndexOf = NO),
- (Y.lowerCase = PE),
- (Y.lowerFirst = kE),
- (Y.lt = Fz),
- (Y.lte = Bz),
- (Y.max = wA),
- (Y.maxBy = CA),
- (Y.mean = SA),
- (Y.meanBy = _A),
- (Y.min = RA),
- (Y.minBy = PA),
- (Y.stubArray = Qg),
- (Y.stubFalse = Jg),
- (Y.stubObject = uA),
- (Y.stubString = fA),
- (Y.stubTrue = hA),
- (Y.multiply = kA),
- (Y.nth = HO),
- (Y.noConflict = rA),
- (Y.noop = Zg),
- (Y.now = Qf),
- (Y.pad = TE),
- (Y.padEnd = $E),
- (Y.padStart = OE),
- (Y.parseInt = zE),
- (Y.random = xE),
- (Y.reduce = U4),
- (Y.reduceRight = V4),
- (Y.repeat = EE),
- (Y.replace = AE),
- (Y.result = dE),
- (Y.round = TA),
- (Y.runInContext = Te),
- (Y.sample = q4),
- (Y.size = X4),
- (Y.snakeCase = ME),
- (Y.some = Z4),
- (Y.sortedIndex = YO),
- (Y.sortedIndexBy = GO),
- (Y.sortedIndexOf = XO),
- (Y.sortedLastIndex = ZO),
- (Y.sortedLastIndexBy = QO),
- (Y.sortedLastIndexOf = JO),
- (Y.startCase = DE),
- (Y.startsWith = FE),
- (Y.subtract = $A),
- (Y.sum = OA),
- (Y.sumBy = zA),
- (Y.template = BE),
- (Y.times = vA),
- (Y.toFinite = ua),
- (Y.toInteger = en),
- (Y.toLength = Jx),
- (Y.toLower = LE),
- (Y.toNumber = Ko),
- (Y.toSafeInteger = Lz),
- (Y.toString = Mn),
- (Y.toUpper = NE),
- (Y.trim = HE),
- (Y.trimEnd = jE),
- (Y.trimStart = WE),
- (Y.truncate = UE),
- (Y.unescape = VE),
- (Y.uniqueId = gA),
- (Y.upperCase = KE),
- (Y.upperFirst = qg),
- (Y.each = Lx),
- (Y.eachRight = Nx),
- (Y.first = Ix),
- Xg(
- Y,
- (function () {
- var l = {};
- return (
- _i(Y, function (u, b) {
- In.call(Y.prototype, b) || (l[b] = u);
- }),
- l
- );
- })(),
- { chain: !1 }
- ),
- (Y.VERSION = r),
- de(
- [
- 'bind',
- 'bindKey',
- 'curry',
- 'curryRight',
- 'partial',
- 'partialRight'
- ],
- function (l) {
- Y[l].placeholder = Y;
- }
- ),
- de(['drop', 'take'], function (l, u) {
- (fn.prototype[l] = function (b) {
- b = b === n ? 1 : wr(en(b), 0);
- var $ = this.__filtered__ && !u ? new fn(this) : this.clone();
- return (
- $.__filtered__
- ? ($.__takeCount__ = Nr(b, $.__takeCount__))
- : $.__views__.push({
- size: Nr(b, Q),
- type: l + ($.__dir__ < 0 ? 'Right' : '')
- }),
- $
- );
- }),
- (fn.prototype[l + 'Right'] = function (b) {
- return this.reverse()[l](b).reverse();
- });
- }),
- de(['filter', 'map', 'takeWhile'], function (l, u) {
- var b = u + 1,
- $ = b == L || b == B;
- fn.prototype[l] = function (N) {
- var J = this.clone();
- return (
- J.__iteratees__.push({ iteratee: Ht(N, 3), type: b }),
- (J.__filtered__ = J.__filtered__ || $),
- J
- );
- };
- }),
- de(['head', 'last'], function (l, u) {
- var b = 'take' + (u ? 'Right' : '');
- fn.prototype[l] = function () {
- return this[b](1).value()[0];
- };
- }),
- de(['initial', 'tail'], function (l, u) {
- var b = 'drop' + (u ? '' : 'Right');
- fn.prototype[l] = function () {
- return this.__filtered__ ? new fn(this) : this[b](1);
- };
- }),
- (fn.prototype.compact = function () {
- return this.filter(po);
- }),
- (fn.prototype.find = function (l) {
- return this.filter(l).head();
- }),
- (fn.prototype.findLast = function (l) {
- return this.reverse().find(l);
- }),
- (fn.prototype.invokeMap = an(function (l, u) {
- return typeof l == 'function'
- ? new fn(this)
- : this.map(function (b) {
- return wd(b, l, u);
- });
- })),
- (fn.prototype.reject = function (l) {
- return this.filter(eh(Ht(l)));
- }),
- (fn.prototype.slice = function (l, u) {
- l = en(l);
- var b = this;
- return b.__filtered__ && (l > 0 || u < 0)
- ? new fn(b)
- : (l < 0 ? (b = b.takeRight(-l)) : l && (b = b.drop(l)),
- u !== n &&
- ((u = en(u)), (b = u < 0 ? b.dropRight(-u) : b.take(u - l))),
- b);
- }),
- (fn.prototype.takeRightWhile = function (l) {
- return this.reverse().takeWhile(l).reverse();
- }),
- (fn.prototype.toArray = function () {
- return this.take(Q);
- }),
- _i(fn.prototype, function (l, u) {
- var b = /^(?:filter|find|map|reject)|While$/.test(u),
- $ = /^(?:head|last)$/.test(u),
- N = Y[$ ? 'take' + (u == 'last' ? 'Right' : '') : u],
- J = $ || /^find/.test(u);
- N &&
- (Y.prototype[u] = function () {
- var ue = this.__wrapped__,
- ye = $ ? [1] : arguments,
- Oe = ue instanceof fn,
- qe = ye[0],
- Ye = Oe || Jt(ue),
- et = function (sn) {
- var yn = N.apply(Y, kn([sn], ye));
- return $ && mt ? yn[0] : yn;
- };
- Ye &&
- b &&
- typeof qe == 'function' &&
- qe.length != 1 &&
- (Oe = Ye = !1);
- var mt = this.__chain__,
- Tt = !!this.__actions__.length,
- Ut = J && !mt,
- rn = Oe && !Tt;
- if (!J && Ye) {
- ue = rn ? ue : new fn(this);
- var Vt = l.apply(ue, ye);
- return (
- Vt.__actions__.push({ func: Xf, args: [et], thisArg: n }),
- new jo(Vt, mt)
- );
- }
- return Ut && rn
- ? l.apply(this, ye)
- : ((Vt = this.thru(et)),
- Ut ? ($ ? Vt.value()[0] : Vt.value()) : Vt);
- });
- }),
- de(
- ['pop', 'push', 'shift', 'sort', 'splice', 'unshift'],
- function (l) {
- var u = Cf[l],
- b = /^(?:push|sort|unshift)$/.test(l) ? 'tap' : 'thru',
- $ = /^(?:pop|shift)$/.test(l);
- Y.prototype[l] = function () {
- var N = arguments;
- if ($ && !this.__chain__) {
- var J = this.value();
- return u.apply(Jt(J) ? J : [], N);
- }
- return this[b](function (ue) {
- return u.apply(Jt(ue) ? ue : [], N);
- });
- };
- }
- ),
- _i(fn.prototype, function (l, u) {
- var b = Y[u];
- if (b) {
- var $ = b.name + '';
- In.call(Zs, $) || (Zs[$] = []), Zs[$].push({ name: u, func: b });
- }
- }),
- (Zs[Wf(n, y).name] = [{ name: 'wrapper', func: n }]),
- (fn.prototype.clone = V$),
- (fn.prototype.reverse = K$),
- (fn.prototype.value = q$),
- (Y.prototype.at = C4),
- (Y.prototype.chain = S4),
- (Y.prototype.commit = _4),
- (Y.prototype.next = R4),
- (Y.prototype.plant = k4),
- (Y.prototype.reverse = T4),
- (Y.prototype.toJSON = Y.prototype.valueOf = Y.prototype.value = $4),
- (Y.prototype.first = Y.prototype.head),
- vd && (Y.prototype[vd] = P4),
- Y
- );
- },
- Ys = _$();
- ao ? (((ao.exports = Ys)._ = Ys), (Al._ = Ys)) : (dr._ = Ys);
- }).call(Nn);
- })(gre, l0);
- function Jm(e, t) {
- const n = parseInt(e, 16) + t,
- r = n > 255 ? 255 : n;
- return r.toString(16).length > 1 ? r.toString(16) : `0${r.toString(16)}`;
- }
- function s0(e, t) {
- return (
- (e = e.indexOf('#') >= 0 ? e.substring(1, e.length) : e),
- (t = Math.trunc((255 * t) / 100)),
- `#${Jm(e.substring(0, 2), t)}${Jm(e.substring(2, 4), t)}${Jm(
- e.substring(4, 6),
- t
- )}`
- );
- }
- const cle = (e, t) => {
- if (isNaN(e)) return '00:00';
- const n = Math.floor(e / 60)
- .toString()
- .padStart(2, '0'),
- r = Math.floor(e % 60)
- .toString()
- .padStart(2, '0');
- return t === 'cn' ? n + '分' + r + '秒' : n + ':' + r;
- },
- mre = ke({
- name: 'App',
- setup() {
- const e = I(() => {
- const t = xc.appTheme,
- n = s0(xc.appTheme, 6);
- return {
- common: {
- primaryColor: t,
- primaryColorHover: n,
- primaryColorPressed: n
- },
- LoadingBar: { colorLoading: t }
- };
- });
- return () =>
- hr(on, null, [
- hr(
- Ty,
- { locale: vN, themeOverrides: e.value, dateLocale: oH },
- {
- default: () => [
- hr(fne, null, { default: () => [hr(ST, null, null)] })
- ]
- }
- )
- ]);
- }
- }),
- bre = 'modulepreload',
- yre = function (e, t) {
- return new URL(e, t).href;
- },
- F2 = {},
- $o = function (t, n, r) {
- if (!n || n.length === 0) return t();
- const o = document.getElementsByTagName('link');
- return Promise.all(
- n.map(i => {
- if (((i = yre(i, r)), i in F2)) return;
- F2[i] = !0;
- const a = i.endsWith('.css'),
- s = a ? '[rel="stylesheet"]' : '';
- if (!!r)
- for (let f = o.length - 1; f >= 0; f--) {
- const v = o[f];
- if (v.href === i && (!a || v.rel === 'stylesheet')) return;
- }
- else if (document.querySelector(`link[href="${i}"]${s}`)) return;
- const d = document.createElement('link');
- if (
- ((d.rel = a ? 'stylesheet' : bre),
- a || ((d.as = 'script'), (d.crossOrigin = '')),
- (d.href = i),
- document.head.appendChild(d),
- a)
- )
- return new Promise((f, v) => {
- d.addEventListener('load', f),
- d.addEventListener('error', () =>
- v(new Error(`Unable to preload CSS for ${i}`))
- );
- });
- })
- ).then(() => t());
- },
- xre = [
- {
- name: 'login',
- path: '/login',
- component: () =>
- $o(
- () => import('./index-17cf45aa.js'),
- ['./index-17cf45aa.js', './index-b2565c53.css'],
- import.meta.url
- ),
- meta: { title: '登录', singleLayout: 'blank' }
- },
- {
- name: '/Layout',
- path: '/',
- component: () =>
- $o(
- () => import('./index-0c147288.js'),
- [
- './index-0c147288.js',
- './teacherIcon-b8e3946d.js',
- './index-ef1f6d7b.css'
- ],
- import.meta.url
- ),
- children: [
- {
- path: '',
- name: 'Home',
- component: () =>
- $o(
- () => import('./index-606efa8a.js'),
- [
- './index-606efa8a.js',
- './index-4b90fba4.js',
- './index-f397473a.js',
- './headerD-14ad9998.js',
- './teacherIcon-b8e3946d.js',
- './index-076f3ddd.css'
- ],
- import.meta.url
- )
- },
- {
- name: 'prepare-lessons',
- path: '/prepare-lessons',
- component: () =>
- $o(
- () => import('./index-d2ed1ee4.js'),
- [
- './index-d2ed1ee4.js',
- './Scrollbar-27c35a2f.js',
- './index-c8870a16.js',
- './index-73922017.js',
- './index-365803d4.css',
- './index-ee2cead7.css',
- './index-4b90fba4.js',
- './index-02390318.css'
- ],
- import.meta.url
- ),
- meta: { title: '备课', singleLayout: 'blank' }
- },
- {
- path: '/studentList',
- name: 'studentList',
- component: () =>
- $o(
- () => import('./index-9b517496.js'),
- [
- './index-9b517496.js',
- './index-587d95cf.js',
- './index-ba8fbd96.css',
- './index-f397473a.js',
- './index-11c15e80.css'
- ],
- import.meta.url
- ),
- meta: { title: '学生列表', singleLayout: 'blank' }
- },
- {
- path: '/classList',
- name: 'classList',
- component: () =>
- $o(
- () => import('./index-e5972df3.js'),
- [
- './index-e5972df3.js',
- './index-587d95cf.js',
- './index-ba8fbd96.css',
- './index-f397473a.js',
- './index-2a301af6.css'
- ],
- import.meta.url
- ),
- meta: { title: '班级列表', singleLayout: 'blank' }
- },
- {
- path: '/xiaoku-ai',
- name: 'xiaoku-ai',
- component: () =>
- $o(
- () => import('./index-58605040.js'),
- [
- './index-58605040.js',
- './index-a585796f.js',
- './index-c5a39e63.css',
- './index-8116e4d8.css'
- ],
- import.meta.url
- ),
- meta: { title: '小酷AI' }
- },
- {
- path: '/xiaoku-music',
- name: 'xiaoku-music',
- component: () =>
- $o(
- () => import('./index-9aabdf15.js'),
- [
- './index-9aabdf15.js',
- './index-a585796f.js',
- './index-c5a39e63.css',
- './data-c15517db.js',
- './index-73922017.js',
- './index-365803d4.css',
- './Slider-6165502a.js',
- './index-fe316892.css'
- ],
- import.meta.url
- ),
- meta: { title: '曲谱库' }
- },
- {
- path: '/setting',
- name: 'base-setting',
- component: () =>
- $o(
- () => import('./index-5de96e0e.js'),
- [
- './index-5de96e0e.js',
- './headerD-14ad9998.js',
- './teacherIcon-b8e3946d.js',
- './index-1dd2e5a7.css'
- ],
- import.meta.url
- ),
- meta: { title: '设置' }
- },
- {
- path: '/natural-resources',
- name: 'natural-resources',
- component: () =>
- $o(
- () => import('./index-31199588.js'),
- [
- './index-31199588.js',
- './index-f397473a.js',
- './index-c8870a16.js',
- './index-73922017.js',
- './index-365803d4.css',
- './index-ee2cead7.css',
- './index-a585796f.js',
- './index-c5a39e63.css',
- './data-c15517db.js',
- './index-ace660bb.css'
- ],
- import.meta.url
- ),
- meta: { title: '资源' }
- }
- ]
- },
- {
- name: 'attend-class',
- path: '/attend-class',
- component: () =>
- $o(
- () => import('./index-d690d64b.js'),
- [
- './index-d690d64b.js',
- './index-c8870a16.js',
- './index-73922017.js',
- './index-365803d4.css',
- './index-ee2cead7.css',
- './Slider-6165502a.js',
- './index-a585796f.js',
- './index-c5a39e63.css',
- './data-c15517db.js',
- './Scrollbar-27c35a2f.js',
- './index-bd16cdf0.css'
- ],
- import.meta.url
- ),
- meta: { title: '开始上课', singleLayout: 'blank' }
- },
- {
- name: '404',
- path: '/404',
- component: () =>
- $o(() => import('./index-1705439f.js'), [], import.meta.url),
- meta: { title: '未找到', singleLayout: 'blank' }
- },
- {
- name: 'not-found',
- path: '/:path(.*)*',
- component: () =>
- $o(() => import('./index-1705439f.js'), [], import.meta.url),
- meta: { title: '未找到', singleLayout: 'blank' }
- }
- ];
- var qv = {},
- wre = {
- get exports() {
- return qv;
- },
- set exports(e) {
- qv = e;
- }
- };
- function Cre(e) {
- throw new Error(
- 'Could not dynamically require "' +
- e +
- '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'
- );
- }
- var Yv = {},
- Sre = {
- get exports() {
- return Yv;
- },
- set exports(e) {
- Yv = e;
- }
- };
- const _re = {},
- Rre = Object.freeze(
- Object.defineProperty(
- { __proto__: null, default: _re },
- Symbol.toStringTag,
- { value: 'Module' }
- )
- ),
- _T = bY(Rre);
- var B2;
- function ta() {
- return (
- B2 ||
- ((B2 = 1),
- (function (e, t) {
- (function (n, r) {
- e.exports = r();
- })(Nn, function () {
- var n =
- n ||
- (function (r, o) {
- var i;
- if (
- (typeof window < 'u' && window.crypto && (i = window.crypto),
- typeof self < 'u' && self.crypto && (i = self.crypto),
- typeof globalThis < 'u' &&
- globalThis.crypto &&
- (i = globalThis.crypto),
- !i &&
- typeof window < 'u' &&
- window.msCrypto &&
- (i = window.msCrypto),
- !i && typeof Nn < 'u' && Nn.crypto && (i = Nn.crypto),
- !i && typeof Cre == 'function')
- )
- try {
- i = _T;
- } catch {}
- var a = function () {
- if (i) {
- if (typeof i.getRandomValues == 'function')
- try {
- return i.getRandomValues(new Uint32Array(1))[0];
- } catch {}
- if (typeof i.randomBytes == 'function')
- try {
- return i.randomBytes(4).readInt32LE();
- } catch {}
- }
- throw new Error(
- 'Native crypto module could not be used to get secure random number.'
- );
- },
- s =
- Object.create ||
- (function () {
- function C() {}
- return function (R) {
- var S;
- return (
- (C.prototype = R),
- (S = new C()),
- (C.prototype = null),
- S
- );
- };
- })(),
- c = {},
- d = (c.lib = {}),
- f = (d.Base = (function () {
- return {
- extend: function (C) {
- var R = s(this);
- return (
- C && R.mixIn(C),
- (!R.hasOwnProperty('init') || this.init === R.init) &&
- (R.init = function () {
- R.$super.init.apply(this, arguments);
- }),
- (R.init.prototype = R),
- (R.$super = this),
- R
- );
- },
- create: function () {
- var C = this.extend();
- return C.init.apply(C, arguments), C;
- },
- init: function () {},
- mixIn: function (C) {
- for (var R in C) C.hasOwnProperty(R) && (this[R] = C[R]);
- C.hasOwnProperty('toString') &&
- (this.toString = C.toString);
- },
- clone: function () {
- return this.init.prototype.extend(this);
- }
- };
- })()),
- v = (d.WordArray = f.extend({
- init: function (C, R) {
- (C = this.words = C || []),
- R != o
- ? (this.sigBytes = R)
- : (this.sigBytes = C.length * 4);
- },
- toString: function (C) {
- return (C || m).stringify(this);
- },
- concat: function (C) {
- var R = this.words,
- S = C.words,
- _ = this.sigBytes,
- P = C.sigBytes;
- if ((this.clamp(), _ % 4))
- for (var T = 0; T < P; T++) {
- var E = (S[T >>> 2] >>> (24 - (T % 4) * 8)) & 255;
- R[(_ + T) >>> 2] |= E << (24 - ((_ + T) % 4) * 8);
- }
- else
- for (var z = 0; z < P; z += 4)
- R[(_ + z) >>> 2] = S[z >>> 2];
- return (this.sigBytes += P), this;
- },
- clamp: function () {
- var C = this.words,
- R = this.sigBytes;
- (C[R >>> 2] &= 4294967295 << (32 - (R % 4) * 8)),
- (C.length = r.ceil(R / 4));
- },
- clone: function () {
- var C = f.clone.call(this);
- return (C.words = this.words.slice(0)), C;
- },
- random: function (C) {
- for (var R = [], S = 0; S < C; S += 4) R.push(a());
- return new v.init(R, C);
- }
- })),
- p = (c.enc = {}),
- m = (p.Hex = {
- stringify: function (C) {
- for (
- var R = C.words, S = C.sigBytes, _ = [], P = 0;
- P < S;
- P++
- ) {
- var T = (R[P >>> 2] >>> (24 - (P % 4) * 8)) & 255;
- _.push((T >>> 4).toString(16)),
- _.push((T & 15).toString(16));
- }
- return _.join('');
- },
- parse: function (C) {
- for (var R = C.length, S = [], _ = 0; _ < R; _ += 2)
- S[_ >>> 3] |=
- parseInt(C.substr(_, 2), 16) << (24 - (_ % 8) * 4);
- return new v.init(S, R / 2);
- }
- }),
- g = (p.Latin1 = {
- stringify: function (C) {
- for (
- var R = C.words, S = C.sigBytes, _ = [], P = 0;
- P < S;
- P++
- ) {
- var T = (R[P >>> 2] >>> (24 - (P % 4) * 8)) & 255;
- _.push(String.fromCharCode(T));
- }
- return _.join('');
- },
- parse: function (C) {
- for (var R = C.length, S = [], _ = 0; _ < R; _++)
- S[_ >>> 2] |=
- (C.charCodeAt(_) & 255) << (24 - (_ % 4) * 8);
- return new v.init(S, R);
- }
- }),
- w = (p.Utf8 = {
- stringify: function (C) {
- try {
- return decodeURIComponent(escape(g.stringify(C)));
- } catch {
- throw new Error('Malformed UTF-8 data');
- }
- },
- parse: function (C) {
- return g.parse(unescape(encodeURIComponent(C)));
- }
- }),
- x = (d.BufferedBlockAlgorithm = f.extend({
- reset: function () {
- (this._data = new v.init()), (this._nDataBytes = 0);
- },
- _append: function (C) {
- typeof C == 'string' && (C = w.parse(C)),
- this._data.concat(C),
- (this._nDataBytes += C.sigBytes);
- },
- _process: function (C) {
- var R,
- S = this._data,
- _ = S.words,
- P = S.sigBytes,
- T = this.blockSize,
- E = T * 4,
- z = P / E;
- C
- ? (z = r.ceil(z))
- : (z = r.max((z | 0) - this._minBufferSize, 0));
- var k = z * T,
- M = r.min(k * 4, P);
- if (k) {
- for (var A = 0; A < k; A += T) this._doProcessBlock(_, A);
- (R = _.splice(0, k)), (S.sigBytes -= M);
- }
- return new v.init(R, M);
- },
- clone: function () {
- var C = f.clone.call(this);
- return (C._data = this._data.clone()), C;
- },
- _minBufferSize: 0
- }));
- d.Hasher = x.extend({
- cfg: f.extend(),
- init: function (C) {
- (this.cfg = this.cfg.extend(C)), this.reset();
- },
- reset: function () {
- x.reset.call(this), this._doReset();
- },
- update: function (C) {
- return this._append(C), this._process(), this;
- },
- finalize: function (C) {
- C && this._append(C);
- var R = this._doFinalize();
- return R;
- },
- blockSize: 16,
- _createHelper: function (C) {
- return function (R, S) {
- return new C.init(S).finalize(R);
- };
- },
- _createHmacHelper: function (C) {
- return function (R, S) {
- return new y.HMAC.init(C, S).finalize(R);
- };
- }
- });
- var y = (c.algo = {});
- return c;
- })(Math);
- return n;
- });
- })(Sre)),
- Yv
- );
- }
- var Gv = {},
- Pre = {
- get exports() {
- return Gv;
- },
- set exports(e) {
- Gv = e;
- }
- },
- L2;
- function kre() {
- return (
- L2 ||
- ((L2 = 1),
- (function (e, t) {
- (function (n, r) {
- e.exports = r(ta());
- })(Nn, function (n) {
- return (
- (function () {
- var r = n,
- o = r.lib,
- i = o.WordArray,
- a = r.enc;
- a.Base64 = {
- stringify: function (c) {
- var d = c.words,
- f = c.sigBytes,
- v = this._map;
- c.clamp();
- for (var p = [], m = 0; m < f; m += 3)
- for (
- var g = (d[m >>> 2] >>> (24 - (m % 4) * 8)) & 255,
- w =
- (d[(m + 1) >>> 2] >>> (24 - ((m + 1) % 4) * 8)) & 255,
- x =
- (d[(m + 2) >>> 2] >>> (24 - ((m + 2) % 4) * 8)) & 255,
- y = (g << 16) | (w << 8) | x,
- C = 0;
- C < 4 && m + C * 0.75 < f;
- C++
- )
- p.push(v.charAt((y >>> (6 * (3 - C))) & 63));
- var R = v.charAt(64);
- if (R) for (; p.length % 4; ) p.push(R);
- return p.join('');
- },
- parse: function (c) {
- var d = c.length,
- f = this._map,
- v = this._reverseMap;
- if (!v) {
- v = this._reverseMap = [];
- for (var p = 0; p < f.length; p++) v[f.charCodeAt(p)] = p;
- }
- var m = f.charAt(64);
- if (m) {
- var g = c.indexOf(m);
- g !== -1 && (d = g);
- }
- return s(c, d, v);
- },
- _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
- };
- function s(c, d, f) {
- for (var v = [], p = 0, m = 0; m < d; m++)
- if (m % 4) {
- var g = f[c.charCodeAt(m - 1)] << ((m % 4) * 2),
- w = f[c.charCodeAt(m)] >>> (6 - (m % 4) * 2),
- x = g | w;
- (v[p >>> 2] |= x << (24 - (p % 4) * 8)), p++;
- }
- return i.create(v, p);
- }
- })(),
- n.enc.Base64
- );
- });
- })(Pre)),
- Gv
- );
- }
- var Xv = {},
- Tre = {
- get exports() {
- return Xv;
- },
- set exports(e) {
- Xv = e;
- }
- },
- N2;
- function $re() {
- return (
- N2 ||
- ((N2 = 1),
- (function (e, t) {
- (function (n, r) {
- e.exports = r(ta());
- })(Nn, function (n) {
- return (
- (function (r) {
- var o = n,
- i = o.lib,
- a = i.WordArray,
- s = i.Hasher,
- c = o.algo,
- d = [];
- (function () {
- for (var w = 0; w < 64; w++)
- d[w] = (r.abs(r.sin(w + 1)) * 4294967296) | 0;
- })();
- var f = (c.MD5 = s.extend({
- _doReset: function () {
- this._hash = new a.init([
- 1732584193, 4023233417, 2562383102, 271733878
- ]);
- },
- _doProcessBlock: function (w, x) {
- for (var y = 0; y < 16; y++) {
- var C = x + y,
- R = w[C];
- w[C] =
- (((R << 8) | (R >>> 24)) & 16711935) |
- (((R << 24) | (R >>> 8)) & 4278255360);
- }
- var S = this._hash.words,
- _ = w[x + 0],
- P = w[x + 1],
- T = w[x + 2],
- E = w[x + 3],
- z = w[x + 4],
- k = w[x + 5],
- M = w[x + 6],
- A = w[x + 7],
- D = w[x + 8],
- L = w[x + 9],
- H = w[x + 10],
- B = w[x + 11],
- q = w[x + 12],
- X = w[x + 13],
- te = w[x + 14],
- G = w[x + 15],
- Q = S[0],
- re = S[1],
- se = S[2],
- pe = S[3];
- (Q = v(Q, re, se, pe, _, 7, d[0])),
- (pe = v(pe, Q, re, se, P, 12, d[1])),
- (se = v(se, pe, Q, re, T, 17, d[2])),
- (re = v(re, se, pe, Q, E, 22, d[3])),
- (Q = v(Q, re, se, pe, z, 7, d[4])),
- (pe = v(pe, Q, re, se, k, 12, d[5])),
- (se = v(se, pe, Q, re, M, 17, d[6])),
- (re = v(re, se, pe, Q, A, 22, d[7])),
- (Q = v(Q, re, se, pe, D, 7, d[8])),
- (pe = v(pe, Q, re, se, L, 12, d[9])),
- (se = v(se, pe, Q, re, H, 17, d[10])),
- (re = v(re, se, pe, Q, B, 22, d[11])),
- (Q = v(Q, re, se, pe, q, 7, d[12])),
- (pe = v(pe, Q, re, se, X, 12, d[13])),
- (se = v(se, pe, Q, re, te, 17, d[14])),
- (re = v(re, se, pe, Q, G, 22, d[15])),
- (Q = p(Q, re, se, pe, P, 5, d[16])),
- (pe = p(pe, Q, re, se, M, 9, d[17])),
- (se = p(se, pe, Q, re, B, 14, d[18])),
- (re = p(re, se, pe, Q, _, 20, d[19])),
- (Q = p(Q, re, se, pe, k, 5, d[20])),
- (pe = p(pe, Q, re, se, H, 9, d[21])),
- (se = p(se, pe, Q, re, G, 14, d[22])),
- (re = p(re, se, pe, Q, z, 20, d[23])),
- (Q = p(Q, re, se, pe, L, 5, d[24])),
- (pe = p(pe, Q, re, se, te, 9, d[25])),
- (se = p(se, pe, Q, re, E, 14, d[26])),
- (re = p(re, se, pe, Q, D, 20, d[27])),
- (Q = p(Q, re, se, pe, X, 5, d[28])),
- (pe = p(pe, Q, re, se, T, 9, d[29])),
- (se = p(se, pe, Q, re, A, 14, d[30])),
- (re = p(re, se, pe, Q, q, 20, d[31])),
- (Q = m(Q, re, se, pe, k, 4, d[32])),
- (pe = m(pe, Q, re, se, D, 11, d[33])),
- (se = m(se, pe, Q, re, B, 16, d[34])),
- (re = m(re, se, pe, Q, te, 23, d[35])),
- (Q = m(Q, re, se, pe, P, 4, d[36])),
- (pe = m(pe, Q, re, se, z, 11, d[37])),
- (se = m(se, pe, Q, re, A, 16, d[38])),
- (re = m(re, se, pe, Q, H, 23, d[39])),
- (Q = m(Q, re, se, pe, X, 4, d[40])),
- (pe = m(pe, Q, re, se, _, 11, d[41])),
- (se = m(se, pe, Q, re, E, 16, d[42])),
- (re = m(re, se, pe, Q, M, 23, d[43])),
- (Q = m(Q, re, se, pe, L, 4, d[44])),
- (pe = m(pe, Q, re, se, q, 11, d[45])),
- (se = m(se, pe, Q, re, G, 16, d[46])),
- (re = m(re, se, pe, Q, T, 23, d[47])),
- (Q = g(Q, re, se, pe, _, 6, d[48])),
- (pe = g(pe, Q, re, se, A, 10, d[49])),
- (se = g(se, pe, Q, re, te, 15, d[50])),
- (re = g(re, se, pe, Q, k, 21, d[51])),
- (Q = g(Q, re, se, pe, q, 6, d[52])),
- (pe = g(pe, Q, re, se, E, 10, d[53])),
- (se = g(se, pe, Q, re, H, 15, d[54])),
- (re = g(re, se, pe, Q, P, 21, d[55])),
- (Q = g(Q, re, se, pe, D, 6, d[56])),
- (pe = g(pe, Q, re, se, G, 10, d[57])),
- (se = g(se, pe, Q, re, M, 15, d[58])),
- (re = g(re, se, pe, Q, X, 21, d[59])),
- (Q = g(Q, re, se, pe, z, 6, d[60])),
- (pe = g(pe, Q, re, se, B, 10, d[61])),
- (se = g(se, pe, Q, re, T, 15, d[62])),
- (re = g(re, se, pe, Q, L, 21, d[63])),
- (S[0] = (S[0] + Q) | 0),
- (S[1] = (S[1] + re) | 0),
- (S[2] = (S[2] + se) | 0),
- (S[3] = (S[3] + pe) | 0);
- },
- _doFinalize: function () {
- var w = this._data,
- x = w.words,
- y = this._nDataBytes * 8,
- C = w.sigBytes * 8;
- x[C >>> 5] |= 128 << (24 - (C % 32));
- var R = r.floor(y / 4294967296),
- S = y;
- (x[(((C + 64) >>> 9) << 4) + 15] =
- (((R << 8) | (R >>> 24)) & 16711935) |
- (((R << 24) | (R >>> 8)) & 4278255360)),
- (x[(((C + 64) >>> 9) << 4) + 14] =
- (((S << 8) | (S >>> 24)) & 16711935) |
- (((S << 24) | (S >>> 8)) & 4278255360)),
- (w.sigBytes = (x.length + 1) * 4),
- this._process();
- for (var _ = this._hash, P = _.words, T = 0; T < 4; T++) {
- var E = P[T];
- P[T] =
- (((E << 8) | (E >>> 24)) & 16711935) |
- (((E << 24) | (E >>> 8)) & 4278255360);
- }
- return _;
- },
- clone: function () {
- var w = s.clone.call(this);
- return (w._hash = this._hash.clone()), w;
- }
- }));
- function v(w, x, y, C, R, S, _) {
- var P = w + ((x & y) | (~x & C)) + R + _;
- return ((P << S) | (P >>> (32 - S))) + x;
- }
- function p(w, x, y, C, R, S, _) {
- var P = w + ((x & C) | (y & ~C)) + R + _;
- return ((P << S) | (P >>> (32 - S))) + x;
- }
- function m(w, x, y, C, R, S, _) {
- var P = w + (x ^ y ^ C) + R + _;
- return ((P << S) | (P >>> (32 - S))) + x;
- }
- function g(w, x, y, C, R, S, _) {
- var P = w + (y ^ (x | ~C)) + R + _;
- return ((P << S) | (P >>> (32 - S))) + x;
- }
- (o.MD5 = s._createHelper(f)),
- (o.HmacMD5 = s._createHmacHelper(f));
- })(Math),
- n.MD5
- );
- });
- })(Tre)),
- Xv
- );
- }
- var Zv = {},
- Ore = {
- get exports() {
- return Zv;
- },
- set exports(e) {
- Zv = e;
- }
- },
- Qv = {},
- zre = {
- get exports() {
- return Qv;
- },
- set exports(e) {
- Qv = e;
- }
- },
- H2;
- function Ere() {
- return (
- H2 ||
- ((H2 = 1),
- (function (e, t) {
- (function (n, r) {
- e.exports = r(ta());
- })(Nn, function (n) {
- return (
- (function () {
- var r = n,
- o = r.lib,
- i = o.WordArray,
- a = o.Hasher,
- s = r.algo,
- c = [],
- d = (s.SHA1 = a.extend({
- _doReset: function () {
- this._hash = new i.init([
- 1732584193, 4023233417, 2562383102, 271733878, 3285377520
- ]);
- },
- _doProcessBlock: function (f, v) {
- for (
- var p = this._hash.words,
- m = p[0],
- g = p[1],
- w = p[2],
- x = p[3],
- y = p[4],
- C = 0;
- C < 80;
- C++
- ) {
- if (C < 16) c[C] = f[v + C] | 0;
- else {
- var R = c[C - 3] ^ c[C - 8] ^ c[C - 14] ^ c[C - 16];
- c[C] = (R << 1) | (R >>> 31);
- }
- var S = ((m << 5) | (m >>> 27)) + y + c[C];
- C < 20
- ? (S += ((g & w) | (~g & x)) + 1518500249)
- : C < 40
- ? (S += (g ^ w ^ x) + 1859775393)
- : C < 60
- ? (S += ((g & w) | (g & x) | (w & x)) - 1894007588)
- : (S += (g ^ w ^ x) - 899497514),
- (y = x),
- (x = w),
- (w = (g << 30) | (g >>> 2)),
- (g = m),
- (m = S);
- }
- (p[0] = (p[0] + m) | 0),
- (p[1] = (p[1] + g) | 0),
- (p[2] = (p[2] + w) | 0),
- (p[3] = (p[3] + x) | 0),
- (p[4] = (p[4] + y) | 0);
- },
- _doFinalize: function () {
- var f = this._data,
- v = f.words,
- p = this._nDataBytes * 8,
- m = f.sigBytes * 8;
- return (
- (v[m >>> 5] |= 128 << (24 - (m % 32))),
- (v[(((m + 64) >>> 9) << 4) + 14] = Math.floor(
- p / 4294967296
- )),
- (v[(((m + 64) >>> 9) << 4) + 15] = p),
- (f.sigBytes = v.length * 4),
- this._process(),
- this._hash
- );
- },
- clone: function () {
- var f = a.clone.call(this);
- return (f._hash = this._hash.clone()), f;
- }
- }));
- (r.SHA1 = a._createHelper(d)),
- (r.HmacSHA1 = a._createHmacHelper(d));
- })(),
- n.SHA1
- );
- });
- })(zre)),
- Qv
- );
- }
- var Jv = {},
- Are = {
- get exports() {
- return Jv;
- },
- set exports(e) {
- Jv = e;
- }
- },
- j2;
- function Mre() {
- return (
- j2 ||
- ((j2 = 1),
- (function (e, t) {
- (function (n, r) {
- e.exports = r(ta());
- })(Nn, function (n) {
- (function () {
- var r = n,
- o = r.lib,
- i = o.Base,
- a = r.enc,
- s = a.Utf8,
- c = r.algo;
- c.HMAC = i.extend({
- init: function (d, f) {
- (d = this._hasher = new d.init()),
- typeof f == 'string' && (f = s.parse(f));
- var v = d.blockSize,
- p = v * 4;
- f.sigBytes > p && (f = d.finalize(f)), f.clamp();
- for (
- var m = (this._oKey = f.clone()),
- g = (this._iKey = f.clone()),
- w = m.words,
- x = g.words,
- y = 0;
- y < v;
- y++
- )
- (w[y] ^= 1549556828), (x[y] ^= 909522486);
- (m.sigBytes = g.sigBytes = p), this.reset();
- },
- reset: function () {
- var d = this._hasher;
- d.reset(), d.update(this._iKey);
- },
- update: function (d) {
- return this._hasher.update(d), this;
- },
- finalize: function (d) {
- var f = this._hasher,
- v = f.finalize(d);
- f.reset();
- var p = f.finalize(this._oKey.clone().concat(v));
- return p;
- }
- });
- })();
- });
- })(Are)),
- Jv
- );
- }
- var W2;
- function RT() {
- return (
- W2 ||
- ((W2 = 1),
- (function (e, t) {
- (function (n, r, o) {
- e.exports = r(ta(), Ere(), Mre());
- })(Nn, function (n) {
- return (
- (function () {
- var r = n,
- o = r.lib,
- i = o.Base,
- a = o.WordArray,
- s = r.algo,
- c = s.MD5,
- d = (s.EvpKDF = i.extend({
- cfg: i.extend({
- keySize: 128 / 32,
- hasher: c,
- iterations: 1
- }),
- init: function (f) {
- this.cfg = this.cfg.extend(f);
- },
- compute: function (f, v) {
- for (
- var p,
- m = this.cfg,
- g = m.hasher.create(),
- w = a.create(),
- x = w.words,
- y = m.keySize,
- C = m.iterations;
- x.length < y;
- ) {
- p && g.update(p),
- (p = g.update(f).finalize(v)),
- g.reset();
- for (var R = 1; R < C; R++)
- (p = g.finalize(p)), g.reset();
- w.concat(p);
- }
- return (w.sigBytes = y * 4), w;
- }
- }));
- r.EvpKDF = function (f, v, p) {
- return d.create(p).compute(f, v);
- };
- })(),
- n.EvpKDF
- );
- });
- })(Ore)),
- Zv
- );
- }
- var ep = {},
- Ire = {
- get exports() {
- return ep;
- },
- set exports(e) {
- ep = e;
- }
- },
- U2;
- function n1() {
- return (
- U2 ||
- ((U2 = 1),
- (function (e, t) {
- (function (n, r, o) {
- e.exports = r(ta(), RT());
- })(Nn, function (n) {
- n.lib.Cipher ||
- (function (r) {
- var o = n,
- i = o.lib,
- a = i.Base,
- s = i.WordArray,
- c = i.BufferedBlockAlgorithm,
- d = o.enc;
- d.Utf8;
- var f = d.Base64,
- v = o.algo,
- p = v.EvpKDF,
- m = (i.Cipher = c.extend({
- cfg: a.extend(),
- createEncryptor: function (k, M) {
- return this.create(this._ENC_XFORM_MODE, k, M);
- },
- createDecryptor: function (k, M) {
- return this.create(this._DEC_XFORM_MODE, k, M);
- },
- init: function (k, M, A) {
- (this.cfg = this.cfg.extend(A)),
- (this._xformMode = k),
- (this._key = M),
- this.reset();
- },
- reset: function () {
- c.reset.call(this), this._doReset();
- },
- process: function (k) {
- return this._append(k), this._process();
- },
- finalize: function (k) {
- k && this._append(k);
- var M = this._doFinalize();
- return M;
- },
- keySize: 128 / 32,
- ivSize: 128 / 32,
- _ENC_XFORM_MODE: 1,
- _DEC_XFORM_MODE: 2,
- _createHelper: (function () {
- function k(M) {
- return typeof M == 'string' ? z : P;
- }
- return function (M) {
- return {
- encrypt: function (A, D, L) {
- return k(D).encrypt(M, A, D, L);
- },
- decrypt: function (A, D, L) {
- return k(D).decrypt(M, A, D, L);
- }
- };
- };
- })()
- }));
- i.StreamCipher = m.extend({
- _doFinalize: function () {
- var k = this._process(!0);
- return k;
- },
- blockSize: 1
- });
- var g = (o.mode = {}),
- w = (i.BlockCipherMode = a.extend({
- createEncryptor: function (k, M) {
- return this.Encryptor.create(k, M);
- },
- createDecryptor: function (k, M) {
- return this.Decryptor.create(k, M);
- },
- init: function (k, M) {
- (this._cipher = k), (this._iv = M);
- }
- })),
- x = (g.CBC = (function () {
- var k = w.extend();
- (k.Encryptor = k.extend({
- processBlock: function (A, D) {
- var L = this._cipher,
- H = L.blockSize;
- M.call(this, A, D, H),
- L.encryptBlock(A, D),
- (this._prevBlock = A.slice(D, D + H));
- }
- })),
- (k.Decryptor = k.extend({
- processBlock: function (A, D) {
- var L = this._cipher,
- H = L.blockSize,
- B = A.slice(D, D + H);
- L.decryptBlock(A, D),
- M.call(this, A, D, H),
- (this._prevBlock = B);
- }
- }));
- function M(A, D, L) {
- var H,
- B = this._iv;
- B ? ((H = B), (this._iv = r)) : (H = this._prevBlock);
- for (var q = 0; q < L; q++) A[D + q] ^= H[q];
- }
- return k;
- })()),
- y = (o.pad = {}),
- C = (y.Pkcs7 = {
- pad: function (k, M) {
- for (
- var A = M * 4,
- D = A - (k.sigBytes % A),
- L = (D << 24) | (D << 16) | (D << 8) | D,
- H = [],
- B = 0;
- B < D;
- B += 4
- )
- H.push(L);
- var q = s.create(H, D);
- k.concat(q);
- },
- unpad: function (k) {
- var M = k.words[(k.sigBytes - 1) >>> 2] & 255;
- k.sigBytes -= M;
- }
- });
- i.BlockCipher = m.extend({
- cfg: m.cfg.extend({ mode: x, padding: C }),
- reset: function () {
- var k;
- m.reset.call(this);
- var M = this.cfg,
- A = M.iv,
- D = M.mode;
- this._xformMode == this._ENC_XFORM_MODE
- ? (k = D.createEncryptor)
- : ((k = D.createDecryptor), (this._minBufferSize = 1)),
- this._mode && this._mode.__creator == k
- ? this._mode.init(this, A && A.words)
- : ((this._mode = k.call(D, this, A && A.words)),
- (this._mode.__creator = k));
- },
- _doProcessBlock: function (k, M) {
- this._mode.processBlock(k, M);
- },
- _doFinalize: function () {
- var k,
- M = this.cfg.padding;
- return (
- this._xformMode == this._ENC_XFORM_MODE
- ? (M.pad(this._data, this.blockSize),
- (k = this._process(!0)))
- : ((k = this._process(!0)), M.unpad(k)),
- k
- );
- },
- blockSize: 128 / 32
- });
- var R = (i.CipherParams = a.extend({
- init: function (k) {
- this.mixIn(k);
- },
- toString: function (k) {
- return (k || this.formatter).stringify(this);
- }
- })),
- S = (o.format = {}),
- _ = (S.OpenSSL = {
- stringify: function (k) {
- var M,
- A = k.ciphertext,
- D = k.salt;
- return (
- D
- ? (M = s
- .create([1398893684, 1701076831])
- .concat(D)
- .concat(A))
- : (M = A),
- M.toString(f)
- );
- },
- parse: function (k) {
- var M,
- A = f.parse(k),
- D = A.words;
- return (
- D[0] == 1398893684 &&
- D[1] == 1701076831 &&
- ((M = s.create(D.slice(2, 4))),
- D.splice(0, 4),
- (A.sigBytes -= 16)),
- R.create({ ciphertext: A, salt: M })
- );
- }
- }),
- P = (i.SerializableCipher = a.extend({
- cfg: a.extend({ format: _ }),
- encrypt: function (k, M, A, D) {
- D = this.cfg.extend(D);
- var L = k.createEncryptor(A, D),
- H = L.finalize(M),
- B = L.cfg;
- return R.create({
- ciphertext: H,
- key: A,
- iv: B.iv,
- algorithm: k,
- mode: B.mode,
- padding: B.padding,
- blockSize: k.blockSize,
- formatter: D.format
- });
- },
- decrypt: function (k, M, A, D) {
- (D = this.cfg.extend(D)), (M = this._parse(M, D.format));
- var L = k.createDecryptor(A, D).finalize(M.ciphertext);
- return L;
- },
- _parse: function (k, M) {
- return typeof k == 'string' ? M.parse(k, this) : k;
- }
- })),
- T = (o.kdf = {}),
- E = (T.OpenSSL = {
- execute: function (k, M, A, D) {
- D || (D = s.random(64 / 8));
- var L = p.create({ keySize: M + A }).compute(k, D),
- H = s.create(L.words.slice(M), A * 4);
- return (
- (L.sigBytes = M * 4), R.create({ key: L, iv: H, salt: D })
- );
- }
- }),
- z = (i.PasswordBasedCipher = P.extend({
- cfg: P.cfg.extend({ kdf: E }),
- encrypt: function (k, M, A, D) {
- D = this.cfg.extend(D);
- var L = D.kdf.execute(A, k.keySize, k.ivSize);
- D.iv = L.iv;
- var H = P.encrypt.call(this, k, M, L.key, D);
- return H.mixIn(L), H;
- },
- decrypt: function (k, M, A, D) {
- (D = this.cfg.extend(D)), (M = this._parse(M, D.format));
- var L = D.kdf.execute(A, k.keySize, k.ivSize, M.salt);
- D.iv = L.iv;
- var H = P.decrypt.call(this, k, M, L.key, D);
- return H;
- }
- }));
- })();
- });
- })(Ire)),
- ep
- );
- }
- (function (e, t) {
- (function (n, r, o) {
- e.exports = r(ta(), kre(), $re(), RT(), n1());
- })(Nn, function (n) {
- return (
- (function () {
- var r = n,
- o = r.lib,
- i = o.BlockCipher,
- a = r.algo,
- s = [],
- c = [],
- d = [],
- f = [],
- v = [],
- p = [],
- m = [],
- g = [],
- w = [],
- x = [];
- (function () {
- for (var R = [], S = 0; S < 256; S++)
- S < 128 ? (R[S] = S << 1) : (R[S] = (S << 1) ^ 283);
- for (var _ = 0, P = 0, S = 0; S < 256; S++) {
- var T = P ^ (P << 1) ^ (P << 2) ^ (P << 3) ^ (P << 4);
- (T = (T >>> 8) ^ (T & 255) ^ 99), (s[_] = T), (c[T] = _);
- var E = R[_],
- z = R[E],
- k = R[z],
- M = (R[T] * 257) ^ (T * 16843008);
- (d[_] = (M << 24) | (M >>> 8)),
- (f[_] = (M << 16) | (M >>> 16)),
- (v[_] = (M << 8) | (M >>> 24)),
- (p[_] = M);
- var M = (k * 16843009) ^ (z * 65537) ^ (E * 257) ^ (_ * 16843008);
- (m[T] = (M << 24) | (M >>> 8)),
- (g[T] = (M << 16) | (M >>> 16)),
- (w[T] = (M << 8) | (M >>> 24)),
- (x[T] = M),
- _ ? ((_ = E ^ R[R[R[k ^ E]]]), (P ^= R[R[P]])) : (_ = P = 1);
- }
- })();
- var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
- C = (a.AES = i.extend({
- _doReset: function () {
- var R;
- if (!(this._nRounds && this._keyPriorReset === this._key)) {
- for (
- var S = (this._keyPriorReset = this._key),
- _ = S.words,
- P = S.sigBytes / 4,
- T = (this._nRounds = P + 6),
- E = (T + 1) * 4,
- z = (this._keySchedule = []),
- k = 0;
- k < E;
- k++
- )
- k < P
- ? (z[k] = _[k])
- : ((R = z[k - 1]),
- k % P
- ? P > 6 &&
- k % P == 4 &&
- (R =
- (s[R >>> 24] << 24) |
- (s[(R >>> 16) & 255] << 16) |
- (s[(R >>> 8) & 255] << 8) |
- s[R & 255])
- : ((R = (R << 8) | (R >>> 24)),
- (R =
- (s[R >>> 24] << 24) |
- (s[(R >>> 16) & 255] << 16) |
- (s[(R >>> 8) & 255] << 8) |
- s[R & 255]),
- (R ^= y[(k / P) | 0] << 24)),
- (z[k] = z[k - P] ^ R));
- for (var M = (this._invKeySchedule = []), A = 0; A < E; A++) {
- var k = E - A;
- if (A % 4) var R = z[k];
- else var R = z[k - 4];
- A < 4 || k <= 4
- ? (M[A] = R)
- : (M[A] =
- m[s[R >>> 24]] ^
- g[s[(R >>> 16) & 255]] ^
- w[s[(R >>> 8) & 255]] ^
- x[s[R & 255]]);
- }
- }
- },
- encryptBlock: function (R, S) {
- this._doCryptBlock(R, S, this._keySchedule, d, f, v, p, s);
- },
- decryptBlock: function (R, S) {
- var _ = R[S + 1];
- (R[S + 1] = R[S + 3]),
- (R[S + 3] = _),
- this._doCryptBlock(R, S, this._invKeySchedule, m, g, w, x, c);
- var _ = R[S + 1];
- (R[S + 1] = R[S + 3]), (R[S + 3] = _);
- },
- _doCryptBlock: function (R, S, _, P, T, E, z, k) {
- for (
- var M = this._nRounds,
- A = R[S] ^ _[0],
- D = R[S + 1] ^ _[1],
- L = R[S + 2] ^ _[2],
- H = R[S + 3] ^ _[3],
- B = 4,
- q = 1;
- q < M;
- q++
- ) {
- var X =
- P[A >>> 24] ^
- T[(D >>> 16) & 255] ^
- E[(L >>> 8) & 255] ^
- z[H & 255] ^
- _[B++],
- te =
- P[D >>> 24] ^
- T[(L >>> 16) & 255] ^
- E[(H >>> 8) & 255] ^
- z[A & 255] ^
- _[B++],
- G =
- P[L >>> 24] ^
- T[(H >>> 16) & 255] ^
- E[(A >>> 8) & 255] ^
- z[D & 255] ^
- _[B++],
- Q =
- P[H >>> 24] ^
- T[(A >>> 16) & 255] ^
- E[(D >>> 8) & 255] ^
- z[L & 255] ^
- _[B++];
- (A = X), (D = te), (L = G), (H = Q);
- }
- var X =
- ((k[A >>> 24] << 24) |
- (k[(D >>> 16) & 255] << 16) |
- (k[(L >>> 8) & 255] << 8) |
- k[H & 255]) ^
- _[B++],
- te =
- ((k[D >>> 24] << 24) |
- (k[(L >>> 16) & 255] << 16) |
- (k[(H >>> 8) & 255] << 8) |
- k[A & 255]) ^
- _[B++],
- G =
- ((k[L >>> 24] << 24) |
- (k[(H >>> 16) & 255] << 16) |
- (k[(A >>> 8) & 255] << 8) |
- k[D & 255]) ^
- _[B++],
- Q =
- ((k[H >>> 24] << 24) |
- (k[(A >>> 16) & 255] << 16) |
- (k[(D >>> 8) & 255] << 8) |
- k[L & 255]) ^
- _[B++];
- (R[S] = X), (R[S + 1] = te), (R[S + 2] = G), (R[S + 3] = Q);
- },
- keySize: 256 / 32
- }));
- r.AES = i._createHelper(C);
- })(),
- n.AES
- );
- });
- })(wre);
- var au = {},
- Dre = {
- get exports() {
- return au;
- },
- set exports(e) {
- au = e;
- }
- };
- (function (e, t) {
- (function (n, r) {
- e.exports = r(ta());
- })(Nn, function (n) {
- return n.enc.Utf8;
- });
- })(Dre);
- var c0 = {},
- Fre = {
- get exports() {
- return c0;
- },
- set exports(e) {
- c0 = e;
- }
- };
- (function (e, t) {
- (function (n, r, o) {
- e.exports = r(ta(), n1());
- })(Nn, function (n) {
- return n.pad.Pkcs7;
- });
- })(Fre);
- var d0 = {},
- Bre = {
- get exports() {
- return d0;
- },
- set exports(e) {
- d0 = e;
- }
- };
- (function (e, t) {
- (function (n, r, o) {
- e.exports = r(ta(), n1());
- })(Nn, function (n) {
- return (
- (n.mode.ECB = (function () {
- var r = n.lib.BlockCipherMode.extend();
- return (
- (r.Encryptor = r.extend({
- processBlock: function (o, i) {
- this._cipher.encryptBlock(o, i);
- }
- })),
- (r.Decryptor = r.extend({
- processBlock: function (o, i) {
- this._cipher.decryptBlock(o, i);
- }
- })),
- r
- );
- })()),
- n.mode.ECB
- );
- });
- })(Bre);
- const Lre = '1111111111000000',
- Nre = '0000001111111111';
- class Hre {
- constructor(t = Lre, n = Nre) {
- Td(this, 'key');
- Td(this, 'iv');
- (this.key = au.parse(t)), (this.iv = au.parse(n));
- }
- get getOptions() {
- return { mode: d0, padding: c0, iv: this.iv };
- }
- encryptByAES(t) {
- return qv.encrypt(t, this.key, this.getOptions).toString();
- }
- decryptByAES(t) {
- return qv.decrypt(t, this.key, this.getOptions).toString(au);
- }
- }
- var jre = !1;
- /*!
- * pinia v2.1.4
- * (c) 2023 Eduardo San Martin Morote
- * @license MIT
- */ let PT;
- const Up = e => (PT = e),
- kT = Symbol();
- function u0(e) {
- return (
- e &&
- typeof e == 'object' &&
- Object.prototype.toString.call(e) === '[object Object]' &&
- typeof e.toJSON != 'function'
- );
- }
- var lu;
- (function (e) {
- (e.direct = 'direct'),
- (e.patchObject = 'patch object'),
- (e.patchFunction = 'patch function');
- })(lu || (lu = {}));
- function Wre() {
- const e = k_(!0),
- t = e.run(() => Z({}));
- let n = [],
- r = [];
- const o = Tc({
- install(i) {
- Up(o),
- (o._a = i),
- i.provide(kT, o),
- (i.config.globalProperties.$pinia = o),
- r.forEach(a => n.push(a)),
- (r = []);
- },
- use(i) {
- return !this._a && !jre ? r.push(i) : n.push(i), this;
- },
- _p: n,
- _a: null,
- _e: e,
- _s: new Map(),
- state: t
- });
- return o;
- }
- const TT = () => {};
- function V2(e, t, n, r = TT) {
- e.push(t);
- const o = () => {
- const i = e.indexOf(t);
- i > -1 && (e.splice(i, 1), r());
- };
- return !n && T_() && QA(o), o;
- }
- function vc(e, ...t) {
- e.slice().forEach(n => {
- n(...t);
- });
- }
- const Ure = e => e();
- function f0(e, t) {
- e instanceof Map && t instanceof Map && t.forEach((n, r) => e.set(r, n)),
- e instanceof Set && t instanceof Set && t.forEach(e.add, e);
- for (const n in t) {
- if (!t.hasOwnProperty(n)) continue;
- const r = t[n],
- o = e[n];
- u0(o) && u0(r) && e.hasOwnProperty(n) && !ar(r) && !al(r)
- ? (e[n] = f0(o, r))
- : (e[n] = r);
- }
- return e;
- }
- const Vre = Symbol();
- function Kre(e) {
- return !u0(e) || !e.hasOwnProperty(Vre);
- }
- const { assign: Ja } = Object;
- function qre(e) {
- return !!(ar(e) && e.effect);
- }
- function Yre(e, t, n, r) {
- const { state: o, actions: i, getters: a } = t,
- s = n.state.value[e];
- let c;
- function d() {
- s || (n.state.value[e] = o ? o() : {});
- const f = O6(n.state.value[e]);
- return Ja(
- f,
- i,
- Object.keys(a || {}).reduce(
- (v, p) => (
- (v[p] = Tc(
- I(() => {
- Up(n);
- const m = n._s.get(e);
- return a[p].call(m, m);
- })
- )),
- v
- ),
- {}
- )
- );
- }
- return (c = $T(e, d, t, n, r, !0)), c;
- }
- function $T(e, t, n = {}, r, o, i) {
- let a;
- const s = Ja({ actions: {} }, n),
- c = { deep: !0 };
- let d,
- f,
- v = [],
- p = [],
- m;
- const g = r.state.value[e];
- !i && !g && (r.state.value[e] = {}), Z({});
- let w;
- function x(E) {
- let z;
- (d = f = !1),
- typeof E == 'function'
- ? (E(r.state.value[e]),
- (z = { type: lu.patchFunction, storeId: e, events: m }))
- : (f0(r.state.value[e], E),
- (z = { type: lu.patchObject, payload: E, storeId: e, events: m }));
- const k = (w = Symbol());
- mn().then(() => {
- w === k && (d = !0);
- }),
- (f = !0),
- vc(v, z, r.state.value[e]);
- }
- const y = i
- ? function () {
- const { state: z } = n,
- k = z ? z() : {};
- this.$patch(M => {
- Ja(M, k);
- });
- }
- : TT;
- function C() {
- a.stop(), (v = []), (p = []), r._s.delete(e);
- }
- function R(E, z) {
- return function () {
- Up(r);
- const k = Array.from(arguments),
- M = [],
- A = [];
- function D(B) {
- M.push(B);
- }
- function L(B) {
- A.push(B);
- }
- vc(p, { args: k, name: E, store: _, after: D, onError: L });
- let H;
- try {
- H = z.apply(this && this.$id === e ? this : _, k);
- } catch (B) {
- throw (vc(A, B), B);
- }
- return H instanceof Promise
- ? H.then(B => (vc(M, B), B)).catch(B => (vc(A, B), Promise.reject(B)))
- : (vc(M, H), H);
- };
- }
- const S = {
- _p: r,
- $id: e,
- $onAction: V2.bind(null, p),
- $patch: x,
- $reset: y,
- $subscribe(E, z = {}) {
- const k = V2(v, E, z.detached, () => M()),
- M = a.run(() =>
- $t(
- () => r.state.value[e],
- A => {
- (z.flush === 'sync' ? f : d) &&
- E({ storeId: e, type: lu.direct, events: m }, A);
- },
- Ja({}, c, z)
- )
- );
- return k;
- },
- $dispose: C
- },
- _ = Qi(S);
- r._s.set(e, _);
- const P = (r._a && r._a.runWithContext) || Ure,
- T = r._e.run(() => ((a = k_()), P(() => a.run(t))));
- for (const E in T) {
- const z = T[E];
- if ((ar(z) && !qre(z)) || al(z))
- i ||
- (g && Kre(z) && (ar(z) ? (z.value = g[E]) : f0(z, g[E])),
- (r.state.value[e][E] = z));
- else if (typeof z == 'function') {
- const k = R(E, z);
- (T[E] = k), (s.actions[E] = z);
- }
- }
- return (
- Ja(_, T),
- Ja(xn(_), T),
- Object.defineProperty(_, '$state', {
- get: () => r.state.value[e],
- set: E => {
- x(z => {
- Ja(z, E);
- });
- }
- }),
- r._p.forEach(E => {
- Ja(
- _,
- a.run(() => E({ store: _, app: r._a, pinia: r, options: s }))
- );
- }),
- g && i && n.hydrate && n.hydrate(_.$state, g),
- (d = !0),
- (f = !0),
- _
- );
- }
- function Gre(e, t, n) {
- let r, o;
- const i = typeof t == 'function';
- typeof e == 'string' ? ((r = e), (o = i ? n : t)) : ((o = e), (r = e.id));
- function a(s, c) {
- const d = hM();
- return (
- (s = s || (d ? Ze(kT, null) : null)),
- s && Up(s),
- (s = PT),
- s._s.has(r) || (i ? $T(r, t, o, s) : Yre(r, o, s)),
- s._s.get(r)
- );
- }
- return (a.$id = r), a;
- }
- const Xre = Wre();
- function Zre(e) {
- e.use(Xre);
- }
- const Kh = 'ACCESS-TOKEN',
- Qre = 'IM-TOKEN',
- K2 = 'CURRENT-USER',
- q2 = 60 * 60 * 24 * 7,
- Jre = ({ prefixKey: e = '', storage: t = localStorage } = {}) => {
- const n = class {
- constructor() {
- Td(this, 'storage', t);
- Td(this, 'prefixKey', e);
- }
- getKey(r) {
- return `${this.prefixKey}${r}`.toUpperCase();
- }
- set(r, o, i = q2) {
- const a = JSON.stringify({
- value: o,
- expire: i !== null ? new Date().getTime() + i * 1e3 : null
- });
- this.storage.setItem(this.getKey(r), a);
- }
- get(r, o = null) {
- const i = this.storage.getItem(this.getKey(r));
- if (i)
- try {
- const a = JSON.parse(i),
- { value: s, expire: c } = a;
- if (c === null || c >= Date.now()) return s;
- this.remove(r);
- } catch {
- return o;
- }
- return o;
- }
- remove(r) {
- this.storage.removeItem(this.getKey(r));
- }
- clear() {
- this.storage.clear();
- }
- setCookie(r, o, i = q2) {
- document.cookie = `${this.getKey(r)}=${o}; Max-Age=${i}`;
- }
- getCookie(r) {
- const o = document.cookie.split('; ');
- for (let i = 0, a = o.length; i < a; i++) {
- const s = o[i].split('=');
- if (s[0] === this.getKey(r)) return s[1];
- }
- return '';
- }
- removeCookie(r) {
- this.setCookie(r, 1, -1);
- }
- clearCookie() {
- const r = document.cookie.match(/[^ =;]+(?==)/g);
- if (r)
- for (let o = r.length; o--; )
- document.cookie = r[o] + '=0;expire=' + new Date(0).toUTCString();
- }
- };
- return new n();
- },
- ns = Jre();
- var eoe = function () {
- if (
- typeof Symbol != 'function' ||
- typeof Object.getOwnPropertySymbols != 'function'
- )
- return !1;
- if (typeof Symbol.iterator == 'symbol') return !0;
- var t = {},
- n = Symbol('test'),
- r = Object(n);
- if (
- typeof n == 'string' ||
- Object.prototype.toString.call(n) !== '[object Symbol]' ||
- Object.prototype.toString.call(r) !== '[object Symbol]'
- )
- return !1;
- var o = 42;
- t[n] = o;
- for (n in t) return !1;
- if (
- (typeof Object.keys == 'function' && Object.keys(t).length !== 0) ||
- (typeof Object.getOwnPropertyNames == 'function' &&
- Object.getOwnPropertyNames(t).length !== 0)
- )
- return !1;
- var i = Object.getOwnPropertySymbols(t);
- if (
- i.length !== 1 ||
- i[0] !== n ||
- !Object.prototype.propertyIsEnumerable.call(t, n)
- )
- return !1;
- if (typeof Object.getOwnPropertyDescriptor == 'function') {
- var a = Object.getOwnPropertyDescriptor(t, n);
- if (a.value !== o || a.enumerable !== !0) return !1;
- }
- return !0;
- },
- Y2 = typeof Symbol < 'u' && Symbol,
- toe = eoe,
- noe = function () {
- return typeof Y2 != 'function' ||
- typeof Symbol != 'function' ||
- typeof Y2('foo') != 'symbol' ||
- typeof Symbol('bar') != 'symbol'
- ? !1
- : toe();
- },
- roe = 'Function.prototype.bind called on incompatible ',
- eb = Array.prototype.slice,
- ooe = Object.prototype.toString,
- ioe = '[object Function]',
- aoe = function (t) {
- var n = this;
- if (typeof n != 'function' || ooe.call(n) !== ioe)
- throw new TypeError(roe + n);
- for (
- var r = eb.call(arguments, 1),
- o,
- i = function () {
- if (this instanceof o) {
- var f = n.apply(this, r.concat(eb.call(arguments)));
- return Object(f) === f ? f : this;
- } else return n.apply(t, r.concat(eb.call(arguments)));
- },
- a = Math.max(0, n.length - r.length),
- s = [],
- c = 0;
- c < a;
- c++
- )
- s.push('$' + c);
- if (
- ((o = Function(
- 'binder',
- 'return function (' +
- s.join(',') +
- '){ return binder.apply(this,arguments); }'
- )(i)),
- n.prototype)
- ) {
- var d = function () {};
- (d.prototype = n.prototype),
- (o.prototype = new d()),
- (d.prototype = null);
- }
- return o;
- },
- loe = aoe,
- r1 = Function.prototype.bind || loe,
- soe = r1,
- coe = soe.call(Function.call, Object.prototype.hasOwnProperty),
- hn,
- Hc = SyntaxError,
- OT = Function,
- Pc = TypeError,
- tb = function (e) {
- try {
- return OT('"use strict"; return (' + e + ').constructor;')();
- } catch {}
- },
- bs = Object.getOwnPropertyDescriptor;
- if (bs)
- try {
- bs({}, '');
- } catch {
- bs = null;
- }
- var nb = function () {
- throw new Pc();
- },
- doe = bs
- ? (function () {
- try {
- return arguments.callee, nb;
- } catch {
- try {
- return bs(arguments, 'callee').get;
- } catch {
- return nb;
- }
- }
- })()
- : nb,
- pc = noe(),
- Ai =
- Object.getPrototypeOf ||
- function (e) {
- return e.__proto__;
- },
- yc = {},
- uoe = typeof Uint8Array > 'u' ? hn : Ai(Uint8Array),
- ys = {
- '%AggregateError%': typeof AggregateError > 'u' ? hn : AggregateError,
- '%Array%': Array,
- '%ArrayBuffer%': typeof ArrayBuffer > 'u' ? hn : ArrayBuffer,
- '%ArrayIteratorPrototype%': pc ? Ai([][Symbol.iterator]()) : hn,
- '%AsyncFromSyncIteratorPrototype%': hn,
- '%AsyncFunction%': yc,
- '%AsyncGenerator%': yc,
- '%AsyncGeneratorFunction%': yc,
- '%AsyncIteratorPrototype%': yc,
- '%Atomics%': typeof Atomics > 'u' ? hn : Atomics,
- '%BigInt%': typeof BigInt > 'u' ? hn : BigInt,
- '%BigInt64Array%': typeof BigInt64Array > 'u' ? hn : BigInt64Array,
- '%BigUint64Array%': typeof BigUint64Array > 'u' ? hn : BigUint64Array,
- '%Boolean%': Boolean,
- '%DataView%': typeof DataView > 'u' ? hn : DataView,
- '%Date%': Date,
- '%decodeURI%': decodeURI,
- '%decodeURIComponent%': decodeURIComponent,
- '%encodeURI%': encodeURI,
- '%encodeURIComponent%': encodeURIComponent,
- '%Error%': Error,
- '%eval%': eval,
- '%EvalError%': EvalError,
- '%Float32Array%': typeof Float32Array > 'u' ? hn : Float32Array,
- '%Float64Array%': typeof Float64Array > 'u' ? hn : Float64Array,
- '%FinalizationRegistry%':
- typeof FinalizationRegistry > 'u' ? hn : FinalizationRegistry,
- '%Function%': OT,
- '%GeneratorFunction%': yc,
- '%Int8Array%': typeof Int8Array > 'u' ? hn : Int8Array,
- '%Int16Array%': typeof Int16Array > 'u' ? hn : Int16Array,
- '%Int32Array%': typeof Int32Array > 'u' ? hn : Int32Array,
- '%isFinite%': isFinite,
- '%isNaN%': isNaN,
- '%IteratorPrototype%': pc ? Ai(Ai([][Symbol.iterator]())) : hn,
- '%JSON%': typeof JSON == 'object' ? JSON : hn,
- '%Map%': typeof Map > 'u' ? hn : Map,
- '%MapIteratorPrototype%':
- typeof Map > 'u' || !pc ? hn : Ai(new Map()[Symbol.iterator]()),
- '%Math%': Math,
- '%Number%': Number,
- '%Object%': Object,
- '%parseFloat%': parseFloat,
- '%parseInt%': parseInt,
- '%Promise%': typeof Promise > 'u' ? hn : Promise,
- '%Proxy%': typeof Proxy > 'u' ? hn : Proxy,
- '%RangeError%': RangeError,
- '%ReferenceError%': ReferenceError,
- '%Reflect%': typeof Reflect > 'u' ? hn : Reflect,
- '%RegExp%': RegExp,
- '%Set%': typeof Set > 'u' ? hn : Set,
- '%SetIteratorPrototype%':
- typeof Set > 'u' || !pc ? hn : Ai(new Set()[Symbol.iterator]()),
- '%SharedArrayBuffer%':
- typeof SharedArrayBuffer > 'u' ? hn : SharedArrayBuffer,
- '%String%': String,
- '%StringIteratorPrototype%': pc ? Ai(''[Symbol.iterator]()) : hn,
- '%Symbol%': pc ? Symbol : hn,
- '%SyntaxError%': Hc,
- '%ThrowTypeError%': doe,
- '%TypedArray%': uoe,
- '%TypeError%': Pc,
- '%Uint8Array%': typeof Uint8Array > 'u' ? hn : Uint8Array,
- '%Uint8ClampedArray%':
- typeof Uint8ClampedArray > 'u' ? hn : Uint8ClampedArray,
- '%Uint16Array%': typeof Uint16Array > 'u' ? hn : Uint16Array,
- '%Uint32Array%': typeof Uint32Array > 'u' ? hn : Uint32Array,
- '%URIError%': URIError,
- '%WeakMap%': typeof WeakMap > 'u' ? hn : WeakMap,
- '%WeakRef%': typeof WeakRef > 'u' ? hn : WeakRef,
- '%WeakSet%': typeof WeakSet > 'u' ? hn : WeakSet
- };
- try {
- null.error;
- } catch (e) {
- var foe = Ai(Ai(e));
- ys['%Error.prototype%'] = foe;
- }
- var hoe = function e(t) {
- var n;
- if (t === '%AsyncFunction%') n = tb('async function () {}');
- else if (t === '%GeneratorFunction%') n = tb('function* () {}');
- else if (t === '%AsyncGeneratorFunction%') n = tb('async function* () {}');
- else if (t === '%AsyncGenerator%') {
- var r = e('%AsyncGeneratorFunction%');
- r && (n = r.prototype);
- } else if (t === '%AsyncIteratorPrototype%') {
- var o = e('%AsyncGenerator%');
- o && (n = Ai(o.prototype));
- }
- return (ys[t] = n), n;
- },
- G2 = {
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
- '%ArrayPrototype%': ['Array', 'prototype'],
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
- '%AsyncGeneratorPrototype%': [
- 'AsyncGeneratorFunction',
- 'prototype',
- 'prototype'
- ],
- '%BooleanPrototype%': ['Boolean', 'prototype'],
- '%DataViewPrototype%': ['DataView', 'prototype'],
- '%DatePrototype%': ['Date', 'prototype'],
- '%ErrorPrototype%': ['Error', 'prototype'],
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
- '%FunctionPrototype%': ['Function', 'prototype'],
- '%Generator%': ['GeneratorFunction', 'prototype'],
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
- '%JSONParse%': ['JSON', 'parse'],
- '%JSONStringify%': ['JSON', 'stringify'],
- '%MapPrototype%': ['Map', 'prototype'],
- '%NumberPrototype%': ['Number', 'prototype'],
- '%ObjectPrototype%': ['Object', 'prototype'],
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
- '%PromisePrototype%': ['Promise', 'prototype'],
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
- '%Promise_all%': ['Promise', 'all'],
- '%Promise_reject%': ['Promise', 'reject'],
- '%Promise_resolve%': ['Promise', 'resolve'],
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
- '%RegExpPrototype%': ['RegExp', 'prototype'],
- '%SetPrototype%': ['Set', 'prototype'],
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
- '%StringPrototype%': ['String', 'prototype'],
- '%SymbolPrototype%': ['Symbol', 'prototype'],
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
- '%URIErrorPrototype%': ['URIError', 'prototype'],
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
- },
- of = r1,
- tp = coe,
- voe = of.call(Function.call, Array.prototype.concat),
- poe = of.call(Function.apply, Array.prototype.splice),
- X2 = of.call(Function.call, String.prototype.replace),
- np = of.call(Function.call, String.prototype.slice),
- goe = of.call(Function.call, RegExp.prototype.exec),
- moe =
- /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
- boe = /\\(\\)?/g,
- yoe = function (t) {
- var n = np(t, 0, 1),
- r = np(t, -1);
- if (n === '%' && r !== '%')
- throw new Hc('invalid intrinsic syntax, expected closing `%`');
- if (r === '%' && n !== '%')
- throw new Hc('invalid intrinsic syntax, expected opening `%`');
- var o = [];
- return (
- X2(t, moe, function (i, a, s, c) {
- o[o.length] = s ? X2(c, boe, '$1') : a || i;
- }),
- o
- );
- },
- xoe = function (t, n) {
- var r = t,
- o;
- if ((tp(G2, r) && ((o = G2[r]), (r = '%' + o[0] + '%')), tp(ys, r))) {
- var i = ys[r];
- if ((i === yc && (i = hoe(r)), typeof i > 'u' && !n))
- throw new Pc(
- 'intrinsic ' +
- t +
- ' exists, but is not available. Please file an issue!'
- );
- return { alias: o, name: r, value: i };
- }
- throw new Hc('intrinsic ' + t + ' does not exist!');
- },
- o1 = function (t, n) {
- if (typeof t != 'string' || t.length === 0)
- throw new Pc('intrinsic name must be a non-empty string');
- if (arguments.length > 1 && typeof n != 'boolean')
- throw new Pc('"allowMissing" argument must be a boolean');
- if (goe(/^%?[^%]*%?$/, t) === null)
- throw new Hc(
- '`%` may not be present anywhere but at the beginning and end of the intrinsic name'
- );
- var r = yoe(t),
- o = r.length > 0 ? r[0] : '',
- i = xoe('%' + o + '%', n),
- a = i.name,
- s = i.value,
- c = !1,
- d = i.alias;
- d && ((o = d[0]), poe(r, voe([0, 1], d)));
- for (var f = 1, v = !0; f < r.length; f += 1) {
- var p = r[f],
- m = np(p, 0, 1),
- g = np(p, -1);
- if (
- (m === '"' ||
- m === "'" ||
- m === '`' ||
- g === '"' ||
- g === "'" ||
- g === '`') &&
- m !== g
- )
- throw new Hc('property names with quotes must have matching quotes');
- if (
- ((p === 'constructor' || !v) && (c = !0),
- (o += '.' + p),
- (a = '%' + o + '%'),
- tp(ys, a))
- )
- s = ys[a];
- else if (s != null) {
- if (!(p in s)) {
- if (!n)
- throw new Pc(
- 'base intrinsic for ' +
- t +
- ' exists, but the property is not available.'
- );
- return;
- }
- if (bs && f + 1 >= r.length) {
- var w = bs(s, p);
- (v = !!w),
- v && 'get' in w && !('originalValue' in w.get)
- ? (s = w.get)
- : (s = s[p]);
- } else (v = tp(s, p)), (s = s[p]);
- v && !c && (ys[a] = s);
- }
- }
- return s;
- },
- h0 = {},
- woe = {
- get exports() {
- return h0;
- },
- set exports(e) {
- h0 = e;
- }
- };
- (function (e) {
- var t = r1,
- n = o1,
- r = n('%Function.prototype.apply%'),
- o = n('%Function.prototype.call%'),
- i = n('%Reflect.apply%', !0) || t.call(o, r),
- a = n('%Object.getOwnPropertyDescriptor%', !0),
- s = n('%Object.defineProperty%', !0),
- c = n('%Math.max%');
- if (s)
- try {
- s({}, 'a', { value: 1 });
- } catch {
- s = null;
- }
- e.exports = function (v) {
- var p = i(t, o, arguments);
- if (a && s) {
- var m = a(p, 'length');
- m.configurable &&
- s(p, 'length', { value: 1 + c(0, v.length - (arguments.length - 1)) });
- }
- return p;
- };
- var d = function () {
- return i(t, r, arguments);
- };
- s ? s(e.exports, 'apply', { value: d }) : (e.exports.apply = d);
- })(woe);
- var zT = o1,
- ET = h0,
- Coe = ET(zT('String.prototype.indexOf')),
- Soe = function (t, n) {
- var r = zT(t, !!n);
- return typeof r == 'function' && Coe(t, '.prototype.') > -1 ? ET(r) : r;
- },
- i1 = typeof Map == 'function' && Map.prototype,
- rb =
- Object.getOwnPropertyDescriptor && i1
- ? Object.getOwnPropertyDescriptor(Map.prototype, 'size')
- : null,
- rp = i1 && rb && typeof rb.get == 'function' ? rb.get : null,
- Z2 = i1 && Map.prototype.forEach,
- a1 = typeof Set == 'function' && Set.prototype,
- ob =
- Object.getOwnPropertyDescriptor && a1
- ? Object.getOwnPropertyDescriptor(Set.prototype, 'size')
- : null,
- op = a1 && ob && typeof ob.get == 'function' ? ob.get : null,
- Q2 = a1 && Set.prototype.forEach,
- _oe = typeof WeakMap == 'function' && WeakMap.prototype,
- su = _oe ? WeakMap.prototype.has : null,
- Roe = typeof WeakSet == 'function' && WeakSet.prototype,
- cu = Roe ? WeakSet.prototype.has : null,
- Poe = typeof WeakRef == 'function' && WeakRef.prototype,
- J2 = Poe ? WeakRef.prototype.deref : null,
- koe = Boolean.prototype.valueOf,
- Toe = Object.prototype.toString,
- $oe = Function.prototype.toString,
- Ooe = String.prototype.match,
- l1 = String.prototype.slice,
- ol = String.prototype.replace,
- zoe = String.prototype.toUpperCase,
- e_ = String.prototype.toLowerCase,
- AT = RegExp.prototype.test,
- t_ = Array.prototype.concat,
- Mi = Array.prototype.join,
- Eoe = Array.prototype.slice,
- n_ = Math.floor,
- v0 = typeof BigInt == 'function' ? BigInt.prototype.valueOf : null,
- ib = Object.getOwnPropertySymbols,
- p0 =
- typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
- ? Symbol.prototype.toString
- : null,
- jc = typeof Symbol == 'function' && typeof Symbol.iterator == 'object',
- Gr =
- typeof Symbol == 'function' &&
- Symbol.toStringTag &&
- (typeof Symbol.toStringTag === jc || 'symbol')
- ? Symbol.toStringTag
- : null,
- MT = Object.prototype.propertyIsEnumerable,
- r_ =
- (typeof Reflect == 'function'
- ? Reflect.getPrototypeOf
- : Object.getPrototypeOf) ||
- ([].__proto__ === Array.prototype
- ? function (e) {
- return e.__proto__;
- }
- : null);
- function o_(e, t) {
- if (
- e === 1 / 0 ||
- e === -1 / 0 ||
- e !== e ||
- (e && e > -1e3 && e < 1e3) ||
- AT.call(/e/, t)
- )
- return t;
- var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
- if (typeof e == 'number') {
- var r = e < 0 ? -n_(-e) : n_(e);
- if (r !== e) {
- var o = String(r),
- i = l1.call(t, o.length + 1);
- return (
- ol.call(o, n, '$&_') +
- '.' +
- ol.call(ol.call(i, /([0-9]{3})/g, '$&_'), /_$/, '')
- );
- }
- }
- return ol.call(t, n, '$&_');
- }
- var g0 = _T,
- i_ = g0.custom,
- a_ = DT(i_) ? i_ : null,
- Aoe = function e(t, n, r, o) {
- var i = n || {};
- if (
- nl(i, 'quoteStyle') &&
- i.quoteStyle !== 'single' &&
- i.quoteStyle !== 'double'
- )
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
- if (
- nl(i, 'maxStringLength') &&
- (typeof i.maxStringLength == 'number'
- ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0
- : i.maxStringLength !== null)
- )
- throw new TypeError(
- 'option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'
- );
- var a = nl(i, 'customInspect') ? i.customInspect : !0;
- if (typeof a != 'boolean' && a !== 'symbol')
- throw new TypeError(
- 'option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'
- );
- if (
- nl(i, 'indent') &&
- i.indent !== null &&
- i.indent !== ' ' &&
- !(parseInt(i.indent, 10) === i.indent && i.indent > 0)
- )
- throw new TypeError(
- 'option "indent" must be "\\t", an integer > 0, or `null`'
- );
- if (nl(i, 'numericSeparator') && typeof i.numericSeparator != 'boolean')
- throw new TypeError(
- 'option "numericSeparator", if provided, must be `true` or `false`'
- );
- var s = i.numericSeparator;
- if (typeof t > 'u') return 'undefined';
- if (t === null) return 'null';
- if (typeof t == 'boolean') return t ? 'true' : 'false';
- if (typeof t == 'string') return BT(t, i);
- if (typeof t == 'number') {
- if (t === 0) return 1 / 0 / t > 0 ? '0' : '-0';
- var c = String(t);
- return s ? o_(t, c) : c;
- }
- if (typeof t == 'bigint') {
- var d = String(t) + 'n';
- return s ? o_(t, d) : d;
- }
- var f = typeof i.depth > 'u' ? 5 : i.depth;
- if ((typeof r > 'u' && (r = 0), r >= f && f > 0 && typeof t == 'object'))
- return m0(t) ? '[Array]' : '[Object]';
- var v = Zoe(i, r);
- if (typeof o > 'u') o = [];
- else if (FT(o, t) >= 0) return '[Circular]';
- function p(D, L, H) {
- if ((L && ((o = Eoe.call(o)), o.push(L)), H)) {
- var B = { depth: i.depth };
- return (
- nl(i, 'quoteStyle') && (B.quoteStyle = i.quoteStyle),
- e(D, B, r + 1, o)
- );
- }
- return e(D, i, r + 1, o);
- }
- if (typeof t == 'function' && !l_(t)) {
- var m = joe(t),
- g = Ih(t, p);
- return (
- '[Function' +
- (m ? ': ' + m : ' (anonymous)') +
- ']' +
- (g.length > 0 ? ' { ' + Mi.call(g, ', ') + ' }' : '')
- );
- }
- if (DT(t)) {
- var w = jc
- ? ol.call(String(t), /^(Symbol\(.*\))_[^)]*$/, '$1')
- : p0.call(t);
- return typeof t == 'object' && !jc ? Bd(w) : w;
- }
- if (Yoe(t)) {
- for (
- var x = '<' + e_.call(String(t.nodeName)),
- y = t.attributes || [],
- C = 0;
- C < y.length;
- C++
- )
- x += ' ' + y[C].name + '=' + IT(Moe(y[C].value), 'double', i);
- return (
- (x += '>'),
- t.childNodes && t.childNodes.length && (x += '...'),
- (x += '</' + e_.call(String(t.nodeName)) + '>'),
- x
- );
- }
- if (m0(t)) {
- if (t.length === 0) return '[]';
- var R = Ih(t, p);
- return v && !Xoe(R)
- ? '[' + b0(R, v) + ']'
- : '[ ' + Mi.call(R, ', ') + ' ]';
- }
- if (Doe(t)) {
- var S = Ih(t, p);
- return !('cause' in Error.prototype) &&
- 'cause' in t &&
- !MT.call(t, 'cause')
- ? '{ [' +
- String(t) +
- '] ' +
- Mi.call(t_.call('[cause]: ' + p(t.cause), S), ', ') +
- ' }'
- : S.length === 0
- ? '[' + String(t) + ']'
- : '{ [' + String(t) + '] ' + Mi.call(S, ', ') + ' }';
- }
- if (typeof t == 'object' && a) {
- if (a_ && typeof t[a_] == 'function' && g0)
- return g0(t, { depth: f - r });
- if (a !== 'symbol' && typeof t.inspect == 'function') return t.inspect();
- }
- if (Woe(t)) {
- var _ = [];
- return (
- Z2 &&
- Z2.call(t, function (D, L) {
- _.push(p(L, t, !0) + ' => ' + p(D, t));
- }),
- s_('Map', rp.call(t), _, v)
- );
- }
- if (Koe(t)) {
- var P = [];
- return (
- Q2 &&
- Q2.call(t, function (D) {
- P.push(p(D, t));
- }),
- s_('Set', op.call(t), P, v)
- );
- }
- if (Uoe(t)) return ab('WeakMap');
- if (qoe(t)) return ab('WeakSet');
- if (Voe(t)) return ab('WeakRef');
- if (Boe(t)) return Bd(p(Number(t)));
- if (Noe(t)) return Bd(p(v0.call(t)));
- if (Loe(t)) return Bd(koe.call(t));
- if (Foe(t)) return Bd(p(String(t)));
- if (!Ioe(t) && !l_(t)) {
- var T = Ih(t, p),
- E = r_
- ? r_(t) === Object.prototype
- : t instanceof Object || t.constructor === Object,
- z = t instanceof Object ? '' : 'null prototype',
- k =
- !E && Gr && Object(t) === t && Gr in t
- ? l1.call(Rl(t), 8, -1)
- : z
- ? 'Object'
- : '',
- M =
- E || typeof t.constructor != 'function'
- ? ''
- : t.constructor.name
- ? t.constructor.name + ' '
- : '',
- A =
- M +
- (k || z
- ? '[' + Mi.call(t_.call([], k || [], z || []), ': ') + '] '
- : '');
- return T.length === 0
- ? A + '{}'
- : v
- ? A + '{' + b0(T, v) + '}'
- : A + '{ ' + Mi.call(T, ', ') + ' }';
- }
- return String(t);
- };
- function IT(e, t, n) {
- var r = (n.quoteStyle || t) === 'double' ? '"' : "'";
- return r + e + r;
- }
- function Moe(e) {
- return ol.call(String(e), /"/g, '"');
- }
- function m0(e) {
- return (
- Rl(e) === '[object Array]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function Ioe(e) {
- return (
- Rl(e) === '[object Date]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function l_(e) {
- return (
- Rl(e) === '[object RegExp]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function Doe(e) {
- return (
- Rl(e) === '[object Error]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function Foe(e) {
- return (
- Rl(e) === '[object String]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function Boe(e) {
- return (
- Rl(e) === '[object Number]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function Loe(e) {
- return (
- Rl(e) === '[object Boolean]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function DT(e) {
- if (jc) return e && typeof e == 'object' && e instanceof Symbol;
- if (typeof e == 'symbol') return !0;
- if (!e || typeof e != 'object' || !p0) return !1;
- try {
- return p0.call(e), !0;
- } catch {}
- return !1;
- }
- function Noe(e) {
- if (!e || typeof e != 'object' || !v0) return !1;
- try {
- return v0.call(e), !0;
- } catch {}
- return !1;
- }
- var Hoe =
- Object.prototype.hasOwnProperty ||
- function (e) {
- return e in this;
- };
- function nl(e, t) {
- return Hoe.call(e, t);
- }
- function Rl(e) {
- return Toe.call(e);
- }
- function joe(e) {
- if (e.name) return e.name;
- var t = Ooe.call($oe.call(e), /^function\s*([\w$]+)/);
- return t ? t[1] : null;
- }
- function FT(e, t) {
- if (e.indexOf) return e.indexOf(t);
- for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
- return -1;
- }
- function Woe(e) {
- if (!rp || !e || typeof e != 'object') return !1;
- try {
- rp.call(e);
- try {
- op.call(e);
- } catch {
- return !0;
- }
- return e instanceof Map;
- } catch {}
- return !1;
- }
- function Uoe(e) {
- if (!su || !e || typeof e != 'object') return !1;
- try {
- su.call(e, su);
- try {
- cu.call(e, cu);
- } catch {
- return !0;
- }
- return e instanceof WeakMap;
- } catch {}
- return !1;
- }
- function Voe(e) {
- if (!J2 || !e || typeof e != 'object') return !1;
- try {
- return J2.call(e), !0;
- } catch {}
- return !1;
- }
- function Koe(e) {
- if (!op || !e || typeof e != 'object') return !1;
- try {
- op.call(e);
- try {
- rp.call(e);
- } catch {
- return !0;
- }
- return e instanceof Set;
- } catch {}
- return !1;
- }
- function qoe(e) {
- if (!cu || !e || typeof e != 'object') return !1;
- try {
- cu.call(e, cu);
- try {
- su.call(e, su);
- } catch {
- return !0;
- }
- return e instanceof WeakSet;
- } catch {}
- return !1;
- }
- function Yoe(e) {
- return !e || typeof e != 'object'
- ? !1
- : typeof HTMLElement < 'u' && e instanceof HTMLElement
- ? !0
- : typeof e.nodeName == 'string' && typeof e.getAttribute == 'function';
- }
- function BT(e, t) {
- if (e.length > t.maxStringLength) {
- var n = e.length - t.maxStringLength,
- r = '... ' + n + ' more character' + (n > 1 ? 's' : '');
- return BT(l1.call(e, 0, t.maxStringLength), t) + r;
- }
- var o = ol.call(ol.call(e, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, Goe);
- return IT(o, 'single', t);
- }
- function Goe(e) {
- var t = e.charCodeAt(0),
- n = { 8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r' }[t];
- return n ? '\\' + n : '\\x' + (t < 16 ? '0' : '') + zoe.call(t.toString(16));
- }
- function Bd(e) {
- return 'Object(' + e + ')';
- }
- function ab(e) {
- return e + ' { ? }';
- }
- function s_(e, t, n, r) {
- var o = r ? b0(n, r) : Mi.call(n, ', ');
- return e + ' (' + t + ') {' + o + '}';
- }
- function Xoe(e) {
- for (var t = 0; t < e.length; t++)
- if (
- FT(
- e[t],
- `
- `
- ) >= 0
- )
- return !1;
- return !0;
- }
- function Zoe(e, t) {
- var n;
- if (e.indent === ' ') n = ' ';
- else if (typeof e.indent == 'number' && e.indent > 0)
- n = Mi.call(Array(e.indent + 1), ' ');
- else return null;
- return { base: n, prev: Mi.call(Array(t + 1), n) };
- }
- function b0(e, t) {
- if (e.length === 0) return '';
- var n =
- `
- ` +
- t.prev +
- t.base;
- return (
- n +
- Mi.call(e, ',' + n) +
- `
- ` +
- t.prev
- );
- }
- function Ih(e, t) {
- var n = m0(e),
- r = [];
- if (n) {
- r.length = e.length;
- for (var o = 0; o < e.length; o++) r[o] = nl(e, o) ? t(e[o], e) : '';
- }
- var i = typeof ib == 'function' ? ib(e) : [],
- a;
- if (jc) {
- a = {};
- for (var s = 0; s < i.length; s++) a['$' + i[s]] = i[s];
- }
- for (var c in e)
- nl(e, c) &&
- ((n && String(Number(c)) === c && c < e.length) ||
- (jc && a['$' + c] instanceof Symbol) ||
- (AT.call(/[^\w$]/, c)
- ? r.push(t(c, e) + ': ' + t(e[c], e))
- : r.push(c + ': ' + t(e[c], e))));
- if (typeof ib == 'function')
- for (var d = 0; d < i.length; d++)
- MT.call(e, i[d]) && r.push('[' + t(i[d]) + ']: ' + t(e[i[d]], e));
- return r;
- }
- var s1 = o1,
- ld = Soe,
- Qoe = Aoe,
- Joe = s1('%TypeError%'),
- Dh = s1('%WeakMap%', !0),
- Fh = s1('%Map%', !0),
- eie = ld('WeakMap.prototype.get', !0),
- tie = ld('WeakMap.prototype.set', !0),
- nie = ld('WeakMap.prototype.has', !0),
- rie = ld('Map.prototype.get', !0),
- oie = ld('Map.prototype.set', !0),
- iie = ld('Map.prototype.has', !0),
- c1 = function (e, t) {
- for (var n = e, r; (r = n.next) !== null; n = r)
- if (r.key === t)
- return (n.next = r.next), (r.next = e.next), (e.next = r), r;
- },
- aie = function (e, t) {
- var n = c1(e, t);
- return n && n.value;
- },
- lie = function (e, t, n) {
- var r = c1(e, t);
- r ? (r.value = n) : (e.next = { key: t, next: e.next, value: n });
- },
- sie = function (e, t) {
- return !!c1(e, t);
- },
- cie = function () {
- var t,
- n,
- r,
- o = {
- assert: function (i) {
- if (!o.has(i))
- throw new Joe('Side channel does not contain ' + Qoe(i));
- },
- get: function (i) {
- if (Dh && i && (typeof i == 'object' || typeof i == 'function')) {
- if (t) return eie(t, i);
- } else if (Fh) {
- if (n) return rie(n, i);
- } else if (r) return aie(r, i);
- },
- has: function (i) {
- if (Dh && i && (typeof i == 'object' || typeof i == 'function')) {
- if (t) return nie(t, i);
- } else if (Fh) {
- if (n) return iie(n, i);
- } else if (r) return sie(r, i);
- return !1;
- },
- set: function (i, a) {
- Dh && i && (typeof i == 'object' || typeof i == 'function')
- ? (t || (t = new Dh()), tie(t, i, a))
- : Fh
- ? (n || (n = new Fh()), oie(n, i, a))
- : (r || (r = { key: {}, next: null }), lie(r, i, a));
- }
- };
- return o;
- },
- die = String.prototype.replace,
- uie = /%20/g,
- lb = { RFC1738: 'RFC1738', RFC3986: 'RFC3986' },
- d1 = {
- default: lb.RFC3986,
- formatters: {
- RFC1738: function (e) {
- return die.call(e, uie, '+');
- },
- RFC3986: function (e) {
- return String(e);
- }
- },
- RFC1738: lb.RFC1738,
- RFC3986: lb.RFC3986
- },
- fie = d1,
- sb = Object.prototype.hasOwnProperty,
- as = Array.isArray,
- Oi = (function () {
- for (var e = [], t = 0; t < 256; ++t)
- e.push('%' + ((t < 16 ? '0' : '') + t.toString(16)).toUpperCase());
- return e;
- })(),
- hie = function (t) {
- for (; t.length > 1; ) {
- var n = t.pop(),
- r = n.obj[n.prop];
- if (as(r)) {
- for (var o = [], i = 0; i < r.length; ++i)
- typeof r[i] < 'u' && o.push(r[i]);
- n.obj[n.prop] = o;
- }
- }
- },
- LT = function (t, n) {
- for (
- var r = n && n.plainObjects ? Object.create(null) : {}, o = 0;
- o < t.length;
- ++o
- )
- typeof t[o] < 'u' && (r[o] = t[o]);
- return r;
- },
- vie = function e(t, n, r) {
- if (!n) return t;
- if (typeof n != 'object') {
- if (as(t)) t.push(n);
- else if (t && typeof t == 'object')
- ((r && (r.plainObjects || r.allowPrototypes)) ||
- !sb.call(Object.prototype, n)) &&
- (t[n] = !0);
- else return [t, n];
- return t;
- }
- if (!t || typeof t != 'object') return [t].concat(n);
- var o = t;
- return (
- as(t) && !as(n) && (o = LT(t, r)),
- as(t) && as(n)
- ? (n.forEach(function (i, a) {
- if (sb.call(t, a)) {
- var s = t[a];
- s && typeof s == 'object' && i && typeof i == 'object'
- ? (t[a] = e(s, i, r))
- : t.push(i);
- } else t[a] = i;
- }),
- t)
- : Object.keys(n).reduce(function (i, a) {
- var s = n[a];
- return sb.call(i, a) ? (i[a] = e(i[a], s, r)) : (i[a] = s), i;
- }, o)
- );
- },
- pie = function (t, n) {
- return Object.keys(n).reduce(function (r, o) {
- return (r[o] = n[o]), r;
- }, t);
- },
- gie = function (e, t, n) {
- var r = e.replace(/\+/g, ' ');
- if (n === 'iso-8859-1') return r.replace(/%[0-9a-f]{2}/gi, unescape);
- try {
- return decodeURIComponent(r);
- } catch {
- return r;
- }
- },
- mie = function (t, n, r, o, i) {
- if (t.length === 0) return t;
- var a = t;
- if (
- (typeof t == 'symbol'
- ? (a = Symbol.prototype.toString.call(t))
- : typeof t != 'string' && (a = String(t)),
- r === 'iso-8859-1')
- )
- return escape(a).replace(/%u[0-9a-f]{4}/gi, function (f) {
- return '%26%23' + parseInt(f.slice(2), 16) + '%3B';
- });
- for (var s = '', c = 0; c < a.length; ++c) {
- var d = a.charCodeAt(c);
- if (
- d === 45 ||
- d === 46 ||
- d === 95 ||
- d === 126 ||
- (d >= 48 && d <= 57) ||
- (d >= 65 && d <= 90) ||
- (d >= 97 && d <= 122) ||
- (i === fie.RFC1738 && (d === 40 || d === 41))
- ) {
- s += a.charAt(c);
- continue;
- }
- if (d < 128) {
- s = s + Oi[d];
- continue;
- }
- if (d < 2048) {
- s = s + (Oi[192 | (d >> 6)] + Oi[128 | (d & 63)]);
- continue;
- }
- if (d < 55296 || d >= 57344) {
- s =
- s +
- (Oi[224 | (d >> 12)] +
- Oi[128 | ((d >> 6) & 63)] +
- Oi[128 | (d & 63)]);
- continue;
- }
- (c += 1),
- (d = 65536 + (((d & 1023) << 10) | (a.charCodeAt(c) & 1023))),
- (s +=
- Oi[240 | (d >> 18)] +
- Oi[128 | ((d >> 12) & 63)] +
- Oi[128 | ((d >> 6) & 63)] +
- Oi[128 | (d & 63)]);
- }
- return s;
- },
- bie = function (t) {
- for (
- var n = [{ obj: { o: t }, prop: 'o' }], r = [], o = 0;
- o < n.length;
- ++o
- )
- for (
- var i = n[o], a = i.obj[i.prop], s = Object.keys(a), c = 0;
- c < s.length;
- ++c
- ) {
- var d = s[c],
- f = a[d];
- typeof f == 'object' &&
- f !== null &&
- r.indexOf(f) === -1 &&
- (n.push({ obj: a, prop: d }), r.push(f));
- }
- return hie(n), t;
- },
- yie = function (t) {
- return Object.prototype.toString.call(t) === '[object RegExp]';
- },
- xie = function (t) {
- return !t || typeof t != 'object'
- ? !1
- : !!(
- t.constructor &&
- t.constructor.isBuffer &&
- t.constructor.isBuffer(t)
- );
- },
- wie = function (t, n) {
- return [].concat(t, n);
- },
- Cie = function (t, n) {
- if (as(t)) {
- for (var r = [], o = 0; o < t.length; o += 1) r.push(n(t[o]));
- return r;
- }
- return n(t);
- },
- NT = {
- arrayToObject: LT,
- assign: pie,
- combine: wie,
- compact: bie,
- decode: gie,
- encode: mie,
- isBuffer: xie,
- isRegExp: yie,
- maybeMap: Cie,
- merge: vie
- },
- HT = cie,
- qh = NT,
- du = d1,
- Sie = Object.prototype.hasOwnProperty,
- c_ = {
- brackets: function (t) {
- return t + '[]';
- },
- comma: 'comma',
- indices: function (t, n) {
- return t + '[' + n + ']';
- },
- repeat: function (t) {
- return t;
- }
- },
- ba = Array.isArray,
- _ie = Array.prototype.push,
- jT = function (e, t) {
- _ie.apply(e, ba(t) ? t : [t]);
- },
- Rie = Date.prototype.toISOString,
- d_ = du.default,
- Wr = {
- addQueryPrefix: !1,
- allowDots: !1,
- charset: 'utf-8',
- charsetSentinel: !1,
- delimiter: '&',
- encode: !0,
- encoder: qh.encode,
- encodeValuesOnly: !1,
- format: d_,
- formatter: du.formatters[d_],
- indices: !1,
- serializeDate: function (t) {
- return Rie.call(t);
- },
- skipNulls: !1,
- strictNullHandling: !1
- },
- Pie = function (t) {
- return (
- typeof t == 'string' ||
- typeof t == 'number' ||
- typeof t == 'boolean' ||
- typeof t == 'symbol' ||
- typeof t == 'bigint'
- );
- },
- cb = {},
- kie = function e(t, n, r, o, i, a, s, c, d, f, v, p, m, g, w, x) {
- for (var y = t, C = x, R = 0, S = !1; (C = C.get(cb)) !== void 0 && !S; ) {
- var _ = C.get(t);
- if (((R += 1), typeof _ < 'u')) {
- if (_ === R) throw new RangeError('Cyclic object value');
- S = !0;
- }
- typeof C.get(cb) > 'u' && (R = 0);
- }
- if (
- (typeof c == 'function'
- ? (y = c(n, y))
- : y instanceof Date
- ? (y = v(y))
- : r === 'comma' &&
- ba(y) &&
- (y = qh.maybeMap(y, function (B) {
- return B instanceof Date ? v(B) : B;
- })),
- y === null)
- ) {
- if (i) return s && !g ? s(n, Wr.encoder, w, 'key', p) : n;
- y = '';
- }
- if (Pie(y) || qh.isBuffer(y)) {
- if (s) {
- var P = g ? n : s(n, Wr.encoder, w, 'key', p);
- return [m(P) + '=' + m(s(y, Wr.encoder, w, 'value', p))];
- }
- return [m(n) + '=' + m(String(y))];
- }
- var T = [];
- if (typeof y > 'u') return T;
- var E;
- if (r === 'comma' && ba(y))
- g && s && (y = qh.maybeMap(y, s)),
- (E = [{ value: y.length > 0 ? y.join(',') || null : void 0 }]);
- else if (ba(c)) E = c;
- else {
- var z = Object.keys(y);
- E = d ? z.sort(d) : z;
- }
- for (
- var k = o && ba(y) && y.length === 1 ? n + '[]' : n, M = 0;
- M < E.length;
- ++M
- ) {
- var A = E[M],
- D = typeof A == 'object' && typeof A.value < 'u' ? A.value : y[A];
- if (!(a && D === null)) {
- var L = ba(y)
- ? typeof r == 'function'
- ? r(k, A)
- : k
- : k + (f ? '.' + A : '[' + A + ']');
- x.set(t, R);
- var H = HT();
- H.set(cb, x),
- jT(
- T,
- e(
- D,
- L,
- r,
- o,
- i,
- a,
- r === 'comma' && g && ba(y) ? null : s,
- c,
- d,
- f,
- v,
- p,
- m,
- g,
- w,
- H
- )
- );
- }
- }
- return T;
- },
- Tie = function (t) {
- if (!t) return Wr;
- if (
- t.encoder !== null &&
- typeof t.encoder < 'u' &&
- typeof t.encoder != 'function'
- )
- throw new TypeError('Encoder has to be a function.');
- var n = t.charset || Wr.charset;
- if (
- typeof t.charset < 'u' &&
- t.charset !== 'utf-8' &&
- t.charset !== 'iso-8859-1'
- )
- throw new TypeError(
- 'The charset option must be either utf-8, iso-8859-1, or undefined'
- );
- var r = du.default;
- if (typeof t.format < 'u') {
- if (!Sie.call(du.formatters, t.format))
- throw new TypeError('Unknown format option provided.');
- r = t.format;
- }
- var o = du.formatters[r],
- i = Wr.filter;
- return (
- (typeof t.filter == 'function' || ba(t.filter)) && (i = t.filter),
- {
- addQueryPrefix:
- typeof t.addQueryPrefix == 'boolean'
- ? t.addQueryPrefix
- : Wr.addQueryPrefix,
- allowDots: typeof t.allowDots > 'u' ? Wr.allowDots : !!t.allowDots,
- charset: n,
- charsetSentinel:
- typeof t.charsetSentinel == 'boolean'
- ? t.charsetSentinel
- : Wr.charsetSentinel,
- delimiter: typeof t.delimiter > 'u' ? Wr.delimiter : t.delimiter,
- encode: typeof t.encode == 'boolean' ? t.encode : Wr.encode,
- encoder: typeof t.encoder == 'function' ? t.encoder : Wr.encoder,
- encodeValuesOnly:
- typeof t.encodeValuesOnly == 'boolean'
- ? t.encodeValuesOnly
- : Wr.encodeValuesOnly,
- filter: i,
- format: r,
- formatter: o,
- serializeDate:
- typeof t.serializeDate == 'function'
- ? t.serializeDate
- : Wr.serializeDate,
- skipNulls: typeof t.skipNulls == 'boolean' ? t.skipNulls : Wr.skipNulls,
- sort: typeof t.sort == 'function' ? t.sort : null,
- strictNullHandling:
- typeof t.strictNullHandling == 'boolean'
- ? t.strictNullHandling
- : Wr.strictNullHandling
- }
- );
- },
- $ie = function (e, t) {
- var n = e,
- r = Tie(t),
- o,
- i;
- typeof r.filter == 'function'
- ? ((i = r.filter), (n = i('', n)))
- : ba(r.filter) && ((i = r.filter), (o = i));
- var a = [];
- if (typeof n != 'object' || n === null) return '';
- var s;
- t && t.arrayFormat in c_
- ? (s = t.arrayFormat)
- : t && 'indices' in t
- ? (s = t.indices ? 'indices' : 'repeat')
- : (s = 'indices');
- var c = c_[s];
- if (t && 'commaRoundTrip' in t && typeof t.commaRoundTrip != 'boolean')
- throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
- var d = c === 'comma' && t && t.commaRoundTrip;
- o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
- for (var f = HT(), v = 0; v < o.length; ++v) {
- var p = o[v];
- (r.skipNulls && n[p] === null) ||
- jT(
- a,
- kie(
- n[p],
- p,
- c,
- d,
- r.strictNullHandling,
- r.skipNulls,
- r.encode ? r.encoder : null,
- r.filter,
- r.sort,
- r.allowDots,
- r.serializeDate,
- r.format,
- r.formatter,
- r.encodeValuesOnly,
- r.charset,
- f
- )
- );
- }
- var m = a.join(r.delimiter),
- g = r.addQueryPrefix === !0 ? '?' : '';
- return (
- r.charsetSentinel &&
- (r.charset === 'iso-8859-1'
- ? (g += 'utf8=%26%2310003%3B&')
- : (g += 'utf8=%E2%9C%93&')),
- m.length > 0 ? g + m : ''
- );
- },
- Wc = NT,
- y0 = Object.prototype.hasOwnProperty,
- Oie = Array.isArray,
- Or = {
- allowDots: !1,
- allowPrototypes: !1,
- allowSparse: !1,
- arrayLimit: 20,
- charset: 'utf-8',
- charsetSentinel: !1,
- comma: !1,
- decoder: Wc.decode,
- delimiter: '&',
- depth: 5,
- ignoreQueryPrefix: !1,
- interpretNumericEntities: !1,
- parameterLimit: 1e3,
- parseArrays: !0,
- plainObjects: !1,
- strictNullHandling: !1
- },
- zie = function (e) {
- return e.replace(/&#(\d+);/g, function (t, n) {
- return String.fromCharCode(parseInt(n, 10));
- });
- },
- WT = function (e, t) {
- return e && typeof e == 'string' && t.comma && e.indexOf(',') > -1
- ? e.split(',')
- : e;
- },
- Eie = 'utf8=%26%2310003%3B',
- Aie = 'utf8=%E2%9C%93',
- Mie = function (t, n) {
- var r = {},
- o = n.ignoreQueryPrefix ? t.replace(/^\?/, '') : t,
- i = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit,
- a = o.split(n.delimiter, i),
- s = -1,
- c,
- d = n.charset;
- if (n.charsetSentinel)
- for (c = 0; c < a.length; ++c)
- a[c].indexOf('utf8=') === 0 &&
- (a[c] === Aie ? (d = 'utf-8') : a[c] === Eie && (d = 'iso-8859-1'),
- (s = c),
- (c = a.length));
- for (c = 0; c < a.length; ++c)
- if (c !== s) {
- var f = a[c],
- v = f.indexOf(']='),
- p = v === -1 ? f.indexOf('=') : v + 1,
- m,
- g;
- p === -1
- ? ((m = n.decoder(f, Or.decoder, d, 'key')),
- (g = n.strictNullHandling ? null : ''))
- : ((m = n.decoder(f.slice(0, p), Or.decoder, d, 'key')),
- (g = Wc.maybeMap(WT(f.slice(p + 1), n), function (w) {
- return n.decoder(w, Or.decoder, d, 'value');
- }))),
- g && n.interpretNumericEntities && d === 'iso-8859-1' && (g = zie(g)),
- f.indexOf('[]=') > -1 && (g = Oie(g) ? [g] : g),
- y0.call(r, m) ? (r[m] = Wc.combine(r[m], g)) : (r[m] = g);
- }
- return r;
- },
- Iie = function (e, t, n, r) {
- for (var o = r ? t : WT(t, n), i = e.length - 1; i >= 0; --i) {
- var a,
- s = e[i];
- if (s === '[]' && n.parseArrays) a = [].concat(o);
- else {
- a = n.plainObjects ? Object.create(null) : {};
- var c =
- s.charAt(0) === '[' && s.charAt(s.length - 1) === ']'
- ? s.slice(1, -1)
- : s,
- d = parseInt(c, 10);
- !n.parseArrays && c === ''
- ? (a = { 0: o })
- : !isNaN(d) &&
- s !== c &&
- String(d) === c &&
- d >= 0 &&
- n.parseArrays &&
- d <= n.arrayLimit
- ? ((a = []), (a[d] = o))
- : c !== '__proto__' && (a[c] = o);
- }
- o = a;
- }
- return o;
- },
- Die = function (t, n, r, o) {
- if (t) {
- var i = r.allowDots ? t.replace(/\.([^.[]+)/g, '[$1]') : t,
- a = /(\[[^[\]]*])/,
- s = /(\[[^[\]]*])/g,
- c = r.depth > 0 && a.exec(i),
- d = c ? i.slice(0, c.index) : i,
- f = [];
- if (d) {
- if (
- !r.plainObjects &&
- y0.call(Object.prototype, d) &&
- !r.allowPrototypes
- )
- return;
- f.push(d);
- }
- for (
- var v = 0;
- r.depth > 0 && (c = s.exec(i)) !== null && v < r.depth;
- ) {
- if (
- ((v += 1),
- !r.plainObjects &&
- y0.call(Object.prototype, c[1].slice(1, -1)) &&
- !r.allowPrototypes)
- )
- return;
- f.push(c[1]);
- }
- return c && f.push('[' + i.slice(c.index) + ']'), Iie(f, n, r, o);
- }
- },
- Fie = function (t) {
- if (!t) return Or;
- if (
- t.decoder !== null &&
- t.decoder !== void 0 &&
- typeof t.decoder != 'function'
- )
- throw new TypeError('Decoder has to be a function.');
- if (
- typeof t.charset < 'u' &&
- t.charset !== 'utf-8' &&
- t.charset !== 'iso-8859-1'
- )
- throw new TypeError(
- 'The charset option must be either utf-8, iso-8859-1, or undefined'
- );
- var n = typeof t.charset > 'u' ? Or.charset : t.charset;
- return {
- allowDots: typeof t.allowDots > 'u' ? Or.allowDots : !!t.allowDots,
- allowPrototypes:
- typeof t.allowPrototypes == 'boolean'
- ? t.allowPrototypes
- : Or.allowPrototypes,
- allowSparse:
- typeof t.allowSparse == 'boolean' ? t.allowSparse : Or.allowSparse,
- arrayLimit:
- typeof t.arrayLimit == 'number' ? t.arrayLimit : Or.arrayLimit,
- charset: n,
- charsetSentinel:
- typeof t.charsetSentinel == 'boolean'
- ? t.charsetSentinel
- : Or.charsetSentinel,
- comma: typeof t.comma == 'boolean' ? t.comma : Or.comma,
- decoder: typeof t.decoder == 'function' ? t.decoder : Or.decoder,
- delimiter:
- typeof t.delimiter == 'string' || Wc.isRegExp(t.delimiter)
- ? t.delimiter
- : Or.delimiter,
- depth: typeof t.depth == 'number' || t.depth === !1 ? +t.depth : Or.depth,
- ignoreQueryPrefix: t.ignoreQueryPrefix === !0,
- interpretNumericEntities:
- typeof t.interpretNumericEntities == 'boolean'
- ? t.interpretNumericEntities
- : Or.interpretNumericEntities,
- parameterLimit:
- typeof t.parameterLimit == 'number'
- ? t.parameterLimit
- : Or.parameterLimit,
- parseArrays: t.parseArrays !== !1,
- plainObjects:
- typeof t.plainObjects == 'boolean' ? t.plainObjects : Or.plainObjects,
- strictNullHandling:
- typeof t.strictNullHandling == 'boolean'
- ? t.strictNullHandling
- : Or.strictNullHandling
- };
- },
- Bie = function (e, t) {
- var n = Fie(t);
- if (e === '' || e === null || typeof e > 'u')
- return n.plainObjects ? Object.create(null) : {};
- for (
- var r = typeof e == 'string' ? Mie(e, n) : e,
- o = n.plainObjects ? Object.create(null) : {},
- i = Object.keys(r),
- a = 0;
- a < i.length;
- ++a
- ) {
- var s = i[a],
- c = Die(s, r[s], n, typeof e == 'string');
- o = Wc.merge(o, c, n);
- }
- return n.allowSparse === !0 ? o : Wc.compact(o);
- },
- Lie = $ie,
- Nie = Bie,
- Hie = d1,
- UT = { formats: Hie, parse: Nie, stringify: Lie },
- Vr =
- (typeof globalThis < 'u' && globalThis) ||
- (typeof self < 'u' && self) ||
- (typeof Vr < 'u' && Vr),
- bo = {
- searchParams: 'URLSearchParams' in Vr,
- iterable: 'Symbol' in Vr && 'iterator' in Symbol,
- blob:
- 'FileReader' in Vr &&
- 'Blob' in Vr &&
- (function () {
- try {
- return new Blob(), !0;
- } catch {
- return !1;
- }
- })(),
- formData: 'FormData' in Vr,
- arrayBuffer: 'ArrayBuffer' in Vr
- };
- function jie(e) {
- return e && DataView.prototype.isPrototypeOf(e);
- }
- if (bo.arrayBuffer)
- var Wie = [
- '[object Int8Array]',
- '[object Uint8Array]',
- '[object Uint8ClampedArray]',
- '[object Int16Array]',
- '[object Uint16Array]',
- '[object Int32Array]',
- '[object Uint32Array]',
- '[object Float32Array]',
- '[object Float64Array]'
- ],
- Uie =
- ArrayBuffer.isView ||
- function (e) {
- return e && Wie.indexOf(Object.prototype.toString.call(e)) > -1;
- };
- function af(e) {
- if (
- (typeof e != 'string' && (e = String(e)),
- /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || e === '')
- )
- throw new TypeError('Invalid character in header field name: "' + e + '"');
- return e.toLowerCase();
- }
- function u1(e) {
- return typeof e != 'string' && (e = String(e)), e;
- }
- function f1(e) {
- var t = {
- next: function () {
- var n = e.shift();
- return { done: n === void 0, value: n };
- }
- };
- return (
- bo.iterable &&
- (t[Symbol.iterator] = function () {
- return t;
- }),
- t
- );
- }
- function Pr(e) {
- (this.map = {}),
- e instanceof Pr
- ? e.forEach(function (t, n) {
- this.append(n, t);
- }, this)
- : Array.isArray(e)
- ? e.forEach(function (t) {
- this.append(t[0], t[1]);
- }, this)
- : e &&
- Object.getOwnPropertyNames(e).forEach(function (t) {
- this.append(t, e[t]);
- }, this);
- }
- Pr.prototype.append = function (e, t) {
- (e = af(e)), (t = u1(t));
- var n = this.map[e];
- this.map[e] = n ? n + ', ' + t : t;
- };
- Pr.prototype.delete = function (e) {
- delete this.map[af(e)];
- };
- Pr.prototype.get = function (e) {
- return (e = af(e)), this.has(e) ? this.map[e] : null;
- };
- Pr.prototype.has = function (e) {
- return this.map.hasOwnProperty(af(e));
- };
- Pr.prototype.set = function (e, t) {
- this.map[af(e)] = u1(t);
- };
- Pr.prototype.forEach = function (e, t) {
- for (var n in this.map)
- this.map.hasOwnProperty(n) && e.call(t, this.map[n], n, this);
- };
- Pr.prototype.keys = function () {
- var e = [];
- return (
- this.forEach(function (t, n) {
- e.push(n);
- }),
- f1(e)
- );
- };
- Pr.prototype.values = function () {
- var e = [];
- return (
- this.forEach(function (t) {
- e.push(t);
- }),
- f1(e)
- );
- };
- Pr.prototype.entries = function () {
- var e = [];
- return (
- this.forEach(function (t, n) {
- e.push([n, t]);
- }),
- f1(e)
- );
- };
- bo.iterable && (Pr.prototype[Symbol.iterator] = Pr.prototype.entries);
- function db(e) {
- if (e.bodyUsed) return Promise.reject(new TypeError('Already read'));
- e.bodyUsed = !0;
- }
- function VT(e) {
- return new Promise(function (t, n) {
- (e.onload = function () {
- t(e.result);
- }),
- (e.onerror = function () {
- n(e.error);
- });
- });
- }
- function Vie(e) {
- var t = new FileReader(),
- n = VT(t);
- return t.readAsArrayBuffer(e), n;
- }
- function Kie(e) {
- var t = new FileReader(),
- n = VT(t);
- return t.readAsText(e), n;
- }
- function qie(e) {
- for (
- var t = new Uint8Array(e), n = new Array(t.length), r = 0;
- r < t.length;
- r++
- )
- n[r] = String.fromCharCode(t[r]);
- return n.join('');
- }
- function u_(e) {
- if (e.slice) return e.slice(0);
- var t = new Uint8Array(e.byteLength);
- return t.set(new Uint8Array(e)), t.buffer;
- }
- function KT() {
- return (
- (this.bodyUsed = !1),
- (this._initBody = function (e) {
- (this.bodyUsed = this.bodyUsed),
- (this._bodyInit = e),
- e
- ? typeof e == 'string'
- ? (this._bodyText = e)
- : bo.blob && Blob.prototype.isPrototypeOf(e)
- ? (this._bodyBlob = e)
- : bo.formData && FormData.prototype.isPrototypeOf(e)
- ? (this._bodyFormData = e)
- : bo.searchParams && URLSearchParams.prototype.isPrototypeOf(e)
- ? (this._bodyText = e.toString())
- : bo.arrayBuffer && bo.blob && jie(e)
- ? ((this._bodyArrayBuffer = u_(e.buffer)),
- (this._bodyInit = new Blob([this._bodyArrayBuffer])))
- : bo.arrayBuffer &&
- (ArrayBuffer.prototype.isPrototypeOf(e) || Uie(e))
- ? (this._bodyArrayBuffer = u_(e))
- : (this._bodyText = e = Object.prototype.toString.call(e))
- : (this._bodyText = ''),
- this.headers.get('content-type') ||
- (typeof e == 'string'
- ? this.headers.set('content-type', 'text/plain;charset=UTF-8')
- : this._bodyBlob && this._bodyBlob.type
- ? this.headers.set('content-type', this._bodyBlob.type)
- : bo.searchParams &&
- URLSearchParams.prototype.isPrototypeOf(e) &&
- this.headers.set(
- 'content-type',
- 'application/x-www-form-urlencoded;charset=UTF-8'
- ));
- }),
- bo.blob &&
- ((this.blob = function () {
- var e = db(this);
- if (e) return e;
- if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
- if (this._bodyArrayBuffer)
- return Promise.resolve(new Blob([this._bodyArrayBuffer]));
- if (this._bodyFormData)
- throw new Error('could not read FormData body as blob');
- return Promise.resolve(new Blob([this._bodyText]));
- }),
- (this.arrayBuffer = function () {
- if (this._bodyArrayBuffer) {
- var e = db(this);
- return (
- e ||
- (ArrayBuffer.isView(this._bodyArrayBuffer)
- ? Promise.resolve(
- this._bodyArrayBuffer.buffer.slice(
- this._bodyArrayBuffer.byteOffset,
- this._bodyArrayBuffer.byteOffset +
- this._bodyArrayBuffer.byteLength
- )
- )
- : Promise.resolve(this._bodyArrayBuffer))
- );
- } else return this.blob().then(Vie);
- })),
- (this.text = function () {
- var e = db(this);
- if (e) return e;
- if (this._bodyBlob) return Kie(this._bodyBlob);
- if (this._bodyArrayBuffer)
- return Promise.resolve(qie(this._bodyArrayBuffer));
- if (this._bodyFormData)
- throw new Error('could not read FormData body as text');
- return Promise.resolve(this._bodyText);
- }),
- bo.formData &&
- (this.formData = function () {
- return this.text().then(Xie);
- }),
- (this.json = function () {
- return this.text().then(JSON.parse);
- }),
- this
- );
- }
- var Yie = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
- function Gie(e) {
- var t = e.toUpperCase();
- return Yie.indexOf(t) > -1 ? t : e;
- }
- function Rs(e, t) {
- if (!(this instanceof Rs))
- throw new TypeError(
- 'Please use the "new" operator, this DOM object constructor cannot be called as a function.'
- );
- t = t || {};
- var n = t.body;
- if (e instanceof Rs) {
- if (e.bodyUsed) throw new TypeError('Already read');
- (this.url = e.url),
- (this.credentials = e.credentials),
- t.headers || (this.headers = new Pr(e.headers)),
- (this.method = e.method),
- (this.mode = e.mode),
- (this.signal = e.signal),
- !n && e._bodyInit != null && ((n = e._bodyInit), (e.bodyUsed = !0));
- } else this.url = String(e);
- if (
- ((this.credentials = t.credentials || this.credentials || 'same-origin'),
- (t.headers || !this.headers) && (this.headers = new Pr(t.headers)),
- (this.method = Gie(t.method || this.method || 'GET')),
- (this.mode = t.mode || this.mode || null),
- (this.signal = t.signal || this.signal),
- (this.referrer = null),
- (this.method === 'GET' || this.method === 'HEAD') && n)
- )
- throw new TypeError('Body not allowed for GET or HEAD requests');
- if (
- (this._initBody(n),
- (this.method === 'GET' || this.method === 'HEAD') &&
- (t.cache === 'no-store' || t.cache === 'no-cache'))
- ) {
- var r = /([?&])_=[^&]*/;
- if (r.test(this.url))
- this.url = this.url.replace(r, '$1_=' + new Date().getTime());
- else {
- var o = /\?/;
- this.url += (o.test(this.url) ? '&' : '?') + '_=' + new Date().getTime();
- }
- }
- }
- Rs.prototype.clone = function () {
- return new Rs(this, { body: this._bodyInit });
- };
- function Xie(e) {
- var t = new FormData();
- return (
- e
- .trim()
- .split('&')
- .forEach(function (n) {
- if (n) {
- var r = n.split('='),
- o = r.shift().replace(/\+/g, ' '),
- i = r.join('=').replace(/\+/g, ' ');
- t.append(decodeURIComponent(o), decodeURIComponent(i));
- }
- }),
- t
- );
- }
- function Zie(e) {
- var t = new Pr(),
- n = e.replace(/\r?\n[\t ]+/g, ' ');
- return (
- n
- .split('\r')
- .map(function (r) {
- return r.indexOf(`
- `) === 0
- ? r.substr(1, r.length)
- : r;
- })
- .forEach(function (r) {
- var o = r.split(':'),
- i = o.shift().trim();
- if (i) {
- var a = o.join(':').trim();
- t.append(i, a);
- }
- }),
- t
- );
- }
- KT.call(Rs.prototype);
- function Zi(e, t) {
- if (!(this instanceof Zi))
- throw new TypeError(
- 'Please use the "new" operator, this DOM object constructor cannot be called as a function.'
- );
- t || (t = {}),
- (this.type = 'default'),
- (this.status = t.status === void 0 ? 200 : t.status),
- (this.ok = this.status >= 200 && this.status < 300),
- (this.statusText = t.statusText === void 0 ? '' : '' + t.statusText),
- (this.headers = new Pr(t.headers)),
- (this.url = t.url || ''),
- this._initBody(e);
- }
- KT.call(Zi.prototype);
- Zi.prototype.clone = function () {
- return new Zi(this._bodyInit, {
- status: this.status,
- statusText: this.statusText,
- headers: new Pr(this.headers),
- url: this.url
- });
- };
- Zi.error = function () {
- var e = new Zi(null, { status: 0, statusText: '' });
- return (e.type = 'error'), e;
- };
- var Qie = [301, 302, 303, 307, 308];
- Zi.redirect = function (e, t) {
- if (Qie.indexOf(t) === -1) throw new RangeError('Invalid status code');
- return new Zi(null, { status: t, headers: { location: e } });
- };
- var ls = Vr.DOMException;
- try {
- new ls();
- } catch {
- (ls = function (t, n) {
- (this.message = t), (this.name = n);
- var r = Error(t);
- this.stack = r.stack;
- }),
- (ls.prototype = Object.create(Error.prototype)),
- (ls.prototype.constructor = ls);
- }
- function qT(e, t) {
- return new Promise(function (n, r) {
- var o = new Rs(e, t);
- if (o.signal && o.signal.aborted) return r(new ls('Aborted', 'AbortError'));
- var i = new XMLHttpRequest();
- function a() {
- i.abort();
- }
- (i.onload = function () {
- var c = {
- status: i.status,
- statusText: i.statusText,
- headers: Zie(i.getAllResponseHeaders() || '')
- };
- c.url =
- 'responseURL' in i ? i.responseURL : c.headers.get('X-Request-URL');
- var d = 'response' in i ? i.response : i.responseText;
- setTimeout(function () {
- n(new Zi(d, c));
- }, 0);
- }),
- (i.onerror = function () {
- setTimeout(function () {
- r(new TypeError('Network request failed'));
- }, 0);
- }),
- (i.ontimeout = function () {
- setTimeout(function () {
- r(new TypeError('Network request failed'));
- }, 0);
- }),
- (i.onabort = function () {
- setTimeout(function () {
- r(new ls('Aborted', 'AbortError'));
- }, 0);
- });
- function s(c) {
- try {
- return c === '' && Vr.location.href ? Vr.location.href : c;
- } catch {
- return c;
- }
- }
- i.open(o.method, s(o.url), !0),
- o.credentials === 'include'
- ? (i.withCredentials = !0)
- : o.credentials === 'omit' && (i.withCredentials = !1),
- 'responseType' in i &&
- (bo.blob
- ? (i.responseType = 'blob')
- : bo.arrayBuffer &&
- o.headers.get('Content-Type') &&
- o.headers
- .get('Content-Type')
- .indexOf('application/octet-stream') !== -1 &&
- (i.responseType = 'arraybuffer')),
- t && typeof t.headers == 'object' && !(t.headers instanceof Pr)
- ? Object.getOwnPropertyNames(t.headers).forEach(function (c) {
- i.setRequestHeader(c, u1(t.headers[c]));
- })
- : o.headers.forEach(function (c, d) {
- i.setRequestHeader(d, c);
- }),
- o.signal &&
- (o.signal.addEventListener('abort', a),
- (i.onreadystatechange = function () {
- i.readyState === 4 && o.signal.removeEventListener('abort', a);
- })),
- i.send(typeof o._bodyInit > 'u' ? null : o._bodyInit);
- });
- }
- qT.polyfill = !0;
- Vr.fetch ||
- ((Vr.fetch = qT), (Vr.Headers = Pr), (Vr.Request = Rs), (Vr.Response = Zi));
- self.fetch.bind(self);
- function f_(e, t) {
- var n = Object.keys(e);
- if (Object.getOwnPropertySymbols) {
- var r = Object.getOwnPropertySymbols(e);
- t &&
- (r = r.filter(function (o) {
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
- })),
- n.push.apply(n, r);
- }
- return n;
- }
- function yo(e) {
- for (var t = 1; t < arguments.length; t++) {
- var n = arguments[t] != null ? arguments[t] : {};
- t % 2
- ? f_(Object(n), !0).forEach(function (r) {
- Jie(e, r, n[r]);
- })
- : Object.getOwnPropertyDescriptors
- ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
- : f_(Object(n)).forEach(function (r) {
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
- });
- }
- return e;
- }
- function cl(e) {
- return (
- typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
- ? (cl = function (t) {
- return typeof t;
- })
- : (cl = function (t) {
- return t &&
- typeof Symbol == 'function' &&
- t.constructor === Symbol &&
- t !== Symbol.prototype
- ? 'symbol'
- : typeof t;
- }),
- cl(e)
- );
- }
- function lf(e, t) {
- if (!(e instanceof t))
- throw new TypeError('Cannot call a class as a function');
- }
- function h_(e, t) {
- for (var n = 0; n < t.length; n++) {
- var r = t[n];
- (r.enumerable = r.enumerable || !1),
- (r.configurable = !0),
- 'value' in r && (r.writable = !0),
- Object.defineProperty(e, r.key, r);
- }
- }
- function h1(e, t, n) {
- return t && h_(e.prototype, t), n && h_(e, n), e;
- }
- function Jie(e, t, n) {
- return (
- t in e
- ? Object.defineProperty(e, t, {
- value: n,
- enumerable: !0,
- configurable: !0,
- writable: !0
- })
- : (e[t] = n),
- e
- );
- }
- function YT(e, t) {
- if (typeof t != 'function' && t !== null)
- throw new TypeError('Super expression must either be null or a function');
- (e.prototype = Object.create(t && t.prototype, {
- constructor: { value: e, writable: !0, configurable: !0 }
- })),
- t && Lu(e, t);
- }
- function Bu(e) {
- return (
- (Bu = Object.setPrototypeOf
- ? Object.getPrototypeOf
- : function (n) {
- return n.__proto__ || Object.getPrototypeOf(n);
- }),
- Bu(e)
- );
- }
- function Lu(e, t) {
- return (
- (Lu =
- Object.setPrototypeOf ||
- function (r, o) {
- return (r.__proto__ = o), r;
- }),
- Lu(e, t)
- );
- }
- function GT() {
- if (typeof Reflect > 'u' || !Reflect.construct || Reflect.construct.sham)
- return !1;
- if (typeof Proxy == 'function') return !0;
- try {
- return (
- Boolean.prototype.valueOf.call(
- Reflect.construct(Boolean, [], function () {})
- ),
- !0
- );
- } catch {
- return !1;
- }
- }
- function Yh(e, t, n) {
- return (
- GT()
- ? (Yh = Reflect.construct)
- : (Yh = function (o, i, a) {
- var s = [null];
- s.push.apply(s, i);
- var c = Function.bind.apply(o, s),
- d = new c();
- return a && Lu(d, a.prototype), d;
- }),
- Yh.apply(null, arguments)
- );
- }
- function eae(e) {
- return Function.toString.call(e).indexOf('[native code]') !== -1;
- }
- function ip(e) {
- var t = typeof Map == 'function' ? new Map() : void 0;
- return (
- (ip = function (r) {
- if (r === null || !eae(r)) return r;
- if (typeof r != 'function')
- throw new TypeError(
- 'Super expression must either be null or a function'
- );
- if (typeof t < 'u') {
- if (t.has(r)) return t.get(r);
- t.set(r, o);
- }
- function o() {
- return Yh(r, arguments, Bu(this).constructor);
- }
- return (
- (o.prototype = Object.create(r.prototype, {
- constructor: {
- value: o,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- })),
- Lu(o, r)
- );
- }),
- ip(e)
- );
- }
- function tae(e) {
- if (e === void 0)
- throw new ReferenceError(
- "this hasn't been initialised - super() hasn't been called"
- );
- return e;
- }
- function nae(e, t) {
- if (t && (typeof t == 'object' || typeof t == 'function')) return t;
- if (t !== void 0)
- throw new TypeError(
- 'Derived constructors may only return object or undefined'
- );
- return tae(e);
- }
- function XT(e) {
- var t = GT();
- return function () {
- var r = Bu(e),
- o;
- if (t) {
- var i = Bu(this).constructor;
- o = Reflect.construct(r, arguments, i);
- } else o = r.apply(this, arguments);
- return nae(this, o);
- };
- }
- function Ni(e) {
- return rae(e) || oae(e) || iae(e) || aae();
- }
- function rae(e) {
- if (Array.isArray(e)) return x0(e);
- }
- function oae(e) {
- if (
- (typeof Symbol < 'u' && e[Symbol.iterator] != null) ||
- e['@@iterator'] != null
- )
- return Array.from(e);
- }
- function iae(e, t) {
- if (e) {
- if (typeof e == 'string') return x0(e, t);
- var n = Object.prototype.toString.call(e).slice(8, -1);
- if (
- (n === 'Object' && e.constructor && (n = e.constructor.name),
- n === 'Map' || n === 'Set')
- )
- return Array.from(e);
- if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return x0(e, t);
- }
- }
- function x0(e, t) {
- (t == null || t > e.length) && (t = e.length);
- for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
- return r;
- }
- function aae() {
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
- }
- function lae(e) {
- if (!Array.isArray(e)) throw new TypeError('Middlewares must be an array!');
- for (var t = e.length, n = 0; n < t; n++)
- if (typeof e[n] != 'function')
- throw new TypeError('Middleware must be componsed of function');
- return function (o, i) {
- var a = -1;
- function s(c) {
- if (c <= a)
- return Promise.reject(
- new Error(
- 'next() should not be called multiple times in one middleware!'
- )
- );
- a = c;
- var d = e[c] || i;
- if (!d) return Promise.resolve();
- try {
- return Promise.resolve(
- d(o, function () {
- return s(c + 1);
- })
- );
- } catch (f) {
- return Promise.reject(f);
- }
- }
- return s(0);
- };
- }
- var bi = (function () {
- function e(t) {
- if ((lf(this, e), !Array.isArray(t)))
- throw new TypeError('Default middlewares must be an array!');
- (this.defaultMiddlewares = Ni(t)), (this.middlewares = []);
- }
- return (
- h1(e, [
- {
- key: 'use',
- value: function (n) {
- var r =
- arguments.length > 1 && arguments[1] !== void 0
- ? arguments[1]
- : { global: !1, core: !1, defaultInstance: !1 },
- o = !1,
- i = !1,
- a = !1;
- if (
- (typeof r == 'number'
- ? (process && process.env, (o = !0), (i = !1))
- : cl(r) === 'object' &&
- r &&
- ((i = r.global || !1),
- (o = r.core || !1),
- (a = r.defaultInstance || !1)),
- i)
- ) {
- e.globalMiddlewares.splice(
- e.globalMiddlewares.length - e.defaultGlobalMiddlewaresLength,
- 0,
- n
- );
- return;
- }
- if (o) {
- e.coreMiddlewares.splice(
- e.coreMiddlewares.length - e.defaultCoreMiddlewaresLength,
- 0,
- n
- );
- return;
- }
- if (a) {
- this.defaultMiddlewares.push(n);
- return;
- }
- this.middlewares.push(n);
- }
- },
- {
- key: 'execute',
- value: function () {
- var n =
- arguments.length > 0 && arguments[0] !== void 0
- ? arguments[0]
- : null,
- r = lae(
- [].concat(
- Ni(this.middlewares),
- Ni(this.defaultMiddlewares),
- Ni(e.globalMiddlewares),
- Ni(e.coreMiddlewares)
- )
- );
- return r(n);
- }
- }
- ]),
- e
- );
- })();
- bi.globalMiddlewares = [];
- bi.defaultGlobalMiddlewaresLength = 0;
- bi.coreMiddlewares = [];
- bi.defaultCoreMiddlewaresLength = 0;
- var sae = (function () {
- function e(t) {
- lf(this, e),
- (this.cache = new Map()),
- (this.timer = {}),
- this.extendOptions(t);
- }
- return (
- h1(e, [
- {
- key: 'extendOptions',
- value: function (n) {
- this.maxCache = n.maxCache || 0;
- }
- },
- {
- key: 'get',
- value: function (n) {
- return this.cache.get(JSON.stringify(n));
- }
- },
- {
- key: 'set',
- value: function (n, r) {
- var o = this,
- i =
- arguments.length > 2 && arguments[2] !== void 0
- ? arguments[2]
- : 6e4;
- if (this.maxCache > 0 && this.cache.size >= this.maxCache) {
- var a = Ni(this.cache.keys())[0];
- this.cache.delete(a),
- this.timer[a] && clearTimeout(this.timer[a]);
- }
- var s = JSON.stringify(n);
- this.cache.set(s, r),
- i > 0 &&
- (this.timer[s] = setTimeout(function () {
- o.cache.delete(s), delete o.timer[s];
- }, i));
- }
- },
- {
- key: 'delete',
- value: function (n) {
- var r = JSON.stringify(n);
- return delete this.timer[r], this.cache.delete(r);
- }
- },
- {
- key: 'clear',
- value: function () {
- return (this.timer = {}), this.cache.clear();
- }
- }
- ]),
- e
- );
- })(),
- ZT = (function (e) {
- YT(n, e);
- var t = XT(n);
- function n(r, o) {
- var i,
- a =
- arguments.length > 2 && arguments[2] !== void 0
- ? arguments[2]
- : 'RequestError';
- return (
- lf(this, n),
- (i = t.call(this, r)),
- (i.name = 'RequestError'),
- (i.request = o),
- (i.type = a),
- i
- );
- }
- return n;
- })(ip(Error)),
- Kd = (function (e) {
- YT(n, e);
- var t = XT(n);
- function n(r, o, i, a) {
- var s,
- c =
- arguments.length > 4 && arguments[4] !== void 0
- ? arguments[4]
- : 'ResponseError';
- return (
- lf(this, n),
- (s = t.call(this, o || r.statusText)),
- (s.name = 'ResponseError'),
- (s.data = i),
- (s.response = r),
- (s.request = a),
- (s.type = c),
- s
- );
- }
- return n;
- })(ip(Error));
- function cae(e) {
- return new Promise(function (t, n) {
- var r = new FileReader();
- (r.onload = function () {
- t(r.result);
- }),
- (r.onerror = n),
- r.readAsText(e, 'GBK');
- });
- }
- function v_(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1,
- n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null,
- r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
- try {
- return JSON.parse(e);
- } catch {
- if (t) throw new Kd(n, 'JSON.parse fail', e, r, 'ParseError');
- }
- return e;
- }
- function dae(e, t, n) {
- return new Promise(function (r, o) {
- setTimeout(function () {
- o(new ZT(t || 'timeout of '.concat(e, 'ms exceeded'), n, 'Timeout'));
- }, e);
- });
- }
- function p_(e) {
- return new Promise(function (t, n) {
- e.cancelToken &&
- e.cancelToken.promise.then(function (r) {
- n(r);
- });
- });
- }
- var uae = Object.prototype.toString;
- function QT() {
- var e;
- return (
- typeof process < 'u' &&
- uae.call(process) === '[object process]' &&
- (e = 'NODE'),
- typeof XMLHttpRequest < 'u' && (e = 'BROWSER'),
- e
- );
- }
- function w0(e) {
- return (
- cl(e) === 'object' && Object.prototype.toString.call(e) === '[object Array]'
- );
- }
- function JT(e) {
- return typeof URLSearchParams < 'u' && e instanceof URLSearchParams;
- }
- function fae(e) {
- return (
- cl(e) === 'object' && Object.prototype.toString.call(e) === '[object Date]'
- );
- }
- function g_(e) {
- return e !== null && cl(e) === 'object';
- }
- function m_(e, t) {
- if (e)
- if ((cl(e) !== 'object' && (e = [e]), w0(e)))
- for (var n = 0; n < e.length; n++) t.call(null, e[n], n, e);
- else
- for (var r in e)
- Object.prototype.hasOwnProperty.call(e, r) && t.call(null, e[r], r, e);
- }
- function b_(e) {
- return JT(e)
- ? UT.parse(e.toString(), { strictNullHandling: !0 })
- : typeof e == 'string'
- ? [e]
- : e;
- }
- function C0(e) {
- return UT.stringify(e, { arrayFormat: 'repeat', strictNullHandling: !0 });
- }
- function e$(e, t) {
- return yo(
- yo(yo({}, e), t),
- {},
- {
- headers: yo(yo({}, e.headers), t.headers),
- params: yo(yo({}, b_(e.params)), b_(t.params)),
- method: (t.method || e.method || 'get').toLowerCase()
- }
- );
- }
- var hae = function (t) {
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- r = n.prefix,
- o = n.suffix;
- return (
- r && (t = ''.concat(r).concat(t)),
- o && (t = ''.concat(t).concat(o)),
- { url: t, options: n }
- );
- };
- function vae(e, t) {
- var n = t.method,
- r = n === void 0 ? 'get' : n;
- return r.toLowerCase() === 'get';
- }
- function pae(e, t) {
- if (!e) return t();
- var n = e.req;
- n = n === void 0 ? {} : n;
- var r = n.options,
- o = r === void 0 ? {} : r,
- i = n.url,
- a = i === void 0 ? '' : i,
- s = e.cache,
- c = e.responseInterceptors,
- d = o.timeout,
- f = d === void 0 ? 0 : d,
- v = o.timeoutMessage,
- p = o.__umiRequestCoreType__,
- m = p === void 0 ? 'normal' : p,
- g = o.useCache,
- w = g === void 0 ? !1 : g,
- x = o.method,
- y = x === void 0 ? 'get' : x,
- C = o.params,
- R = o.ttl,
- S = o.validateCache,
- _ = S === void 0 ? vae : S;
- if (m !== 'normal') return process && process.env, t();
- var P = fetch;
- if (!P) throw new Error('Global fetch not exist!');
- var T = QT() === 'BROWSER',
- E = _(a, o) && w && T;
- if (E) {
- var z = s.get({ url: a, params: C, method: y });
- if (z) return (z = z.clone()), (z.useCache = !0), (e.res = z), t();
- }
- var k;
- return (
- f > 0
- ? (k = Promise.race([p_(o), P(a, o), dae(f, v, e.req)]))
- : (k = Promise.race([p_(o), P(a, o)])),
- c.forEach(function (M) {
- k = k.then(function (A) {
- var D = typeof A.clone == 'function' ? A.clone() : A;
- return M(D, o);
- });
- }),
- k.then(function (M) {
- if (E && M.status === 200) {
- var A = M.clone();
- (A.useCache = !0), s.set({ url: a, params: C, method: y }, A, R);
- }
- return (e.res = M), t();
- })
- );
- }
- function gae(e, t) {
- var n;
- return t()
- .then(function () {
- if (e) {
- var r = e.res,
- o = r === void 0 ? {} : r,
- i = e.req,
- a = i === void 0 ? {} : i,
- s = a || {},
- c = s.options;
- c = c === void 0 ? {} : c;
- var d = c.responseType,
- f = d === void 0 ? 'json' : d,
- v = c.charset,
- p = v === void 0 ? 'utf8' : v;
- c.getResponse;
- var m = c.throwErrIfParseFail,
- g = m === void 0 ? !1 : m,
- w = c.parseResponse,
- x = w === void 0 ? !0 : w;
- if (x && !(!o || !o.clone)) {
- if (
- ((n = QT() === 'BROWSER' ? o.clone() : o),
- (n.useCache = o.useCache || !1),
- p === 'gbk')
- )
- try {
- return o
- .blob()
- .then(cae)
- .then(function (y) {
- return v_(y, !1, n, a);
- });
- } catch (y) {
- throw new Kd(n, y.message, null, a, 'ParseError');
- }
- else if (f === 'json')
- return o.text().then(function (y) {
- return v_(y, g, n, a);
- });
- try {
- return o[f]();
- } catch {
- throw new Kd(n, 'responseType not support', null, a, 'ParseError');
- }
- }
- }
- })
- .then(function (r) {
- if (e) {
- e.res;
- var o = e.req,
- i = o === void 0 ? {} : o,
- a = i || {},
- s = a.options;
- s = s === void 0 ? {} : s;
- var c = s.getResponse,
- d = c === void 0 ? !1 : c;
- if (n) {
- if (n.status >= 200 && n.status < 300) {
- if (d) {
- e.res = { data: r, response: n };
- return;
- }
- e.res = r;
- return;
- }
- throw new Kd(n, 'http error', r, i, 'HttpError');
- }
- }
- })
- .catch(function (r) {
- if (r instanceof ZT || r instanceof Kd) throw r;
- var o = e.req,
- i = e.res;
- throw (
- ((r.request = r.request || o),
- (r.response = r.response || i),
- (r.type = r.type || r.name),
- (r.data = r.data || void 0),
- r)
- );
- });
- }
- function mae(e, t) {
- if (!e) return t();
- var n = e.req;
- n = n === void 0 ? {} : n;
- var r = n.options,
- o = r === void 0 ? {} : r,
- i = o.method,
- a = i === void 0 ? 'get' : i;
- if (['post', 'put', 'patch', 'delete'].indexOf(a.toLowerCase()) === -1)
- return t();
- var s = o.requestType,
- c = s === void 0 ? 'json' : s,
- d = o.data;
- if (d) {
- var f = Object.prototype.toString.call(d);
- f === '[object Object]' || f === '[object Array]'
- ? c === 'json'
- ? ((o.headers = yo(
- {
- Accept: 'application/json',
- 'Content-Type': 'application/json;charset=UTF-8'
- },
- o.headers
- )),
- (o.body = JSON.stringify(d)))
- : c === 'form' &&
- ((o.headers = yo(
- {
- Accept: 'application/json',
- 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
- },
- o.headers
- )),
- (o.body = C0(d)))
- : ((o.headers = yo({ Accept: 'application/json' }, o.headers)),
- (o.body = d));
- }
- return (e.req.options = o), t();
- }
- function bae(e, t) {
- var n, r;
- if (e)
- if (t) n = t(e);
- else if (JT(e)) n = e.toString();
- else if (w0(e))
- (r = []),
- m_(e, function (i) {
- i === null || typeof i > 'u'
- ? r.push(i)
- : r.push(g_(i) ? JSON.stringify(i) : i);
- }),
- (n = C0(r));
- else {
- (r = {}),
- m_(e, function (i, a) {
- var s = i;
- i === null || typeof i > 'u'
- ? (r[a] = i)
- : fae(i)
- ? (s = i.toISOString())
- : w0(i)
- ? (s = i)
- : g_(i) && (s = JSON.stringify(i)),
- (r[a] = s);
- });
- var o = C0(r);
- n = o;
- }
- return n;
- }
- function yae(e, t) {
- if (!e) return t();
- var n = e.req;
- n = n === void 0 ? {} : n;
- var r = n.options,
- o = r === void 0 ? {} : r,
- i = o.paramsSerializer,
- a = o.params,
- s = e.req;
- s = s === void 0 ? {} : s;
- var c = s.url,
- d = c === void 0 ? '' : c;
- (o.method = o.method ? o.method.toUpperCase() : 'GET'),
- (o.credentials = o.credentials || 'same-origin');
- var f = bae(a, i);
- if (((e.req.originUrl = d), f)) {
- var v = d.indexOf('?') !== -1 ? '&' : '?';
- e.req.url = ''.concat(d).concat(v).concat(f);
- }
- return (e.req.options = o), t();
- }
- var t$ = [mae, yae, gae],
- n$ = [pae];
- bi.globalMiddlewares = t$;
- bi.defaultGlobalMiddlewaresLength = t$.length;
- bi.coreMiddlewares = n$;
- bi.defaultCoreMiddlewaresLength = n$.length;
- var uu = (function () {
- function e(t) {
- lf(this, e),
- (this.onion = new bi([])),
- (this.fetchIndex = 0),
- (this.mapCache = new sae(t)),
- (this.initOptions = t),
- (this.instanceRequestInterceptors = []),
- (this.instanceResponseInterceptors = []);
- }
- return (
- h1(
- e,
- [
- {
- key: 'use',
- value: function (n) {
- var r =
- arguments.length > 1 && arguments[1] !== void 0
- ? arguments[1]
- : { global: !1, core: !1 };
- return this.onion.use(n, r), this;
- }
- },
- {
- key: 'extendOptions',
- value: function (n) {
- (this.initOptions = e$(this.initOptions, n)),
- this.mapCache.extendOptions(n);
- }
- },
- {
- key: 'dealRequestInterceptors',
- value: function (n) {
- var r = function (a, s) {
- return a.then(function () {
- var c =
- arguments.length > 0 && arguments[0] !== void 0
- ? arguments[0]
- : {};
- return (
- (n.req.url = c.url || n.req.url),
- (n.req.options = c.options || n.req.options),
- s(n.req.url, n.req.options)
- );
- });
- },
- o = [].concat(
- Ni(e.requestInterceptors),
- Ni(this.instanceRequestInterceptors)
- );
- return o.reduce(r, Promise.resolve()).then(function () {
- var i =
- arguments.length > 0 && arguments[0] !== void 0
- ? arguments[0]
- : {};
- return (
- (n.req.url = i.url || n.req.url),
- (n.req.options = i.options || n.req.options),
- Promise.resolve()
- );
- });
- }
- },
- {
- key: 'request',
- value: function (n, r) {
- var o = this,
- i = this.onion,
- a = {
- req: { url: n, options: yo(yo({}, r), {}, { url: n }) },
- res: null,
- cache: this.mapCache,
- responseInterceptors: [].concat(
- Ni(e.responseInterceptors),
- Ni(this.instanceResponseInterceptors)
- )
- };
- if (typeof n != 'string') throw new Error('url MUST be a string');
- return new Promise(function (s, c) {
- o.dealRequestInterceptors(a)
- .then(function () {
- return i.execute(a);
- })
- .then(function () {
- s(a.res);
- })
- .catch(function (d) {
- var f = a.req.options.errorHandler;
- if (f)
- try {
- var v = f(d);
- s(v);
- } catch (p) {
- c(p);
- }
- else c(d);
- });
- });
- }
- }
- ],
- [
- {
- key: 'requestUse',
- value: function (n) {
- var r =
- arguments.length > 1 && arguments[1] !== void 0
- ? arguments[1]
- : { global: !0 };
- if (typeof n != 'function')
- throw new TypeError('Interceptor must be function!');
- r.global
- ? e.requestInterceptors.push(n)
- : this.instanceRequestInterceptors.push(n);
- }
- },
- {
- key: 'responseUse',
- value: function (n) {
- var r =
- arguments.length > 1 && arguments[1] !== void 0
- ? arguments[1]
- : { global: !0 };
- if (typeof n != 'function')
- throw new TypeError('Interceptor must be function!');
- r.global
- ? e.responseInterceptors.push(n)
- : this.instanceResponseInterceptors.push(n);
- }
- }
- ]
- ),
- e
- );
- })();
- uu.requestInterceptors = [hae];
- uu.responseInterceptors = [];
- function Vp(e) {
- this.message = e;
- }
- Vp.prototype.toString = function () {
- return this.message ? 'Cancel: '.concat(this.message) : 'Cancel';
- };
- Vp.prototype.__CANCEL__ = !0;
- function ap(e) {
- if (typeof e != 'function')
- throw new TypeError('executor must be a function.');
- var t;
- this.promise = new Promise(function (o) {
- t = o;
- });
- var n = this;
- e(function (o) {
- n.reason || ((n.reason = new Vp(o)), t(n.reason));
- });
- }
- ap.prototype.throwIfRequested = function () {
- if (this.reason) throw this.reason;
- };
- ap.source = function () {
- var t,
- n = new ap(function (o) {
- t = o;
- });
- return { token: n, cancel: t };
- };
- function xae(e) {
- return !!(e && e.__CANCEL__);
- }
- var v1 = function () {
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
- n = new uu(t),
- r = function (a) {
- var s =
- arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- c = e$(n.initOptions, s);
- return n.request(a, c);
- };
- (r.use = n.use.bind(n)),
- (r.fetchIndex = n.fetchIndex),
- (r.interceptors = {
- request: { use: uu.requestUse.bind(n) },
- response: { use: uu.responseUse.bind(n) }
- });
- var o = ['get', 'post', 'delete', 'put', 'patch', 'head', 'options', 'rpc'];
- return (
- o.forEach(function (i) {
- r[i] = function (a, s) {
- return r(a, yo(yo({}, s), {}, { method: i }));
- };
- }),
- (r.Cancel = Vp),
- (r.CancelToken = ap),
- (r.isCancel = xae),
- (r.extendOptions = n.extendOptions.bind(n)),
- (r.middlewares = {
- instance: n.onion.middlewares,
- defaultInstance: n.onion.defaultMiddlewares,
- global: bi.globalMiddlewares,
- core: bi.coreMiddlewares
- }),
- r
- );
- },
- wae = function (t) {
- return v1(t);
- };
- v1({ parseResponse: !1 });
- v1({});
- var lp = {},
- Cae = {
- get exports() {
- return lp;
- },
- set exports(e) {
- lp = e;
- }
- };
- (function (e, t) {
- var n = 9007199254740991,
- r = '[object Arguments]',
- o = '[object Function]',
- i = '[object GeneratorFunction]',
- a = '[object Map]',
- s = '[object Object]',
- c = '[object Promise]',
- d = '[object Set]',
- f = '[object WeakMap]',
- v = '[object DataView]',
- p = /[\\^$.*+?()[\]{}|]/g,
- m = /^\[object .+?Constructor\]$/,
- g = typeof Nn == 'object' && Nn && Nn.Object === Object && Nn,
- w = typeof self == 'object' && self && self.Object === Object && self,
- x = g || w || Function('return this')(),
- y = t && !t.nodeType && t,
- C = y && !0 && e && !e.nodeType && e,
- R = C && C.exports === y;
- function S(De, ut) {
- return De == null ? void 0 : De[ut];
- }
- function _(De) {
- var ut = !1;
- if (De != null && typeof De.toString != 'function')
- try {
- ut = !!(De + '');
- } catch {}
- return ut;
- }
- function P(De, ut) {
- return function (wt) {
- return De(ut(wt));
- };
- }
- var T = Function.prototype,
- E = Object.prototype,
- z = x['__core-js_shared__'],
- k = (function () {
- var De = /[^.]+$/.exec((z && z.keys && z.keys.IE_PROTO) || '');
- return De ? 'Symbol(src)_1.' + De : '';
- })(),
- M = T.toString,
- A = E.hasOwnProperty,
- D = E.toString,
- L = RegExp(
- '^' +
- M.call(A)
- .replace(p, '\\$&')
- .replace(
- /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
- '$1.*?'
- ) +
- '$'
- ),
- H = R ? x.Buffer : void 0,
- B = E.propertyIsEnumerable,
- q = H ? H.isBuffer : void 0,
- X = P(Object.keys, Object),
- te = j(x, 'DataView'),
- G = j(x, 'Map'),
- Q = j(x, 'Promise'),
- re = j(x, 'Set'),
- se = j(x, 'WeakMap'),
- pe = !B.call({ valueOf: 1 }, 'valueOf'),
- ce = ie(te),
- xe = ie(G),
- ve = ie(Q),
- be = ie(re),
- Ce = ie(se);
- function ge(De) {
- return D.call(De);
- }
- function Ae(De) {
- if (!it(De) || ne(De)) return !1;
- var ut = Ne(De) || _(De) ? L : m;
- return ut.test(ie(De));
- }
- function j(De, ut) {
- var wt = S(De, ut);
- return Ae(wt) ? wt : void 0;
- }
- var ee = ge;
- ((te && ee(new te(new ArrayBuffer(1))) != v) ||
- (G && ee(new G()) != a) ||
- (Q && ee(Q.resolve()) != c) ||
- (re && ee(new re()) != d) ||
- (se && ee(new se()) != f)) &&
- (ee = function (De) {
- var ut = D.call(De),
- wt = ut == s ? De.constructor : void 0,
- Lt = wt ? ie(wt) : void 0;
- if (Lt)
- switch (Lt) {
- case ce:
- return v;
- case xe:
- return a;
- case ve:
- return c;
- case be:
- return d;
- case Ce:
- return f;
- }
- return ut;
- });
- function ne(De) {
- return !!k && k in De;
- }
- function fe(De) {
- var ut = De && De.constructor,
- wt = (typeof ut == 'function' && ut.prototype) || E;
- return De === wt;
- }
- function ie(De) {
- if (De != null) {
- try {
- return M.call(De);
- } catch {}
- try {
- return De + '';
- } catch {}
- }
- return '';
- }
- function W(De) {
- return (
- _e(De) &&
- A.call(De, 'callee') &&
- (!B.call(De, 'callee') || D.call(De) == r)
- );
- }
- var ae = Array.isArray;
- function he(De) {
- return De != null && Ge(De.length) && !Ne(De);
- }
- function _e(De) {
- return dt(De) && he(De);
- }
- var le = q || xt;
- function Re(De) {
- if (
- he(De) &&
- (ae(De) ||
- typeof De == 'string' ||
- typeof De.splice == 'function' ||
- le(De) ||
- W(De))
- )
- return !De.length;
- var ut = ee(De);
- if (ut == a || ut == d) return !De.size;
- if (pe || fe(De)) return !X(De).length;
- for (var wt in De) if (A.call(De, wt)) return !1;
- return !0;
- }
- function Ne(De) {
- var ut = it(De) ? D.call(De) : '';
- return ut == o || ut == i;
- }
- function Ge(De) {
- return typeof De == 'number' && De > -1 && De % 1 == 0 && De <= n;
- }
- function it(De) {
- var ut = typeof De;
- return !!De && (ut == 'object' || ut == 'function');
- }
- function dt(De) {
- return !!De && typeof De == 'object';
- }
- function xt() {
- return !1;
- }
- e.exports = Re;
- })(Cae, lp);
- var Sae = '[object Object]';
- function _ae(e) {
- var t = !1;
- if (e != null && typeof e.toString != 'function')
- try {
- t = !!(e + '');
- } catch {}
- return t;
- }
- function Rae(e, t) {
- return function (n) {
- return e(t(n));
- };
- }
- var Pae = Function.prototype,
- r$ = Object.prototype,
- o$ = Pae.toString,
- kae = r$.hasOwnProperty,
- Tae = o$.call(Object),
- $ae = r$.toString,
- Oae = Rae(Object.getPrototypeOf, Object);
- function zae(e) {
- return !!e && typeof e == 'object';
- }
- function Eae(e) {
- if (!zae(e) || $ae.call(e) != Sae || _ae(e)) return !1;
- var t = Oae(e);
- if (t === null) return !0;
- var n = kae.call(t, 'constructor') && t.constructor;
- return typeof n == 'function' && n instanceof n && o$.call(n) == Tae;
- }
- var Aae = Eae,
- sp = {},
- Mae = {
- get exports() {
- return sp;
- },
- set exports(e) {
- sp = e;
- }
- };
- (function (e, t) {
- var n = 200,
- r = 'Expected a function',
- o = '__lodash_hash_undefined__',
- i = 1,
- a = 2,
- s = 1 / 0,
- c = 9007199254740991,
- d = '[object Arguments]',
- f = '[object Array]',
- v = '[object Boolean]',
- p = '[object Date]',
- m = '[object Error]',
- g = '[object Function]',
- w = '[object GeneratorFunction]',
- x = '[object Map]',
- y = '[object Number]',
- C = '[object Object]',
- R = '[object Promise]',
- S = '[object RegExp]',
- _ = '[object Set]',
- P = '[object String]',
- T = '[object Symbol]',
- E = '[object WeakMap]',
- z = '[object ArrayBuffer]',
- k = '[object DataView]',
- M = '[object Float32Array]',
- A = '[object Float64Array]',
- D = '[object Int8Array]',
- L = '[object Int16Array]',
- H = '[object Int32Array]',
- B = '[object Uint8Array]',
- q = '[object Uint8ClampedArray]',
- X = '[object Uint16Array]',
- te = '[object Uint32Array]',
- G = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- Q = /^\w*$/,
- re = /^\./,
- se =
- /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
- pe = /[\\^$.*+?()[\]{}|]/g,
- ce = /\\(\\)?/g,
- xe = /^\[object .+?Constructor\]$/,
- ve = /^(?:0|[1-9]\d*)$/,
- be = {};
- (be[M] = be[A] = be[D] = be[L] = be[H] = be[B] = be[q] = be[X] = be[te] = !0),
- (be[d] =
- be[f] =
- be[z] =
- be[v] =
- be[k] =
- be[p] =
- be[m] =
- be[g] =
- be[x] =
- be[y] =
- be[C] =
- be[S] =
- be[_] =
- be[P] =
- be[E] =
- !1);
- var Ce = typeof Nn == 'object' && Nn && Nn.Object === Object && Nn,
- ge = typeof self == 'object' && self && self.Object === Object && self,
- Ae = Ce || ge || Function('return this')(),
- j = t && !t.nodeType && t,
- ee = j && !0 && e && !e.nodeType && e,
- ne = ee && ee.exports === j,
- fe = ne && Ce.process,
- ie = (function () {
- try {
- return fe && fe.binding('util');
- } catch {}
- })(),
- W = ie && ie.isTypedArray;
- function ae(K, de) {
- for (
- var Le = -1, at = K ? K.length : 0;
- ++Le < at && de(K[Le], Le, K) !== !1;
- );
- return K;
- }
- function he(K, de) {
- for (var Le = -1, at = K ? K.length : 0; ++Le < at; )
- if (de(K[Le], Le, K)) return !0;
- return !1;
- }
- function _e(K) {
- return function (de) {
- return de == null ? void 0 : de[K];
- };
- }
- function le(K, de) {
- for (var Le = -1, at = Array(K); ++Le < K; ) at[Le] = de(Le);
- return at;
- }
- function Re(K) {
- return function (de) {
- return K(de);
- };
- }
- function Ne(K, de) {
- return K == null ? void 0 : K[de];
- }
- function Ge(K) {
- var de = !1;
- if (K != null && typeof K.toString != 'function')
- try {
- de = !!(K + '');
- } catch {}
- return de;
- }
- function it(K) {
- var de = -1,
- Le = Array(K.size);
- return (
- K.forEach(function (at, It) {
- Le[++de] = [It, at];
- }),
- Le
- );
- }
- function dt(K, de) {
- return function (Le) {
- return K(de(Le));
- };
- }
- function xt(K) {
- var de = -1,
- Le = Array(K.size);
- return (
- K.forEach(function (at) {
- Le[++de] = at;
- }),
- Le
- );
- }
- var De = Array.prototype,
- ut = Function.prototype,
- wt = Object.prototype,
- Lt = Ae['__core-js_shared__'],
- ot = (function () {
- var K = /[^.]+$/.exec((Lt && Lt.keys && Lt.keys.IE_PROTO) || '');
- return K ? 'Symbol(src)_1.' + K : '';
- })(),
- ct = ut.toString,
- Xe = wt.hasOwnProperty,
- Qe = wt.toString,
- oe = RegExp(
- '^' +
- ct
- .call(Xe)
- .replace(pe, '\\$&')
- .replace(
- /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
- '$1.*?'
- ) +
- '$'
- ),
- ze = Ae.Symbol,
- We = Ae.Uint8Array,
- lt = dt(Object.getPrototypeOf, Object),
- st = Object.create,
- me = wt.propertyIsEnumerable,
- He = De.splice,
- tt = dt(Object.keys, Object),
- pt = Fa(Ae, 'DataView'),
- Pe = Fa(Ae, 'Map'),
- Ve = Fa(Ae, 'Promise'),
- nt = Fa(Ae, 'Set'),
- Ot = Fa(Ae, 'WeakMap'),
- $n = Fa(Object, 'create'),
- jn = ra(pt),
- Zt = ra(Pe),
- Se = ra(Ve),
- je = ra(nt),
- Ct = ra(Ot),
- qt = ze ? ze.prototype : void 0,
- we = qt ? qt.valueOf : void 0,
- Fe = qt ? qt.toString : void 0;
- function rt(K) {
- var de = -1,
- Le = K ? K.length : 0;
- for (this.clear(); ++de < Le; ) {
- var at = K[de];
- this.set(at[0], at[1]);
- }
- }
- function ft() {
- this.__data__ = $n ? $n(null) : {};
- }
- function gt(K) {
- return this.has(K) && delete this.__data__[K];
- }
- function bn(K) {
- var de = this.__data__;
- if ($n) {
- var Le = de[K];
- return Le === o ? void 0 : Le;
- }
- return Xe.call(de, K) ? de[K] : void 0;
- }
- function ln(K) {
- var de = this.__data__;
- return $n ? de[K] !== void 0 : Xe.call(de, K);
- }
- function $e(K, de) {
- var Le = this.__data__;
- return (Le[K] = $n && de === void 0 ? o : de), this;
- }
- (rt.prototype.clear = ft),
- (rt.prototype.delete = gt),
- (rt.prototype.get = bn),
- (rt.prototype.has = ln),
- (rt.prototype.set = $e);
- function Je(K) {
- var de = -1,
- Le = K ? K.length : 0;
- for (this.clear(); ++de < Le; ) {
- var at = K[de];
- this.set(at[0], at[1]);
- }
- }
- function vt() {
- this.__data__ = [];
- }
- function Wt(K) {
- var de = this.__data__,
- Le = Ia(de, K);
- if (Le < 0) return !1;
- var at = de.length - 1;
- return Le == at ? de.pop() : He.call(de, Le, 1), !0;
- }
- function dn(K) {
- var de = this.__data__,
- Le = Ia(de, K);
- return Le < 0 ? void 0 : de[Le][1];
- }
- function nn(K) {
- return Ia(this.__data__, K) > -1;
- }
- function kr(K, de) {
- var Le = this.__data__,
- at = Ia(Le, K);
- return at < 0 ? Le.push([K, de]) : (Le[at][1] = de), this;
- }
- (Je.prototype.clear = vt),
- (Je.prototype.delete = Wt),
- (Je.prototype.get = dn),
- (Je.prototype.has = nn),
- (Je.prototype.set = kr);
- function Yt(K) {
- var de = -1,
- Le = K ? K.length : 0;
- for (this.clear(); ++de < Le; ) {
- var at = K[de];
- this.set(at[0], at[1]);
- }
- }
- function On() {
- this.__data__ = { hash: new rt(), map: new (Pe || Je)(), string: new rt() };
- }
- function Co(K) {
- return El(this, K).delete(K);
- }
- function Lo(K) {
- return El(this, K).get(K);
- }
- function No(K) {
- return El(this, K).has(K);
- }
- function So(K, de) {
- return El(this, K).set(K, de), this;
- }
- (Yt.prototype.clear = On),
- (Yt.prototype.delete = Co),
- (Yt.prototype.get = Lo),
- (Yt.prototype.has = No),
- (Yt.prototype.set = So);
- function Xr(K) {
- var de = -1,
- Le = K ? K.length : 0;
- for (this.__data__ = new Yt(); ++de < Le; ) this.add(K[de]);
- }
- function za(K) {
- return this.__data__.set(K, o), this;
- }
- function Pl(K) {
- return this.__data__.has(K);
- }
- (Xr.prototype.add = Xr.prototype.push = za), (Xr.prototype.has = Pl);
- function Zr(K) {
- this.__data__ = new Je(K);
- }
- function kl() {
- this.__data__ = new Je();
- }
- function Tl(K) {
- return this.__data__.delete(K);
- }
- function Ea(K) {
- return this.__data__.get(K);
- }
- function Aa(K) {
- return this.__data__.has(K);
- }
- function Ma(K, de) {
- var Le = this.__data__;
- if (Le instanceof Je) {
- var at = Le.__data__;
- if (!Pe || at.length < n - 1) return at.push([K, de]), this;
- Le = this.__data__ = new Yt(at);
- }
- return Le.set(K, de), this;
- }
- (Zr.prototype.clear = kl),
- (Zr.prototype.delete = Tl),
- (Zr.prototype.get = Ea),
- (Zr.prototype.has = Aa),
- (Zr.prototype.set = Ma);
- function $l(K, de) {
- var Le = ti(K) || vf(K) ? le(K.length, String) : [],
- at = Le.length,
- It = !!at;
- for (var Pt in K)
- (de || Xe.call(K, Pt)) &&
- !(It && (Pt == 'length' || Ws(Pt, at))) &&
- Le.push(Pt);
- return Le;
- }
- function Ia(K, de) {
- for (var Le = K.length; Le--; ) if (hf(K[Le][0], de)) return Le;
- return -1;
- }
- function Is(K) {
- return ao(K) ? st(K) : {};
- }
- var Da = df();
- function Ds(K, de) {
- return K && Da(K, de, Dl);
- }
- function Fs(K, de) {
- de = Us(de, K) ? [de] : dd(de);
- for (var Le = 0, at = de.length; K != null && Le < at; )
- K = K[Vs(de[Le++])];
- return Le && Le == at ? K : void 0;
- }
- function Bs(K) {
- return Qe.call(K);
- }
- function Ls(K, de) {
- return K != null && de in Object(K);
- }
- function na(K, de, Le, at, It) {
- return K === de
- ? !0
- : K == null || de == null || (!ao(K) && !Ml(de))
- ? K !== K && de !== de
- : sd(K, de, na, Le, at, It);
- }
- function sd(K, de, Le, at, It, Pt) {
- var un = ti(K),
- Dt = ti(de),
- kn = f,
- or = f;
- un || ((kn = Si(K)), (kn = kn == d ? C : kn)),
- Dt || ((or = Si(de)), (or = or == d ? C : or));
- var Ir = kn == C && !Ge(K),
- Tr = or == C && !Ge(de),
- mr = kn == or;
- if (mr && !Ir)
- return (
- Pt || (Pt = new Zr()),
- un || Qr(K) ? uf(K, de, Le, at, It, Pt) : Kp(K, de, kn, Le, at, It, Pt)
- );
- if (!(It & a)) {
- var lo = Ir && Xe.call(K, '__wrapped__'),
- so = Tr && Xe.call(de, '__wrapped__');
- if (lo || so) {
- var ni = lo ? K.value() : K,
- co = so ? de.value() : de;
- return Pt || (Pt = new Zr()), Le(ni, co, at, It, Pt);
- }
- }
- return mr ? (Pt || (Pt = new Zr()), qp(K, de, Le, at, It, Pt)) : !1;
- }
- function Ns(K, de, Le, at) {
- var It = Le.length,
- Pt = It,
- un = !at;
- if (K == null) return !Pt;
- for (K = Object(K); It--; ) {
- var Dt = Le[It];
- if (un && Dt[2] ? Dt[1] !== K[Dt[0]] : !(Dt[0] in K)) return !1;
- }
- for (; ++It < Pt; ) {
- Dt = Le[It];
- var kn = Dt[0],
- or = K[kn],
- Ir = Dt[1];
- if (un && Dt[2]) {
- if (or === void 0 && !(kn in K)) return !1;
- } else {
- var Tr = new Zr();
- if (at) var mr = at(or, Ir, kn, K, de, Tr);
- if (!(mr === void 0 ? na(Ir, or, at, i | a, Tr) : mr)) return !1;
- }
- }
- return !0;
- }
- function Ol(K) {
- if (!ao(K) || Zp(K)) return !1;
- var de = dr(K) || Ge(K) ? oe : xe;
- return de.test(ra(K));
- }
- function zl(K) {
- return Ml(K) && Al(K.length) && !!be[Qe.call(K)];
- }
- function Ci(K) {
- return typeof K == 'function'
- ? K
- : K == null
- ? yf
- : typeof K == 'object'
- ? ti(K)
- ? cd(K[0], K[1])
- : js(K)
- : Jr(K);
- }
- function Hs(K) {
- if (!Qp(K)) return tt(K);
- var de = [];
- for (var Le in Object(K))
- Xe.call(K, Le) && Le != 'constructor' && de.push(Le);
- return de;
- }
- function js(K) {
- var de = Yp(K);
- return de.length == 1 && de[0][2]
- ? Wn(de[0][0], de[0][1])
- : function (Le) {
- return Le === K || Ns(Le, K, de);
- };
- }
- function cd(K, de) {
- return Us(K) && ff(de)
- ? Wn(Vs(K), de)
- : function (Le) {
- var at = gf(Le, K);
- return at === void 0 && at === de
- ? mf(Le, K)
- : na(de, at, void 0, i | a);
- };
- }
- function sf(K) {
- return function (de) {
- return Fs(de, K);
- };
- }
- function cf(K) {
- if (typeof K == 'string') return K;
- if (Il(K)) return Fe ? Fe.call(K) : '';
- var de = K + '';
- return de == '0' && 1 / K == -s ? '-0' : de;
- }
- function dd(K) {
- return ti(K) ? K : Un(K);
- }
- function df(K) {
- return function (de, Le, at) {
- for (var It = -1, Pt = Object(de), un = at(de), Dt = un.length; Dt--; ) {
- var kn = un[K ? Dt : ++It];
- if (Le(Pt[kn], kn, Pt) === !1) break;
- }
- return de;
- };
- }
- function uf(K, de, Le, at, It, Pt) {
- var un = It & a,
- Dt = K.length,
- kn = de.length;
- if (Dt != kn && !(un && kn > Dt)) return !1;
- var or = Pt.get(K);
- if (or && Pt.get(de)) return or == de;
- var Ir = -1,
- Tr = !0,
- mr = It & i ? new Xr() : void 0;
- for (Pt.set(K, de), Pt.set(de, K); ++Ir < Dt; ) {
- var lo = K[Ir],
- so = de[Ir];
- if (at)
- var ni = un ? at(so, lo, Ir, de, K, Pt) : at(lo, so, Ir, K, de, Pt);
- if (ni !== void 0) {
- if (ni) continue;
- Tr = !1;
- break;
- }
- if (mr) {
- if (
- !he(de, function (co, uo) {
- if (!mr.has(uo) && (lo === co || Le(lo, co, at, It, Pt)))
- return mr.add(uo);
- })
- ) {
- Tr = !1;
- break;
- }
- } else if (!(lo === so || Le(lo, so, at, It, Pt))) {
- Tr = !1;
- break;
- }
- }
- return Pt.delete(K), Pt.delete(de), Tr;
- }
- function Kp(K, de, Le, at, It, Pt, un) {
- switch (Le) {
- case k:
- if (K.byteLength != de.byteLength || K.byteOffset != de.byteOffset)
- return !1;
- (K = K.buffer), (de = de.buffer);
- case z:
- return !(K.byteLength != de.byteLength || !at(new We(K), new We(de)));
- case v:
- case p:
- case y:
- return hf(+K, +de);
- case m:
- return K.name == de.name && K.message == de.message;
- case S:
- case P:
- return K == de + '';
- case x:
- var Dt = it;
- case _:
- var kn = Pt & a;
- if ((Dt || (Dt = xt), K.size != de.size && !kn)) return !1;
- var or = un.get(K);
- if (or) return or == de;
- (Pt |= i), un.set(K, de);
- var Ir = uf(Dt(K), Dt(de), at, It, Pt, un);
- return un.delete(K), Ir;
- case T:
- if (we) return we.call(K) == we.call(de);
- }
- return !1;
- }
- function qp(K, de, Le, at, It, Pt) {
- var un = It & a,
- Dt = Dl(K),
- kn = Dt.length,
- or = Dl(de),
- Ir = or.length;
- if (kn != Ir && !un) return !1;
- for (var Tr = kn; Tr--; ) {
- var mr = Dt[Tr];
- if (!(un ? mr in de : Xe.call(de, mr))) return !1;
- }
- var lo = Pt.get(K);
- if (lo && Pt.get(de)) return lo == de;
- var so = !0;
- Pt.set(K, de), Pt.set(de, K);
- for (var ni = un; ++Tr < kn; ) {
- mr = Dt[Tr];
- var co = K[mr],
- uo = de[mr];
- if (at)
- var xf = un ? at(uo, co, mr, de, K, Pt) : at(co, uo, mr, K, de, Pt);
- if (!(xf === void 0 ? co === uo || Le(co, uo, at, It, Pt) : xf)) {
- so = !1;
- break;
- }
- ni || (ni = mr == 'constructor');
- }
- if (so && !ni) {
- var Fl = K.constructor,
- Bl = de.constructor;
- Fl != Bl &&
- 'constructor' in K &&
- 'constructor' in de &&
- !(
- typeof Fl == 'function' &&
- Fl instanceof Fl &&
- typeof Bl == 'function' &&
- Bl instanceof Bl
- ) &&
- (so = !1);
- }
- return Pt.delete(K), Pt.delete(de), so;
- }
- function El(K, de) {
- var Le = K.__data__;
- return Xp(de) ? Le[typeof de == 'string' ? 'string' : 'hash'] : Le.map;
- }
- function Yp(K) {
- for (var de = Dl(K), Le = de.length; Le--; ) {
- var at = de[Le],
- It = K[at];
- de[Le] = [at, It, ff(It)];
- }
- return de;
- }
- function Fa(K, de) {
- var Le = Ne(K, de);
- return Ol(Le) ? Le : void 0;
- }
- var Si = Bs;
- ((pt && Si(new pt(new ArrayBuffer(1))) != k) ||
- (Pe && Si(new Pe()) != x) ||
- (Ve && Si(Ve.resolve()) != R) ||
- (nt && Si(new nt()) != _) ||
- (Ot && Si(new Ot()) != E)) &&
- (Si = function (K) {
- var de = Qe.call(K),
- Le = de == C ? K.constructor : void 0,
- at = Le ? ra(Le) : void 0;
- if (at)
- switch (at) {
- case jn:
- return k;
- case Zt:
- return x;
- case Se:
- return R;
- case je:
- return _;
- case Ct:
- return E;
- }
- return de;
- });
- function Gp(K, de, Le) {
- de = Us(de, K) ? [de] : dd(de);
- for (var at, It = -1, un = de.length; ++It < un; ) {
- var Pt = Vs(de[It]);
- if (!(at = K != null && Le(K, Pt))) break;
- K = K[Pt];
- }
- if (at) return at;
- var un = K ? K.length : 0;
- return !!un && Al(un) && Ws(Pt, un) && (ti(K) || vf(K));
- }
- function Ws(K, de) {
- return (
- (de = de ?? c),
- !!de &&
- (typeof K == 'number' || ve.test(K)) &&
- K > -1 &&
- K % 1 == 0 &&
- K < de
- );
- }
- function Us(K, de) {
- if (ti(K)) return !1;
- var Le = typeof K;
- return Le == 'number' ||
- Le == 'symbol' ||
- Le == 'boolean' ||
- K == null ||
- Il(K)
- ? !0
- : Q.test(K) || !G.test(K) || (de != null && K in Object(de));
- }
- function Xp(K) {
- var de = typeof K;
- return de == 'string' || de == 'number' || de == 'symbol' || de == 'boolean'
- ? K !== '__proto__'
- : K === null;
- }
- function Zp(K) {
- return !!ot && ot in K;
- }
- function Qp(K) {
- var de = K && K.constructor,
- Le = (typeof de == 'function' && de.prototype) || wt;
- return K === Le;
- }
- function ff(K) {
- return K === K && !ao(K);
- }
- function Wn(K, de) {
- return function (Le) {
- return Le == null
- ? !1
- : Le[K] === de && (de !== void 0 || K in Object(Le));
- };
- }
- var Un = ud(function (K) {
- K = pf(K);
- var de = [];
- return (
- re.test(K) && de.push(''),
- K.replace(se, function (Le, at, It, Pt) {
- de.push(It ? Pt.replace(ce, '$1') : at || Le);
- }),
- de
- );
- });
- function Vs(K) {
- if (typeof K == 'string' || Il(K)) return K;
- var de = K + '';
- return de == '0' && 1 / K == -s ? '-0' : de;
- }
- function ra(K) {
- if (K != null) {
- try {
- return ct.call(K);
- } catch {}
- try {
- return K + '';
- } catch {}
- }
- return '';
- }
- function ud(K, de) {
- if (typeof K != 'function' || (de && typeof de != 'function'))
- throw new TypeError(r);
- var Le = function () {
- var at = arguments,
- It = de ? de.apply(this, at) : at[0],
- Pt = Le.cache;
- if (Pt.has(It)) return Pt.get(It);
- var un = K.apply(this, at);
- return (Le.cache = Pt.set(It, un)), un;
- };
- return (Le.cache = new (ud.Cache || Yt)()), Le;
- }
- ud.Cache = Yt;
- function hf(K, de) {
- return K === de || (K !== K && de !== de);
- }
- function vf(K) {
- return (
- Jp(K) &&
- Xe.call(K, 'callee') &&
- (!me.call(K, 'callee') || Qe.call(K) == d)
- );
- }
- var ti = Array.isArray;
- function fd(K) {
- return K != null && Al(K.length) && !dr(K);
- }
- function Jp(K) {
- return Ml(K) && fd(K);
- }
- function dr(K) {
- var de = ao(K) ? Qe.call(K) : '';
- return de == g || de == w;
- }
- function Al(K) {
- return typeof K == 'number' && K > -1 && K % 1 == 0 && K <= c;
- }
- function ao(K) {
- var de = typeof K;
- return !!K && (de == 'object' || de == 'function');
- }
- function Ml(K) {
- return !!K && typeof K == 'object';
- }
- function Il(K) {
- return typeof K == 'symbol' || (Ml(K) && Qe.call(K) == T);
- }
- var Qr = W ? Re(W) : zl;
- function pf(K) {
- return K == null ? '' : cf(K);
- }
- function gf(K, de, Le) {
- var at = K == null ? void 0 : Fs(K, de);
- return at === void 0 ? Le : at;
- }
- function mf(K, de) {
- return K != null && Gp(K, de, Ls);
- }
- function Dl(K) {
- return fd(K) ? $l(K) : Hs(K);
- }
- function bf(K, de, Le) {
- var at = ti(K) || Qr(K);
- if (((de = Ci(de)), Le == null))
- if (at || ao(K)) {
- var It = K.constructor;
- at ? (Le = ti(K) ? new It() : []) : (Le = dr(It) ? Is(lt(K)) : {});
- } else Le = {};
- return (
- (at ? ae : Ds)(K, function (Pt, un, Dt) {
- return de(Le, Pt, un, Dt);
- }),
- Le
- );
- }
- function yf(K) {
- return K;
- }
- function Jr(K) {
- return Us(K) ? _e(Vs(K)) : sf(K);
- }
- e.exports = bf;
- })(Mae, sp);
- const Iae = lp,
- y_ = Aae,
- Dae = sp;
- var x_ = function e(
- t,
- {
- cleanKeys: n = [],
- cleanValues: r = [],
- emptyArrays: o = !0,
- emptyObjects: i = !0,
- emptyStrings: a = !0,
- NaNValues: s = !1,
- nullValues: c = !0,
- undefinedValues: d = !0
- } = {}
- ) {
- return Dae(t, (f, v, p) => {
- if (
- !n.includes(p) &&
- ((Array.isArray(v) || y_(v)) &&
- (v = e(v, {
- NaNValues: s,
- cleanKeys: n,
- cleanValues: r,
- emptyArrays: o,
- emptyObjects: i,
- emptyStrings: a,
- nullValues: c,
- undefinedValues: d
- })),
- !r.includes(v) &&
- !(i && y_(v) && Iae(v)) &&
- !(o && Array.isArray(v) && !v.length) &&
- !(a && v === '') &&
- !(s && Number.isNaN(v)) &&
- !(c && v === null) &&
- !(d && v === void 0))
- ) {
- if (Array.isArray(f)) return f.push(v);
- f[p] = v;
- }
- });
- };
- const p1 = wae({ hideLoading: !0, timeout: 2e4, timeoutMessage: '请求超时' });
- p1.interceptors.request.use(
- (e, t) => {
- t.hideLoading || window.$message.loading('加载中...');
- const r = g1().getToken || '',
- o = {};
- return (
- r &&
- !['/api-oauth/userlogin', '/api-auth/open/sendSms'].includes(e) &&
- (o.Authorization = r),
- {
- url: e,
- options: {
- ...t,
- params: x_(t.params),
- data: x_(t.data),
- headers: { ...t.headers, ...o }
- }
- }
- );
- },
- { global: !1 }
- );
- p1.interceptors.response.use(
- async e => {
- const t = g1();
- if (e.status > 299 || e.status < 200) {
- const r = '服务器错误,状态码' + e.status;
- throw (window.$message.error(r), new Error(r));
- }
- const n = await e.clone().json();
- if (n.code === 401 || n.code === 4001 || n.code == 403 || n.code == 5e3) {
- t.logout(), a$.replace('/login'), location.reload();
- return;
- }
- if (n.code !== 200 && n.errCode !== 0) {
- const r = n.msg || n.message || '处理失败,请重试';
- throw (
- (n.code === 403 || n.code === 401 || window.$message.error(r),
- new Error(r))
- );
- }
- return e;
- },
- { global: !1 }
- );
- const Fae = e =>
- p1.post('/api-auth/usernameLogin', { requestType: 'form', data: e }),
- g1 = Gre('user-store', {
- state: () => ({
- token: ns.get(Kh, ''),
- imToken: ns.get(Qre, ''),
- username: '',
- avatar: '',
- info: ns.get(K2, {})
- }),
- getters: {
- getToken() {
- return this.token;
- },
- getImToken() {
- return this.imToken;
- },
- getAvatar() {
- return this.avatar;
- },
- getNickname() {
- return this.username;
- },
- getUserInfo() {
- return this.info;
- }
- },
- actions: {
- setToken(e) {
- this.token = e;
- },
- setImToken(e) {
- this.imToken = e;
- },
- setAvatar(e) {
- this.avatar = e;
- },
- setUserInfo(e) {
- this.info = e;
- },
- async login(e) {
- try {
- const { data: t } = await Fae(e),
- n =
- t.authentication.token_type + ' ' + t.authentication.access_token,
- r = 7 * 24 * 60 * 60 * 1e3;
- return ns.set(Kh, n, r), this.setToken(n), Promise.resolve();
- } catch (t) {
- return Promise.reject(t);
- }
- },
- async getInfo() {
- return new Promise((e, t) => {
- try {
- e(!0);
- } catch {
- t();
- }
- });
- },
- async logout() {
- return (
- this.setUserInfo(''),
- ns.remove(Kh),
- ns.remove(K2),
- Promise.resolve('')
- );
- }
- }
- }),
- S0 = t1.BASE_LOGIN,
- Bae = [S0];
- function Lae(e) {
- const t = g1();
- e.beforeEach(async (n, r, o) => {
- if (
- (window.$loadingBar && window.$loadingBar.start(),
- r.path === S0 && n.name === 'errorPage')
- ) {
- o(t1.BASE_HOME);
- return;
- }
- if (Bae.includes(n.path)) {
- o();
- return;
- }
- if (!ns.get(Kh)) {
- if (n.meta.ignoreAuth) {
- o();
- return;
- }
- const a = { path: S0, replace: !0 };
- n.path && (a.query = { ...a.query, redirect: n.path }),
- console.log(a, n),
- o(a);
- return;
- }
- await t.getInfo(), o();
- }),
- e.afterEach((n, r, o) => {
- zi(o) && console.log('failed navigation', o),
- window.$loadingBar && window.$loadingBar.finish();
- });
- }
- const i$ = new Hre(),
- Nae = 9007199254740991;
- function Hae(e) {
- return typeof e == 'number' && e > -1 && e % 1 == 0 && e <= Nae;
- }
- function cp(e) {
- return e === void 0;
- }
- function jae(e) {
- return e != null && typeof e != 'function' && Hae(e.length);
- }
- function w_(e) {
- return e === null;
- }
- function Wae(e) {
- if (!e) return '';
- const t = Object.keys(e)
- .map(n => {
- const r = e[n];
- if (cp(r)) return '';
- if (w_(r)) return n;
- if (Array.isArray(r)) {
- const o = [];
- return (
- r.forEach(i => {
- cp(i) || (w_(i) ? o.push(n) : o.push(n + '=' + i));
- }),
- o.join('&')
- );
- }
- return `${n}=${r}`;
- })
- .filter(n => n.length > 0)
- .join('&');
- return t ? `?${i$.encryptByAES(t)}` : '';
- }
- function Uae(e) {
- const t = {};
- return (
- (e = e.trim().replace(/^(\?|#|&)/, '')),
- e &&
- ((e = i$.decryptByAES(e)),
- e.split('&').forEach(n => {
- const r = n.replace(/\+/g, ' ').split('='),
- o = r.shift(),
- i = r.length > 0 ? r.join('=') : null;
- cp(o) ||
- (cp(t[o])
- ? (t[o] = i)
- : jae(t[o])
- ? t[o].push(i)
- : (t[o] = [t[o], i]));
- })),
- t
- );
- }
- const _0 = hre({
- history: One('/classroom'),
- routes: [...xre],
- stringifyQuery: Wae,
- parseQuery: Uae,
- scrollBehavior(e) {
- if (e.hash) return { el: e.hash, behavior: 'smooth' };
- }
- });
- function Vae(e) {
- e.use(_0), Lae(_0);
- }
- const a$ = _0;
- var dp = {},
- Kae = {
- get exports() {
- return dp;
- },
- set exports(e) {
- dp = e;
- }
- },
- C_;
- function l$() {
- return (
- C_ ||
- ((C_ = 1),
- (function (e, t) {
- (function (n, r) {
- e.exports = r();
- })(Nn, function () {
- var n = 1e3,
- r = 6e4,
- o = 36e5,
- i = 'millisecond',
- a = 'second',
- s = 'minute',
- c = 'hour',
- d = 'day',
- f = 'week',
- v = 'month',
- p = 'quarter',
- m = 'year',
- g = 'date',
- w = 'Invalid Date',
- x =
- /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
- y =
- /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
- C = {
- name: 'en',
- weekdays:
- 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
- '_'
- ),
- months:
- 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
- '_'
- ),
- ordinal: function (D) {
- var L = ['th', 'st', 'nd', 'rd'],
- H = D % 100;
- return '[' + D + (L[(H - 20) % 10] || L[H] || L[0]) + ']';
- }
- },
- R = function (D, L, H) {
- var B = String(D);
- return !B || B.length >= L
- ? D
- : '' + Array(L + 1 - B.length).join(H) + D;
- },
- S = {
- s: R,
- z: function (D) {
- var L = -D.utcOffset(),
- H = Math.abs(L),
- B = Math.floor(H / 60),
- q = H % 60;
- return (L <= 0 ? '+' : '-') + R(B, 2, '0') + ':' + R(q, 2, '0');
- },
- m: function D(L, H) {
- if (L.date() < H.date()) return -D(H, L);
- var B = 12 * (H.year() - L.year()) + (H.month() - L.month()),
- q = L.clone().add(B, v),
- X = H - q < 0,
- te = L.clone().add(B + (X ? -1 : 1), v);
- return +(-(B + (H - q) / (X ? q - te : te - q)) || 0);
- },
- a: function (D) {
- return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
- },
- p: function (D) {
- return (
- { M: v, y: m, w: f, d, D: g, h: c, m: s, s: a, ms: i, Q: p }[
- D
- ] ||
- String(D || '')
- .toLowerCase()
- .replace(/s$/, '')
- );
- },
- u: function (D) {
- return D === void 0;
- }
- },
- _ = 'en',
- P = {};
- P[_] = C;
- var T = function (D) {
- return D instanceof M;
- },
- E = function D(L, H, B) {
- var q;
- if (!L) return _;
- if (typeof L == 'string') {
- var X = L.toLowerCase();
- P[X] && (q = X), H && ((P[X] = H), (q = X));
- var te = L.split('-');
- if (!q && te.length > 1) return D(te[0]);
- } else {
- var G = L.name;
- (P[G] = L), (q = G);
- }
- return !B && q && (_ = q), q || (!B && _);
- },
- z = function (D, L) {
- if (T(D)) return D.clone();
- var H = typeof L == 'object' ? L : {};
- return (H.date = D), (H.args = arguments), new M(H);
- },
- k = S;
- (k.l = E),
- (k.i = T),
- (k.w = function (D, L) {
- return z(D, {
- locale: L.$L,
- utc: L.$u,
- x: L.$x,
- $offset: L.$offset
- });
- });
- var M = (function () {
- function D(H) {
- (this.$L = E(H.locale, null, !0)), this.parse(H);
- }
- var L = D.prototype;
- return (
- (L.parse = function (H) {
- (this.$d = (function (B) {
- var q = B.date,
- X = B.utc;
- if (q === null) return new Date(NaN);
- if (k.u(q)) return new Date();
- if (q instanceof Date) return new Date(q);
- if (typeof q == 'string' && !/Z$/i.test(q)) {
- var te = q.match(x);
- if (te) {
- var G = te[2] - 1 || 0,
- Q = (te[7] || '0').substring(0, 3);
- return X
- ? new Date(
- Date.UTC(
- te[1],
- G,
- te[3] || 1,
- te[4] || 0,
- te[5] || 0,
- te[6] || 0,
- Q
- )
- )
- : new Date(
- te[1],
- G,
- te[3] || 1,
- te[4] || 0,
- te[5] || 0,
- te[6] || 0,
- Q
- );
- }
- }
- return new Date(q);
- })(H)),
- (this.$x = H.x || {}),
- this.init();
- }),
- (L.init = function () {
- var H = this.$d;
- (this.$y = H.getFullYear()),
- (this.$M = H.getMonth()),
- (this.$D = H.getDate()),
- (this.$W = H.getDay()),
- (this.$H = H.getHours()),
- (this.$m = H.getMinutes()),
- (this.$s = H.getSeconds()),
- (this.$ms = H.getMilliseconds());
- }),
- (L.$utils = function () {
- return k;
- }),
- (L.isValid = function () {
- return this.$d.toString() !== w;
- }),
- (L.isSame = function (H, B) {
- var q = z(H);
- return this.startOf(B) <= q && q <= this.endOf(B);
- }),
- (L.isAfter = function (H, B) {
- return z(H) < this.startOf(B);
- }),
- (L.isBefore = function (H, B) {
- return this.endOf(B) < z(H);
- }),
- (L.$g = function (H, B, q) {
- return k.u(H) ? this[B] : this.set(q, H);
- }),
- (L.unix = function () {
- return Math.floor(this.valueOf() / 1e3);
- }),
- (L.valueOf = function () {
- return this.$d.getTime();
- }),
- (L.startOf = function (H, B) {
- var q = this,
- X = !!k.u(B) || B,
- te = k.p(H),
- G = function (be, Ce) {
- var ge = k.w(
- q.$u ? Date.UTC(q.$y, Ce, be) : new Date(q.$y, Ce, be),
- q
- );
- return X ? ge : ge.endOf(d);
- },
- Q = function (be, Ce) {
- return k.w(
- q
- .toDate()
- [be].apply(
- q.toDate('s'),
- (X ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ce)
- ),
- q
- );
- },
- re = this.$W,
- se = this.$M,
- pe = this.$D,
- ce = 'set' + (this.$u ? 'UTC' : '');
- switch (te) {
- case m:
- return X ? G(1, 0) : G(31, 11);
- case v:
- return X ? G(1, se) : G(0, se + 1);
- case f:
- var xe = this.$locale().weekStart || 0,
- ve = (re < xe ? re + 7 : re) - xe;
- return G(X ? pe - ve : pe + (6 - ve), se);
- case d:
- case g:
- return Q(ce + 'Hours', 0);
- case c:
- return Q(ce + 'Minutes', 1);
- case s:
- return Q(ce + 'Seconds', 2);
- case a:
- return Q(ce + 'Milliseconds', 3);
- default:
- return this.clone();
- }
- }),
- (L.endOf = function (H) {
- return this.startOf(H, !1);
- }),
- (L.$set = function (H, B) {
- var q,
- X = k.p(H),
- te = 'set' + (this.$u ? 'UTC' : ''),
- G = ((q = {}),
- (q[d] = te + 'Date'),
- (q[g] = te + 'Date'),
- (q[v] = te + 'Month'),
- (q[m] = te + 'FullYear'),
- (q[c] = te + 'Hours'),
- (q[s] = te + 'Minutes'),
- (q[a] = te + 'Seconds'),
- (q[i] = te + 'Milliseconds'),
- q)[X],
- Q = X === d ? this.$D + (B - this.$W) : B;
- if (X === v || X === m) {
- var re = this.clone().set(g, 1);
- re.$d[G](Q),
- re.init(),
- (this.$d = re.set(
- g,
- Math.min(this.$D, re.daysInMonth())
- ).$d);
- } else G && this.$d[G](Q);
- return this.init(), this;
- }),
- (L.set = function (H, B) {
- return this.clone().$set(H, B);
- }),
- (L.get = function (H) {
- return this[k.p(H)]();
- }),
- (L.add = function (H, B) {
- var q,
- X = this;
- H = Number(H);
- var te = k.p(B),
- G = function (se) {
- var pe = z(X);
- return k.w(pe.date(pe.date() + Math.round(se * H)), X);
- };
- if (te === v) return this.set(v, this.$M + H);
- if (te === m) return this.set(m, this.$y + H);
- if (te === d) return G(1);
- if (te === f) return G(7);
- var Q =
- ((q = {}), (q[s] = r), (q[c] = o), (q[a] = n), q)[te] ||
- 1,
- re = this.$d.getTime() + H * Q;
- return k.w(re, this);
- }),
- (L.subtract = function (H, B) {
- return this.add(-1 * H, B);
- }),
- (L.format = function (H) {
- var B = this,
- q = this.$locale();
- if (!this.isValid()) return q.invalidDate || w;
- var X = H || 'YYYY-MM-DDTHH:mm:ssZ',
- te = k.z(this),
- G = this.$H,
- Q = this.$m,
- re = this.$M,
- se = q.weekdays,
- pe = q.months,
- ce = function (Ce, ge, Ae, j) {
- return (Ce && (Ce[ge] || Ce(B, X))) || Ae[ge].slice(0, j);
- },
- xe = function (Ce) {
- return k.s(G % 12 || 12, Ce, '0');
- },
- ve =
- q.meridiem ||
- function (Ce, ge, Ae) {
- var j = Ce < 12 ? 'AM' : 'PM';
- return Ae ? j.toLowerCase() : j;
- },
- be = {
- YY: String(this.$y).slice(-2),
- YYYY: this.$y,
- M: re + 1,
- MM: k.s(re + 1, 2, '0'),
- MMM: ce(q.monthsShort, re, pe, 3),
- MMMM: ce(pe, re),
- D: this.$D,
- DD: k.s(this.$D, 2, '0'),
- d: String(this.$W),
- dd: ce(q.weekdaysMin, this.$W, se, 2),
- ddd: ce(q.weekdaysShort, this.$W, se, 3),
- dddd: se[this.$W],
- H: String(G),
- HH: k.s(G, 2, '0'),
- h: xe(1),
- hh: xe(2),
- a: ve(G, Q, !0),
- A: ve(G, Q, !1),
- m: String(Q),
- mm: k.s(Q, 2, '0'),
- s: String(this.$s),
- ss: k.s(this.$s, 2, '0'),
- SSS: k.s(this.$ms, 3, '0'),
- Z: te
- };
- return X.replace(y, function (Ce, ge) {
- return ge || be[Ce] || te.replace(':', '');
- });
- }),
- (L.utcOffset = function () {
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
- }),
- (L.diff = function (H, B, q) {
- var X,
- te = k.p(B),
- G = z(H),
- Q = (G.utcOffset() - this.utcOffset()) * r,
- re = this - G,
- se = k.m(this, G);
- return (
- (se =
- ((X = {}),
- (X[m] = se / 12),
- (X[v] = se),
- (X[p] = se / 3),
- (X[f] = (re - Q) / 6048e5),
- (X[d] = (re - Q) / 864e5),
- (X[c] = re / o),
- (X[s] = re / r),
- (X[a] = re / n),
- X)[te] || re),
- q ? se : k.a(se)
- );
- }),
- (L.daysInMonth = function () {
- return this.endOf(v).$D;
- }),
- (L.$locale = function () {
- return P[this.$L];
- }),
- (L.locale = function (H, B) {
- if (!H) return this.$L;
- var q = this.clone(),
- X = E(H, B, !0);
- return X && (q.$L = X), q;
- }),
- (L.clone = function () {
- return k.w(this.$d, this);
- }),
- (L.toDate = function () {
- return new Date(this.valueOf());
- }),
- (L.toJSON = function () {
- return this.isValid() ? this.toISOString() : null;
- }),
- (L.toISOString = function () {
- return this.$d.toISOString();
- }),
- (L.toString = function () {
- return this.$d.toUTCString();
- }),
- D
- );
- })(),
- A = M.prototype;
- return (
- (z.prototype = A),
- [
- ['$ms', i],
- ['$s', a],
- ['$m', s],
- ['$H', c],
- ['$W', d],
- ['$M', v],
- ['$y', m],
- ['$D', g]
- ].forEach(function (D) {
- A[D[1]] = function (L) {
- return this.$g(L, D[0], D[1]);
- };
- }),
- (z.extend = function (D, L) {
- return D.$i || (D(L, M, z), (D.$i = !0)), z;
- }),
- (z.locale = E),
- (z.isDayjs = T),
- (z.unix = function (D) {
- return z(1e3 * D);
- }),
- (z.en = P[_]),
- (z.Ls = P),
- (z.p = {}),
- z
- );
- });
- })(Kae)),
- dp
- );
- }
- var qae = l$();
- const Yae = Qu(qae),
- Gae = I(() => ({
- theme: void 0,
- themeOverrides: {
- common: {
- primaryColor: xc.appTheme,
- primaryColorHover: s0(xc.appTheme, 6),
- primaryColorPressed: s0(xc.appTheme, 6)
- },
- LoadingBar: { colorLoading: xc.appTheme }
- }
- })),
- Xae = une({
- components: [
- Gy,
- jy,
- Ty,
- Gi,
- nr,
- yZ,
- oQ,
- Wk,
- Zu,
- o3,
- DJ,
- NJ,
- FJ,
- WJ,
- YJ,
- hee,
- QV,
- tK,
- Iy,
- sZ,
- Ip,
- zV,
- mte,
- hte,
- Hk,
- dQ,
- fQ,
- JX,
- tZ,
- MX,
- cte,
- VV,
- cV,
- fZ,
- jh,
- Zy,
- eT,
- tX,
- pQ,
- aQ,
- ZJ,
- QJ,
- xte,
- sY,
- id,
- Yk,
- Kk,
- Qk,
- Ay,
- ote,
- ate,
- SV,
- Uee,
- cX,
- uX,
- fte,
- AJ,
- U3,
- P3,
- ine,
- Dte,
- Jee,
- Vv,
- LV,
- Gee
- ]
- }),
- {
- message: Zae,
- dialog: dle,
- notification: ule,
- loadingBar: Qae
- } = cne(['message', 'dialog', 'notification', 'loadingBar'], {
- configProviderProps: Gae
- });
- window.$message = Zae;
- window.$loadingBar = Qae;
- function Jae(e) {
- e.use(Xae);
- }
- var S_ = {},
- ele = {
- get exports() {
- return S_;
- },
- set exports(e) {
- S_ = e;
- }
- };
- (function (e, t) {
- (function (n, r) {
- e.exports = r(l$());
- })(Nn, function (n) {
- function r(a) {
- return a && typeof a == 'object' && 'default' in a ? a : { default: a };
- }
- var o = r(n),
- i = {
- name: 'zh-cn',
- weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
- weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
- weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
- months:
- '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
- '_'
- ),
- monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
- '_'
- ),
- ordinal: function (a, s) {
- return s === 'W' ? a + '周' : a + '日';
- },
- weekStart: 1,
- yearStart: 4,
- formats: {
- LT: 'HH:mm',
- LTS: 'HH:mm:ss',
- L: 'YYYY/MM/DD',
- LL: 'YYYY年M月D日',
- LLL: 'YYYY年M月D日Ah点mm分',
- LLLL: 'YYYY年M月D日ddddAh点mm分',
- l: 'YYYY/M/D',
- ll: 'YYYY年M月D日',
- lll: 'YYYY年M月D日 HH:mm',
- llll: 'YYYY年M月D日dddd HH:mm'
- },
- relativeTime: {
- future: '%s内',
- past: '%s前',
- s: '几秒',
- m: '1 分钟',
- mm: '%d 分钟',
- h: '1 小时',
- hh: '%d 小时',
- d: '1 天',
- dd: '%d 天',
- M: '1 个月',
- MM: '%d 个月',
- y: '1 年',
- yy: '%d 年'
- },
- meridiem: function (a, s) {
- var c = 100 * a + s;
- return c < 600
- ? '凌晨'
- : c < 900
- ? '早上'
- : c < 1100
- ? '上午'
- : c < 1300
- ? '中午'
- : c < 1800
- ? '下午'
- : '晚上';
- }
- };
- return o.default.locale(i, null, !0), i;
- });
- })(ele);
- async function tle() {
- const e = RR(mre);
- Jae(e),
- Zre(e),
- Vae(e),
- Yae.locale('zh-ch'),
- await a$.isReady(),
- e.mount('#app');
- }
- tle();
- export {
- eT as $,
- DC as A,
- xi as B,
- Op as C,
- Ta as D,
- I as E,
- on as F,
- Bn as G,
- tX as H,
- qr as I,
- ll as J,
- Gre as K,
- xc as L,
- mn as M,
- yZ as N,
- sY as O,
- t1 as P,
- sZ as Q,
- Kk as R,
- Ra as S,
- Kn as T,
- Jee as U,
- xu as V,
- xte as W,
- T_ as X,
- QA as Y,
- Nu as Z,
- cle as _,
- sle as a,
- QV as a0,
- tK as a1,
- Y0 as a2,
- pQ as a3,
- aQ as a4,
- Yk as a5,
- O as a6,
- V as a7,
- yt as a8,
- Ke as a9,
- Ie as aA,
- En as aB,
- qn as aC,
- yi as aD,
- Yr as aE,
- Qc as aF,
- Jc as aG,
- Kt as aH,
- ed as aI,
- Tn as aJ,
- pn as aK,
- Me as aL,
- Hk as aM,
- _y as aN,
- Ee as aa,
- Mt as ab,
- h as ac,
- Xu as ad,
- Gee as ae,
- Nn as af,
- RM as ag,
- ole as ah,
- pp as ai,
- O6 as aj,
- TX as ak,
- Xk as al,
- jh as am,
- AJ as an,
- Ip as ao,
- JX as ap,
- tZ as aq,
- yr as ar,
- Nt as as,
- Q6 as at,
- F as au,
- U as av,
- gi as aw,
- xl as ax,
- Ps as ay,
- ei as az,
- xee as b,
- g1 as c,
- ke as d,
- Qi as e,
- hr as f,
- oQ as g,
- Gi as h,
- SV as i,
- nr as j,
- wu as k,
- Zu as l,
- mte as m,
- hte as n,
- TJ as o,
- ale as p,
- Hn as q,
- Z as r,
- ns as s,
- VV as t,
- lle as u,
- id as v,
- $t as w,
- o3 as x,
- rle as y,
- P3 as z
- };
|