vendor.js 1.7MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook, params) {
  243. return function (data) {
  244. return hook(data, params) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data, params) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook, params));
  256. } else {
  257. var res = hook(data, params);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res, options).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  330. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  331. });
  332. } else {
  333. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  334. }
  335. }
  336. return api.apply(void 0, [options].concat(params));
  337. }
  338. var promiseInterceptor = {
  339. returnValue: function returnValue(res) {
  340. if (!isPromise(res)) {
  341. return res;
  342. }
  343. return new Promise(function (resolve, reject) {
  344. res.then(function (res) {
  345. if (res[0]) {
  346. reject(res[0]);
  347. } else {
  348. resolve(res[1]);
  349. }
  350. });
  351. });
  352. }
  353. };
  354. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  355. var CONTEXT_API_RE = /^create|Manager$/;
  356. // Context例外情况
  357. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  358. // 同步例外情况
  359. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  360. var CALLBACK_API_RE = /^on|^off/;
  361. function isContextApi(name) {
  362. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  363. }
  364. function isSyncApi(name) {
  365. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  366. }
  367. function isCallbackApi(name) {
  368. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  369. }
  370. function handlePromise(promise) {
  371. return promise.then(function (data) {
  372. return [null, data];
  373. }).catch(function (err) {
  374. return [err];
  375. });
  376. }
  377. function shouldPromise(name) {
  378. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  379. return false;
  380. }
  381. return true;
  382. }
  383. /* eslint-disable no-extend-native */
  384. if (!Promise.prototype.finally) {
  385. Promise.prototype.finally = function (callback) {
  386. var promise = this.constructor;
  387. return this.then(function (value) {
  388. return promise.resolve(callback()).then(function () {
  389. return value;
  390. });
  391. }, function (reason) {
  392. return promise.resolve(callback()).then(function () {
  393. throw reason;
  394. });
  395. });
  396. };
  397. }
  398. function promisify(name, api) {
  399. if (!shouldPromise(name) || !isFn(api)) {
  400. return api;
  401. }
  402. return function promiseApi() {
  403. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  404. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  405. params[_key2 - 1] = arguments[_key2];
  406. }
  407. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  408. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  409. }
  410. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  411. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  412. success: resolve,
  413. fail: reject
  414. })].concat(params));
  415. })));
  416. };
  417. }
  418. var EPS = 1e-4;
  419. var BASE_DEVICE_WIDTH = 750;
  420. var isIOS = false;
  421. var deviceWidth = 0;
  422. var deviceDPR = 0;
  423. function checkDeviceWidth() {
  424. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  425. platform = _wx$getSystemInfoSync.platform,
  426. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  427. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  428. deviceWidth = windowWidth;
  429. deviceDPR = pixelRatio;
  430. isIOS = platform === 'ios';
  431. }
  432. function upx2px(number, newDeviceWidth) {
  433. if (deviceWidth === 0) {
  434. checkDeviceWidth();
  435. }
  436. number = Number(number);
  437. if (number === 0) {
  438. return 0;
  439. }
  440. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  441. if (result < 0) {
  442. result = -result;
  443. }
  444. result = Math.floor(result + EPS);
  445. if (result === 0) {
  446. if (deviceDPR === 1 || !isIOS) {
  447. result = 1;
  448. } else {
  449. result = 0.5;
  450. }
  451. }
  452. return number < 0 ? -result : result;
  453. }
  454. var LOCALE_ZH_HANS = 'zh-Hans';
  455. var LOCALE_ZH_HANT = 'zh-Hant';
  456. var LOCALE_EN = 'en';
  457. var LOCALE_FR = 'fr';
  458. var LOCALE_ES = 'es';
  459. var messages = {};
  460. var locale;
  461. {
  462. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  463. }
  464. function initI18nMessages() {
  465. if (!isEnableLocale()) {
  466. return;
  467. }
  468. var localeKeys = Object.keys(__uniConfig.locales);
  469. if (localeKeys.length) {
  470. localeKeys.forEach(function (locale) {
  471. var curMessages = messages[locale];
  472. var userMessages = __uniConfig.locales[locale];
  473. if (curMessages) {
  474. Object.assign(curMessages, userMessages);
  475. } else {
  476. messages[locale] = userMessages;
  477. }
  478. });
  479. }
  480. }
  481. initI18nMessages();
  482. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  483. var t = i18n.t;
  484. var i18nMixin = i18n.mixin = {
  485. beforeCreate: function beforeCreate() {
  486. var _this = this;
  487. var unwatch = i18n.i18n.watchLocale(function () {
  488. _this.$forceUpdate();
  489. });
  490. this.$once('hook:beforeDestroy', function () {
  491. unwatch();
  492. });
  493. },
  494. methods: {
  495. $$t: function $$t(key, values) {
  496. return t(key, values);
  497. }
  498. }
  499. };
  500. var setLocale = i18n.setLocale;
  501. var getLocale = i18n.getLocale;
  502. function initAppLocale(Vue, appVm, locale) {
  503. var state = Vue.observable({
  504. locale: locale || i18n.getLocale()
  505. });
  506. var localeWatchers = [];
  507. appVm.$watchLocale = function (fn) {
  508. localeWatchers.push(fn);
  509. };
  510. Object.defineProperty(appVm, '$locale', {
  511. get: function get() {
  512. return state.locale;
  513. },
  514. set: function set(v) {
  515. state.locale = v;
  516. localeWatchers.forEach(function (watch) {
  517. return watch(v);
  518. });
  519. }
  520. });
  521. }
  522. function isEnableLocale() {
  523. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  524. }
  525. function include(str, parts) {
  526. return !!parts.find(function (part) {
  527. return str.indexOf(part) !== -1;
  528. });
  529. }
  530. function startsWith(str, parts) {
  531. return parts.find(function (part) {
  532. return str.indexOf(part) === 0;
  533. });
  534. }
  535. function normalizeLocale(locale, messages) {
  536. if (!locale) {
  537. return;
  538. }
  539. locale = locale.trim().replace(/_/g, '-');
  540. if (messages && messages[locale]) {
  541. return locale;
  542. }
  543. locale = locale.toLowerCase();
  544. if (locale === 'chinese') {
  545. // 支付宝
  546. return LOCALE_ZH_HANS;
  547. }
  548. if (locale.indexOf('zh') === 0) {
  549. if (locale.indexOf('-hans') > -1) {
  550. return LOCALE_ZH_HANS;
  551. }
  552. if (locale.indexOf('-hant') > -1) {
  553. return LOCALE_ZH_HANT;
  554. }
  555. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  556. return LOCALE_ZH_HANT;
  557. }
  558. return LOCALE_ZH_HANS;
  559. }
  560. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  561. if (lang) {
  562. return lang;
  563. }
  564. }
  565. // export function initI18n() {
  566. // const localeKeys = Object.keys(__uniConfig.locales || {})
  567. // if (localeKeys.length) {
  568. // localeKeys.forEach((locale) =>
  569. // i18n.add(locale, __uniConfig.locales[locale])
  570. // )
  571. // }
  572. // }
  573. function getLocale$1() {
  574. // 优先使用 $locale
  575. if (isFn(getApp)) {
  576. var app = getApp({
  577. allowDefault: true
  578. });
  579. if (app && app.$vm) {
  580. return app.$vm.$locale;
  581. }
  582. }
  583. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  584. }
  585. function setLocale$1(locale) {
  586. var app = isFn(getApp) ? getApp() : false;
  587. if (!app) {
  588. return false;
  589. }
  590. var oldLocale = app.$vm.$locale;
  591. if (oldLocale !== locale) {
  592. app.$vm.$locale = locale;
  593. onLocaleChangeCallbacks.forEach(function (fn) {
  594. return fn({
  595. locale: locale
  596. });
  597. });
  598. return true;
  599. }
  600. return false;
  601. }
  602. var onLocaleChangeCallbacks = [];
  603. function onLocaleChange(fn) {
  604. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  605. onLocaleChangeCallbacks.push(fn);
  606. }
  607. }
  608. if (typeof global !== 'undefined') {
  609. global.getLocale = getLocale$1;
  610. }
  611. var interceptors = {
  612. promiseInterceptor: promiseInterceptor
  613. };
  614. var baseApi = /*#__PURE__*/Object.freeze({
  615. __proto__: null,
  616. upx2px: upx2px,
  617. getLocale: getLocale$1,
  618. setLocale: setLocale$1,
  619. onLocaleChange: onLocaleChange,
  620. addInterceptor: addInterceptor,
  621. removeInterceptor: removeInterceptor,
  622. interceptors: interceptors
  623. });
  624. function findExistsPageIndex(url) {
  625. var pages = getCurrentPages();
  626. var len = pages.length;
  627. while (len--) {
  628. var page = pages[len];
  629. if (page.$page && page.$page.fullPath === url) {
  630. return len;
  631. }
  632. }
  633. return -1;
  634. }
  635. var redirectTo = {
  636. name: function name(fromArgs) {
  637. if (fromArgs.exists === 'back' && fromArgs.delta) {
  638. return 'navigateBack';
  639. }
  640. return 'redirectTo';
  641. },
  642. args: function args(fromArgs) {
  643. if (fromArgs.exists === 'back' && fromArgs.url) {
  644. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  645. if (existsPageIndex !== -1) {
  646. var delta = getCurrentPages().length - 1 - existsPageIndex;
  647. if (delta > 0) {
  648. fromArgs.delta = delta;
  649. }
  650. }
  651. }
  652. }
  653. };
  654. var previewImage = {
  655. args: function args(fromArgs) {
  656. var currentIndex = parseInt(fromArgs.current);
  657. if (isNaN(currentIndex)) {
  658. return;
  659. }
  660. var urls = fromArgs.urls;
  661. if (!Array.isArray(urls)) {
  662. return;
  663. }
  664. var len = urls.length;
  665. if (!len) {
  666. return;
  667. }
  668. if (currentIndex < 0) {
  669. currentIndex = 0;
  670. } else if (currentIndex >= len) {
  671. currentIndex = len - 1;
  672. }
  673. if (currentIndex > 0) {
  674. fromArgs.current = urls[currentIndex];
  675. fromArgs.urls = urls.filter(function (item, index) {
  676. return index < currentIndex ? item !== urls[currentIndex] : true;
  677. });
  678. } else {
  679. fromArgs.current = urls[0];
  680. }
  681. return {
  682. indicator: false,
  683. loop: false
  684. };
  685. }
  686. };
  687. var UUID_KEY = '__DC_STAT_UUID';
  688. var deviceId;
  689. function useDeviceId(result) {
  690. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  691. if (!deviceId) {
  692. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  693. wx.setStorage({
  694. key: UUID_KEY,
  695. data: deviceId
  696. });
  697. }
  698. result.deviceId = deviceId;
  699. }
  700. function addSafeAreaInsets(result) {
  701. if (result.safeArea) {
  702. var safeArea = result.safeArea;
  703. result.safeAreaInsets = {
  704. top: safeArea.top,
  705. left: safeArea.left,
  706. right: result.windowWidth - safeArea.right,
  707. bottom: result.screenHeight - safeArea.bottom
  708. };
  709. }
  710. }
  711. function populateParameters(result) {
  712. var _result$brand = result.brand,
  713. brand = _result$brand === void 0 ? '' : _result$brand,
  714. _result$model = result.model,
  715. model = _result$model === void 0 ? '' : _result$model,
  716. _result$system = result.system,
  717. system = _result$system === void 0 ? '' : _result$system,
  718. _result$language = result.language,
  719. language = _result$language === void 0 ? '' : _result$language,
  720. theme = result.theme,
  721. version = result.version,
  722. platform = result.platform,
  723. fontSizeSetting = result.fontSizeSetting,
  724. SDKVersion = result.SDKVersion,
  725. pixelRatio = result.pixelRatio,
  726. deviceOrientation = result.deviceOrientation;
  727. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  728. var extraParam = {};
  729. // osName osVersion
  730. var osName = '';
  731. var osVersion = '';
  732. {
  733. osName = system.split(' ')[0] || '';
  734. osVersion = system.split(' ')[1] || '';
  735. }
  736. var hostVersion = version;
  737. // deviceType
  738. var deviceType = getGetDeviceType(result, model);
  739. // deviceModel
  740. var deviceBrand = getDeviceBrand(brand);
  741. // hostName
  742. var _hostName = getHostName(result);
  743. // deviceOrientation
  744. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  745. // devicePixelRatio
  746. var _devicePixelRatio = pixelRatio;
  747. // SDKVersion
  748. var _SDKVersion = SDKVersion;
  749. // hostLanguage
  750. var hostLanguage = language.replace(/_/g, '-');
  751. // wx.getAccountInfoSync
  752. var parameters = {
  753. appId: "__UNI__7D5316C",
  754. appName: "sws",
  755. appVersion: "1.0.0",
  756. appVersionCode: "100",
  757. appLanguage: getAppLanguage(hostLanguage),
  758. uniCompileVersion: "3.96",
  759. uniRuntimeVersion: "3.96",
  760. uniPlatform: undefined || "mp-weixin",
  761. deviceBrand: deviceBrand,
  762. deviceModel: model,
  763. deviceType: deviceType,
  764. devicePixelRatio: _devicePixelRatio,
  765. deviceOrientation: _deviceOrientation,
  766. osName: osName.toLocaleLowerCase(),
  767. osVersion: osVersion,
  768. hostTheme: theme,
  769. hostVersion: hostVersion,
  770. hostLanguage: hostLanguage,
  771. hostName: _hostName,
  772. hostSDKVersion: _SDKVersion,
  773. hostFontSizeSetting: fontSizeSetting,
  774. windowTop: 0,
  775. windowBottom: 0,
  776. // TODO
  777. osLanguage: undefined,
  778. osTheme: undefined,
  779. ua: undefined,
  780. hostPackageName: undefined,
  781. browserName: undefined,
  782. browserVersion: undefined
  783. };
  784. Object.assign(result, parameters, extraParam);
  785. }
  786. function getGetDeviceType(result, model) {
  787. var deviceType = result.deviceType || 'phone';
  788. {
  789. var deviceTypeMaps = {
  790. ipad: 'pad',
  791. windows: 'pc',
  792. mac: 'pc'
  793. };
  794. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  795. var _model = model.toLocaleLowerCase();
  796. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  797. var _m = deviceTypeMapsKeys[index];
  798. if (_model.indexOf(_m) !== -1) {
  799. deviceType = deviceTypeMaps[_m];
  800. break;
  801. }
  802. }
  803. }
  804. return deviceType;
  805. }
  806. function getDeviceBrand(brand) {
  807. var deviceBrand = brand;
  808. if (deviceBrand) {
  809. deviceBrand = brand.toLocaleLowerCase();
  810. }
  811. return deviceBrand;
  812. }
  813. function getAppLanguage(defaultLanguage) {
  814. return getLocale$1 ? getLocale$1() : defaultLanguage;
  815. }
  816. function getHostName(result) {
  817. var _platform = 'WeChat';
  818. var _hostName = result.hostName || _platform; // mp-jd
  819. {
  820. if (result.environment) {
  821. _hostName = result.environment;
  822. } else if (result.host && result.host.env) {
  823. _hostName = result.host.env;
  824. }
  825. }
  826. return _hostName;
  827. }
  828. var getSystemInfo = {
  829. returnValue: function returnValue(result) {
  830. useDeviceId(result);
  831. addSafeAreaInsets(result);
  832. populateParameters(result);
  833. }
  834. };
  835. var showActionSheet = {
  836. args: function args(fromArgs) {
  837. if ((0, _typeof2.default)(fromArgs) === 'object') {
  838. fromArgs.alertText = fromArgs.title;
  839. }
  840. }
  841. };
  842. var getAppBaseInfo = {
  843. returnValue: function returnValue(result) {
  844. var _result = result,
  845. version = _result.version,
  846. language = _result.language,
  847. SDKVersion = _result.SDKVersion,
  848. theme = _result.theme;
  849. var _hostName = getHostName(result);
  850. var hostLanguage = language.replace('_', '-');
  851. result = sortObject(Object.assign(result, {
  852. appId: "__UNI__7D5316C",
  853. appName: "sws",
  854. appVersion: "1.0.0",
  855. appVersionCode: "100",
  856. appLanguage: getAppLanguage(hostLanguage),
  857. hostVersion: version,
  858. hostLanguage: hostLanguage,
  859. hostName: _hostName,
  860. hostSDKVersion: SDKVersion,
  861. hostTheme: theme
  862. }));
  863. }
  864. };
  865. var getDeviceInfo = {
  866. returnValue: function returnValue(result) {
  867. var _result2 = result,
  868. brand = _result2.brand,
  869. model = _result2.model;
  870. var deviceType = getGetDeviceType(result, model);
  871. var deviceBrand = getDeviceBrand(brand);
  872. useDeviceId(result);
  873. result = sortObject(Object.assign(result, {
  874. deviceType: deviceType,
  875. deviceBrand: deviceBrand,
  876. deviceModel: model
  877. }));
  878. }
  879. };
  880. var getWindowInfo = {
  881. returnValue: function returnValue(result) {
  882. addSafeAreaInsets(result);
  883. result = sortObject(Object.assign(result, {
  884. windowTop: 0,
  885. windowBottom: 0
  886. }));
  887. }
  888. };
  889. var getAppAuthorizeSetting = {
  890. returnValue: function returnValue(result) {
  891. var locationReducedAccuracy = result.locationReducedAccuracy;
  892. result.locationAccuracy = 'unsupported';
  893. if (locationReducedAccuracy === true) {
  894. result.locationAccuracy = 'reduced';
  895. } else if (locationReducedAccuracy === false) {
  896. result.locationAccuracy = 'full';
  897. }
  898. }
  899. };
  900. // import navigateTo from 'uni-helpers/navigate-to'
  901. var compressImage = {
  902. args: function args(fromArgs) {
  903. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  904. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  905. fromArgs.compressHeight = fromArgs.compressedHeight;
  906. }
  907. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  908. fromArgs.compressWidth = fromArgs.compressedWidth;
  909. }
  910. }
  911. };
  912. var protocols = {
  913. redirectTo: redirectTo,
  914. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  915. previewImage: previewImage,
  916. getSystemInfo: getSystemInfo,
  917. getSystemInfoSync: getSystemInfo,
  918. showActionSheet: showActionSheet,
  919. getAppBaseInfo: getAppBaseInfo,
  920. getDeviceInfo: getDeviceInfo,
  921. getWindowInfo: getWindowInfo,
  922. getAppAuthorizeSetting: getAppAuthorizeSetting,
  923. compressImage: compressImage
  924. };
  925. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  926. var canIUses = [];
  927. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  928. function processCallback(methodName, method, returnValue) {
  929. return function (res) {
  930. return method(processReturnValue(methodName, res, returnValue));
  931. };
  932. }
  933. function processArgs(methodName, fromArgs) {
  934. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  935. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  936. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  937. if (isPlainObject(fromArgs)) {
  938. // 一般 api 的参数解析
  939. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  940. if (isFn(argsOption)) {
  941. argsOption = argsOption(fromArgs, toArgs) || {};
  942. }
  943. for (var key in fromArgs) {
  944. if (hasOwn(argsOption, key)) {
  945. var keyOption = argsOption[key];
  946. if (isFn(keyOption)) {
  947. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  948. }
  949. if (!keyOption) {
  950. // 不支持的参数
  951. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  952. } else if (isStr(keyOption)) {
  953. // 重写参数 key
  954. toArgs[keyOption] = fromArgs[key];
  955. } else if (isPlainObject(keyOption)) {
  956. // {name:newName,value:value}可重新指定参数 key:value
  957. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  958. }
  959. } else if (CALLBACKS.indexOf(key) !== -1) {
  960. if (isFn(fromArgs[key])) {
  961. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  962. }
  963. } else {
  964. if (!keepFromArgs) {
  965. toArgs[key] = fromArgs[key];
  966. }
  967. }
  968. }
  969. return toArgs;
  970. } else if (isFn(fromArgs)) {
  971. fromArgs = processCallback(methodName, fromArgs, returnValue);
  972. }
  973. return fromArgs;
  974. }
  975. function processReturnValue(methodName, res, returnValue) {
  976. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  977. if (isFn(protocols.returnValue)) {
  978. // 处理通用 returnValue
  979. res = protocols.returnValue(methodName, res);
  980. }
  981. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  982. }
  983. function wrapper(methodName, method) {
  984. if (hasOwn(protocols, methodName)) {
  985. var protocol = protocols[methodName];
  986. if (!protocol) {
  987. // 暂不支持的 api
  988. return function () {
  989. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  990. };
  991. }
  992. return function (arg1, arg2) {
  993. // 目前 api 最多两个参数
  994. var options = protocol;
  995. if (isFn(protocol)) {
  996. options = protocol(arg1);
  997. }
  998. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  999. var args = [arg1];
  1000. if (typeof arg2 !== 'undefined') {
  1001. args.push(arg2);
  1002. }
  1003. if (isFn(options.name)) {
  1004. methodName = options.name(arg1);
  1005. } else if (isStr(options.name)) {
  1006. methodName = options.name;
  1007. }
  1008. var returnValue = wx[methodName].apply(wx, args);
  1009. if (isSyncApi(methodName)) {
  1010. // 同步 api
  1011. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1012. }
  1013. return returnValue;
  1014. };
  1015. }
  1016. return method;
  1017. }
  1018. var todoApis = Object.create(null);
  1019. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1020. function createTodoApi(name) {
  1021. return function todoApi(_ref) {
  1022. var fail = _ref.fail,
  1023. complete = _ref.complete;
  1024. var res = {
  1025. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1026. };
  1027. isFn(fail) && fail(res);
  1028. isFn(complete) && complete(res);
  1029. };
  1030. }
  1031. TODOS.forEach(function (name) {
  1032. todoApis[name] = createTodoApi(name);
  1033. });
  1034. var providers = {
  1035. oauth: ['weixin'],
  1036. share: ['weixin'],
  1037. payment: ['wxpay'],
  1038. push: ['weixin']
  1039. };
  1040. function getProvider(_ref2) {
  1041. var service = _ref2.service,
  1042. success = _ref2.success,
  1043. fail = _ref2.fail,
  1044. complete = _ref2.complete;
  1045. var res = false;
  1046. if (providers[service]) {
  1047. res = {
  1048. errMsg: 'getProvider:ok',
  1049. service: service,
  1050. provider: providers[service]
  1051. };
  1052. isFn(success) && success(res);
  1053. } else {
  1054. res = {
  1055. errMsg: 'getProvider:fail service not found'
  1056. };
  1057. isFn(fail) && fail(res);
  1058. }
  1059. isFn(complete) && complete(res);
  1060. }
  1061. var extraApi = /*#__PURE__*/Object.freeze({
  1062. __proto__: null,
  1063. getProvider: getProvider
  1064. });
  1065. var getEmitter = function () {
  1066. var Emitter;
  1067. return function getUniEmitter() {
  1068. if (!Emitter) {
  1069. Emitter = new _vue.default();
  1070. }
  1071. return Emitter;
  1072. };
  1073. }();
  1074. function apply(ctx, method, args) {
  1075. return ctx[method].apply(ctx, args);
  1076. }
  1077. function $on() {
  1078. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1079. }
  1080. function $off() {
  1081. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1082. }
  1083. function $once() {
  1084. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1085. }
  1086. function $emit() {
  1087. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1088. }
  1089. var eventApi = /*#__PURE__*/Object.freeze({
  1090. __proto__: null,
  1091. $on: $on,
  1092. $off: $off,
  1093. $once: $once,
  1094. $emit: $emit
  1095. });
  1096. /**
  1097. * 框架内 try-catch
  1098. */
  1099. /**
  1100. * 开发者 try-catch
  1101. */
  1102. function tryCatch(fn) {
  1103. return function () {
  1104. try {
  1105. return fn.apply(fn, arguments);
  1106. } catch (e) {
  1107. // TODO
  1108. console.error(e);
  1109. }
  1110. };
  1111. }
  1112. function getApiCallbacks(params) {
  1113. var apiCallbacks = {};
  1114. for (var name in params) {
  1115. var param = params[name];
  1116. if (isFn(param)) {
  1117. apiCallbacks[name] = tryCatch(param);
  1118. delete params[name];
  1119. }
  1120. }
  1121. return apiCallbacks;
  1122. }
  1123. var cid;
  1124. var cidErrMsg;
  1125. var enabled;
  1126. function normalizePushMessage(message) {
  1127. try {
  1128. return JSON.parse(message);
  1129. } catch (e) {}
  1130. return message;
  1131. }
  1132. function invokePushCallback(args) {
  1133. if (args.type === 'enabled') {
  1134. enabled = true;
  1135. } else if (args.type === 'clientId') {
  1136. cid = args.cid;
  1137. cidErrMsg = args.errMsg;
  1138. invokeGetPushCidCallbacks(cid, args.errMsg);
  1139. } else if (args.type === 'pushMsg') {
  1140. var message = {
  1141. type: 'receive',
  1142. data: normalizePushMessage(args.message)
  1143. };
  1144. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1145. var callback = onPushMessageCallbacks[i];
  1146. callback(message);
  1147. // 该消息已被阻止
  1148. if (message.stopped) {
  1149. break;
  1150. }
  1151. }
  1152. } else if (args.type === 'click') {
  1153. onPushMessageCallbacks.forEach(function (callback) {
  1154. callback({
  1155. type: 'click',
  1156. data: normalizePushMessage(args.message)
  1157. });
  1158. });
  1159. }
  1160. }
  1161. var getPushCidCallbacks = [];
  1162. function invokeGetPushCidCallbacks(cid, errMsg) {
  1163. getPushCidCallbacks.forEach(function (callback) {
  1164. callback(cid, errMsg);
  1165. });
  1166. getPushCidCallbacks.length = 0;
  1167. }
  1168. function getPushClientId(args) {
  1169. if (!isPlainObject(args)) {
  1170. args = {};
  1171. }
  1172. var _getApiCallbacks = getApiCallbacks(args),
  1173. success = _getApiCallbacks.success,
  1174. fail = _getApiCallbacks.fail,
  1175. complete = _getApiCallbacks.complete;
  1176. var hasSuccess = isFn(success);
  1177. var hasFail = isFn(fail);
  1178. var hasComplete = isFn(complete);
  1179. Promise.resolve().then(function () {
  1180. if (typeof enabled === 'undefined') {
  1181. enabled = false;
  1182. cid = '';
  1183. cidErrMsg = 'uniPush is not enabled';
  1184. }
  1185. getPushCidCallbacks.push(function (cid, errMsg) {
  1186. var res;
  1187. if (cid) {
  1188. res = {
  1189. errMsg: 'getPushClientId:ok',
  1190. cid: cid
  1191. };
  1192. hasSuccess && success(res);
  1193. } else {
  1194. res = {
  1195. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1196. };
  1197. hasFail && fail(res);
  1198. }
  1199. hasComplete && complete(res);
  1200. });
  1201. if (typeof cid !== 'undefined') {
  1202. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1203. }
  1204. });
  1205. }
  1206. var onPushMessageCallbacks = [];
  1207. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1208. var onPushMessage = function onPushMessage(fn) {
  1209. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1210. onPushMessageCallbacks.push(fn);
  1211. }
  1212. };
  1213. var offPushMessage = function offPushMessage(fn) {
  1214. if (!fn) {
  1215. onPushMessageCallbacks.length = 0;
  1216. } else {
  1217. var index = onPushMessageCallbacks.indexOf(fn);
  1218. if (index > -1) {
  1219. onPushMessageCallbacks.splice(index, 1);
  1220. }
  1221. }
  1222. };
  1223. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1224. if (!baseInfo) {
  1225. baseInfo = wx.getSystemInfoSync();
  1226. }
  1227. var host = baseInfo ? baseInfo.host : null;
  1228. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1229. var api = /*#__PURE__*/Object.freeze({
  1230. __proto__: null,
  1231. shareVideoMessage: shareVideoMessage,
  1232. getPushClientId: getPushClientId,
  1233. onPushMessage: onPushMessage,
  1234. offPushMessage: offPushMessage,
  1235. invokePushCallback: invokePushCallback
  1236. });
  1237. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1238. function findVmByVueId(vm, vuePid) {
  1239. var $children = vm.$children;
  1240. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1241. for (var i = $children.length - 1; i >= 0; i--) {
  1242. var childVm = $children[i];
  1243. if (childVm.$scope._$vueId === vuePid) {
  1244. return childVm;
  1245. }
  1246. }
  1247. // 反向递归查找
  1248. var parentVm;
  1249. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1250. parentVm = findVmByVueId($children[_i], vuePid);
  1251. if (parentVm) {
  1252. return parentVm;
  1253. }
  1254. }
  1255. }
  1256. function initBehavior(options) {
  1257. return Behavior(options);
  1258. }
  1259. function isPage() {
  1260. return !!this.route;
  1261. }
  1262. function initRelation(detail) {
  1263. this.triggerEvent('__l', detail);
  1264. }
  1265. function selectAllComponents(mpInstance, selector, $refs) {
  1266. var components = mpInstance.selectAllComponents(selector) || [];
  1267. components.forEach(function (component) {
  1268. var ref = component.dataset.ref;
  1269. $refs[ref] = component.$vm || toSkip(component);
  1270. {
  1271. if (component.dataset.vueGeneric === 'scoped') {
  1272. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1273. selectAllComponents(scopedComponent, selector, $refs);
  1274. });
  1275. }
  1276. }
  1277. });
  1278. }
  1279. function syncRefs(refs, newRefs) {
  1280. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1281. var newKeys = Object.keys(newRefs);
  1282. newKeys.forEach(function (key) {
  1283. var oldValue = refs[key];
  1284. var newValue = newRefs[key];
  1285. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1286. return oldValue.includes(value);
  1287. })) {
  1288. return;
  1289. }
  1290. refs[key] = newValue;
  1291. oldKeys.delete(key);
  1292. });
  1293. oldKeys.forEach(function (key) {
  1294. delete refs[key];
  1295. });
  1296. return refs;
  1297. }
  1298. function initRefs(vm) {
  1299. var mpInstance = vm.$scope;
  1300. var refs = {};
  1301. Object.defineProperty(vm, '$refs', {
  1302. get: function get() {
  1303. var $refs = {};
  1304. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1305. // TODO 暂不考虑 for 中的 scoped
  1306. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1307. forComponents.forEach(function (component) {
  1308. var ref = component.dataset.ref;
  1309. if (!$refs[ref]) {
  1310. $refs[ref] = [];
  1311. }
  1312. $refs[ref].push(component.$vm || toSkip(component));
  1313. });
  1314. return syncRefs(refs, $refs);
  1315. }
  1316. });
  1317. }
  1318. function handleLink(event) {
  1319. var _ref3 = event.detail || event.value,
  1320. vuePid = _ref3.vuePid,
  1321. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1322. var parentVm;
  1323. if (vuePid) {
  1324. parentVm = findVmByVueId(this.$vm, vuePid);
  1325. }
  1326. if (!parentVm) {
  1327. parentVm = this.$vm;
  1328. }
  1329. vueOptions.parent = parentVm;
  1330. }
  1331. function markMPComponent(component) {
  1332. // 在 Vue 中标记为小程序组件
  1333. var IS_MP = '__v_isMPComponent';
  1334. Object.defineProperty(component, IS_MP, {
  1335. configurable: true,
  1336. enumerable: false,
  1337. value: true
  1338. });
  1339. return component;
  1340. }
  1341. function toSkip(obj) {
  1342. var OB = '__ob__';
  1343. var SKIP = '__v_skip';
  1344. if (isObject(obj) && Object.isExtensible(obj)) {
  1345. // 避免被 @vue/composition-api 观测
  1346. Object.defineProperty(obj, OB, {
  1347. configurable: true,
  1348. enumerable: false,
  1349. value: (0, _defineProperty2.default)({}, SKIP, true)
  1350. });
  1351. }
  1352. return obj;
  1353. }
  1354. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1355. function initWorkletMethods(mpMethods, vueMethods) {
  1356. if (vueMethods) {
  1357. Object.keys(vueMethods).forEach(function (name) {
  1358. var matches = name.match(WORKLET_RE);
  1359. if (matches) {
  1360. var workletName = matches[1];
  1361. mpMethods[name] = vueMethods[name];
  1362. mpMethods[workletName] = vueMethods[workletName];
  1363. }
  1364. });
  1365. }
  1366. }
  1367. var MPPage = Page;
  1368. var MPComponent = Component;
  1369. var customizeRE = /:/g;
  1370. var customize = cached(function (str) {
  1371. return camelize(str.replace(customizeRE, '-'));
  1372. });
  1373. function initTriggerEvent(mpInstance) {
  1374. var oldTriggerEvent = mpInstance.triggerEvent;
  1375. var newTriggerEvent = function newTriggerEvent(event) {
  1376. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1377. args[_key3 - 1] = arguments[_key3];
  1378. }
  1379. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1380. if (this.$vm || this.dataset && this.dataset.comType) {
  1381. event = customize(event);
  1382. } else {
  1383. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1384. var newEvent = customize(event);
  1385. if (newEvent !== event) {
  1386. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1387. }
  1388. }
  1389. return oldTriggerEvent.apply(this, [event].concat(args));
  1390. };
  1391. try {
  1392. // 京东小程序 triggerEvent 为只读
  1393. mpInstance.triggerEvent = newTriggerEvent;
  1394. } catch (error) {
  1395. mpInstance._triggerEvent = newTriggerEvent;
  1396. }
  1397. }
  1398. function initHook(name, options, isComponent) {
  1399. var oldHook = options[name];
  1400. options[name] = function () {
  1401. markMPComponent(this);
  1402. initTriggerEvent(this);
  1403. if (oldHook) {
  1404. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1405. args[_key4] = arguments[_key4];
  1406. }
  1407. return oldHook.apply(this, args);
  1408. }
  1409. };
  1410. }
  1411. if (!MPPage.__$wrappered) {
  1412. MPPage.__$wrappered = true;
  1413. Page = function Page() {
  1414. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1415. initHook('onLoad', options);
  1416. return MPPage(options);
  1417. };
  1418. Page.after = MPPage.after;
  1419. Component = function Component() {
  1420. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1421. initHook('created', options);
  1422. return MPComponent(options);
  1423. };
  1424. }
  1425. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1426. function initMocks(vm, mocks) {
  1427. var mpInstance = vm.$mp[vm.mpType];
  1428. mocks.forEach(function (mock) {
  1429. if (hasOwn(mpInstance, mock)) {
  1430. vm[mock] = mpInstance[mock];
  1431. }
  1432. });
  1433. }
  1434. function hasHook(hook, vueOptions) {
  1435. if (!vueOptions) {
  1436. return true;
  1437. }
  1438. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1439. return true;
  1440. }
  1441. vueOptions = vueOptions.default || vueOptions;
  1442. if (isFn(vueOptions)) {
  1443. if (isFn(vueOptions.extendOptions[hook])) {
  1444. return true;
  1445. }
  1446. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1447. return true;
  1448. }
  1449. return false;
  1450. }
  1451. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1452. return true;
  1453. }
  1454. var mixins = vueOptions.mixins;
  1455. if (Array.isArray(mixins)) {
  1456. return !!mixins.find(function (mixin) {
  1457. return hasHook(hook, mixin);
  1458. });
  1459. }
  1460. }
  1461. function initHooks(mpOptions, hooks, vueOptions) {
  1462. hooks.forEach(function (hook) {
  1463. if (hasHook(hook, vueOptions)) {
  1464. mpOptions[hook] = function (args) {
  1465. return this.$vm && this.$vm.__call_hook(hook, args);
  1466. };
  1467. }
  1468. });
  1469. }
  1470. function initUnknownHooks(mpOptions, vueOptions) {
  1471. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1472. findHooks(vueOptions).forEach(function (hook) {
  1473. return initHook$1(mpOptions, hook, excludes);
  1474. });
  1475. }
  1476. function findHooks(vueOptions) {
  1477. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1478. if (vueOptions) {
  1479. Object.keys(vueOptions).forEach(function (name) {
  1480. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1481. hooks.push(name);
  1482. }
  1483. });
  1484. }
  1485. return hooks;
  1486. }
  1487. function initHook$1(mpOptions, hook, excludes) {
  1488. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1489. mpOptions[hook] = function (args) {
  1490. return this.$vm && this.$vm.__call_hook(hook, args);
  1491. };
  1492. }
  1493. }
  1494. function initVueComponent(Vue, vueOptions) {
  1495. vueOptions = vueOptions.default || vueOptions;
  1496. var VueComponent;
  1497. if (isFn(vueOptions)) {
  1498. VueComponent = vueOptions;
  1499. } else {
  1500. VueComponent = Vue.extend(vueOptions);
  1501. }
  1502. vueOptions = VueComponent.options;
  1503. return [VueComponent, vueOptions];
  1504. }
  1505. function initSlots(vm, vueSlots) {
  1506. if (Array.isArray(vueSlots) && vueSlots.length) {
  1507. var $slots = Object.create(null);
  1508. vueSlots.forEach(function (slotName) {
  1509. $slots[slotName] = true;
  1510. });
  1511. vm.$scopedSlots = vm.$slots = $slots;
  1512. }
  1513. }
  1514. function initVueIds(vueIds, mpInstance) {
  1515. vueIds = (vueIds || '').split(',');
  1516. var len = vueIds.length;
  1517. if (len === 1) {
  1518. mpInstance._$vueId = vueIds[0];
  1519. } else if (len === 2) {
  1520. mpInstance._$vueId = vueIds[0];
  1521. mpInstance._$vuePid = vueIds[1];
  1522. }
  1523. }
  1524. function initData(vueOptions, context) {
  1525. var data = vueOptions.data || {};
  1526. var methods = vueOptions.methods || {};
  1527. if (typeof data === 'function') {
  1528. try {
  1529. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1530. } catch (e) {
  1531. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"sws","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1532. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1533. }
  1534. }
  1535. } else {
  1536. try {
  1537. // 对 data 格式化
  1538. data = JSON.parse(JSON.stringify(data));
  1539. } catch (e) {}
  1540. }
  1541. if (!isPlainObject(data)) {
  1542. data = {};
  1543. }
  1544. Object.keys(methods).forEach(function (methodName) {
  1545. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1546. data[methodName] = methods[methodName];
  1547. }
  1548. });
  1549. return data;
  1550. }
  1551. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1552. function createObserver(name) {
  1553. return function observer(newVal, oldVal) {
  1554. if (this.$vm) {
  1555. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1556. }
  1557. };
  1558. }
  1559. function initBehaviors(vueOptions, initBehavior) {
  1560. var vueBehaviors = vueOptions.behaviors;
  1561. var vueExtends = vueOptions.extends;
  1562. var vueMixins = vueOptions.mixins;
  1563. var vueProps = vueOptions.props;
  1564. if (!vueProps) {
  1565. vueOptions.props = vueProps = [];
  1566. }
  1567. var behaviors = [];
  1568. if (Array.isArray(vueBehaviors)) {
  1569. vueBehaviors.forEach(function (behavior) {
  1570. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1571. if (behavior === 'uni://form-field') {
  1572. if (Array.isArray(vueProps)) {
  1573. vueProps.push('name');
  1574. vueProps.push('value');
  1575. } else {
  1576. vueProps.name = {
  1577. type: String,
  1578. default: ''
  1579. };
  1580. vueProps.value = {
  1581. type: [String, Number, Boolean, Array, Object, Date],
  1582. default: ''
  1583. };
  1584. }
  1585. }
  1586. });
  1587. }
  1588. if (isPlainObject(vueExtends) && vueExtends.props) {
  1589. behaviors.push(initBehavior({
  1590. properties: initProperties(vueExtends.props, true)
  1591. }));
  1592. }
  1593. if (Array.isArray(vueMixins)) {
  1594. vueMixins.forEach(function (vueMixin) {
  1595. if (isPlainObject(vueMixin) && vueMixin.props) {
  1596. behaviors.push(initBehavior({
  1597. properties: initProperties(vueMixin.props, true)
  1598. }));
  1599. }
  1600. });
  1601. }
  1602. return behaviors;
  1603. }
  1604. function parsePropType(key, type, defaultValue, file) {
  1605. // [String]=>String
  1606. if (Array.isArray(type) && type.length === 1) {
  1607. return type[0];
  1608. }
  1609. return type;
  1610. }
  1611. function initProperties(props) {
  1612. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1613. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1614. var options = arguments.length > 3 ? arguments[3] : undefined;
  1615. var properties = {};
  1616. if (!isBehavior) {
  1617. properties.vueId = {
  1618. type: String,
  1619. value: ''
  1620. };
  1621. {
  1622. if (options.virtualHost) {
  1623. properties.virtualHostStyle = {
  1624. type: null,
  1625. value: ''
  1626. };
  1627. properties.virtualHostClass = {
  1628. type: null,
  1629. value: ''
  1630. };
  1631. }
  1632. }
  1633. // scopedSlotsCompiler auto
  1634. properties.scopedSlotsCompiler = {
  1635. type: String,
  1636. value: ''
  1637. };
  1638. properties.vueSlots = {
  1639. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1640. type: null,
  1641. value: [],
  1642. observer: function observer(newVal, oldVal) {
  1643. var $slots = Object.create(null);
  1644. newVal.forEach(function (slotName) {
  1645. $slots[slotName] = true;
  1646. });
  1647. this.setData({
  1648. $slots: $slots
  1649. });
  1650. }
  1651. };
  1652. }
  1653. if (Array.isArray(props)) {
  1654. // ['title']
  1655. props.forEach(function (key) {
  1656. properties[key] = {
  1657. type: null,
  1658. observer: createObserver(key)
  1659. };
  1660. });
  1661. } else if (isPlainObject(props)) {
  1662. // {title:{type:String,default:''},content:String}
  1663. Object.keys(props).forEach(function (key) {
  1664. var opts = props[key];
  1665. if (isPlainObject(opts)) {
  1666. // title:{type:String,default:''}
  1667. var value = opts.default;
  1668. if (isFn(value)) {
  1669. value = value();
  1670. }
  1671. opts.type = parsePropType(key, opts.type);
  1672. properties[key] = {
  1673. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1674. value: value,
  1675. observer: createObserver(key)
  1676. };
  1677. } else {
  1678. // content:String
  1679. var type = parsePropType(key, opts);
  1680. properties[key] = {
  1681. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1682. observer: createObserver(key)
  1683. };
  1684. }
  1685. });
  1686. }
  1687. return properties;
  1688. }
  1689. function wrapper$1(event) {
  1690. // TODO 又得兼容 mpvue 的 mp 对象
  1691. try {
  1692. event.mp = JSON.parse(JSON.stringify(event));
  1693. } catch (e) {}
  1694. event.stopPropagation = noop;
  1695. event.preventDefault = noop;
  1696. event.target = event.target || {};
  1697. if (!hasOwn(event, 'detail')) {
  1698. event.detail = {};
  1699. }
  1700. if (hasOwn(event, 'markerId')) {
  1701. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1702. event.detail.markerId = event.markerId;
  1703. }
  1704. if (isPlainObject(event.detail)) {
  1705. event.target = Object.assign({}, event.target, event.detail);
  1706. }
  1707. return event;
  1708. }
  1709. function getExtraValue(vm, dataPathsArray) {
  1710. var context = vm;
  1711. dataPathsArray.forEach(function (dataPathArray) {
  1712. var dataPath = dataPathArray[0];
  1713. var value = dataPathArray[2];
  1714. if (dataPath || typeof value !== 'undefined') {
  1715. // ['','',index,'disable']
  1716. var propPath = dataPathArray[1];
  1717. var valuePath = dataPathArray[3];
  1718. var vFor;
  1719. if (Number.isInteger(dataPath)) {
  1720. vFor = dataPath;
  1721. } else if (!dataPath) {
  1722. vFor = context;
  1723. } else if (typeof dataPath === 'string' && dataPath) {
  1724. if (dataPath.indexOf('#s#') === 0) {
  1725. vFor = dataPath.substr(3);
  1726. } else {
  1727. vFor = vm.__get_value(dataPath, context);
  1728. }
  1729. }
  1730. if (Number.isInteger(vFor)) {
  1731. context = value;
  1732. } else if (!propPath) {
  1733. context = vFor[value];
  1734. } else {
  1735. if (Array.isArray(vFor)) {
  1736. context = vFor.find(function (vForItem) {
  1737. return vm.__get_value(propPath, vForItem) === value;
  1738. });
  1739. } else if (isPlainObject(vFor)) {
  1740. context = Object.keys(vFor).find(function (vForKey) {
  1741. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1742. });
  1743. } else {
  1744. console.error('v-for 暂不支持循环数据:', vFor);
  1745. }
  1746. }
  1747. if (valuePath) {
  1748. context = vm.__get_value(valuePath, context);
  1749. }
  1750. }
  1751. });
  1752. return context;
  1753. }
  1754. function processEventExtra(vm, extra, event, __args__) {
  1755. var extraObj = {};
  1756. if (Array.isArray(extra) && extra.length) {
  1757. /**
  1758. *[
  1759. * ['data.items', 'data.id', item.data.id],
  1760. * ['metas', 'id', meta.id]
  1761. *],
  1762. *[
  1763. * ['data.items', 'data.id', item.data.id],
  1764. * ['metas', 'id', meta.id]
  1765. *],
  1766. *'test'
  1767. */
  1768. extra.forEach(function (dataPath, index) {
  1769. if (typeof dataPath === 'string') {
  1770. if (!dataPath) {
  1771. // model,prop.sync
  1772. extraObj['$' + index] = vm;
  1773. } else {
  1774. if (dataPath === '$event') {
  1775. // $event
  1776. extraObj['$' + index] = event;
  1777. } else if (dataPath === 'arguments') {
  1778. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1779. } else if (dataPath.indexOf('$event.') === 0) {
  1780. // $event.target.value
  1781. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1782. } else {
  1783. extraObj['$' + index] = vm.__get_value(dataPath);
  1784. }
  1785. }
  1786. } else {
  1787. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1788. }
  1789. });
  1790. }
  1791. return extraObj;
  1792. }
  1793. function getObjByArray(arr) {
  1794. var obj = {};
  1795. for (var i = 1; i < arr.length; i++) {
  1796. var element = arr[i];
  1797. obj[element[0]] = element[1];
  1798. }
  1799. return obj;
  1800. }
  1801. function processEventArgs(vm, event) {
  1802. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1803. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1804. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1805. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1806. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1807. // fixed 用户直接触发 mpInstance.triggerEvent
  1808. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1809. if (isCustom) {
  1810. // 自定义事件
  1811. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1812. if (!args.length) {
  1813. // 无参数,直接传入 event 或 detail 数组
  1814. if (isCustomMPEvent) {
  1815. return [event];
  1816. }
  1817. return __args__;
  1818. }
  1819. }
  1820. var extraObj = processEventExtra(vm, extra, event, __args__);
  1821. var ret = [];
  1822. args.forEach(function (arg) {
  1823. if (arg === '$event') {
  1824. if (methodName === '__set_model' && !isCustom) {
  1825. // input v-model value
  1826. ret.push(event.target.value);
  1827. } else {
  1828. if (isCustom && !isCustomMPEvent) {
  1829. ret.push(__args__[0]);
  1830. } else {
  1831. // wxcomponent 组件或内置组件
  1832. ret.push(event);
  1833. }
  1834. }
  1835. } else {
  1836. if (Array.isArray(arg) && arg[0] === 'o') {
  1837. ret.push(getObjByArray(arg));
  1838. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1839. ret.push(extraObj[arg]);
  1840. } else {
  1841. ret.push(arg);
  1842. }
  1843. }
  1844. });
  1845. return ret;
  1846. }
  1847. var ONCE = '~';
  1848. var CUSTOM = '^';
  1849. function isMatchEventType(eventType, optType) {
  1850. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1851. }
  1852. function getContextVm(vm) {
  1853. var $parent = vm.$parent;
  1854. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1855. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1856. $parent = $parent.$parent;
  1857. }
  1858. return $parent && $parent.$parent;
  1859. }
  1860. function handleEvent(event) {
  1861. var _this2 = this;
  1862. event = wrapper$1(event);
  1863. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1864. var dataset = (event.currentTarget || event.target).dataset;
  1865. if (!dataset) {
  1866. return console.warn('事件信息不存在');
  1867. }
  1868. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1869. if (!eventOpts) {
  1870. return console.warn('事件信息不存在');
  1871. }
  1872. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1873. var eventType = event.type;
  1874. var ret = [];
  1875. eventOpts.forEach(function (eventOpt) {
  1876. var type = eventOpt[0];
  1877. var eventsArray = eventOpt[1];
  1878. var isCustom = type.charAt(0) === CUSTOM;
  1879. type = isCustom ? type.slice(1) : type;
  1880. var isOnce = type.charAt(0) === ONCE;
  1881. type = isOnce ? type.slice(1) : type;
  1882. if (eventsArray && isMatchEventType(eventType, type)) {
  1883. eventsArray.forEach(function (eventArray) {
  1884. var methodName = eventArray[0];
  1885. if (methodName) {
  1886. var handlerCtx = _this2.$vm;
  1887. if (handlerCtx.$options.generic) {
  1888. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1889. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1890. }
  1891. if (methodName === '$emit') {
  1892. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1893. return;
  1894. }
  1895. var handler = handlerCtx[methodName];
  1896. if (!isFn(handler)) {
  1897. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1898. var path = _this2.route || _this2.is;
  1899. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1900. }
  1901. if (isOnce) {
  1902. if (handler.once) {
  1903. return;
  1904. }
  1905. handler.once = true;
  1906. }
  1907. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1908. params = Array.isArray(params) ? params : [];
  1909. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1910. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1911. // eslint-disable-next-line no-sparse-arrays
  1912. params = params.concat([,,,,,,,,,, event]);
  1913. }
  1914. ret.push(handler.apply(handlerCtx, params));
  1915. }
  1916. });
  1917. }
  1918. });
  1919. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1920. return ret[0];
  1921. }
  1922. }
  1923. var eventChannels = {};
  1924. function getEventChannel(id) {
  1925. var eventChannel = eventChannels[id];
  1926. delete eventChannels[id];
  1927. return eventChannel;
  1928. }
  1929. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1930. function initEventChannel() {
  1931. _vue.default.prototype.getOpenerEventChannel = function () {
  1932. // 微信小程序使用自身getOpenerEventChannel
  1933. {
  1934. return this.$scope.getOpenerEventChannel();
  1935. }
  1936. };
  1937. var callHook = _vue.default.prototype.__call_hook;
  1938. _vue.default.prototype.__call_hook = function (hook, args) {
  1939. if (hook === 'onLoad' && args && args.__id__) {
  1940. this.__eventChannel__ = getEventChannel(args.__id__);
  1941. delete args.__id__;
  1942. }
  1943. return callHook.call(this, hook, args);
  1944. };
  1945. }
  1946. function initScopedSlotsParams() {
  1947. var center = {};
  1948. var parents = {};
  1949. function currentId(fn) {
  1950. var vueIds = this.$options.propsData.vueId;
  1951. if (vueIds) {
  1952. var vueId = vueIds.split(',')[0];
  1953. fn(vueId);
  1954. }
  1955. }
  1956. _vue.default.prototype.$hasSSP = function (vueId) {
  1957. var slot = center[vueId];
  1958. if (!slot) {
  1959. parents[vueId] = this;
  1960. this.$on('hook:destroyed', function () {
  1961. delete parents[vueId];
  1962. });
  1963. }
  1964. return slot;
  1965. };
  1966. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  1967. var slot = center[vueId];
  1968. if (slot) {
  1969. var params = slot[name] || [];
  1970. if (needAll) {
  1971. return params;
  1972. }
  1973. return params[0];
  1974. }
  1975. };
  1976. _vue.default.prototype.$setSSP = function (name, value) {
  1977. var index = 0;
  1978. currentId.call(this, function (vueId) {
  1979. var slot = center[vueId];
  1980. var params = slot[name] = slot[name] || [];
  1981. params.push(value);
  1982. index = params.length - 1;
  1983. });
  1984. return index;
  1985. };
  1986. _vue.default.prototype.$initSSP = function () {
  1987. currentId.call(this, function (vueId) {
  1988. center[vueId] = {};
  1989. });
  1990. };
  1991. _vue.default.prototype.$callSSP = function () {
  1992. currentId.call(this, function (vueId) {
  1993. if (parents[vueId]) {
  1994. parents[vueId].$forceUpdate();
  1995. }
  1996. });
  1997. };
  1998. _vue.default.mixin({
  1999. destroyed: function destroyed() {
  2000. var propsData = this.$options.propsData;
  2001. var vueId = propsData && propsData.vueId;
  2002. if (vueId) {
  2003. delete center[vueId];
  2004. delete parents[vueId];
  2005. }
  2006. }
  2007. });
  2008. }
  2009. function parseBaseApp(vm, _ref4) {
  2010. var mocks = _ref4.mocks,
  2011. initRefs = _ref4.initRefs;
  2012. initEventChannel();
  2013. {
  2014. initScopedSlotsParams();
  2015. }
  2016. if (vm.$options.store) {
  2017. _vue.default.prototype.$store = vm.$options.store;
  2018. }
  2019. uniIdMixin(_vue.default);
  2020. _vue.default.prototype.mpHost = "mp-weixin";
  2021. _vue.default.mixin({
  2022. beforeCreate: function beforeCreate() {
  2023. if (!this.$options.mpType) {
  2024. return;
  2025. }
  2026. this.mpType = this.$options.mpType;
  2027. this.$mp = (0, _defineProperty2.default)({
  2028. data: {}
  2029. }, this.mpType, this.$options.mpInstance);
  2030. this.$scope = this.$options.mpInstance;
  2031. delete this.$options.mpType;
  2032. delete this.$options.mpInstance;
  2033. if (this.mpType === 'page' && typeof getApp === 'function') {
  2034. // hack vue-i18n
  2035. var app = getApp();
  2036. if (app.$vm && app.$vm.$i18n) {
  2037. this._i18n = app.$vm.$i18n;
  2038. }
  2039. }
  2040. if (this.mpType !== 'app') {
  2041. initRefs(this);
  2042. initMocks(this, mocks);
  2043. }
  2044. }
  2045. });
  2046. var appOptions = {
  2047. onLaunch: function onLaunch(args) {
  2048. if (this.$vm) {
  2049. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2050. return;
  2051. }
  2052. {
  2053. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2054. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2055. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2056. }
  2057. }
  2058. this.$vm = vm;
  2059. this.$vm.$mp = {
  2060. app: this
  2061. };
  2062. this.$vm.$scope = this;
  2063. // vm 上也挂载 globalData
  2064. this.$vm.globalData = this.globalData;
  2065. this.$vm._isMounted = true;
  2066. this.$vm.__call_hook('mounted', args);
  2067. this.$vm.__call_hook('onLaunch', args);
  2068. }
  2069. };
  2070. // 兼容旧版本 globalData
  2071. appOptions.globalData = vm.$options.globalData || {};
  2072. // 将 methods 中的方法挂在 getApp() 中
  2073. var methods = vm.$options.methods;
  2074. if (methods) {
  2075. Object.keys(methods).forEach(function (name) {
  2076. appOptions[name] = methods[name];
  2077. });
  2078. }
  2079. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2080. initHooks(appOptions, hooks);
  2081. initUnknownHooks(appOptions, vm.$options);
  2082. return appOptions;
  2083. }
  2084. function parseApp(vm) {
  2085. return parseBaseApp(vm, {
  2086. mocks: mocks,
  2087. initRefs: initRefs
  2088. });
  2089. }
  2090. function createApp(vm) {
  2091. App(parseApp(vm));
  2092. return vm;
  2093. }
  2094. var encodeReserveRE = /[!'()*]/g;
  2095. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2096. return '%' + c.charCodeAt(0).toString(16);
  2097. };
  2098. var commaRE = /%2C/g;
  2099. // fixed encodeURIComponent which is more conformant to RFC3986:
  2100. // - escapes [!'()*]
  2101. // - preserve commas
  2102. var encode = function encode(str) {
  2103. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2104. };
  2105. function stringifyQuery(obj) {
  2106. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2107. var res = obj ? Object.keys(obj).map(function (key) {
  2108. var val = obj[key];
  2109. if (val === undefined) {
  2110. return '';
  2111. }
  2112. if (val === null) {
  2113. return encodeStr(key);
  2114. }
  2115. if (Array.isArray(val)) {
  2116. var result = [];
  2117. val.forEach(function (val2) {
  2118. if (val2 === undefined) {
  2119. return;
  2120. }
  2121. if (val2 === null) {
  2122. result.push(encodeStr(key));
  2123. } else {
  2124. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2125. }
  2126. });
  2127. return result.join('&');
  2128. }
  2129. return encodeStr(key) + '=' + encodeStr(val);
  2130. }).filter(function (x) {
  2131. return x.length > 0;
  2132. }).join('&') : null;
  2133. return res ? "?".concat(res) : '';
  2134. }
  2135. function parseBaseComponent(vueComponentOptions) {
  2136. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2137. isPage = _ref5.isPage,
  2138. initRelation = _ref5.initRelation;
  2139. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2140. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2141. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2142. VueComponent = _initVueComponent2[0],
  2143. vueOptions = _initVueComponent2[1];
  2144. var options = _objectSpread({
  2145. multipleSlots: true,
  2146. // styleIsolation: 'apply-shared',
  2147. addGlobalClass: true
  2148. }, vueOptions.options || {});
  2149. {
  2150. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2151. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2152. Object.assign(options, vueOptions['mp-weixin'].options);
  2153. }
  2154. }
  2155. var componentOptions = {
  2156. options: options,
  2157. data: initData(vueOptions, _vue.default.prototype),
  2158. behaviors: initBehaviors(vueOptions, initBehavior),
  2159. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2160. lifetimes: {
  2161. attached: function attached() {
  2162. var properties = this.properties;
  2163. var options = {
  2164. mpType: isPage.call(this) ? 'page' : 'component',
  2165. mpInstance: this,
  2166. propsData: properties
  2167. };
  2168. initVueIds(properties.vueId, this);
  2169. // 处理父子关系
  2170. initRelation.call(this, {
  2171. vuePid: this._$vuePid,
  2172. vueOptions: options
  2173. });
  2174. // 初始化 vue 实例
  2175. this.$vm = new VueComponent(options);
  2176. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2177. initSlots(this.$vm, properties.vueSlots);
  2178. // 触发首次 setData
  2179. this.$vm.$mount();
  2180. },
  2181. ready: function ready() {
  2182. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2183. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2184. if (this.$vm) {
  2185. this.$vm._isMounted = true;
  2186. this.$vm.__call_hook('mounted');
  2187. this.$vm.__call_hook('onReady');
  2188. }
  2189. },
  2190. detached: function detached() {
  2191. this.$vm && this.$vm.$destroy();
  2192. }
  2193. },
  2194. pageLifetimes: {
  2195. show: function show(args) {
  2196. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2197. },
  2198. hide: function hide() {
  2199. this.$vm && this.$vm.__call_hook('onPageHide');
  2200. },
  2201. resize: function resize(size) {
  2202. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2203. }
  2204. },
  2205. methods: {
  2206. __l: handleLink,
  2207. __e: handleEvent
  2208. }
  2209. };
  2210. // externalClasses
  2211. if (vueOptions.externalClasses) {
  2212. componentOptions.externalClasses = vueOptions.externalClasses;
  2213. }
  2214. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2215. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2216. componentOptions.methods[callMethod] = function (args) {
  2217. return this.$vm[callMethod](args);
  2218. };
  2219. });
  2220. }
  2221. if (needVueOptions) {
  2222. return [componentOptions, vueOptions, VueComponent];
  2223. }
  2224. if (isPage) {
  2225. return componentOptions;
  2226. }
  2227. return [componentOptions, VueComponent];
  2228. }
  2229. function parseComponent(vueComponentOptions, needVueOptions) {
  2230. return parseBaseComponent(vueComponentOptions, {
  2231. isPage: isPage,
  2232. initRelation: initRelation
  2233. }, needVueOptions);
  2234. }
  2235. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2236. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2237. function parseBasePage(vuePageOptions) {
  2238. var _parseComponent = parseComponent(vuePageOptions, true),
  2239. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2240. pageOptions = _parseComponent2[0],
  2241. vueOptions = _parseComponent2[1];
  2242. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2243. pageOptions.methods.onLoad = function (query) {
  2244. this.options = query;
  2245. var copyQuery = Object.assign({}, query);
  2246. delete copyQuery.__id__;
  2247. this.$page = {
  2248. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2249. };
  2250. this.$vm.$mp.query = query; // 兼容 mpvue
  2251. this.$vm.__call_hook('onLoad', query);
  2252. };
  2253. {
  2254. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2255. }
  2256. {
  2257. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2258. }
  2259. return pageOptions;
  2260. }
  2261. function parsePage(vuePageOptions) {
  2262. return parseBasePage(vuePageOptions);
  2263. }
  2264. function createPage(vuePageOptions) {
  2265. {
  2266. return Component(parsePage(vuePageOptions));
  2267. }
  2268. }
  2269. function createComponent(vueOptions) {
  2270. {
  2271. return Component(parseComponent(vueOptions));
  2272. }
  2273. }
  2274. function createSubpackageApp(vm) {
  2275. var appOptions = parseApp(vm);
  2276. var app = getApp({
  2277. allowDefault: true
  2278. });
  2279. vm.$scope = app;
  2280. var globalData = app.globalData;
  2281. if (globalData) {
  2282. Object.keys(appOptions.globalData).forEach(function (name) {
  2283. if (!hasOwn(globalData, name)) {
  2284. globalData[name] = appOptions.globalData[name];
  2285. }
  2286. });
  2287. }
  2288. Object.keys(appOptions).forEach(function (name) {
  2289. if (!hasOwn(app, name)) {
  2290. app[name] = appOptions[name];
  2291. }
  2292. });
  2293. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2294. wx.onAppShow(function () {
  2295. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2296. args[_key5] = arguments[_key5];
  2297. }
  2298. vm.__call_hook('onShow', args);
  2299. });
  2300. }
  2301. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2302. wx.onAppHide(function () {
  2303. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2304. args[_key6] = arguments[_key6];
  2305. }
  2306. vm.__call_hook('onHide', args);
  2307. });
  2308. }
  2309. if (isFn(appOptions.onLaunch)) {
  2310. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2311. vm.__call_hook('onLaunch', args);
  2312. }
  2313. return vm;
  2314. }
  2315. function createPlugin(vm) {
  2316. var appOptions = parseApp(vm);
  2317. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2318. wx.onAppShow(function () {
  2319. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2320. args[_key7] = arguments[_key7];
  2321. }
  2322. vm.__call_hook('onShow', args);
  2323. });
  2324. }
  2325. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2326. wx.onAppHide(function () {
  2327. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2328. args[_key8] = arguments[_key8];
  2329. }
  2330. vm.__call_hook('onHide', args);
  2331. });
  2332. }
  2333. if (isFn(appOptions.onLaunch)) {
  2334. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2335. vm.__call_hook('onLaunch', args);
  2336. }
  2337. return vm;
  2338. }
  2339. todos.forEach(function (todoApi) {
  2340. protocols[todoApi] = false;
  2341. });
  2342. canIUses.forEach(function (canIUseApi) {
  2343. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2344. if (!wx.canIUse(apiName)) {
  2345. protocols[canIUseApi] = false;
  2346. }
  2347. });
  2348. var uni = {};
  2349. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2350. uni = new Proxy({}, {
  2351. get: function get(target, name) {
  2352. if (hasOwn(target, name)) {
  2353. return target[name];
  2354. }
  2355. if (baseApi[name]) {
  2356. return baseApi[name];
  2357. }
  2358. if (api[name]) {
  2359. return promisify(name, api[name]);
  2360. }
  2361. {
  2362. if (extraApi[name]) {
  2363. return promisify(name, extraApi[name]);
  2364. }
  2365. if (todoApis[name]) {
  2366. return promisify(name, todoApis[name]);
  2367. }
  2368. }
  2369. if (eventApi[name]) {
  2370. return eventApi[name];
  2371. }
  2372. return promisify(name, wrapper(name, wx[name]));
  2373. },
  2374. set: function set(target, name, value) {
  2375. target[name] = value;
  2376. return true;
  2377. }
  2378. });
  2379. } else {
  2380. Object.keys(baseApi).forEach(function (name) {
  2381. uni[name] = baseApi[name];
  2382. });
  2383. {
  2384. Object.keys(todoApis).forEach(function (name) {
  2385. uni[name] = promisify(name, todoApis[name]);
  2386. });
  2387. Object.keys(extraApi).forEach(function (name) {
  2388. uni[name] = promisify(name, extraApi[name]);
  2389. });
  2390. }
  2391. Object.keys(eventApi).forEach(function (name) {
  2392. uni[name] = eventApi[name];
  2393. });
  2394. Object.keys(api).forEach(function (name) {
  2395. uni[name] = promisify(name, api[name]);
  2396. });
  2397. Object.keys(wx).forEach(function (name) {
  2398. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2399. uni[name] = promisify(name, wrapper(name, wx[name]));
  2400. }
  2401. });
  2402. }
  2403. wx.createApp = createApp;
  2404. wx.createPage = createPage;
  2405. wx.createComponent = createComponent;
  2406. wx.createSubpackageApp = createSubpackageApp;
  2407. wx.createPlugin = createPlugin;
  2408. var uni$1 = uni;
  2409. var _default = uni$1;
  2410. exports.default = _default;
  2411. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  2412. /***/ }),
  2413. /* 3 */
  2414. /*!***********************************!*\
  2415. !*** (webpack)/buildin/global.js ***!
  2416. \***********************************/
  2417. /*! no static exports found */
  2418. /***/ (function(module, exports) {
  2419. var g;
  2420. // This works in non-strict mode
  2421. g = (function() {
  2422. return this;
  2423. })();
  2424. try {
  2425. // This works if eval is allowed (see CSP)
  2426. g = g || new Function("return this")();
  2427. } catch (e) {
  2428. // This works if the window reference is available
  2429. if (typeof window === "object") g = window;
  2430. }
  2431. // g can still be undefined, but nothing to do about it...
  2432. // We return undefined, instead of nothing here, so it's
  2433. // easier to handle this case. if(!global) { ...}
  2434. module.exports = g;
  2435. /***/ }),
  2436. /* 4 */
  2437. /*!**********************************************************************!*\
  2438. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2439. \**********************************************************************/
  2440. /*! no static exports found */
  2441. /***/ (function(module, exports) {
  2442. function _interopRequireDefault(obj) {
  2443. return obj && obj.__esModule ? obj : {
  2444. "default": obj
  2445. };
  2446. }
  2447. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2448. /***/ }),
  2449. /* 5 */
  2450. /*!**************************************************************!*\
  2451. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2452. \**************************************************************/
  2453. /*! no static exports found */
  2454. /***/ (function(module, exports, __webpack_require__) {
  2455. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2456. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2457. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2458. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2459. function _slicedToArray(arr, i) {
  2460. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2461. }
  2462. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2463. /***/ }),
  2464. /* 6 */
  2465. /*!***************************************************************!*\
  2466. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2467. \***************************************************************/
  2468. /*! no static exports found */
  2469. /***/ (function(module, exports) {
  2470. function _arrayWithHoles(arr) {
  2471. if (Array.isArray(arr)) return arr;
  2472. }
  2473. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2474. /***/ }),
  2475. /* 7 */
  2476. /*!*********************************************************************!*\
  2477. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2478. \*********************************************************************/
  2479. /*! no static exports found */
  2480. /***/ (function(module, exports) {
  2481. function _iterableToArrayLimit(arr, i) {
  2482. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2483. if (null != _i) {
  2484. var _s,
  2485. _e,
  2486. _x,
  2487. _r,
  2488. _arr = [],
  2489. _n = !0,
  2490. _d = !1;
  2491. try {
  2492. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2493. if (Object(_i) !== _i) return;
  2494. _n = !1;
  2495. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2496. ;
  2497. }
  2498. } catch (err) {
  2499. _d = !0, _e = err;
  2500. } finally {
  2501. try {
  2502. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2503. } finally {
  2504. if (_d) throw _e;
  2505. }
  2506. }
  2507. return _arr;
  2508. }
  2509. }
  2510. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2511. /***/ }),
  2512. /* 8 */
  2513. /*!***************************************************************************!*\
  2514. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2515. \***************************************************************************/
  2516. /*! no static exports found */
  2517. /***/ (function(module, exports, __webpack_require__) {
  2518. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2519. function _unsupportedIterableToArray(o, minLen) {
  2520. if (!o) return;
  2521. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2522. var n = Object.prototype.toString.call(o).slice(8, -1);
  2523. if (n === "Object" && o.constructor) n = o.constructor.name;
  2524. if (n === "Map" || n === "Set") return Array.from(o);
  2525. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2526. }
  2527. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2528. /***/ }),
  2529. /* 9 */
  2530. /*!*****************************************************************!*\
  2531. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2532. \*****************************************************************/
  2533. /*! no static exports found */
  2534. /***/ (function(module, exports) {
  2535. function _arrayLikeToArray(arr, len) {
  2536. if (len == null || len > arr.length) len = arr.length;
  2537. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2538. arr2[i] = arr[i];
  2539. }
  2540. return arr2;
  2541. }
  2542. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2543. /***/ }),
  2544. /* 10 */
  2545. /*!****************************************************************!*\
  2546. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2547. \****************************************************************/
  2548. /*! no static exports found */
  2549. /***/ (function(module, exports) {
  2550. function _nonIterableRest() {
  2551. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2552. }
  2553. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2554. /***/ }),
  2555. /* 11 */
  2556. /*!***************************************************************!*\
  2557. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2558. \***************************************************************/
  2559. /*! no static exports found */
  2560. /***/ (function(module, exports, __webpack_require__) {
  2561. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2562. function _defineProperty(obj, key, value) {
  2563. key = toPropertyKey(key);
  2564. if (key in obj) {
  2565. Object.defineProperty(obj, key, {
  2566. value: value,
  2567. enumerable: true,
  2568. configurable: true,
  2569. writable: true
  2570. });
  2571. } else {
  2572. obj[key] = value;
  2573. }
  2574. return obj;
  2575. }
  2576. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2577. /***/ }),
  2578. /* 12 */
  2579. /*!**************************************************************!*\
  2580. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2581. \**************************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports, __webpack_require__) {
  2584. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2585. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2586. function _toPropertyKey(arg) {
  2587. var key = toPrimitive(arg, "string");
  2588. return _typeof(key) === "symbol" ? key : String(key);
  2589. }
  2590. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2591. /***/ }),
  2592. /* 13 */
  2593. /*!*******************************************************!*\
  2594. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2595. \*******************************************************/
  2596. /*! no static exports found */
  2597. /***/ (function(module, exports) {
  2598. function _typeof(obj) {
  2599. "@babel/helpers - typeof";
  2600. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2601. return typeof obj;
  2602. } : function (obj) {
  2603. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2604. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  2605. }
  2606. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2607. /***/ }),
  2608. /* 14 */
  2609. /*!************************************************************!*\
  2610. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2611. \************************************************************/
  2612. /*! no static exports found */
  2613. /***/ (function(module, exports, __webpack_require__) {
  2614. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2615. function _toPrimitive(input, hint) {
  2616. if (_typeof(input) !== "object" || input === null) return input;
  2617. var prim = input[Symbol.toPrimitive];
  2618. if (prim !== undefined) {
  2619. var res = prim.call(input, hint || "default");
  2620. if (_typeof(res) !== "object") return res;
  2621. throw new TypeError("@@toPrimitive must return a primitive value.");
  2622. }
  2623. return (hint === "string" ? String : Number)(input);
  2624. }
  2625. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2626. /***/ }),
  2627. /* 15 */
  2628. /*!**********************************************************!*\
  2629. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2630. \**********************************************************/
  2631. /*! no static exports found */
  2632. /***/ (function(module, exports, __webpack_require__) {
  2633. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2634. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2635. function _construct(Parent, args, Class) {
  2636. if (isNativeReflectConstruct()) {
  2637. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2638. } else {
  2639. module.exports = _construct = function _construct(Parent, args, Class) {
  2640. var a = [null];
  2641. a.push.apply(a, args);
  2642. var Constructor = Function.bind.apply(Parent, a);
  2643. var instance = new Constructor();
  2644. if (Class) setPrototypeOf(instance, Class.prototype);
  2645. return instance;
  2646. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2647. }
  2648. return _construct.apply(null, arguments);
  2649. }
  2650. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2651. /***/ }),
  2652. /* 16 */
  2653. /*!***************************************************************!*\
  2654. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2655. \***************************************************************/
  2656. /*! no static exports found */
  2657. /***/ (function(module, exports) {
  2658. function _setPrototypeOf(o, p) {
  2659. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2660. o.__proto__ = p;
  2661. return o;
  2662. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2663. return _setPrototypeOf(o, p);
  2664. }
  2665. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2666. /***/ }),
  2667. /* 17 */
  2668. /*!*************************************************************************!*\
  2669. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2670. \*************************************************************************/
  2671. /*! no static exports found */
  2672. /***/ (function(module, exports) {
  2673. function _isNativeReflectConstruct() {
  2674. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2675. if (Reflect.construct.sham) return false;
  2676. if (typeof Proxy === "function") return true;
  2677. try {
  2678. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2679. return true;
  2680. } catch (e) {
  2681. return false;
  2682. }
  2683. }
  2684. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2685. /***/ }),
  2686. /* 18 */
  2687. /*!******************************************************************!*\
  2688. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2689. \******************************************************************/
  2690. /*! no static exports found */
  2691. /***/ (function(module, exports, __webpack_require__) {
  2692. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2693. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2694. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2695. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2696. function _toConsumableArray(arr) {
  2697. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2698. }
  2699. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2700. /***/ }),
  2701. /* 19 */
  2702. /*!******************************************************************!*\
  2703. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2704. \******************************************************************/
  2705. /*! no static exports found */
  2706. /***/ (function(module, exports, __webpack_require__) {
  2707. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2708. function _arrayWithoutHoles(arr) {
  2709. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2710. }
  2711. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2712. /***/ }),
  2713. /* 20 */
  2714. /*!****************************************************************!*\
  2715. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2716. \****************************************************************/
  2717. /*! no static exports found */
  2718. /***/ (function(module, exports) {
  2719. function _iterableToArray(iter) {
  2720. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2721. }
  2722. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2723. /***/ }),
  2724. /* 21 */
  2725. /*!******************************************************************!*\
  2726. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2727. \******************************************************************/
  2728. /*! no static exports found */
  2729. /***/ (function(module, exports) {
  2730. function _nonIterableSpread() {
  2731. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2732. }
  2733. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2734. /***/ }),
  2735. /* 22 */
  2736. /*!*************************************************************!*\
  2737. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2738. \*************************************************************/
  2739. /*! no static exports found */
  2740. /***/ (function(module, exports, __webpack_require__) {
  2741. "use strict";
  2742. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2743. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2744. Object.defineProperty(exports, "__esModule", {
  2745. value: true
  2746. });
  2747. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2748. exports.compileI18nJsonStr = compileI18nJsonStr;
  2749. exports.hasI18nJson = hasI18nJson;
  2750. exports.initVueI18n = initVueI18n;
  2751. exports.isI18nStr = isI18nStr;
  2752. exports.isString = void 0;
  2753. exports.normalizeLocale = normalizeLocale;
  2754. exports.parseI18nJson = parseI18nJson;
  2755. exports.resolveLocale = resolveLocale;
  2756. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2757. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2758. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2759. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2760. var isObject = function isObject(val) {
  2761. return val !== null && (0, _typeof2.default)(val) === 'object';
  2762. };
  2763. var defaultDelimiters = ['{', '}'];
  2764. var BaseFormatter = /*#__PURE__*/function () {
  2765. function BaseFormatter() {
  2766. (0, _classCallCheck2.default)(this, BaseFormatter);
  2767. this._caches = Object.create(null);
  2768. }
  2769. (0, _createClass2.default)(BaseFormatter, [{
  2770. key: "interpolate",
  2771. value: function interpolate(message, values) {
  2772. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2773. if (!values) {
  2774. return [message];
  2775. }
  2776. var tokens = this._caches[message];
  2777. if (!tokens) {
  2778. tokens = parse(message, delimiters);
  2779. this._caches[message] = tokens;
  2780. }
  2781. return compile(tokens, values);
  2782. }
  2783. }]);
  2784. return BaseFormatter;
  2785. }();
  2786. exports.Formatter = BaseFormatter;
  2787. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2788. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2789. function parse(format, _ref) {
  2790. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2791. startDelimiter = _ref2[0],
  2792. endDelimiter = _ref2[1];
  2793. var tokens = [];
  2794. var position = 0;
  2795. var text = '';
  2796. while (position < format.length) {
  2797. var char = format[position++];
  2798. if (char === startDelimiter) {
  2799. if (text) {
  2800. tokens.push({
  2801. type: 'text',
  2802. value: text
  2803. });
  2804. }
  2805. text = '';
  2806. var sub = '';
  2807. char = format[position++];
  2808. while (char !== undefined && char !== endDelimiter) {
  2809. sub += char;
  2810. char = format[position++];
  2811. }
  2812. var isClosed = char === endDelimiter;
  2813. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2814. tokens.push({
  2815. value: sub,
  2816. type: type
  2817. });
  2818. }
  2819. // else if (char === '%') {
  2820. // // when found rails i18n syntax, skip text capture
  2821. // if (format[position] !== '{') {
  2822. // text += char
  2823. // }
  2824. // }
  2825. else {
  2826. text += char;
  2827. }
  2828. }
  2829. text && tokens.push({
  2830. type: 'text',
  2831. value: text
  2832. });
  2833. return tokens;
  2834. }
  2835. function compile(tokens, values) {
  2836. var compiled = [];
  2837. var index = 0;
  2838. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2839. if (mode === 'unknown') {
  2840. return compiled;
  2841. }
  2842. while (index < tokens.length) {
  2843. var token = tokens[index];
  2844. switch (token.type) {
  2845. case 'text':
  2846. compiled.push(token.value);
  2847. break;
  2848. case 'list':
  2849. compiled.push(values[parseInt(token.value, 10)]);
  2850. break;
  2851. case 'named':
  2852. if (mode === 'named') {
  2853. compiled.push(values[token.value]);
  2854. } else {
  2855. if (true) {
  2856. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2857. }
  2858. }
  2859. break;
  2860. case 'unknown':
  2861. if (true) {
  2862. console.warn("Detect 'unknown' type of token!");
  2863. }
  2864. break;
  2865. }
  2866. index++;
  2867. }
  2868. return compiled;
  2869. }
  2870. var LOCALE_ZH_HANS = 'zh-Hans';
  2871. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2872. var LOCALE_ZH_HANT = 'zh-Hant';
  2873. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2874. var LOCALE_EN = 'en';
  2875. exports.LOCALE_EN = LOCALE_EN;
  2876. var LOCALE_FR = 'fr';
  2877. exports.LOCALE_FR = LOCALE_FR;
  2878. var LOCALE_ES = 'es';
  2879. exports.LOCALE_ES = LOCALE_ES;
  2880. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2881. var hasOwn = function hasOwn(val, key) {
  2882. return hasOwnProperty.call(val, key);
  2883. };
  2884. var defaultFormatter = new BaseFormatter();
  2885. function include(str, parts) {
  2886. return !!parts.find(function (part) {
  2887. return str.indexOf(part) !== -1;
  2888. });
  2889. }
  2890. function startsWith(str, parts) {
  2891. return parts.find(function (part) {
  2892. return str.indexOf(part) === 0;
  2893. });
  2894. }
  2895. function normalizeLocale(locale, messages) {
  2896. if (!locale) {
  2897. return;
  2898. }
  2899. locale = locale.trim().replace(/_/g, '-');
  2900. if (messages && messages[locale]) {
  2901. return locale;
  2902. }
  2903. locale = locale.toLowerCase();
  2904. if (locale === 'chinese') {
  2905. // 支付宝
  2906. return LOCALE_ZH_HANS;
  2907. }
  2908. if (locale.indexOf('zh') === 0) {
  2909. if (locale.indexOf('-hans') > -1) {
  2910. return LOCALE_ZH_HANS;
  2911. }
  2912. if (locale.indexOf('-hant') > -1) {
  2913. return LOCALE_ZH_HANT;
  2914. }
  2915. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2916. return LOCALE_ZH_HANT;
  2917. }
  2918. return LOCALE_ZH_HANS;
  2919. }
  2920. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2921. if (messages && Object.keys(messages).length > 0) {
  2922. locales = Object.keys(messages);
  2923. }
  2924. var lang = startsWith(locale, locales);
  2925. if (lang) {
  2926. return lang;
  2927. }
  2928. }
  2929. var I18n = /*#__PURE__*/function () {
  2930. function I18n(_ref3) {
  2931. var locale = _ref3.locale,
  2932. fallbackLocale = _ref3.fallbackLocale,
  2933. messages = _ref3.messages,
  2934. watcher = _ref3.watcher,
  2935. formater = _ref3.formater;
  2936. (0, _classCallCheck2.default)(this, I18n);
  2937. this.locale = LOCALE_EN;
  2938. this.fallbackLocale = LOCALE_EN;
  2939. this.message = {};
  2940. this.messages = {};
  2941. this.watchers = [];
  2942. if (fallbackLocale) {
  2943. this.fallbackLocale = fallbackLocale;
  2944. }
  2945. this.formater = formater || defaultFormatter;
  2946. this.messages = messages || {};
  2947. this.setLocale(locale || LOCALE_EN);
  2948. if (watcher) {
  2949. this.watchLocale(watcher);
  2950. }
  2951. }
  2952. (0, _createClass2.default)(I18n, [{
  2953. key: "setLocale",
  2954. value: function setLocale(locale) {
  2955. var _this = this;
  2956. var oldLocale = this.locale;
  2957. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2958. if (!this.messages[this.locale]) {
  2959. // 可能初始化时不存在
  2960. this.messages[this.locale] = {};
  2961. }
  2962. this.message = this.messages[this.locale];
  2963. // 仅发生变化时,通知
  2964. if (oldLocale !== this.locale) {
  2965. this.watchers.forEach(function (watcher) {
  2966. watcher(_this.locale, oldLocale);
  2967. });
  2968. }
  2969. }
  2970. }, {
  2971. key: "getLocale",
  2972. value: function getLocale() {
  2973. return this.locale;
  2974. }
  2975. }, {
  2976. key: "watchLocale",
  2977. value: function watchLocale(fn) {
  2978. var _this2 = this;
  2979. var index = this.watchers.push(fn) - 1;
  2980. return function () {
  2981. _this2.watchers.splice(index, 1);
  2982. };
  2983. }
  2984. }, {
  2985. key: "add",
  2986. value: function add(locale, message) {
  2987. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2988. var curMessages = this.messages[locale];
  2989. if (curMessages) {
  2990. if (override) {
  2991. Object.assign(curMessages, message);
  2992. } else {
  2993. Object.keys(message).forEach(function (key) {
  2994. if (!hasOwn(curMessages, key)) {
  2995. curMessages[key] = message[key];
  2996. }
  2997. });
  2998. }
  2999. } else {
  3000. this.messages[locale] = message;
  3001. }
  3002. }
  3003. }, {
  3004. key: "f",
  3005. value: function f(message, values, delimiters) {
  3006. return this.formater.interpolate(message, values, delimiters).join('');
  3007. }
  3008. }, {
  3009. key: "t",
  3010. value: function t(key, locale, values) {
  3011. var message = this.message;
  3012. if (typeof locale === 'string') {
  3013. locale = normalizeLocale(locale, this.messages);
  3014. locale && (message = this.messages[locale]);
  3015. } else {
  3016. values = locale;
  3017. }
  3018. if (!hasOwn(message, key)) {
  3019. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3020. return key;
  3021. }
  3022. return this.formater.interpolate(message[key], values).join('');
  3023. }
  3024. }]);
  3025. return I18n;
  3026. }();
  3027. exports.I18n = I18n;
  3028. function watchAppLocale(appVm, i18n) {
  3029. // 需要保证 watch 的触发在组件渲染之前
  3030. if (appVm.$watchLocale) {
  3031. // vue2
  3032. appVm.$watchLocale(function (newLocale) {
  3033. i18n.setLocale(newLocale);
  3034. });
  3035. } else {
  3036. appVm.$watch(function () {
  3037. return appVm.$locale;
  3038. }, function (newLocale) {
  3039. i18n.setLocale(newLocale);
  3040. });
  3041. }
  3042. }
  3043. function getDefaultLocale() {
  3044. if (typeof uni !== 'undefined' && uni.getLocale) {
  3045. return uni.getLocale();
  3046. }
  3047. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3048. if (typeof global !== 'undefined' && global.getLocale) {
  3049. return global.getLocale();
  3050. }
  3051. return LOCALE_EN;
  3052. }
  3053. function initVueI18n(locale) {
  3054. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3055. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3056. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3057. // 兼容旧版本入参
  3058. if (typeof locale !== 'string') {
  3059. var _ref4 = [messages, locale];
  3060. locale = _ref4[0];
  3061. messages = _ref4[1];
  3062. }
  3063. if (typeof locale !== 'string') {
  3064. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3065. locale = getDefaultLocale();
  3066. }
  3067. if (typeof fallbackLocale !== 'string') {
  3068. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3069. }
  3070. var i18n = new I18n({
  3071. locale: locale,
  3072. fallbackLocale: fallbackLocale,
  3073. messages: messages,
  3074. watcher: watcher
  3075. });
  3076. var _t = function t(key, values) {
  3077. if (typeof getApp !== 'function') {
  3078. // app view
  3079. /* eslint-disable no-func-assign */
  3080. _t = function t(key, values) {
  3081. return i18n.t(key, values);
  3082. };
  3083. } else {
  3084. var isWatchedAppLocale = false;
  3085. _t = function t(key, values) {
  3086. var appVm = getApp().$vm;
  3087. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3088. // options: {
  3089. // type: Array,
  3090. // default () {
  3091. // return [{
  3092. // icon: 'shop',
  3093. // text: t("uni-goods-nav.options.shop"),
  3094. // }, {
  3095. // icon: 'cart',
  3096. // text: t("uni-goods-nav.options.cart")
  3097. // }]
  3098. // }
  3099. // },
  3100. if (appVm) {
  3101. // 触发响应式
  3102. appVm.$locale;
  3103. if (!isWatchedAppLocale) {
  3104. isWatchedAppLocale = true;
  3105. watchAppLocale(appVm, i18n);
  3106. }
  3107. }
  3108. return i18n.t(key, values);
  3109. };
  3110. }
  3111. return _t(key, values);
  3112. };
  3113. return {
  3114. i18n: i18n,
  3115. f: function f(message, values, delimiters) {
  3116. return i18n.f(message, values, delimiters);
  3117. },
  3118. t: function t(key, values) {
  3119. return _t(key, values);
  3120. },
  3121. add: function add(locale, message) {
  3122. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3123. return i18n.add(locale, message, override);
  3124. },
  3125. watch: function watch(fn) {
  3126. return i18n.watchLocale(fn);
  3127. },
  3128. getLocale: function getLocale() {
  3129. return i18n.getLocale();
  3130. },
  3131. setLocale: function setLocale(newLocale) {
  3132. return i18n.setLocale(newLocale);
  3133. }
  3134. };
  3135. }
  3136. var isString = function isString(val) {
  3137. return typeof val === 'string';
  3138. };
  3139. exports.isString = isString;
  3140. var formater;
  3141. function hasI18nJson(jsonObj, delimiters) {
  3142. if (!formater) {
  3143. formater = new BaseFormatter();
  3144. }
  3145. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3146. var value = jsonObj[key];
  3147. if (isString(value)) {
  3148. if (isI18nStr(value, delimiters)) {
  3149. return true;
  3150. }
  3151. } else {
  3152. return hasI18nJson(value, delimiters);
  3153. }
  3154. });
  3155. }
  3156. function parseI18nJson(jsonObj, values, delimiters) {
  3157. if (!formater) {
  3158. formater = new BaseFormatter();
  3159. }
  3160. walkJsonObj(jsonObj, function (jsonObj, key) {
  3161. var value = jsonObj[key];
  3162. if (isString(value)) {
  3163. if (isI18nStr(value, delimiters)) {
  3164. jsonObj[key] = compileStr(value, values, delimiters);
  3165. }
  3166. } else {
  3167. parseI18nJson(value, values, delimiters);
  3168. }
  3169. });
  3170. return jsonObj;
  3171. }
  3172. function compileI18nJsonStr(jsonStr, _ref5) {
  3173. var locale = _ref5.locale,
  3174. locales = _ref5.locales,
  3175. delimiters = _ref5.delimiters;
  3176. if (!isI18nStr(jsonStr, delimiters)) {
  3177. return jsonStr;
  3178. }
  3179. if (!formater) {
  3180. formater = new BaseFormatter();
  3181. }
  3182. var localeValues = [];
  3183. Object.keys(locales).forEach(function (name) {
  3184. if (name !== locale) {
  3185. localeValues.push({
  3186. locale: name,
  3187. values: locales[name]
  3188. });
  3189. }
  3190. });
  3191. localeValues.unshift({
  3192. locale: locale,
  3193. values: locales[locale]
  3194. });
  3195. try {
  3196. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3197. } catch (e) {}
  3198. return jsonStr;
  3199. }
  3200. function isI18nStr(value, delimiters) {
  3201. return value.indexOf(delimiters[0]) > -1;
  3202. }
  3203. function compileStr(value, values, delimiters) {
  3204. return formater.interpolate(value, values, delimiters).join('');
  3205. }
  3206. function compileValue(jsonObj, key, localeValues, delimiters) {
  3207. var value = jsonObj[key];
  3208. if (isString(value)) {
  3209. // 存在国际化
  3210. if (isI18nStr(value, delimiters)) {
  3211. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3212. if (localeValues.length > 1) {
  3213. // 格式化国际化语言
  3214. var valueLocales = jsonObj[key + 'Locales'] = {};
  3215. localeValues.forEach(function (localValue) {
  3216. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3217. });
  3218. }
  3219. }
  3220. } else {
  3221. compileJsonObj(value, localeValues, delimiters);
  3222. }
  3223. }
  3224. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3225. walkJsonObj(jsonObj, function (jsonObj, key) {
  3226. compileValue(jsonObj, key, localeValues, delimiters);
  3227. });
  3228. return jsonObj;
  3229. }
  3230. function walkJsonObj(jsonObj, walk) {
  3231. if (Array.isArray(jsonObj)) {
  3232. for (var i = 0; i < jsonObj.length; i++) {
  3233. if (walk(jsonObj, i)) {
  3234. return true;
  3235. }
  3236. }
  3237. } else if (isObject(jsonObj)) {
  3238. for (var key in jsonObj) {
  3239. if (walk(jsonObj, key)) {
  3240. return true;
  3241. }
  3242. }
  3243. }
  3244. return false;
  3245. }
  3246. function resolveLocale(locales) {
  3247. return function (locale) {
  3248. if (!locale) {
  3249. return locale;
  3250. }
  3251. locale = normalizeLocale(locale) || locale;
  3252. return resolveLocaleChain(locale).find(function (locale) {
  3253. return locales.indexOf(locale) > -1;
  3254. });
  3255. };
  3256. }
  3257. function resolveLocaleChain(locale) {
  3258. var chain = [];
  3259. var tokens = locale.split('-');
  3260. while (tokens.length) {
  3261. chain.push(tokens.join('-'));
  3262. tokens.pop();
  3263. }
  3264. return chain;
  3265. }
  3266. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  3267. /***/ }),
  3268. /* 23 */
  3269. /*!***************************************************************!*\
  3270. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3271. \***************************************************************/
  3272. /*! no static exports found */
  3273. /***/ (function(module, exports) {
  3274. function _classCallCheck(instance, Constructor) {
  3275. if (!(instance instanceof Constructor)) {
  3276. throw new TypeError("Cannot call a class as a function");
  3277. }
  3278. }
  3279. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3280. /***/ }),
  3281. /* 24 */
  3282. /*!************************************************************!*\
  3283. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3284. \************************************************************/
  3285. /*! no static exports found */
  3286. /***/ (function(module, exports, __webpack_require__) {
  3287. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3288. function _defineProperties(target, props) {
  3289. for (var i = 0; i < props.length; i++) {
  3290. var descriptor = props[i];
  3291. descriptor.enumerable = descriptor.enumerable || false;
  3292. descriptor.configurable = true;
  3293. if ("value" in descriptor) descriptor.writable = true;
  3294. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3295. }
  3296. }
  3297. function _createClass(Constructor, protoProps, staticProps) {
  3298. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3299. if (staticProps) _defineProperties(Constructor, staticProps);
  3300. Object.defineProperty(Constructor, "prototype", {
  3301. writable: false
  3302. });
  3303. return Constructor;
  3304. }
  3305. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3306. /***/ }),
  3307. /* 25 */
  3308. /*!******************************************************************************************!*\
  3309. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3310. \******************************************************************************************/
  3311. /*! exports provided: default */
  3312. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3313. "use strict";
  3314. __webpack_require__.r(__webpack_exports__);
  3315. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3316. * Vue.js v2.6.11
  3317. * (c) 2014-2023 Evan You
  3318. * Released under the MIT License.
  3319. */
  3320. /* */
  3321. var emptyObject = Object.freeze({});
  3322. // These helpers produce better VM code in JS engines due to their
  3323. // explicitness and function inlining.
  3324. function isUndef (v) {
  3325. return v === undefined || v === null
  3326. }
  3327. function isDef (v) {
  3328. return v !== undefined && v !== null
  3329. }
  3330. function isTrue (v) {
  3331. return v === true
  3332. }
  3333. function isFalse (v) {
  3334. return v === false
  3335. }
  3336. /**
  3337. * Check if value is primitive.
  3338. */
  3339. function isPrimitive (value) {
  3340. return (
  3341. typeof value === 'string' ||
  3342. typeof value === 'number' ||
  3343. // $flow-disable-line
  3344. typeof value === 'symbol' ||
  3345. typeof value === 'boolean'
  3346. )
  3347. }
  3348. /**
  3349. * Quick object check - this is primarily used to tell
  3350. * Objects from primitive values when we know the value
  3351. * is a JSON-compliant type.
  3352. */
  3353. function isObject (obj) {
  3354. return obj !== null && typeof obj === 'object'
  3355. }
  3356. /**
  3357. * Get the raw type string of a value, e.g., [object Object].
  3358. */
  3359. var _toString = Object.prototype.toString;
  3360. function toRawType (value) {
  3361. return _toString.call(value).slice(8, -1)
  3362. }
  3363. /**
  3364. * Strict object type check. Only returns true
  3365. * for plain JavaScript objects.
  3366. */
  3367. function isPlainObject (obj) {
  3368. return _toString.call(obj) === '[object Object]'
  3369. }
  3370. function isRegExp (v) {
  3371. return _toString.call(v) === '[object RegExp]'
  3372. }
  3373. /**
  3374. * Check if val is a valid array index.
  3375. */
  3376. function isValidArrayIndex (val) {
  3377. var n = parseFloat(String(val));
  3378. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3379. }
  3380. function isPromise (val) {
  3381. return (
  3382. isDef(val) &&
  3383. typeof val.then === 'function' &&
  3384. typeof val.catch === 'function'
  3385. )
  3386. }
  3387. /**
  3388. * Convert a value to a string that is actually rendered.
  3389. */
  3390. function toString (val) {
  3391. return val == null
  3392. ? ''
  3393. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3394. ? JSON.stringify(val, null, 2)
  3395. : String(val)
  3396. }
  3397. /**
  3398. * Convert an input value to a number for persistence.
  3399. * If the conversion fails, return original string.
  3400. */
  3401. function toNumber (val) {
  3402. var n = parseFloat(val);
  3403. return isNaN(n) ? val : n
  3404. }
  3405. /**
  3406. * Make a map and return a function for checking if a key
  3407. * is in that map.
  3408. */
  3409. function makeMap (
  3410. str,
  3411. expectsLowerCase
  3412. ) {
  3413. var map = Object.create(null);
  3414. var list = str.split(',');
  3415. for (var i = 0; i < list.length; i++) {
  3416. map[list[i]] = true;
  3417. }
  3418. return expectsLowerCase
  3419. ? function (val) { return map[val.toLowerCase()]; }
  3420. : function (val) { return map[val]; }
  3421. }
  3422. /**
  3423. * Check if a tag is a built-in tag.
  3424. */
  3425. var isBuiltInTag = makeMap('slot,component', true);
  3426. /**
  3427. * Check if an attribute is a reserved attribute.
  3428. */
  3429. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3430. /**
  3431. * Remove an item from an array.
  3432. */
  3433. function remove (arr, item) {
  3434. if (arr.length) {
  3435. var index = arr.indexOf(item);
  3436. if (index > -1) {
  3437. return arr.splice(index, 1)
  3438. }
  3439. }
  3440. }
  3441. /**
  3442. * Check whether an object has the property.
  3443. */
  3444. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3445. function hasOwn (obj, key) {
  3446. return hasOwnProperty.call(obj, key)
  3447. }
  3448. /**
  3449. * Create a cached version of a pure function.
  3450. */
  3451. function cached (fn) {
  3452. var cache = Object.create(null);
  3453. return (function cachedFn (str) {
  3454. var hit = cache[str];
  3455. return hit || (cache[str] = fn(str))
  3456. })
  3457. }
  3458. /**
  3459. * Camelize a hyphen-delimited string.
  3460. */
  3461. var camelizeRE = /-(\w)/g;
  3462. var camelize = cached(function (str) {
  3463. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3464. });
  3465. /**
  3466. * Capitalize a string.
  3467. */
  3468. var capitalize = cached(function (str) {
  3469. return str.charAt(0).toUpperCase() + str.slice(1)
  3470. });
  3471. /**
  3472. * Hyphenate a camelCase string.
  3473. */
  3474. var hyphenateRE = /\B([A-Z])/g;
  3475. var hyphenate = cached(function (str) {
  3476. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3477. });
  3478. /**
  3479. * Simple bind polyfill for environments that do not support it,
  3480. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3481. * since native bind is now performant enough in most browsers.
  3482. * But removing it would mean breaking code that was able to run in
  3483. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3484. */
  3485. /* istanbul ignore next */
  3486. function polyfillBind (fn, ctx) {
  3487. function boundFn (a) {
  3488. var l = arguments.length;
  3489. return l
  3490. ? l > 1
  3491. ? fn.apply(ctx, arguments)
  3492. : fn.call(ctx, a)
  3493. : fn.call(ctx)
  3494. }
  3495. boundFn._length = fn.length;
  3496. return boundFn
  3497. }
  3498. function nativeBind (fn, ctx) {
  3499. return fn.bind(ctx)
  3500. }
  3501. var bind = Function.prototype.bind
  3502. ? nativeBind
  3503. : polyfillBind;
  3504. /**
  3505. * Convert an Array-like object to a real Array.
  3506. */
  3507. function toArray (list, start) {
  3508. start = start || 0;
  3509. var i = list.length - start;
  3510. var ret = new Array(i);
  3511. while (i--) {
  3512. ret[i] = list[i + start];
  3513. }
  3514. return ret
  3515. }
  3516. /**
  3517. * Mix properties into target object.
  3518. */
  3519. function extend (to, _from) {
  3520. for (var key in _from) {
  3521. to[key] = _from[key];
  3522. }
  3523. return to
  3524. }
  3525. /**
  3526. * Merge an Array of Objects into a single Object.
  3527. */
  3528. function toObject (arr) {
  3529. var res = {};
  3530. for (var i = 0; i < arr.length; i++) {
  3531. if (arr[i]) {
  3532. extend(res, arr[i]);
  3533. }
  3534. }
  3535. return res
  3536. }
  3537. /* eslint-disable no-unused-vars */
  3538. /**
  3539. * Perform no operation.
  3540. * Stubbing args to make Flow happy without leaving useless transpiled code
  3541. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3542. */
  3543. function noop (a, b, c) {}
  3544. /**
  3545. * Always return false.
  3546. */
  3547. var no = function (a, b, c) { return false; };
  3548. /* eslint-enable no-unused-vars */
  3549. /**
  3550. * Return the same value.
  3551. */
  3552. var identity = function (_) { return _; };
  3553. /**
  3554. * Check if two values are loosely equal - that is,
  3555. * if they are plain objects, do they have the same shape?
  3556. */
  3557. function looseEqual (a, b) {
  3558. if (a === b) { return true }
  3559. var isObjectA = isObject(a);
  3560. var isObjectB = isObject(b);
  3561. if (isObjectA && isObjectB) {
  3562. try {
  3563. var isArrayA = Array.isArray(a);
  3564. var isArrayB = Array.isArray(b);
  3565. if (isArrayA && isArrayB) {
  3566. return a.length === b.length && a.every(function (e, i) {
  3567. return looseEqual(e, b[i])
  3568. })
  3569. } else if (a instanceof Date && b instanceof Date) {
  3570. return a.getTime() === b.getTime()
  3571. } else if (!isArrayA && !isArrayB) {
  3572. var keysA = Object.keys(a);
  3573. var keysB = Object.keys(b);
  3574. return keysA.length === keysB.length && keysA.every(function (key) {
  3575. return looseEqual(a[key], b[key])
  3576. })
  3577. } else {
  3578. /* istanbul ignore next */
  3579. return false
  3580. }
  3581. } catch (e) {
  3582. /* istanbul ignore next */
  3583. return false
  3584. }
  3585. } else if (!isObjectA && !isObjectB) {
  3586. return String(a) === String(b)
  3587. } else {
  3588. return false
  3589. }
  3590. }
  3591. /**
  3592. * Return the first index at which a loosely equal value can be
  3593. * found in the array (if value is a plain object, the array must
  3594. * contain an object of the same shape), or -1 if it is not present.
  3595. */
  3596. function looseIndexOf (arr, val) {
  3597. for (var i = 0; i < arr.length; i++) {
  3598. if (looseEqual(arr[i], val)) { return i }
  3599. }
  3600. return -1
  3601. }
  3602. /**
  3603. * Ensure a function is called only once.
  3604. */
  3605. function once (fn) {
  3606. var called = false;
  3607. return function () {
  3608. if (!called) {
  3609. called = true;
  3610. fn.apply(this, arguments);
  3611. }
  3612. }
  3613. }
  3614. var ASSET_TYPES = [
  3615. 'component',
  3616. 'directive',
  3617. 'filter'
  3618. ];
  3619. var LIFECYCLE_HOOKS = [
  3620. 'beforeCreate',
  3621. 'created',
  3622. 'beforeMount',
  3623. 'mounted',
  3624. 'beforeUpdate',
  3625. 'updated',
  3626. 'beforeDestroy',
  3627. 'destroyed',
  3628. 'activated',
  3629. 'deactivated',
  3630. 'errorCaptured',
  3631. 'serverPrefetch'
  3632. ];
  3633. /* */
  3634. var config = ({
  3635. /**
  3636. * Option merge strategies (used in core/util/options)
  3637. */
  3638. // $flow-disable-line
  3639. optionMergeStrategies: Object.create(null),
  3640. /**
  3641. * Whether to suppress warnings.
  3642. */
  3643. silent: false,
  3644. /**
  3645. * Show production mode tip message on boot?
  3646. */
  3647. productionTip: "development" !== 'production',
  3648. /**
  3649. * Whether to enable devtools
  3650. */
  3651. devtools: "development" !== 'production',
  3652. /**
  3653. * Whether to record perf
  3654. */
  3655. performance: false,
  3656. /**
  3657. * Error handler for watcher errors
  3658. */
  3659. errorHandler: null,
  3660. /**
  3661. * Warn handler for watcher warns
  3662. */
  3663. warnHandler: null,
  3664. /**
  3665. * Ignore certain custom elements
  3666. */
  3667. ignoredElements: [],
  3668. /**
  3669. * Custom user key aliases for v-on
  3670. */
  3671. // $flow-disable-line
  3672. keyCodes: Object.create(null),
  3673. /**
  3674. * Check if a tag is reserved so that it cannot be registered as a
  3675. * component. This is platform-dependent and may be overwritten.
  3676. */
  3677. isReservedTag: no,
  3678. /**
  3679. * Check if an attribute is reserved so that it cannot be used as a component
  3680. * prop. This is platform-dependent and may be overwritten.
  3681. */
  3682. isReservedAttr: no,
  3683. /**
  3684. * Check if a tag is an unknown element.
  3685. * Platform-dependent.
  3686. */
  3687. isUnknownElement: no,
  3688. /**
  3689. * Get the namespace of an element
  3690. */
  3691. getTagNamespace: noop,
  3692. /**
  3693. * Parse the real tag name for the specific platform.
  3694. */
  3695. parsePlatformTagName: identity,
  3696. /**
  3697. * Check if an attribute must be bound using property, e.g. value
  3698. * Platform-dependent.
  3699. */
  3700. mustUseProp: no,
  3701. /**
  3702. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3703. * This will significantly reduce performance if set to false.
  3704. */
  3705. async: true,
  3706. /**
  3707. * Exposed for legacy reasons
  3708. */
  3709. _lifecycleHooks: LIFECYCLE_HOOKS
  3710. });
  3711. /* */
  3712. /**
  3713. * unicode letters used for parsing html tags, component names and property paths.
  3714. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3715. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3716. */
  3717. var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
  3718. /**
  3719. * Check if a string starts with $ or _
  3720. */
  3721. function isReserved (str) {
  3722. var c = (str + '').charCodeAt(0);
  3723. return c === 0x24 || c === 0x5F
  3724. }
  3725. /**
  3726. * Define a property.
  3727. */
  3728. function def (obj, key, val, enumerable) {
  3729. Object.defineProperty(obj, key, {
  3730. value: val,
  3731. enumerable: !!enumerable,
  3732. writable: true,
  3733. configurable: true
  3734. });
  3735. }
  3736. /**
  3737. * Parse simple path.
  3738. */
  3739. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3740. function parsePath (path) {
  3741. if (bailRE.test(path)) {
  3742. return
  3743. }
  3744. var segments = path.split('.');
  3745. return function (obj) {
  3746. for (var i = 0; i < segments.length; i++) {
  3747. if (!obj) { return }
  3748. obj = obj[segments[i]];
  3749. }
  3750. return obj
  3751. }
  3752. }
  3753. /* */
  3754. // can we use __proto__?
  3755. var hasProto = '__proto__' in {};
  3756. // Browser environment sniffing
  3757. var inBrowser = typeof window !== 'undefined';
  3758. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3759. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3760. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3761. var isIE = UA && /msie|trident/.test(UA);
  3762. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3763. var isEdge = UA && UA.indexOf('edge/') > 0;
  3764. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3765. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3766. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3767. var isPhantomJS = UA && /phantomjs/.test(UA);
  3768. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3769. // Firefox has a "watch" function on Object.prototype...
  3770. var nativeWatch = ({}).watch;
  3771. if (inBrowser) {
  3772. try {
  3773. var opts = {};
  3774. Object.defineProperty(opts, 'passive', ({
  3775. get: function get () {
  3776. }
  3777. })); // https://github.com/facebook/flow/issues/285
  3778. window.addEventListener('test-passive', null, opts);
  3779. } catch (e) {}
  3780. }
  3781. // this needs to be lazy-evaled because vue may be required before
  3782. // vue-server-renderer can set VUE_ENV
  3783. var _isServer;
  3784. var isServerRendering = function () {
  3785. if (_isServer === undefined) {
  3786. /* istanbul ignore if */
  3787. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3788. // detect presence of vue-server-renderer and avoid
  3789. // Webpack shimming the process
  3790. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3791. } else {
  3792. _isServer = false;
  3793. }
  3794. }
  3795. return _isServer
  3796. };
  3797. // detect devtools
  3798. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3799. /* istanbul ignore next */
  3800. function isNative (Ctor) {
  3801. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3802. }
  3803. var hasSymbol =
  3804. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3805. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3806. var _Set;
  3807. /* istanbul ignore if */ // $flow-disable-line
  3808. if (typeof Set !== 'undefined' && isNative(Set)) {
  3809. // use native Set when available.
  3810. _Set = Set;
  3811. } else {
  3812. // a non-standard Set polyfill that only works with primitive keys.
  3813. _Set = /*@__PURE__*/(function () {
  3814. function Set () {
  3815. this.set = Object.create(null);
  3816. }
  3817. Set.prototype.has = function has (key) {
  3818. return this.set[key] === true
  3819. };
  3820. Set.prototype.add = function add (key) {
  3821. this.set[key] = true;
  3822. };
  3823. Set.prototype.clear = function clear () {
  3824. this.set = Object.create(null);
  3825. };
  3826. return Set;
  3827. }());
  3828. }
  3829. /* */
  3830. var warn = noop;
  3831. var tip = noop;
  3832. var generateComponentTrace = (noop); // work around flow check
  3833. var formatComponentName = (noop);
  3834. if (true) {
  3835. var hasConsole = typeof console !== 'undefined';
  3836. var classifyRE = /(?:^|[-_])(\w)/g;
  3837. var classify = function (str) { return str
  3838. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3839. .replace(/[-_]/g, ''); };
  3840. warn = function (msg, vm) {
  3841. var trace = vm ? generateComponentTrace(vm) : '';
  3842. if (config.warnHandler) {
  3843. config.warnHandler.call(null, msg, vm, trace);
  3844. } else if (hasConsole && (!config.silent)) {
  3845. console.error(("[Vue warn]: " + msg + trace));
  3846. }
  3847. };
  3848. tip = function (msg, vm) {
  3849. if (hasConsole && (!config.silent)) {
  3850. console.warn("[Vue tip]: " + msg + (
  3851. vm ? generateComponentTrace(vm) : ''
  3852. ));
  3853. }
  3854. };
  3855. formatComponentName = function (vm, includeFile) {
  3856. if (vm.$root === vm) {
  3857. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3858. return ('') + vm.$options.__file
  3859. }
  3860. return '<Root>'
  3861. }
  3862. var options = typeof vm === 'function' && vm.cid != null
  3863. ? vm.options
  3864. : vm._isVue
  3865. ? vm.$options || vm.constructor.options
  3866. : vm;
  3867. var name = options.name || options._componentTag;
  3868. var file = options.__file;
  3869. if (!name && file) {
  3870. var match = file.match(/([^/\\]+)\.vue$/);
  3871. name = match && match[1];
  3872. }
  3873. return (
  3874. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3875. (file && includeFile !== false ? (" at " + file) : '')
  3876. )
  3877. };
  3878. var repeat = function (str, n) {
  3879. var res = '';
  3880. while (n) {
  3881. if (n % 2 === 1) { res += str; }
  3882. if (n > 1) { str += str; }
  3883. n >>= 1;
  3884. }
  3885. return res
  3886. };
  3887. generateComponentTrace = function (vm) {
  3888. if (vm._isVue && vm.$parent) {
  3889. var tree = [];
  3890. var currentRecursiveSequence = 0;
  3891. while (vm && vm.$options.name !== 'PageBody') {
  3892. if (tree.length > 0) {
  3893. var last = tree[tree.length - 1];
  3894. if (last.constructor === vm.constructor) {
  3895. currentRecursiveSequence++;
  3896. vm = vm.$parent;
  3897. continue
  3898. } else if (currentRecursiveSequence > 0) {
  3899. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3900. currentRecursiveSequence = 0;
  3901. }
  3902. }
  3903. !vm.$options.isReserved && tree.push(vm);
  3904. vm = vm.$parent;
  3905. }
  3906. return '\n\nfound in\n\n' + tree
  3907. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3908. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3909. : formatComponentName(vm))); })
  3910. .join('\n')
  3911. } else {
  3912. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3913. }
  3914. };
  3915. }
  3916. /* */
  3917. var uid = 0;
  3918. /**
  3919. * A dep is an observable that can have multiple
  3920. * directives subscribing to it.
  3921. */
  3922. var Dep = function Dep () {
  3923. this.id = uid++;
  3924. this.subs = [];
  3925. };
  3926. Dep.prototype.addSub = function addSub (sub) {
  3927. this.subs.push(sub);
  3928. };
  3929. Dep.prototype.removeSub = function removeSub (sub) {
  3930. remove(this.subs, sub);
  3931. };
  3932. Dep.prototype.depend = function depend () {
  3933. if (Dep.SharedObject.target) {
  3934. Dep.SharedObject.target.addDep(this);
  3935. }
  3936. };
  3937. Dep.prototype.notify = function notify () {
  3938. // stabilize the subscriber list first
  3939. var subs = this.subs.slice();
  3940. if ( true && !config.async) {
  3941. // subs aren't sorted in scheduler if not running async
  3942. // we need to sort them now to make sure they fire in correct
  3943. // order
  3944. subs.sort(function (a, b) { return a.id - b.id; });
  3945. }
  3946. for (var i = 0, l = subs.length; i < l; i++) {
  3947. subs[i].update();
  3948. }
  3949. };
  3950. // The current target watcher being evaluated.
  3951. // This is globally unique because only one watcher
  3952. // can be evaluated at a time.
  3953. // fixed by xxxxxx (nvue shared vuex)
  3954. /* eslint-disable no-undef */
  3955. Dep.SharedObject = {};
  3956. Dep.SharedObject.target = null;
  3957. Dep.SharedObject.targetStack = [];
  3958. function pushTarget (target) {
  3959. Dep.SharedObject.targetStack.push(target);
  3960. Dep.SharedObject.target = target;
  3961. Dep.target = target;
  3962. }
  3963. function popTarget () {
  3964. Dep.SharedObject.targetStack.pop();
  3965. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3966. Dep.target = Dep.SharedObject.target;
  3967. }
  3968. /* */
  3969. var VNode = function VNode (
  3970. tag,
  3971. data,
  3972. children,
  3973. text,
  3974. elm,
  3975. context,
  3976. componentOptions,
  3977. asyncFactory
  3978. ) {
  3979. this.tag = tag;
  3980. this.data = data;
  3981. this.children = children;
  3982. this.text = text;
  3983. this.elm = elm;
  3984. this.ns = undefined;
  3985. this.context = context;
  3986. this.fnContext = undefined;
  3987. this.fnOptions = undefined;
  3988. this.fnScopeId = undefined;
  3989. this.key = data && data.key;
  3990. this.componentOptions = componentOptions;
  3991. this.componentInstance = undefined;
  3992. this.parent = undefined;
  3993. this.raw = false;
  3994. this.isStatic = false;
  3995. this.isRootInsert = true;
  3996. this.isComment = false;
  3997. this.isCloned = false;
  3998. this.isOnce = false;
  3999. this.asyncFactory = asyncFactory;
  4000. this.asyncMeta = undefined;
  4001. this.isAsyncPlaceholder = false;
  4002. };
  4003. var prototypeAccessors = { child: { configurable: true } };
  4004. // DEPRECATED: alias for componentInstance for backwards compat.
  4005. /* istanbul ignore next */
  4006. prototypeAccessors.child.get = function () {
  4007. return this.componentInstance
  4008. };
  4009. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4010. var createEmptyVNode = function (text) {
  4011. if ( text === void 0 ) text = '';
  4012. var node = new VNode();
  4013. node.text = text;
  4014. node.isComment = true;
  4015. return node
  4016. };
  4017. function createTextVNode (val) {
  4018. return new VNode(undefined, undefined, undefined, String(val))
  4019. }
  4020. // optimized shallow clone
  4021. // used for static nodes and slot nodes because they may be reused across
  4022. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4023. // on their elm reference.
  4024. function cloneVNode (vnode) {
  4025. var cloned = new VNode(
  4026. vnode.tag,
  4027. vnode.data,
  4028. // #7975
  4029. // clone children array to avoid mutating original in case of cloning
  4030. // a child.
  4031. vnode.children && vnode.children.slice(),
  4032. vnode.text,
  4033. vnode.elm,
  4034. vnode.context,
  4035. vnode.componentOptions,
  4036. vnode.asyncFactory
  4037. );
  4038. cloned.ns = vnode.ns;
  4039. cloned.isStatic = vnode.isStatic;
  4040. cloned.key = vnode.key;
  4041. cloned.isComment = vnode.isComment;
  4042. cloned.fnContext = vnode.fnContext;
  4043. cloned.fnOptions = vnode.fnOptions;
  4044. cloned.fnScopeId = vnode.fnScopeId;
  4045. cloned.asyncMeta = vnode.asyncMeta;
  4046. cloned.isCloned = true;
  4047. return cloned
  4048. }
  4049. /*
  4050. * not type checking this file because flow doesn't play well with
  4051. * dynamically accessing methods on Array prototype
  4052. */
  4053. var arrayProto = Array.prototype;
  4054. var arrayMethods = Object.create(arrayProto);
  4055. var methodsToPatch = [
  4056. 'push',
  4057. 'pop',
  4058. 'shift',
  4059. 'unshift',
  4060. 'splice',
  4061. 'sort',
  4062. 'reverse'
  4063. ];
  4064. /**
  4065. * Intercept mutating methods and emit events
  4066. */
  4067. methodsToPatch.forEach(function (method) {
  4068. // cache original method
  4069. var original = arrayProto[method];
  4070. def(arrayMethods, method, function mutator () {
  4071. var args = [], len = arguments.length;
  4072. while ( len-- ) args[ len ] = arguments[ len ];
  4073. var result = original.apply(this, args);
  4074. var ob = this.__ob__;
  4075. var inserted;
  4076. switch (method) {
  4077. case 'push':
  4078. case 'unshift':
  4079. inserted = args;
  4080. break
  4081. case 'splice':
  4082. inserted = args.slice(2);
  4083. break
  4084. }
  4085. if (inserted) { ob.observeArray(inserted); }
  4086. // notify change
  4087. ob.dep.notify();
  4088. return result
  4089. });
  4090. });
  4091. /* */
  4092. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4093. /**
  4094. * In some cases we may want to disable observation inside a component's
  4095. * update computation.
  4096. */
  4097. var shouldObserve = true;
  4098. function toggleObserving (value) {
  4099. shouldObserve = value;
  4100. }
  4101. /**
  4102. * Observer class that is attached to each observed
  4103. * object. Once attached, the observer converts the target
  4104. * object's property keys into getter/setters that
  4105. * collect dependencies and dispatch updates.
  4106. */
  4107. var Observer = function Observer (value) {
  4108. this.value = value;
  4109. this.dep = new Dep();
  4110. this.vmCount = 0;
  4111. def(value, '__ob__', this);
  4112. if (Array.isArray(value)) {
  4113. if (hasProto) {
  4114. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4115. if(value.push !== value.__proto__.push){
  4116. copyAugment(value, arrayMethods, arrayKeys);
  4117. } else {
  4118. protoAugment(value, arrayMethods);
  4119. }
  4120. }
  4121. } else {
  4122. copyAugment(value, arrayMethods, arrayKeys);
  4123. }
  4124. this.observeArray(value);
  4125. } else {
  4126. this.walk(value);
  4127. }
  4128. };
  4129. /**
  4130. * Walk through all properties and convert them into
  4131. * getter/setters. This method should only be called when
  4132. * value type is Object.
  4133. */
  4134. Observer.prototype.walk = function walk (obj) {
  4135. var keys = Object.keys(obj);
  4136. for (var i = 0; i < keys.length; i++) {
  4137. defineReactive$$1(obj, keys[i]);
  4138. }
  4139. };
  4140. /**
  4141. * Observe a list of Array items.
  4142. */
  4143. Observer.prototype.observeArray = function observeArray (items) {
  4144. for (var i = 0, l = items.length; i < l; i++) {
  4145. observe(items[i]);
  4146. }
  4147. };
  4148. // helpers
  4149. /**
  4150. * Augment a target Object or Array by intercepting
  4151. * the prototype chain using __proto__
  4152. */
  4153. function protoAugment (target, src) {
  4154. /* eslint-disable no-proto */
  4155. target.__proto__ = src;
  4156. /* eslint-enable no-proto */
  4157. }
  4158. /**
  4159. * Augment a target Object or Array by defining
  4160. * hidden properties.
  4161. */
  4162. /* istanbul ignore next */
  4163. function copyAugment (target, src, keys) {
  4164. for (var i = 0, l = keys.length; i < l; i++) {
  4165. var key = keys[i];
  4166. def(target, key, src[key]);
  4167. }
  4168. }
  4169. /**
  4170. * Attempt to create an observer instance for a value,
  4171. * returns the new observer if successfully observed,
  4172. * or the existing observer if the value already has one.
  4173. */
  4174. function observe (value, asRootData) {
  4175. if (!isObject(value) || value instanceof VNode) {
  4176. return
  4177. }
  4178. var ob;
  4179. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4180. ob = value.__ob__;
  4181. } else if (
  4182. shouldObserve &&
  4183. !isServerRendering() &&
  4184. (Array.isArray(value) || isPlainObject(value)) &&
  4185. Object.isExtensible(value) &&
  4186. !value._isVue &&
  4187. !value.__v_isMPComponent
  4188. ) {
  4189. ob = new Observer(value);
  4190. }
  4191. if (asRootData && ob) {
  4192. ob.vmCount++;
  4193. }
  4194. return ob
  4195. }
  4196. /**
  4197. * Define a reactive property on an Object.
  4198. */
  4199. function defineReactive$$1 (
  4200. obj,
  4201. key,
  4202. val,
  4203. customSetter,
  4204. shallow
  4205. ) {
  4206. var dep = new Dep();
  4207. var property = Object.getOwnPropertyDescriptor(obj, key);
  4208. if (property && property.configurable === false) {
  4209. return
  4210. }
  4211. // cater for pre-defined getter/setters
  4212. var getter = property && property.get;
  4213. var setter = property && property.set;
  4214. if ((!getter || setter) && arguments.length === 2) {
  4215. val = obj[key];
  4216. }
  4217. var childOb = !shallow && observe(val);
  4218. Object.defineProperty(obj, key, {
  4219. enumerable: true,
  4220. configurable: true,
  4221. get: function reactiveGetter () {
  4222. var value = getter ? getter.call(obj) : val;
  4223. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4224. dep.depend();
  4225. if (childOb) {
  4226. childOb.dep.depend();
  4227. if (Array.isArray(value)) {
  4228. dependArray(value);
  4229. }
  4230. }
  4231. }
  4232. return value
  4233. },
  4234. set: function reactiveSetter (newVal) {
  4235. var value = getter ? getter.call(obj) : val;
  4236. /* eslint-disable no-self-compare */
  4237. if (newVal === value || (newVal !== newVal && value !== value)) {
  4238. return
  4239. }
  4240. /* eslint-enable no-self-compare */
  4241. if ( true && customSetter) {
  4242. customSetter();
  4243. }
  4244. // #7981: for accessor properties without setter
  4245. if (getter && !setter) { return }
  4246. if (setter) {
  4247. setter.call(obj, newVal);
  4248. } else {
  4249. val = newVal;
  4250. }
  4251. childOb = !shallow && observe(newVal);
  4252. dep.notify();
  4253. }
  4254. });
  4255. }
  4256. /**
  4257. * Set a property on an object. Adds the new property and
  4258. * triggers change notification if the property doesn't
  4259. * already exist.
  4260. */
  4261. function set (target, key, val) {
  4262. if ( true &&
  4263. (isUndef(target) || isPrimitive(target))
  4264. ) {
  4265. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4266. }
  4267. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4268. target.length = Math.max(target.length, key);
  4269. target.splice(key, 1, val);
  4270. return val
  4271. }
  4272. if (key in target && !(key in Object.prototype)) {
  4273. target[key] = val;
  4274. return val
  4275. }
  4276. var ob = (target).__ob__;
  4277. if (target._isVue || (ob && ob.vmCount)) {
  4278. true && warn(
  4279. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4280. 'at runtime - declare it upfront in the data option.'
  4281. );
  4282. return val
  4283. }
  4284. if (!ob) {
  4285. target[key] = val;
  4286. return val
  4287. }
  4288. defineReactive$$1(ob.value, key, val);
  4289. ob.dep.notify();
  4290. return val
  4291. }
  4292. /**
  4293. * Delete a property and trigger change if necessary.
  4294. */
  4295. function del (target, key) {
  4296. if ( true &&
  4297. (isUndef(target) || isPrimitive(target))
  4298. ) {
  4299. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4300. }
  4301. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4302. target.splice(key, 1);
  4303. return
  4304. }
  4305. var ob = (target).__ob__;
  4306. if (target._isVue || (ob && ob.vmCount)) {
  4307. true && warn(
  4308. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4309. '- just set it to null.'
  4310. );
  4311. return
  4312. }
  4313. if (!hasOwn(target, key)) {
  4314. return
  4315. }
  4316. delete target[key];
  4317. if (!ob) {
  4318. return
  4319. }
  4320. ob.dep.notify();
  4321. }
  4322. /**
  4323. * Collect dependencies on array elements when the array is touched, since
  4324. * we cannot intercept array element access like property getters.
  4325. */
  4326. function dependArray (value) {
  4327. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4328. e = value[i];
  4329. e && e.__ob__ && e.__ob__.dep.depend();
  4330. if (Array.isArray(e)) {
  4331. dependArray(e);
  4332. }
  4333. }
  4334. }
  4335. /* */
  4336. /**
  4337. * Option overwriting strategies are functions that handle
  4338. * how to merge a parent option value and a child option
  4339. * value into the final value.
  4340. */
  4341. var strats = config.optionMergeStrategies;
  4342. /**
  4343. * Options with restrictions
  4344. */
  4345. if (true) {
  4346. strats.el = strats.propsData = function (parent, child, vm, key) {
  4347. if (!vm) {
  4348. warn(
  4349. "option \"" + key + "\" can only be used during instance " +
  4350. 'creation with the `new` keyword.'
  4351. );
  4352. }
  4353. return defaultStrat(parent, child)
  4354. };
  4355. }
  4356. /**
  4357. * Helper that recursively merges two data objects together.
  4358. */
  4359. function mergeData (to, from) {
  4360. if (!from) { return to }
  4361. var key, toVal, fromVal;
  4362. var keys = hasSymbol
  4363. ? Reflect.ownKeys(from)
  4364. : Object.keys(from);
  4365. for (var i = 0; i < keys.length; i++) {
  4366. key = keys[i];
  4367. // in case the object is already observed...
  4368. if (key === '__ob__') { continue }
  4369. toVal = to[key];
  4370. fromVal = from[key];
  4371. if (!hasOwn(to, key)) {
  4372. set(to, key, fromVal);
  4373. } else if (
  4374. toVal !== fromVal &&
  4375. isPlainObject(toVal) &&
  4376. isPlainObject(fromVal)
  4377. ) {
  4378. mergeData(toVal, fromVal);
  4379. }
  4380. }
  4381. return to
  4382. }
  4383. /**
  4384. * Data
  4385. */
  4386. function mergeDataOrFn (
  4387. parentVal,
  4388. childVal,
  4389. vm
  4390. ) {
  4391. if (!vm) {
  4392. // in a Vue.extend merge, both should be functions
  4393. if (!childVal) {
  4394. return parentVal
  4395. }
  4396. if (!parentVal) {
  4397. return childVal
  4398. }
  4399. // when parentVal & childVal are both present,
  4400. // we need to return a function that returns the
  4401. // merged result of both functions... no need to
  4402. // check if parentVal is a function here because
  4403. // it has to be a function to pass previous merges.
  4404. return function mergedDataFn () {
  4405. return mergeData(
  4406. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4407. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4408. )
  4409. }
  4410. } else {
  4411. return function mergedInstanceDataFn () {
  4412. // instance merge
  4413. var instanceData = typeof childVal === 'function'
  4414. ? childVal.call(vm, vm)
  4415. : childVal;
  4416. var defaultData = typeof parentVal === 'function'
  4417. ? parentVal.call(vm, vm)
  4418. : parentVal;
  4419. if (instanceData) {
  4420. return mergeData(instanceData, defaultData)
  4421. } else {
  4422. return defaultData
  4423. }
  4424. }
  4425. }
  4426. }
  4427. strats.data = function (
  4428. parentVal,
  4429. childVal,
  4430. vm
  4431. ) {
  4432. if (!vm) {
  4433. if (childVal && typeof childVal !== 'function') {
  4434. true && warn(
  4435. 'The "data" option should be a function ' +
  4436. 'that returns a per-instance value in component ' +
  4437. 'definitions.',
  4438. vm
  4439. );
  4440. return parentVal
  4441. }
  4442. return mergeDataOrFn(parentVal, childVal)
  4443. }
  4444. return mergeDataOrFn(parentVal, childVal, vm)
  4445. };
  4446. /**
  4447. * Hooks and props are merged as arrays.
  4448. */
  4449. function mergeHook (
  4450. parentVal,
  4451. childVal
  4452. ) {
  4453. var res = childVal
  4454. ? parentVal
  4455. ? parentVal.concat(childVal)
  4456. : Array.isArray(childVal)
  4457. ? childVal
  4458. : [childVal]
  4459. : parentVal;
  4460. return res
  4461. ? dedupeHooks(res)
  4462. : res
  4463. }
  4464. function dedupeHooks (hooks) {
  4465. var res = [];
  4466. for (var i = 0; i < hooks.length; i++) {
  4467. if (res.indexOf(hooks[i]) === -1) {
  4468. res.push(hooks[i]);
  4469. }
  4470. }
  4471. return res
  4472. }
  4473. LIFECYCLE_HOOKS.forEach(function (hook) {
  4474. strats[hook] = mergeHook;
  4475. });
  4476. /**
  4477. * Assets
  4478. *
  4479. * When a vm is present (instance creation), we need to do
  4480. * a three-way merge between constructor options, instance
  4481. * options and parent options.
  4482. */
  4483. function mergeAssets (
  4484. parentVal,
  4485. childVal,
  4486. vm,
  4487. key
  4488. ) {
  4489. var res = Object.create(parentVal || null);
  4490. if (childVal) {
  4491. true && assertObjectType(key, childVal, vm);
  4492. return extend(res, childVal)
  4493. } else {
  4494. return res
  4495. }
  4496. }
  4497. ASSET_TYPES.forEach(function (type) {
  4498. strats[type + 's'] = mergeAssets;
  4499. });
  4500. /**
  4501. * Watchers.
  4502. *
  4503. * Watchers hashes should not overwrite one
  4504. * another, so we merge them as arrays.
  4505. */
  4506. strats.watch = function (
  4507. parentVal,
  4508. childVal,
  4509. vm,
  4510. key
  4511. ) {
  4512. // work around Firefox's Object.prototype.watch...
  4513. if (parentVal === nativeWatch) { parentVal = undefined; }
  4514. if (childVal === nativeWatch) { childVal = undefined; }
  4515. /* istanbul ignore if */
  4516. if (!childVal) { return Object.create(parentVal || null) }
  4517. if (true) {
  4518. assertObjectType(key, childVal, vm);
  4519. }
  4520. if (!parentVal) { return childVal }
  4521. var ret = {};
  4522. extend(ret, parentVal);
  4523. for (var key$1 in childVal) {
  4524. var parent = ret[key$1];
  4525. var child = childVal[key$1];
  4526. if (parent && !Array.isArray(parent)) {
  4527. parent = [parent];
  4528. }
  4529. ret[key$1] = parent
  4530. ? parent.concat(child)
  4531. : Array.isArray(child) ? child : [child];
  4532. }
  4533. return ret
  4534. };
  4535. /**
  4536. * Other object hashes.
  4537. */
  4538. strats.props =
  4539. strats.methods =
  4540. strats.inject =
  4541. strats.computed = function (
  4542. parentVal,
  4543. childVal,
  4544. vm,
  4545. key
  4546. ) {
  4547. if (childVal && "development" !== 'production') {
  4548. assertObjectType(key, childVal, vm);
  4549. }
  4550. if (!parentVal) { return childVal }
  4551. var ret = Object.create(null);
  4552. extend(ret, parentVal);
  4553. if (childVal) { extend(ret, childVal); }
  4554. return ret
  4555. };
  4556. strats.provide = mergeDataOrFn;
  4557. /**
  4558. * Default strategy.
  4559. */
  4560. var defaultStrat = function (parentVal, childVal) {
  4561. return childVal === undefined
  4562. ? parentVal
  4563. : childVal
  4564. };
  4565. /**
  4566. * Validate component names
  4567. */
  4568. function checkComponents (options) {
  4569. for (var key in options.components) {
  4570. validateComponentName(key);
  4571. }
  4572. }
  4573. function validateComponentName (name) {
  4574. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4575. warn(
  4576. 'Invalid component name: "' + name + '". Component names ' +
  4577. 'should conform to valid custom element name in html5 specification.'
  4578. );
  4579. }
  4580. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4581. warn(
  4582. 'Do not use built-in or reserved HTML elements as component ' +
  4583. 'id: ' + name
  4584. );
  4585. }
  4586. }
  4587. /**
  4588. * Ensure all props option syntax are normalized into the
  4589. * Object-based format.
  4590. */
  4591. function normalizeProps (options, vm) {
  4592. var props = options.props;
  4593. if (!props) { return }
  4594. var res = {};
  4595. var i, val, name;
  4596. if (Array.isArray(props)) {
  4597. i = props.length;
  4598. while (i--) {
  4599. val = props[i];
  4600. if (typeof val === 'string') {
  4601. name = camelize(val);
  4602. res[name] = { type: null };
  4603. } else if (true) {
  4604. warn('props must be strings when using array syntax.');
  4605. }
  4606. }
  4607. } else if (isPlainObject(props)) {
  4608. for (var key in props) {
  4609. val = props[key];
  4610. name = camelize(key);
  4611. res[name] = isPlainObject(val)
  4612. ? val
  4613. : { type: val };
  4614. }
  4615. } else if (true) {
  4616. warn(
  4617. "Invalid value for option \"props\": expected an Array or an Object, " +
  4618. "but got " + (toRawType(props)) + ".",
  4619. vm
  4620. );
  4621. }
  4622. options.props = res;
  4623. }
  4624. /**
  4625. * Normalize all injections into Object-based format
  4626. */
  4627. function normalizeInject (options, vm) {
  4628. var inject = options.inject;
  4629. if (!inject) { return }
  4630. var normalized = options.inject = {};
  4631. if (Array.isArray(inject)) {
  4632. for (var i = 0; i < inject.length; i++) {
  4633. normalized[inject[i]] = { from: inject[i] };
  4634. }
  4635. } else if (isPlainObject(inject)) {
  4636. for (var key in inject) {
  4637. var val = inject[key];
  4638. normalized[key] = isPlainObject(val)
  4639. ? extend({ from: key }, val)
  4640. : { from: val };
  4641. }
  4642. } else if (true) {
  4643. warn(
  4644. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4645. "but got " + (toRawType(inject)) + ".",
  4646. vm
  4647. );
  4648. }
  4649. }
  4650. /**
  4651. * Normalize raw function directives into object format.
  4652. */
  4653. function normalizeDirectives (options) {
  4654. var dirs = options.directives;
  4655. if (dirs) {
  4656. for (var key in dirs) {
  4657. var def$$1 = dirs[key];
  4658. if (typeof def$$1 === 'function') {
  4659. dirs[key] = { bind: def$$1, update: def$$1 };
  4660. }
  4661. }
  4662. }
  4663. }
  4664. function assertObjectType (name, value, vm) {
  4665. if (!isPlainObject(value)) {
  4666. warn(
  4667. "Invalid value for option \"" + name + "\": expected an Object, " +
  4668. "but got " + (toRawType(value)) + ".",
  4669. vm
  4670. );
  4671. }
  4672. }
  4673. /**
  4674. * Merge two option objects into a new one.
  4675. * Core utility used in both instantiation and inheritance.
  4676. */
  4677. function mergeOptions (
  4678. parent,
  4679. child,
  4680. vm
  4681. ) {
  4682. if (true) {
  4683. checkComponents(child);
  4684. }
  4685. if (typeof child === 'function') {
  4686. child = child.options;
  4687. }
  4688. normalizeProps(child, vm);
  4689. normalizeInject(child, vm);
  4690. normalizeDirectives(child);
  4691. // Apply extends and mixins on the child options,
  4692. // but only if it is a raw options object that isn't
  4693. // the result of another mergeOptions call.
  4694. // Only merged options has the _base property.
  4695. if (!child._base) {
  4696. if (child.extends) {
  4697. parent = mergeOptions(parent, child.extends, vm);
  4698. }
  4699. if (child.mixins) {
  4700. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4701. parent = mergeOptions(parent, child.mixins[i], vm);
  4702. }
  4703. }
  4704. }
  4705. var options = {};
  4706. var key;
  4707. for (key in parent) {
  4708. mergeField(key);
  4709. }
  4710. for (key in child) {
  4711. if (!hasOwn(parent, key)) {
  4712. mergeField(key);
  4713. }
  4714. }
  4715. function mergeField (key) {
  4716. var strat = strats[key] || defaultStrat;
  4717. options[key] = strat(parent[key], child[key], vm, key);
  4718. }
  4719. return options
  4720. }
  4721. /**
  4722. * Resolve an asset.
  4723. * This function is used because child instances need access
  4724. * to assets defined in its ancestor chain.
  4725. */
  4726. function resolveAsset (
  4727. options,
  4728. type,
  4729. id,
  4730. warnMissing
  4731. ) {
  4732. /* istanbul ignore if */
  4733. if (typeof id !== 'string') {
  4734. return
  4735. }
  4736. var assets = options[type];
  4737. // check local registration variations first
  4738. if (hasOwn(assets, id)) { return assets[id] }
  4739. var camelizedId = camelize(id);
  4740. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4741. var PascalCaseId = capitalize(camelizedId);
  4742. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4743. // fallback to prototype chain
  4744. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4745. if ( true && warnMissing && !res) {
  4746. warn(
  4747. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4748. options
  4749. );
  4750. }
  4751. return res
  4752. }
  4753. /* */
  4754. function validateProp (
  4755. key,
  4756. propOptions,
  4757. propsData,
  4758. vm
  4759. ) {
  4760. var prop = propOptions[key];
  4761. var absent = !hasOwn(propsData, key);
  4762. var value = propsData[key];
  4763. // boolean casting
  4764. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4765. if (booleanIndex > -1) {
  4766. if (absent && !hasOwn(prop, 'default')) {
  4767. value = false;
  4768. } else if (value === '' || value === hyphenate(key)) {
  4769. // only cast empty string / same name to boolean if
  4770. // boolean has higher priority
  4771. var stringIndex = getTypeIndex(String, prop.type);
  4772. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4773. value = true;
  4774. }
  4775. }
  4776. }
  4777. // check default value
  4778. if (value === undefined) {
  4779. value = getPropDefaultValue(vm, prop, key);
  4780. // since the default value is a fresh copy,
  4781. // make sure to observe it.
  4782. var prevShouldObserve = shouldObserve;
  4783. toggleObserving(true);
  4784. observe(value);
  4785. toggleObserving(prevShouldObserve);
  4786. }
  4787. if (
  4788. true
  4789. ) {
  4790. assertProp(prop, key, value, vm, absent);
  4791. }
  4792. return value
  4793. }
  4794. /**
  4795. * Get the default value of a prop.
  4796. */
  4797. function getPropDefaultValue (vm, prop, key) {
  4798. // no default, return undefined
  4799. if (!hasOwn(prop, 'default')) {
  4800. return undefined
  4801. }
  4802. var def = prop.default;
  4803. // warn against non-factory defaults for Object & Array
  4804. if ( true && isObject(def)) {
  4805. warn(
  4806. 'Invalid default value for prop "' + key + '": ' +
  4807. 'Props with type Object/Array must use a factory function ' +
  4808. 'to return the default value.',
  4809. vm
  4810. );
  4811. }
  4812. // the raw prop value was also undefined from previous render,
  4813. // return previous default value to avoid unnecessary watcher trigger
  4814. if (vm && vm.$options.propsData &&
  4815. vm.$options.propsData[key] === undefined &&
  4816. vm._props[key] !== undefined
  4817. ) {
  4818. return vm._props[key]
  4819. }
  4820. // call factory function for non-Function types
  4821. // a value is Function if its prototype is function even across different execution context
  4822. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4823. ? def.call(vm)
  4824. : def
  4825. }
  4826. /**
  4827. * Assert whether a prop is valid.
  4828. */
  4829. function assertProp (
  4830. prop,
  4831. name,
  4832. value,
  4833. vm,
  4834. absent
  4835. ) {
  4836. if (prop.required && absent) {
  4837. warn(
  4838. 'Missing required prop: "' + name + '"',
  4839. vm
  4840. );
  4841. return
  4842. }
  4843. if (value == null && !prop.required) {
  4844. return
  4845. }
  4846. var type = prop.type;
  4847. var valid = !type || type === true;
  4848. var expectedTypes = [];
  4849. if (type) {
  4850. if (!Array.isArray(type)) {
  4851. type = [type];
  4852. }
  4853. for (var i = 0; i < type.length && !valid; i++) {
  4854. var assertedType = assertType(value, type[i]);
  4855. expectedTypes.push(assertedType.expectedType || '');
  4856. valid = assertedType.valid;
  4857. }
  4858. }
  4859. if (!valid) {
  4860. warn(
  4861. getInvalidTypeMessage(name, value, expectedTypes),
  4862. vm
  4863. );
  4864. return
  4865. }
  4866. var validator = prop.validator;
  4867. if (validator) {
  4868. if (!validator(value)) {
  4869. warn(
  4870. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4871. vm
  4872. );
  4873. }
  4874. }
  4875. }
  4876. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4877. function assertType (value, type) {
  4878. var valid;
  4879. var expectedType = getType(type);
  4880. if (simpleCheckRE.test(expectedType)) {
  4881. var t = typeof value;
  4882. valid = t === expectedType.toLowerCase();
  4883. // for primitive wrapper objects
  4884. if (!valid && t === 'object') {
  4885. valid = value instanceof type;
  4886. }
  4887. } else if (expectedType === 'Object') {
  4888. valid = isPlainObject(value);
  4889. } else if (expectedType === 'Array') {
  4890. valid = Array.isArray(value);
  4891. } else {
  4892. valid = value instanceof type;
  4893. }
  4894. return {
  4895. valid: valid,
  4896. expectedType: expectedType
  4897. }
  4898. }
  4899. /**
  4900. * Use function string name to check built-in types,
  4901. * because a simple equality check will fail when running
  4902. * across different vms / iframes.
  4903. */
  4904. function getType (fn) {
  4905. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4906. return match ? match[1] : ''
  4907. }
  4908. function isSameType (a, b) {
  4909. return getType(a) === getType(b)
  4910. }
  4911. function getTypeIndex (type, expectedTypes) {
  4912. if (!Array.isArray(expectedTypes)) {
  4913. return isSameType(expectedTypes, type) ? 0 : -1
  4914. }
  4915. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4916. if (isSameType(expectedTypes[i], type)) {
  4917. return i
  4918. }
  4919. }
  4920. return -1
  4921. }
  4922. function getInvalidTypeMessage (name, value, expectedTypes) {
  4923. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4924. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4925. var expectedType = expectedTypes[0];
  4926. var receivedType = toRawType(value);
  4927. var expectedValue = styleValue(value, expectedType);
  4928. var receivedValue = styleValue(value, receivedType);
  4929. // check if we need to specify expected value
  4930. if (expectedTypes.length === 1 &&
  4931. isExplicable(expectedType) &&
  4932. !isBoolean(expectedType, receivedType)) {
  4933. message += " with value " + expectedValue;
  4934. }
  4935. message += ", got " + receivedType + " ";
  4936. // check if we need to specify received value
  4937. if (isExplicable(receivedType)) {
  4938. message += "with value " + receivedValue + ".";
  4939. }
  4940. return message
  4941. }
  4942. function styleValue (value, type) {
  4943. if (type === 'String') {
  4944. return ("\"" + value + "\"")
  4945. } else if (type === 'Number') {
  4946. return ("" + (Number(value)))
  4947. } else {
  4948. return ("" + value)
  4949. }
  4950. }
  4951. function isExplicable (value) {
  4952. var explicitTypes = ['string', 'number', 'boolean'];
  4953. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4954. }
  4955. function isBoolean () {
  4956. var args = [], len = arguments.length;
  4957. while ( len-- ) args[ len ] = arguments[ len ];
  4958. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4959. }
  4960. /* */
  4961. function handleError (err, vm, info) {
  4962. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4963. // See: https://github.com/vuejs/vuex/issues/1505
  4964. pushTarget();
  4965. try {
  4966. if (vm) {
  4967. var cur = vm;
  4968. while ((cur = cur.$parent)) {
  4969. var hooks = cur.$options.errorCaptured;
  4970. if (hooks) {
  4971. for (var i = 0; i < hooks.length; i++) {
  4972. try {
  4973. var capture = hooks[i].call(cur, err, vm, info) === false;
  4974. if (capture) { return }
  4975. } catch (e) {
  4976. globalHandleError(e, cur, 'errorCaptured hook');
  4977. }
  4978. }
  4979. }
  4980. }
  4981. }
  4982. globalHandleError(err, vm, info);
  4983. } finally {
  4984. popTarget();
  4985. }
  4986. }
  4987. function invokeWithErrorHandling (
  4988. handler,
  4989. context,
  4990. args,
  4991. vm,
  4992. info
  4993. ) {
  4994. var res;
  4995. try {
  4996. res = args ? handler.apply(context, args) : handler.call(context);
  4997. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4998. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4999. // issue #9511
  5000. // avoid catch triggering multiple times when nested calls
  5001. res._handled = true;
  5002. }
  5003. } catch (e) {
  5004. handleError(e, vm, info);
  5005. }
  5006. return res
  5007. }
  5008. function globalHandleError (err, vm, info) {
  5009. if (config.errorHandler) {
  5010. try {
  5011. return config.errorHandler.call(null, err, vm, info)
  5012. } catch (e) {
  5013. // if the user intentionally throws the original error in the handler,
  5014. // do not log it twice
  5015. if (e !== err) {
  5016. logError(e, null, 'config.errorHandler');
  5017. }
  5018. }
  5019. }
  5020. logError(err, vm, info);
  5021. }
  5022. function logError (err, vm, info) {
  5023. if (true) {
  5024. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5025. }
  5026. /* istanbul ignore else */
  5027. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5028. console.error(err);
  5029. } else {
  5030. throw err
  5031. }
  5032. }
  5033. /* */
  5034. var callbacks = [];
  5035. var pending = false;
  5036. function flushCallbacks () {
  5037. pending = false;
  5038. var copies = callbacks.slice(0);
  5039. callbacks.length = 0;
  5040. for (var i = 0; i < copies.length; i++) {
  5041. copies[i]();
  5042. }
  5043. }
  5044. // Here we have async deferring wrappers using microtasks.
  5045. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5046. // However, it has subtle problems when state is changed right before repaint
  5047. // (e.g. #6813, out-in transitions).
  5048. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5049. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5050. // So we now use microtasks everywhere, again.
  5051. // A major drawback of this tradeoff is that there are some scenarios
  5052. // where microtasks have too high a priority and fire in between supposedly
  5053. // sequential events (e.g. #4521, #6690, which have workarounds)
  5054. // or even between bubbling of the same event (#6566).
  5055. var timerFunc;
  5056. // The nextTick behavior leverages the microtask queue, which can be accessed
  5057. // via either native Promise.then or MutationObserver.
  5058. // MutationObserver has wider support, however it is seriously bugged in
  5059. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5060. // completely stops working after triggering a few times... so, if native
  5061. // Promise is available, we will use it:
  5062. /* istanbul ignore next, $flow-disable-line */
  5063. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5064. var p = Promise.resolve();
  5065. timerFunc = function () {
  5066. p.then(flushCallbacks);
  5067. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5068. // it can get stuck in a weird state where callbacks are pushed into the
  5069. // microtask queue but the queue isn't being flushed, until the browser
  5070. // needs to do some other work, e.g. handle a timer. Therefore we can
  5071. // "force" the microtask queue to be flushed by adding an empty timer.
  5072. if (isIOS) { setTimeout(noop); }
  5073. };
  5074. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5075. isNative(MutationObserver) ||
  5076. // PhantomJS and iOS 7.x
  5077. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5078. )) {
  5079. // Use MutationObserver where native Promise is not available,
  5080. // e.g. PhantomJS, iOS7, Android 4.4
  5081. // (#6466 MutationObserver is unreliable in IE11)
  5082. var counter = 1;
  5083. var observer = new MutationObserver(flushCallbacks);
  5084. var textNode = document.createTextNode(String(counter));
  5085. observer.observe(textNode, {
  5086. characterData: true
  5087. });
  5088. timerFunc = function () {
  5089. counter = (counter + 1) % 2;
  5090. textNode.data = String(counter);
  5091. };
  5092. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5093. // Fallback to setImmediate.
  5094. // Technically it leverages the (macro) task queue,
  5095. // but it is still a better choice than setTimeout.
  5096. timerFunc = function () {
  5097. setImmediate(flushCallbacks);
  5098. };
  5099. } else {
  5100. // Fallback to setTimeout.
  5101. timerFunc = function () {
  5102. setTimeout(flushCallbacks, 0);
  5103. };
  5104. }
  5105. function nextTick (cb, ctx) {
  5106. var _resolve;
  5107. callbacks.push(function () {
  5108. if (cb) {
  5109. try {
  5110. cb.call(ctx);
  5111. } catch (e) {
  5112. handleError(e, ctx, 'nextTick');
  5113. }
  5114. } else if (_resolve) {
  5115. _resolve(ctx);
  5116. }
  5117. });
  5118. if (!pending) {
  5119. pending = true;
  5120. timerFunc();
  5121. }
  5122. // $flow-disable-line
  5123. if (!cb && typeof Promise !== 'undefined') {
  5124. return new Promise(function (resolve) {
  5125. _resolve = resolve;
  5126. })
  5127. }
  5128. }
  5129. /* */
  5130. /* not type checking this file because flow doesn't play well with Proxy */
  5131. var initProxy;
  5132. if (true) {
  5133. var allowedGlobals = makeMap(
  5134. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5135. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5136. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5137. 'require' // for Webpack/Browserify
  5138. );
  5139. var warnNonPresent = function (target, key) {
  5140. warn(
  5141. "Property or method \"" + key + "\" is not defined on the instance but " +
  5142. 'referenced during render. Make sure that this property is reactive, ' +
  5143. 'either in the data option, or for class-based components, by ' +
  5144. 'initializing the property. ' +
  5145. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5146. target
  5147. );
  5148. };
  5149. var warnReservedPrefix = function (target, key) {
  5150. warn(
  5151. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5152. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5153. 'prevent conflicts with Vue internals. ' +
  5154. 'See: https://vuejs.org/v2/api/#data',
  5155. target
  5156. );
  5157. };
  5158. var hasProxy =
  5159. typeof Proxy !== 'undefined' && isNative(Proxy);
  5160. if (hasProxy) {
  5161. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5162. config.keyCodes = new Proxy(config.keyCodes, {
  5163. set: function set (target, key, value) {
  5164. if (isBuiltInModifier(key)) {
  5165. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5166. return false
  5167. } else {
  5168. target[key] = value;
  5169. return true
  5170. }
  5171. }
  5172. });
  5173. }
  5174. var hasHandler = {
  5175. has: function has (target, key) {
  5176. var has = key in target;
  5177. var isAllowed = allowedGlobals(key) ||
  5178. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5179. if (!has && !isAllowed) {
  5180. if (key in target.$data) { warnReservedPrefix(target, key); }
  5181. else { warnNonPresent(target, key); }
  5182. }
  5183. return has || !isAllowed
  5184. }
  5185. };
  5186. var getHandler = {
  5187. get: function get (target, key) {
  5188. if (typeof key === 'string' && !(key in target)) {
  5189. if (key in target.$data) { warnReservedPrefix(target, key); }
  5190. else { warnNonPresent(target, key); }
  5191. }
  5192. return target[key]
  5193. }
  5194. };
  5195. initProxy = function initProxy (vm) {
  5196. if (hasProxy) {
  5197. // determine which proxy handler to use
  5198. var options = vm.$options;
  5199. var handlers = options.render && options.render._withStripped
  5200. ? getHandler
  5201. : hasHandler;
  5202. vm._renderProxy = new Proxy(vm, handlers);
  5203. } else {
  5204. vm._renderProxy = vm;
  5205. }
  5206. };
  5207. }
  5208. /* */
  5209. var seenObjects = new _Set();
  5210. /**
  5211. * Recursively traverse an object to evoke all converted
  5212. * getters, so that every nested property inside the object
  5213. * is collected as a "deep" dependency.
  5214. */
  5215. function traverse (val) {
  5216. _traverse(val, seenObjects);
  5217. seenObjects.clear();
  5218. }
  5219. function _traverse (val, seen) {
  5220. var i, keys;
  5221. var isA = Array.isArray(val);
  5222. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5223. return
  5224. }
  5225. if (val.__ob__) {
  5226. var depId = val.__ob__.dep.id;
  5227. if (seen.has(depId)) {
  5228. return
  5229. }
  5230. seen.add(depId);
  5231. }
  5232. if (isA) {
  5233. i = val.length;
  5234. while (i--) { _traverse(val[i], seen); }
  5235. } else {
  5236. keys = Object.keys(val);
  5237. i = keys.length;
  5238. while (i--) { _traverse(val[keys[i]], seen); }
  5239. }
  5240. }
  5241. var mark;
  5242. var measure;
  5243. if (true) {
  5244. var perf = inBrowser && window.performance;
  5245. /* istanbul ignore if */
  5246. if (
  5247. perf &&
  5248. perf.mark &&
  5249. perf.measure &&
  5250. perf.clearMarks &&
  5251. perf.clearMeasures
  5252. ) {
  5253. mark = function (tag) { return perf.mark(tag); };
  5254. measure = function (name, startTag, endTag) {
  5255. perf.measure(name, startTag, endTag);
  5256. perf.clearMarks(startTag);
  5257. perf.clearMarks(endTag);
  5258. // perf.clearMeasures(name)
  5259. };
  5260. }
  5261. }
  5262. /* */
  5263. var normalizeEvent = cached(function (name) {
  5264. var passive = name.charAt(0) === '&';
  5265. name = passive ? name.slice(1) : name;
  5266. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5267. name = once$$1 ? name.slice(1) : name;
  5268. var capture = name.charAt(0) === '!';
  5269. name = capture ? name.slice(1) : name;
  5270. return {
  5271. name: name,
  5272. once: once$$1,
  5273. capture: capture,
  5274. passive: passive
  5275. }
  5276. });
  5277. function createFnInvoker (fns, vm) {
  5278. function invoker () {
  5279. var arguments$1 = arguments;
  5280. var fns = invoker.fns;
  5281. if (Array.isArray(fns)) {
  5282. var cloned = fns.slice();
  5283. for (var i = 0; i < cloned.length; i++) {
  5284. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5285. }
  5286. } else {
  5287. // return handler return value for single handlers
  5288. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5289. }
  5290. }
  5291. invoker.fns = fns;
  5292. return invoker
  5293. }
  5294. function updateListeners (
  5295. on,
  5296. oldOn,
  5297. add,
  5298. remove$$1,
  5299. createOnceHandler,
  5300. vm
  5301. ) {
  5302. var name, def$$1, cur, old, event;
  5303. for (name in on) {
  5304. def$$1 = cur = on[name];
  5305. old = oldOn[name];
  5306. event = normalizeEvent(name);
  5307. if (isUndef(cur)) {
  5308. true && warn(
  5309. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5310. vm
  5311. );
  5312. } else if (isUndef(old)) {
  5313. if (isUndef(cur.fns)) {
  5314. cur = on[name] = createFnInvoker(cur, vm);
  5315. }
  5316. if (isTrue(event.once)) {
  5317. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5318. }
  5319. add(event.name, cur, event.capture, event.passive, event.params);
  5320. } else if (cur !== old) {
  5321. old.fns = cur;
  5322. on[name] = old;
  5323. }
  5324. }
  5325. for (name in oldOn) {
  5326. if (isUndef(on[name])) {
  5327. event = normalizeEvent(name);
  5328. remove$$1(event.name, oldOn[name], event.capture);
  5329. }
  5330. }
  5331. }
  5332. /* */
  5333. /* */
  5334. // fixed by xxxxxx (mp properties)
  5335. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5336. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5337. if (isUndef(propOptions)) {
  5338. return res
  5339. }
  5340. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5341. var attrs = data.attrs;
  5342. var props = data.props;
  5343. if (isDef(attrs) || isDef(props)) {
  5344. for (var key in propOptions) {
  5345. var altKey = hyphenate(key);
  5346. var result = checkProp(res, props, key, altKey, true) ||
  5347. checkProp(res, attrs, key, altKey, false);
  5348. // externalClass
  5349. if (
  5350. result &&
  5351. res[key] &&
  5352. externalClasses.indexOf(altKey) !== -1 &&
  5353. context[camelize(res[key])]
  5354. ) {
  5355. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5356. res[key] = context[camelize(res[key])];
  5357. }
  5358. }
  5359. }
  5360. return res
  5361. }
  5362. function extractPropsFromVNodeData (
  5363. data,
  5364. Ctor,
  5365. tag,
  5366. context// fixed by xxxxxx
  5367. ) {
  5368. // we are only extracting raw values here.
  5369. // validation and default values are handled in the child
  5370. // component itself.
  5371. var propOptions = Ctor.options.props;
  5372. if (isUndef(propOptions)) {
  5373. // fixed by xxxxxx
  5374. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5375. }
  5376. var res = {};
  5377. var attrs = data.attrs;
  5378. var props = data.props;
  5379. if (isDef(attrs) || isDef(props)) {
  5380. for (var key in propOptions) {
  5381. var altKey = hyphenate(key);
  5382. if (true) {
  5383. var keyInLowerCase = key.toLowerCase();
  5384. if (
  5385. key !== keyInLowerCase &&
  5386. attrs && hasOwn(attrs, keyInLowerCase)
  5387. ) {
  5388. tip(
  5389. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5390. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5391. " \"" + key + "\". " +
  5392. "Note that HTML attributes are case-insensitive and camelCased " +
  5393. "props need to use their kebab-case equivalents when using in-DOM " +
  5394. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5395. );
  5396. }
  5397. }
  5398. checkProp(res, props, key, altKey, true) ||
  5399. checkProp(res, attrs, key, altKey, false);
  5400. }
  5401. }
  5402. // fixed by xxxxxx
  5403. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5404. }
  5405. function checkProp (
  5406. res,
  5407. hash,
  5408. key,
  5409. altKey,
  5410. preserve
  5411. ) {
  5412. if (isDef(hash)) {
  5413. if (hasOwn(hash, key)) {
  5414. res[key] = hash[key];
  5415. if (!preserve) {
  5416. delete hash[key];
  5417. }
  5418. return true
  5419. } else if (hasOwn(hash, altKey)) {
  5420. res[key] = hash[altKey];
  5421. if (!preserve) {
  5422. delete hash[altKey];
  5423. }
  5424. return true
  5425. }
  5426. }
  5427. return false
  5428. }
  5429. /* */
  5430. // The template compiler attempts to minimize the need for normalization by
  5431. // statically analyzing the template at compile time.
  5432. //
  5433. // For plain HTML markup, normalization can be completely skipped because the
  5434. // generated render function is guaranteed to return Array<VNode>. There are
  5435. // two cases where extra normalization is needed:
  5436. // 1. When the children contains components - because a functional component
  5437. // may return an Array instead of a single root. In this case, just a simple
  5438. // normalization is needed - if any child is an Array, we flatten the whole
  5439. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5440. // because functional components already normalize their own children.
  5441. function simpleNormalizeChildren (children) {
  5442. for (var i = 0; i < children.length; i++) {
  5443. if (Array.isArray(children[i])) {
  5444. return Array.prototype.concat.apply([], children)
  5445. }
  5446. }
  5447. return children
  5448. }
  5449. // 2. When the children contains constructs that always generated nested Arrays,
  5450. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5451. // with hand-written render functions / JSX. In such cases a full normalization
  5452. // is needed to cater to all possible types of children values.
  5453. function normalizeChildren (children) {
  5454. return isPrimitive(children)
  5455. ? [createTextVNode(children)]
  5456. : Array.isArray(children)
  5457. ? normalizeArrayChildren(children)
  5458. : undefined
  5459. }
  5460. function isTextNode (node) {
  5461. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5462. }
  5463. function normalizeArrayChildren (children, nestedIndex) {
  5464. var res = [];
  5465. var i, c, lastIndex, last;
  5466. for (i = 0; i < children.length; i++) {
  5467. c = children[i];
  5468. if (isUndef(c) || typeof c === 'boolean') { continue }
  5469. lastIndex = res.length - 1;
  5470. last = res[lastIndex];
  5471. // nested
  5472. if (Array.isArray(c)) {
  5473. if (c.length > 0) {
  5474. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5475. // merge adjacent text nodes
  5476. if (isTextNode(c[0]) && isTextNode(last)) {
  5477. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5478. c.shift();
  5479. }
  5480. res.push.apply(res, c);
  5481. }
  5482. } else if (isPrimitive(c)) {
  5483. if (isTextNode(last)) {
  5484. // merge adjacent text nodes
  5485. // this is necessary for SSR hydration because text nodes are
  5486. // essentially merged when rendered to HTML strings
  5487. res[lastIndex] = createTextVNode(last.text + c);
  5488. } else if (c !== '') {
  5489. // convert primitive to vnode
  5490. res.push(createTextVNode(c));
  5491. }
  5492. } else {
  5493. if (isTextNode(c) && isTextNode(last)) {
  5494. // merge adjacent text nodes
  5495. res[lastIndex] = createTextVNode(last.text + c.text);
  5496. } else {
  5497. // default key for nested array children (likely generated by v-for)
  5498. if (isTrue(children._isVList) &&
  5499. isDef(c.tag) &&
  5500. isUndef(c.key) &&
  5501. isDef(nestedIndex)) {
  5502. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5503. }
  5504. res.push(c);
  5505. }
  5506. }
  5507. }
  5508. return res
  5509. }
  5510. /* */
  5511. function initProvide (vm) {
  5512. var provide = vm.$options.provide;
  5513. if (provide) {
  5514. vm._provided = typeof provide === 'function'
  5515. ? provide.call(vm)
  5516. : provide;
  5517. }
  5518. }
  5519. function initInjections (vm) {
  5520. var result = resolveInject(vm.$options.inject, vm);
  5521. if (result) {
  5522. toggleObserving(false);
  5523. Object.keys(result).forEach(function (key) {
  5524. /* istanbul ignore else */
  5525. if (true) {
  5526. defineReactive$$1(vm, key, result[key], function () {
  5527. warn(
  5528. "Avoid mutating an injected value directly since the changes will be " +
  5529. "overwritten whenever the provided component re-renders. " +
  5530. "injection being mutated: \"" + key + "\"",
  5531. vm
  5532. );
  5533. });
  5534. } else {}
  5535. });
  5536. toggleObserving(true);
  5537. }
  5538. }
  5539. function resolveInject (inject, vm) {
  5540. if (inject) {
  5541. // inject is :any because flow is not smart enough to figure out cached
  5542. var result = Object.create(null);
  5543. var keys = hasSymbol
  5544. ? Reflect.ownKeys(inject)
  5545. : Object.keys(inject);
  5546. for (var i = 0; i < keys.length; i++) {
  5547. var key = keys[i];
  5548. // #6574 in case the inject object is observed...
  5549. if (key === '__ob__') { continue }
  5550. var provideKey = inject[key].from;
  5551. var source = vm;
  5552. while (source) {
  5553. if (source._provided && hasOwn(source._provided, provideKey)) {
  5554. result[key] = source._provided[provideKey];
  5555. break
  5556. }
  5557. source = source.$parent;
  5558. }
  5559. if (!source) {
  5560. if ('default' in inject[key]) {
  5561. var provideDefault = inject[key].default;
  5562. result[key] = typeof provideDefault === 'function'
  5563. ? provideDefault.call(vm)
  5564. : provideDefault;
  5565. } else if (true) {
  5566. warn(("Injection \"" + key + "\" not found"), vm);
  5567. }
  5568. }
  5569. }
  5570. return result
  5571. }
  5572. }
  5573. /* */
  5574. /**
  5575. * Runtime helper for resolving raw children VNodes into a slot object.
  5576. */
  5577. function resolveSlots (
  5578. children,
  5579. context
  5580. ) {
  5581. if (!children || !children.length) {
  5582. return {}
  5583. }
  5584. var slots = {};
  5585. for (var i = 0, l = children.length; i < l; i++) {
  5586. var child = children[i];
  5587. var data = child.data;
  5588. // remove slot attribute if the node is resolved as a Vue slot node
  5589. if (data && data.attrs && data.attrs.slot) {
  5590. delete data.attrs.slot;
  5591. }
  5592. // named slots should only be respected if the vnode was rendered in the
  5593. // same context.
  5594. if ((child.context === context || child.fnContext === context) &&
  5595. data && data.slot != null
  5596. ) {
  5597. var name = data.slot;
  5598. var slot = (slots[name] || (slots[name] = []));
  5599. if (child.tag === 'template') {
  5600. slot.push.apply(slot, child.children || []);
  5601. } else {
  5602. slot.push(child);
  5603. }
  5604. } else {
  5605. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5606. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5607. (slots['page'] || (slots['page'] = [])).push(child);
  5608. }else{
  5609. (slots.default || (slots.default = [])).push(child);
  5610. }
  5611. }
  5612. }
  5613. // ignore slots that contains only whitespace
  5614. for (var name$1 in slots) {
  5615. if (slots[name$1].every(isWhitespace)) {
  5616. delete slots[name$1];
  5617. }
  5618. }
  5619. return slots
  5620. }
  5621. function isWhitespace (node) {
  5622. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5623. }
  5624. /* */
  5625. function normalizeScopedSlots (
  5626. slots,
  5627. normalSlots,
  5628. prevSlots
  5629. ) {
  5630. var res;
  5631. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5632. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5633. var key = slots && slots.$key;
  5634. if (!slots) {
  5635. res = {};
  5636. } else if (slots._normalized) {
  5637. // fast path 1: child component re-render only, parent did not change
  5638. return slots._normalized
  5639. } else if (
  5640. isStable &&
  5641. prevSlots &&
  5642. prevSlots !== emptyObject &&
  5643. key === prevSlots.$key &&
  5644. !hasNormalSlots &&
  5645. !prevSlots.$hasNormal
  5646. ) {
  5647. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5648. // only need to normalize once
  5649. return prevSlots
  5650. } else {
  5651. res = {};
  5652. for (var key$1 in slots) {
  5653. if (slots[key$1] && key$1[0] !== '$') {
  5654. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5655. }
  5656. }
  5657. }
  5658. // expose normal slots on scopedSlots
  5659. for (var key$2 in normalSlots) {
  5660. if (!(key$2 in res)) {
  5661. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5662. }
  5663. }
  5664. // avoriaz seems to mock a non-extensible $scopedSlots object
  5665. // and when that is passed down this would cause an error
  5666. if (slots && Object.isExtensible(slots)) {
  5667. (slots)._normalized = res;
  5668. }
  5669. def(res, '$stable', isStable);
  5670. def(res, '$key', key);
  5671. def(res, '$hasNormal', hasNormalSlots);
  5672. return res
  5673. }
  5674. function normalizeScopedSlot(normalSlots, key, fn) {
  5675. var normalized = function () {
  5676. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5677. res = res && typeof res === 'object' && !Array.isArray(res)
  5678. ? [res] // single vnode
  5679. : normalizeChildren(res);
  5680. return res && (
  5681. res.length === 0 ||
  5682. (res.length === 1 && res[0].isComment) // #9658
  5683. ) ? undefined
  5684. : res
  5685. };
  5686. // this is a slot using the new v-slot syntax without scope. although it is
  5687. // compiled as a scoped slot, render fn users would expect it to be present
  5688. // on this.$slots because the usage is semantically a normal slot.
  5689. if (fn.proxy) {
  5690. Object.defineProperty(normalSlots, key, {
  5691. get: normalized,
  5692. enumerable: true,
  5693. configurable: true
  5694. });
  5695. }
  5696. return normalized
  5697. }
  5698. function proxyNormalSlot(slots, key) {
  5699. return function () { return slots[key]; }
  5700. }
  5701. /* */
  5702. /**
  5703. * Runtime helper for rendering v-for lists.
  5704. */
  5705. function renderList (
  5706. val,
  5707. render
  5708. ) {
  5709. var ret, i, l, keys, key;
  5710. if (Array.isArray(val) || typeof val === 'string') {
  5711. ret = new Array(val.length);
  5712. for (i = 0, l = val.length; i < l; i++) {
  5713. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5714. }
  5715. } else if (typeof val === 'number') {
  5716. ret = new Array(val);
  5717. for (i = 0; i < val; i++) {
  5718. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5719. }
  5720. } else if (isObject(val)) {
  5721. if (hasSymbol && val[Symbol.iterator]) {
  5722. ret = [];
  5723. var iterator = val[Symbol.iterator]();
  5724. var result = iterator.next();
  5725. while (!result.done) {
  5726. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5727. result = iterator.next();
  5728. }
  5729. } else {
  5730. keys = Object.keys(val);
  5731. ret = new Array(keys.length);
  5732. for (i = 0, l = keys.length; i < l; i++) {
  5733. key = keys[i];
  5734. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5735. }
  5736. }
  5737. }
  5738. if (!isDef(ret)) {
  5739. ret = [];
  5740. }
  5741. (ret)._isVList = true;
  5742. return ret
  5743. }
  5744. /* */
  5745. /**
  5746. * Runtime helper for rendering <slot>
  5747. */
  5748. function renderSlot (
  5749. name,
  5750. fallback,
  5751. props,
  5752. bindObject
  5753. ) {
  5754. var scopedSlotFn = this.$scopedSlots[name];
  5755. var nodes;
  5756. if (scopedSlotFn) { // scoped slot
  5757. props = props || {};
  5758. if (bindObject) {
  5759. if ( true && !isObject(bindObject)) {
  5760. warn(
  5761. 'slot v-bind without argument expects an Object',
  5762. this
  5763. );
  5764. }
  5765. props = extend(extend({}, bindObject), props);
  5766. }
  5767. // fixed by xxxxxx app-plus scopedSlot
  5768. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5769. } else {
  5770. nodes = this.$slots[name] || fallback;
  5771. }
  5772. var target = props && props.slot;
  5773. if (target) {
  5774. return this.$createElement('template', { slot: target }, nodes)
  5775. } else {
  5776. return nodes
  5777. }
  5778. }
  5779. /* */
  5780. /**
  5781. * Runtime helper for resolving filters
  5782. */
  5783. function resolveFilter (id) {
  5784. return resolveAsset(this.$options, 'filters', id, true) || identity
  5785. }
  5786. /* */
  5787. function isKeyNotMatch (expect, actual) {
  5788. if (Array.isArray(expect)) {
  5789. return expect.indexOf(actual) === -1
  5790. } else {
  5791. return expect !== actual
  5792. }
  5793. }
  5794. /**
  5795. * Runtime helper for checking keyCodes from config.
  5796. * exposed as Vue.prototype._k
  5797. * passing in eventKeyName as last argument separately for backwards compat
  5798. */
  5799. function checkKeyCodes (
  5800. eventKeyCode,
  5801. key,
  5802. builtInKeyCode,
  5803. eventKeyName,
  5804. builtInKeyName
  5805. ) {
  5806. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5807. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5808. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5809. } else if (mappedKeyCode) {
  5810. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5811. } else if (eventKeyName) {
  5812. return hyphenate(eventKeyName) !== key
  5813. }
  5814. }
  5815. /* */
  5816. /**
  5817. * Runtime helper for merging v-bind="object" into a VNode's data.
  5818. */
  5819. function bindObjectProps (
  5820. data,
  5821. tag,
  5822. value,
  5823. asProp,
  5824. isSync
  5825. ) {
  5826. if (value) {
  5827. if (!isObject(value)) {
  5828. true && warn(
  5829. 'v-bind without argument expects an Object or Array value',
  5830. this
  5831. );
  5832. } else {
  5833. if (Array.isArray(value)) {
  5834. value = toObject(value);
  5835. }
  5836. var hash;
  5837. var loop = function ( key ) {
  5838. if (
  5839. key === 'class' ||
  5840. key === 'style' ||
  5841. isReservedAttribute(key)
  5842. ) {
  5843. hash = data;
  5844. } else {
  5845. var type = data.attrs && data.attrs.type;
  5846. hash = asProp || config.mustUseProp(tag, type, key)
  5847. ? data.domProps || (data.domProps = {})
  5848. : data.attrs || (data.attrs = {});
  5849. }
  5850. var camelizedKey = camelize(key);
  5851. var hyphenatedKey = hyphenate(key);
  5852. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5853. hash[key] = value[key];
  5854. if (isSync) {
  5855. var on = data.on || (data.on = {});
  5856. on[("update:" + key)] = function ($event) {
  5857. value[key] = $event;
  5858. };
  5859. }
  5860. }
  5861. };
  5862. for (var key in value) loop( key );
  5863. }
  5864. }
  5865. return data
  5866. }
  5867. /* */
  5868. /**
  5869. * Runtime helper for rendering static trees.
  5870. */
  5871. function renderStatic (
  5872. index,
  5873. isInFor
  5874. ) {
  5875. var cached = this._staticTrees || (this._staticTrees = []);
  5876. var tree = cached[index];
  5877. // if has already-rendered static tree and not inside v-for,
  5878. // we can reuse the same tree.
  5879. if (tree && !isInFor) {
  5880. return tree
  5881. }
  5882. // otherwise, render a fresh tree.
  5883. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5884. this._renderProxy,
  5885. null,
  5886. this // for render fns generated for functional component templates
  5887. );
  5888. markStatic(tree, ("__static__" + index), false);
  5889. return tree
  5890. }
  5891. /**
  5892. * Runtime helper for v-once.
  5893. * Effectively it means marking the node as static with a unique key.
  5894. */
  5895. function markOnce (
  5896. tree,
  5897. index,
  5898. key
  5899. ) {
  5900. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5901. return tree
  5902. }
  5903. function markStatic (
  5904. tree,
  5905. key,
  5906. isOnce
  5907. ) {
  5908. if (Array.isArray(tree)) {
  5909. for (var i = 0; i < tree.length; i++) {
  5910. if (tree[i] && typeof tree[i] !== 'string') {
  5911. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5912. }
  5913. }
  5914. } else {
  5915. markStaticNode(tree, key, isOnce);
  5916. }
  5917. }
  5918. function markStaticNode (node, key, isOnce) {
  5919. node.isStatic = true;
  5920. node.key = key;
  5921. node.isOnce = isOnce;
  5922. }
  5923. /* */
  5924. function bindObjectListeners (data, value) {
  5925. if (value) {
  5926. if (!isPlainObject(value)) {
  5927. true && warn(
  5928. 'v-on without argument expects an Object value',
  5929. this
  5930. );
  5931. } else {
  5932. var on = data.on = data.on ? extend({}, data.on) : {};
  5933. for (var key in value) {
  5934. var existing = on[key];
  5935. var ours = value[key];
  5936. on[key] = existing ? [].concat(existing, ours) : ours;
  5937. }
  5938. }
  5939. }
  5940. return data
  5941. }
  5942. /* */
  5943. function resolveScopedSlots (
  5944. fns, // see flow/vnode
  5945. res,
  5946. // the following are added in 2.6
  5947. hasDynamicKeys,
  5948. contentHashKey
  5949. ) {
  5950. res = res || { $stable: !hasDynamicKeys };
  5951. for (var i = 0; i < fns.length; i++) {
  5952. var slot = fns[i];
  5953. if (Array.isArray(slot)) {
  5954. resolveScopedSlots(slot, res, hasDynamicKeys);
  5955. } else if (slot) {
  5956. // marker for reverse proxying v-slot without scope on this.$slots
  5957. if (slot.proxy) {
  5958. slot.fn.proxy = true;
  5959. }
  5960. res[slot.key] = slot.fn;
  5961. }
  5962. }
  5963. if (contentHashKey) {
  5964. (res).$key = contentHashKey;
  5965. }
  5966. return res
  5967. }
  5968. /* */
  5969. function bindDynamicKeys (baseObj, values) {
  5970. for (var i = 0; i < values.length; i += 2) {
  5971. var key = values[i];
  5972. if (typeof key === 'string' && key) {
  5973. baseObj[values[i]] = values[i + 1];
  5974. } else if ( true && key !== '' && key !== null) {
  5975. // null is a special value for explicitly removing a binding
  5976. warn(
  5977. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5978. this
  5979. );
  5980. }
  5981. }
  5982. return baseObj
  5983. }
  5984. // helper to dynamically append modifier runtime markers to event names.
  5985. // ensure only append when value is already string, otherwise it will be cast
  5986. // to string and cause the type check to miss.
  5987. function prependModifier (value, symbol) {
  5988. return typeof value === 'string' ? symbol + value : value
  5989. }
  5990. /* */
  5991. function installRenderHelpers (target) {
  5992. target._o = markOnce;
  5993. target._n = toNumber;
  5994. target._s = toString;
  5995. target._l = renderList;
  5996. target._t = renderSlot;
  5997. target._q = looseEqual;
  5998. target._i = looseIndexOf;
  5999. target._m = renderStatic;
  6000. target._f = resolveFilter;
  6001. target._k = checkKeyCodes;
  6002. target._b = bindObjectProps;
  6003. target._v = createTextVNode;
  6004. target._e = createEmptyVNode;
  6005. target._u = resolveScopedSlots;
  6006. target._g = bindObjectListeners;
  6007. target._d = bindDynamicKeys;
  6008. target._p = prependModifier;
  6009. }
  6010. /* */
  6011. function FunctionalRenderContext (
  6012. data,
  6013. props,
  6014. children,
  6015. parent,
  6016. Ctor
  6017. ) {
  6018. var this$1 = this;
  6019. var options = Ctor.options;
  6020. // ensure the createElement function in functional components
  6021. // gets a unique context - this is necessary for correct named slot check
  6022. var contextVm;
  6023. if (hasOwn(parent, '_uid')) {
  6024. contextVm = Object.create(parent);
  6025. // $flow-disable-line
  6026. contextVm._original = parent;
  6027. } else {
  6028. // the context vm passed in is a functional context as well.
  6029. // in this case we want to make sure we are able to get a hold to the
  6030. // real context instance.
  6031. contextVm = parent;
  6032. // $flow-disable-line
  6033. parent = parent._original;
  6034. }
  6035. var isCompiled = isTrue(options._compiled);
  6036. var needNormalization = !isCompiled;
  6037. this.data = data;
  6038. this.props = props;
  6039. this.children = children;
  6040. this.parent = parent;
  6041. this.listeners = data.on || emptyObject;
  6042. this.injections = resolveInject(options.inject, parent);
  6043. this.slots = function () {
  6044. if (!this$1.$slots) {
  6045. normalizeScopedSlots(
  6046. data.scopedSlots,
  6047. this$1.$slots = resolveSlots(children, parent)
  6048. );
  6049. }
  6050. return this$1.$slots
  6051. };
  6052. Object.defineProperty(this, 'scopedSlots', ({
  6053. enumerable: true,
  6054. get: function get () {
  6055. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6056. }
  6057. }));
  6058. // support for compiled functional template
  6059. if (isCompiled) {
  6060. // exposing $options for renderStatic()
  6061. this.$options = options;
  6062. // pre-resolve slots for renderSlot()
  6063. this.$slots = this.slots();
  6064. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6065. }
  6066. if (options._scopeId) {
  6067. this._c = function (a, b, c, d) {
  6068. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6069. if (vnode && !Array.isArray(vnode)) {
  6070. vnode.fnScopeId = options._scopeId;
  6071. vnode.fnContext = parent;
  6072. }
  6073. return vnode
  6074. };
  6075. } else {
  6076. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6077. }
  6078. }
  6079. installRenderHelpers(FunctionalRenderContext.prototype);
  6080. function createFunctionalComponent (
  6081. Ctor,
  6082. propsData,
  6083. data,
  6084. contextVm,
  6085. children
  6086. ) {
  6087. var options = Ctor.options;
  6088. var props = {};
  6089. var propOptions = options.props;
  6090. if (isDef(propOptions)) {
  6091. for (var key in propOptions) {
  6092. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6093. }
  6094. } else {
  6095. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6096. if (isDef(data.props)) { mergeProps(props, data.props); }
  6097. }
  6098. var renderContext = new FunctionalRenderContext(
  6099. data,
  6100. props,
  6101. children,
  6102. contextVm,
  6103. Ctor
  6104. );
  6105. var vnode = options.render.call(null, renderContext._c, renderContext);
  6106. if (vnode instanceof VNode) {
  6107. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6108. } else if (Array.isArray(vnode)) {
  6109. var vnodes = normalizeChildren(vnode) || [];
  6110. var res = new Array(vnodes.length);
  6111. for (var i = 0; i < vnodes.length; i++) {
  6112. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6113. }
  6114. return res
  6115. }
  6116. }
  6117. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6118. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6119. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6120. // that should not be matched to match.
  6121. var clone = cloneVNode(vnode);
  6122. clone.fnContext = contextVm;
  6123. clone.fnOptions = options;
  6124. if (true) {
  6125. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6126. }
  6127. if (data.slot) {
  6128. (clone.data || (clone.data = {})).slot = data.slot;
  6129. }
  6130. return clone
  6131. }
  6132. function mergeProps (to, from) {
  6133. for (var key in from) {
  6134. to[camelize(key)] = from[key];
  6135. }
  6136. }
  6137. /* */
  6138. /* */
  6139. /* */
  6140. /* */
  6141. // inline hooks to be invoked on component VNodes during patch
  6142. var componentVNodeHooks = {
  6143. init: function init (vnode, hydrating) {
  6144. if (
  6145. vnode.componentInstance &&
  6146. !vnode.componentInstance._isDestroyed &&
  6147. vnode.data.keepAlive
  6148. ) {
  6149. // kept-alive components, treat as a patch
  6150. var mountedNode = vnode; // work around flow
  6151. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6152. } else {
  6153. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6154. vnode,
  6155. activeInstance
  6156. );
  6157. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6158. }
  6159. },
  6160. prepatch: function prepatch (oldVnode, vnode) {
  6161. var options = vnode.componentOptions;
  6162. var child = vnode.componentInstance = oldVnode.componentInstance;
  6163. updateChildComponent(
  6164. child,
  6165. options.propsData, // updated props
  6166. options.listeners, // updated listeners
  6167. vnode, // new parent vnode
  6168. options.children // new children
  6169. );
  6170. },
  6171. insert: function insert (vnode) {
  6172. var context = vnode.context;
  6173. var componentInstance = vnode.componentInstance;
  6174. if (!componentInstance._isMounted) {
  6175. callHook(componentInstance, 'onServiceCreated');
  6176. callHook(componentInstance, 'onServiceAttached');
  6177. componentInstance._isMounted = true;
  6178. callHook(componentInstance, 'mounted');
  6179. }
  6180. if (vnode.data.keepAlive) {
  6181. if (context._isMounted) {
  6182. // vue-router#1212
  6183. // During updates, a kept-alive component's child components may
  6184. // change, so directly walking the tree here may call activated hooks
  6185. // on incorrect children. Instead we push them into a queue which will
  6186. // be processed after the whole patch process ended.
  6187. queueActivatedComponent(componentInstance);
  6188. } else {
  6189. activateChildComponent(componentInstance, true /* direct */);
  6190. }
  6191. }
  6192. },
  6193. destroy: function destroy (vnode) {
  6194. var componentInstance = vnode.componentInstance;
  6195. if (!componentInstance._isDestroyed) {
  6196. if (!vnode.data.keepAlive) {
  6197. componentInstance.$destroy();
  6198. } else {
  6199. deactivateChildComponent(componentInstance, true /* direct */);
  6200. }
  6201. }
  6202. }
  6203. };
  6204. var hooksToMerge = Object.keys(componentVNodeHooks);
  6205. function createComponent (
  6206. Ctor,
  6207. data,
  6208. context,
  6209. children,
  6210. tag
  6211. ) {
  6212. if (isUndef(Ctor)) {
  6213. return
  6214. }
  6215. var baseCtor = context.$options._base;
  6216. // plain options object: turn it into a constructor
  6217. if (isObject(Ctor)) {
  6218. Ctor = baseCtor.extend(Ctor);
  6219. }
  6220. // if at this stage it's not a constructor or an async component factory,
  6221. // reject.
  6222. if (typeof Ctor !== 'function') {
  6223. if (true) {
  6224. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6225. }
  6226. return
  6227. }
  6228. // async component
  6229. var asyncFactory;
  6230. if (isUndef(Ctor.cid)) {
  6231. asyncFactory = Ctor;
  6232. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6233. if (Ctor === undefined) {
  6234. // return a placeholder node for async component, which is rendered
  6235. // as a comment node but preserves all the raw information for the node.
  6236. // the information will be used for async server-rendering and hydration.
  6237. return createAsyncPlaceholder(
  6238. asyncFactory,
  6239. data,
  6240. context,
  6241. children,
  6242. tag
  6243. )
  6244. }
  6245. }
  6246. data = data || {};
  6247. // resolve constructor options in case global mixins are applied after
  6248. // component constructor creation
  6249. resolveConstructorOptions(Ctor);
  6250. // transform component v-model data into props & events
  6251. if (isDef(data.model)) {
  6252. transformModel(Ctor.options, data);
  6253. }
  6254. // extract props
  6255. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6256. // functional component
  6257. if (isTrue(Ctor.options.functional)) {
  6258. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6259. }
  6260. // extract listeners, since these needs to be treated as
  6261. // child component listeners instead of DOM listeners
  6262. var listeners = data.on;
  6263. // replace with listeners with .native modifier
  6264. // so it gets processed during parent component patch.
  6265. data.on = data.nativeOn;
  6266. if (isTrue(Ctor.options.abstract)) {
  6267. // abstract components do not keep anything
  6268. // other than props & listeners & slot
  6269. // work around flow
  6270. var slot = data.slot;
  6271. data = {};
  6272. if (slot) {
  6273. data.slot = slot;
  6274. }
  6275. }
  6276. // install component management hooks onto the placeholder node
  6277. installComponentHooks(data);
  6278. // return a placeholder vnode
  6279. var name = Ctor.options.name || tag;
  6280. var vnode = new VNode(
  6281. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6282. data, undefined, undefined, undefined, context,
  6283. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6284. asyncFactory
  6285. );
  6286. return vnode
  6287. }
  6288. function createComponentInstanceForVnode (
  6289. vnode, // we know it's MountedComponentVNode but flow doesn't
  6290. parent // activeInstance in lifecycle state
  6291. ) {
  6292. var options = {
  6293. _isComponent: true,
  6294. _parentVnode: vnode,
  6295. parent: parent
  6296. };
  6297. // check inline-template render functions
  6298. var inlineTemplate = vnode.data.inlineTemplate;
  6299. if (isDef(inlineTemplate)) {
  6300. options.render = inlineTemplate.render;
  6301. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6302. }
  6303. return new vnode.componentOptions.Ctor(options)
  6304. }
  6305. function installComponentHooks (data) {
  6306. var hooks = data.hook || (data.hook = {});
  6307. for (var i = 0; i < hooksToMerge.length; i++) {
  6308. var key = hooksToMerge[i];
  6309. var existing = hooks[key];
  6310. var toMerge = componentVNodeHooks[key];
  6311. if (existing !== toMerge && !(existing && existing._merged)) {
  6312. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6313. }
  6314. }
  6315. }
  6316. function mergeHook$1 (f1, f2) {
  6317. var merged = function (a, b) {
  6318. // flow complains about extra args which is why we use any
  6319. f1(a, b);
  6320. f2(a, b);
  6321. };
  6322. merged._merged = true;
  6323. return merged
  6324. }
  6325. // transform component v-model info (value and callback) into
  6326. // prop and event handler respectively.
  6327. function transformModel (options, data) {
  6328. var prop = (options.model && options.model.prop) || 'value';
  6329. var event = (options.model && options.model.event) || 'input'
  6330. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6331. var on = data.on || (data.on = {});
  6332. var existing = on[event];
  6333. var callback = data.model.callback;
  6334. if (isDef(existing)) {
  6335. if (
  6336. Array.isArray(existing)
  6337. ? existing.indexOf(callback) === -1
  6338. : existing !== callback
  6339. ) {
  6340. on[event] = [callback].concat(existing);
  6341. }
  6342. } else {
  6343. on[event] = callback;
  6344. }
  6345. }
  6346. /* */
  6347. var SIMPLE_NORMALIZE = 1;
  6348. var ALWAYS_NORMALIZE = 2;
  6349. // wrapper function for providing a more flexible interface
  6350. // without getting yelled at by flow
  6351. function createElement (
  6352. context,
  6353. tag,
  6354. data,
  6355. children,
  6356. normalizationType,
  6357. alwaysNormalize
  6358. ) {
  6359. if (Array.isArray(data) || isPrimitive(data)) {
  6360. normalizationType = children;
  6361. children = data;
  6362. data = undefined;
  6363. }
  6364. if (isTrue(alwaysNormalize)) {
  6365. normalizationType = ALWAYS_NORMALIZE;
  6366. }
  6367. return _createElement(context, tag, data, children, normalizationType)
  6368. }
  6369. function _createElement (
  6370. context,
  6371. tag,
  6372. data,
  6373. children,
  6374. normalizationType
  6375. ) {
  6376. if (isDef(data) && isDef((data).__ob__)) {
  6377. true && warn(
  6378. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6379. 'Always create fresh vnode data objects in each render!',
  6380. context
  6381. );
  6382. return createEmptyVNode()
  6383. }
  6384. // object syntax in v-bind
  6385. if (isDef(data) && isDef(data.is)) {
  6386. tag = data.is;
  6387. }
  6388. if (!tag) {
  6389. // in case of component :is set to falsy value
  6390. return createEmptyVNode()
  6391. }
  6392. // warn against non-primitive key
  6393. if ( true &&
  6394. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6395. ) {
  6396. {
  6397. warn(
  6398. 'Avoid using non-primitive value as key, ' +
  6399. 'use string/number value instead.',
  6400. context
  6401. );
  6402. }
  6403. }
  6404. // support single function children as default scoped slot
  6405. if (Array.isArray(children) &&
  6406. typeof children[0] === 'function'
  6407. ) {
  6408. data = data || {};
  6409. data.scopedSlots = { default: children[0] };
  6410. children.length = 0;
  6411. }
  6412. if (normalizationType === ALWAYS_NORMALIZE) {
  6413. children = normalizeChildren(children);
  6414. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6415. children = simpleNormalizeChildren(children);
  6416. }
  6417. var vnode, ns;
  6418. if (typeof tag === 'string') {
  6419. var Ctor;
  6420. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6421. if (config.isReservedTag(tag)) {
  6422. // platform built-in elements
  6423. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6424. warn(
  6425. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6426. context
  6427. );
  6428. }
  6429. vnode = new VNode(
  6430. config.parsePlatformTagName(tag), data, children,
  6431. undefined, undefined, context
  6432. );
  6433. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6434. // component
  6435. vnode = createComponent(Ctor, data, context, children, tag);
  6436. } else {
  6437. // unknown or unlisted namespaced elements
  6438. // check at runtime because it may get assigned a namespace when its
  6439. // parent normalizes children
  6440. vnode = new VNode(
  6441. tag, data, children,
  6442. undefined, undefined, context
  6443. );
  6444. }
  6445. } else {
  6446. // direct component options / constructor
  6447. vnode = createComponent(tag, data, context, children);
  6448. }
  6449. if (Array.isArray(vnode)) {
  6450. return vnode
  6451. } else if (isDef(vnode)) {
  6452. if (isDef(ns)) { applyNS(vnode, ns); }
  6453. if (isDef(data)) { registerDeepBindings(data); }
  6454. return vnode
  6455. } else {
  6456. return createEmptyVNode()
  6457. }
  6458. }
  6459. function applyNS (vnode, ns, force) {
  6460. vnode.ns = ns;
  6461. if (vnode.tag === 'foreignObject') {
  6462. // use default namespace inside foreignObject
  6463. ns = undefined;
  6464. force = true;
  6465. }
  6466. if (isDef(vnode.children)) {
  6467. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6468. var child = vnode.children[i];
  6469. if (isDef(child.tag) && (
  6470. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6471. applyNS(child, ns, force);
  6472. }
  6473. }
  6474. }
  6475. }
  6476. // ref #5318
  6477. // necessary to ensure parent re-render when deep bindings like :style and
  6478. // :class are used on slot nodes
  6479. function registerDeepBindings (data) {
  6480. if (isObject(data.style)) {
  6481. traverse(data.style);
  6482. }
  6483. if (isObject(data.class)) {
  6484. traverse(data.class);
  6485. }
  6486. }
  6487. /* */
  6488. function initRender (vm) {
  6489. vm._vnode = null; // the root of the child tree
  6490. vm._staticTrees = null; // v-once cached trees
  6491. var options = vm.$options;
  6492. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6493. var renderContext = parentVnode && parentVnode.context;
  6494. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6495. vm.$scopedSlots = emptyObject;
  6496. // bind the createElement fn to this instance
  6497. // so that we get proper render context inside it.
  6498. // args order: tag, data, children, normalizationType, alwaysNormalize
  6499. // internal version is used by render functions compiled from templates
  6500. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6501. // normalization is always applied for the public version, used in
  6502. // user-written render functions.
  6503. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6504. // $attrs & $listeners are exposed for easier HOC creation.
  6505. // they need to be reactive so that HOCs using them are always updated
  6506. var parentData = parentVnode && parentVnode.data;
  6507. /* istanbul ignore else */
  6508. if (true) {
  6509. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6510. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6511. }, true);
  6512. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6513. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6514. }, true);
  6515. } else {}
  6516. }
  6517. var currentRenderingInstance = null;
  6518. function renderMixin (Vue) {
  6519. // install runtime convenience helpers
  6520. installRenderHelpers(Vue.prototype);
  6521. Vue.prototype.$nextTick = function (fn) {
  6522. return nextTick(fn, this)
  6523. };
  6524. Vue.prototype._render = function () {
  6525. var vm = this;
  6526. var ref = vm.$options;
  6527. var render = ref.render;
  6528. var _parentVnode = ref._parentVnode;
  6529. if (_parentVnode) {
  6530. vm.$scopedSlots = normalizeScopedSlots(
  6531. _parentVnode.data.scopedSlots,
  6532. vm.$slots,
  6533. vm.$scopedSlots
  6534. );
  6535. }
  6536. // set parent vnode. this allows render functions to have access
  6537. // to the data on the placeholder node.
  6538. vm.$vnode = _parentVnode;
  6539. // render self
  6540. var vnode;
  6541. try {
  6542. // There's no need to maintain a stack because all render fns are called
  6543. // separately from one another. Nested component's render fns are called
  6544. // when parent component is patched.
  6545. currentRenderingInstance = vm;
  6546. vnode = render.call(vm._renderProxy, vm.$createElement);
  6547. } catch (e) {
  6548. handleError(e, vm, "render");
  6549. // return error render result,
  6550. // or previous vnode to prevent render error causing blank component
  6551. /* istanbul ignore else */
  6552. if ( true && vm.$options.renderError) {
  6553. try {
  6554. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6555. } catch (e) {
  6556. handleError(e, vm, "renderError");
  6557. vnode = vm._vnode;
  6558. }
  6559. } else {
  6560. vnode = vm._vnode;
  6561. }
  6562. } finally {
  6563. currentRenderingInstance = null;
  6564. }
  6565. // if the returned array contains only a single node, allow it
  6566. if (Array.isArray(vnode) && vnode.length === 1) {
  6567. vnode = vnode[0];
  6568. }
  6569. // return empty vnode in case the render function errored out
  6570. if (!(vnode instanceof VNode)) {
  6571. if ( true && Array.isArray(vnode)) {
  6572. warn(
  6573. 'Multiple root nodes returned from render function. Render function ' +
  6574. 'should return a single root node.',
  6575. vm
  6576. );
  6577. }
  6578. vnode = createEmptyVNode();
  6579. }
  6580. // set parent
  6581. vnode.parent = _parentVnode;
  6582. return vnode
  6583. };
  6584. }
  6585. /* */
  6586. function ensureCtor (comp, base) {
  6587. if (
  6588. comp.__esModule ||
  6589. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6590. ) {
  6591. comp = comp.default;
  6592. }
  6593. return isObject(comp)
  6594. ? base.extend(comp)
  6595. : comp
  6596. }
  6597. function createAsyncPlaceholder (
  6598. factory,
  6599. data,
  6600. context,
  6601. children,
  6602. tag
  6603. ) {
  6604. var node = createEmptyVNode();
  6605. node.asyncFactory = factory;
  6606. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6607. return node
  6608. }
  6609. function resolveAsyncComponent (
  6610. factory,
  6611. baseCtor
  6612. ) {
  6613. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6614. return factory.errorComp
  6615. }
  6616. if (isDef(factory.resolved)) {
  6617. return factory.resolved
  6618. }
  6619. var owner = currentRenderingInstance;
  6620. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6621. // already pending
  6622. factory.owners.push(owner);
  6623. }
  6624. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6625. return factory.loadingComp
  6626. }
  6627. if (owner && !isDef(factory.owners)) {
  6628. var owners = factory.owners = [owner];
  6629. var sync = true;
  6630. var timerLoading = null;
  6631. var timerTimeout = null
  6632. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6633. var forceRender = function (renderCompleted) {
  6634. for (var i = 0, l = owners.length; i < l; i++) {
  6635. (owners[i]).$forceUpdate();
  6636. }
  6637. if (renderCompleted) {
  6638. owners.length = 0;
  6639. if (timerLoading !== null) {
  6640. clearTimeout(timerLoading);
  6641. timerLoading = null;
  6642. }
  6643. if (timerTimeout !== null) {
  6644. clearTimeout(timerTimeout);
  6645. timerTimeout = null;
  6646. }
  6647. }
  6648. };
  6649. var resolve = once(function (res) {
  6650. // cache resolved
  6651. factory.resolved = ensureCtor(res, baseCtor);
  6652. // invoke callbacks only if this is not a synchronous resolve
  6653. // (async resolves are shimmed as synchronous during SSR)
  6654. if (!sync) {
  6655. forceRender(true);
  6656. } else {
  6657. owners.length = 0;
  6658. }
  6659. });
  6660. var reject = once(function (reason) {
  6661. true && warn(
  6662. "Failed to resolve async component: " + (String(factory)) +
  6663. (reason ? ("\nReason: " + reason) : '')
  6664. );
  6665. if (isDef(factory.errorComp)) {
  6666. factory.error = true;
  6667. forceRender(true);
  6668. }
  6669. });
  6670. var res = factory(resolve, reject);
  6671. if (isObject(res)) {
  6672. if (isPromise(res)) {
  6673. // () => Promise
  6674. if (isUndef(factory.resolved)) {
  6675. res.then(resolve, reject);
  6676. }
  6677. } else if (isPromise(res.component)) {
  6678. res.component.then(resolve, reject);
  6679. if (isDef(res.error)) {
  6680. factory.errorComp = ensureCtor(res.error, baseCtor);
  6681. }
  6682. if (isDef(res.loading)) {
  6683. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6684. if (res.delay === 0) {
  6685. factory.loading = true;
  6686. } else {
  6687. timerLoading = setTimeout(function () {
  6688. timerLoading = null;
  6689. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6690. factory.loading = true;
  6691. forceRender(false);
  6692. }
  6693. }, res.delay || 200);
  6694. }
  6695. }
  6696. if (isDef(res.timeout)) {
  6697. timerTimeout = setTimeout(function () {
  6698. timerTimeout = null;
  6699. if (isUndef(factory.resolved)) {
  6700. reject(
  6701. true
  6702. ? ("timeout (" + (res.timeout) + "ms)")
  6703. : undefined
  6704. );
  6705. }
  6706. }, res.timeout);
  6707. }
  6708. }
  6709. }
  6710. sync = false;
  6711. // return in case resolved synchronously
  6712. return factory.loading
  6713. ? factory.loadingComp
  6714. : factory.resolved
  6715. }
  6716. }
  6717. /* */
  6718. function isAsyncPlaceholder (node) {
  6719. return node.isComment && node.asyncFactory
  6720. }
  6721. /* */
  6722. function getFirstComponentChild (children) {
  6723. if (Array.isArray(children)) {
  6724. for (var i = 0; i < children.length; i++) {
  6725. var c = children[i];
  6726. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6727. return c
  6728. }
  6729. }
  6730. }
  6731. }
  6732. /* */
  6733. /* */
  6734. function initEvents (vm) {
  6735. vm._events = Object.create(null);
  6736. vm._hasHookEvent = false;
  6737. // init parent attached events
  6738. var listeners = vm.$options._parentListeners;
  6739. if (listeners) {
  6740. updateComponentListeners(vm, listeners);
  6741. }
  6742. }
  6743. var target;
  6744. function add (event, fn) {
  6745. target.$on(event, fn);
  6746. }
  6747. function remove$1 (event, fn) {
  6748. target.$off(event, fn);
  6749. }
  6750. function createOnceHandler (event, fn) {
  6751. var _target = target;
  6752. return function onceHandler () {
  6753. var res = fn.apply(null, arguments);
  6754. if (res !== null) {
  6755. _target.$off(event, onceHandler);
  6756. }
  6757. }
  6758. }
  6759. function updateComponentListeners (
  6760. vm,
  6761. listeners,
  6762. oldListeners
  6763. ) {
  6764. target = vm;
  6765. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6766. target = undefined;
  6767. }
  6768. function eventsMixin (Vue) {
  6769. var hookRE = /^hook:/;
  6770. Vue.prototype.$on = function (event, fn) {
  6771. var vm = this;
  6772. if (Array.isArray(event)) {
  6773. for (var i = 0, l = event.length; i < l; i++) {
  6774. vm.$on(event[i], fn);
  6775. }
  6776. } else {
  6777. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6778. // optimize hook:event cost by using a boolean flag marked at registration
  6779. // instead of a hash lookup
  6780. if (hookRE.test(event)) {
  6781. vm._hasHookEvent = true;
  6782. }
  6783. }
  6784. return vm
  6785. };
  6786. Vue.prototype.$once = function (event, fn) {
  6787. var vm = this;
  6788. function on () {
  6789. vm.$off(event, on);
  6790. fn.apply(vm, arguments);
  6791. }
  6792. on.fn = fn;
  6793. vm.$on(event, on);
  6794. return vm
  6795. };
  6796. Vue.prototype.$off = function (event, fn) {
  6797. var vm = this;
  6798. // all
  6799. if (!arguments.length) {
  6800. vm._events = Object.create(null);
  6801. return vm
  6802. }
  6803. // array of events
  6804. if (Array.isArray(event)) {
  6805. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6806. vm.$off(event[i$1], fn);
  6807. }
  6808. return vm
  6809. }
  6810. // specific event
  6811. var cbs = vm._events[event];
  6812. if (!cbs) {
  6813. return vm
  6814. }
  6815. if (!fn) {
  6816. vm._events[event] = null;
  6817. return vm
  6818. }
  6819. // specific handler
  6820. var cb;
  6821. var i = cbs.length;
  6822. while (i--) {
  6823. cb = cbs[i];
  6824. if (cb === fn || cb.fn === fn) {
  6825. cbs.splice(i, 1);
  6826. break
  6827. }
  6828. }
  6829. return vm
  6830. };
  6831. Vue.prototype.$emit = function (event) {
  6832. var vm = this;
  6833. if (true) {
  6834. var lowerCaseEvent = event.toLowerCase();
  6835. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6836. tip(
  6837. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6838. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6839. "Note that HTML attributes are case-insensitive and you cannot use " +
  6840. "v-on to listen to camelCase events when using in-DOM templates. " +
  6841. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6842. );
  6843. }
  6844. }
  6845. var cbs = vm._events[event];
  6846. if (cbs) {
  6847. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6848. var args = toArray(arguments, 1);
  6849. var info = "event handler for \"" + event + "\"";
  6850. for (var i = 0, l = cbs.length; i < l; i++) {
  6851. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6852. }
  6853. }
  6854. return vm
  6855. };
  6856. }
  6857. /* */
  6858. var activeInstance = null;
  6859. var isUpdatingChildComponent = false;
  6860. function setActiveInstance(vm) {
  6861. var prevActiveInstance = activeInstance;
  6862. activeInstance = vm;
  6863. return function () {
  6864. activeInstance = prevActiveInstance;
  6865. }
  6866. }
  6867. function initLifecycle (vm) {
  6868. var options = vm.$options;
  6869. // locate first non-abstract parent
  6870. var parent = options.parent;
  6871. if (parent && !options.abstract) {
  6872. while (parent.$options.abstract && parent.$parent) {
  6873. parent = parent.$parent;
  6874. }
  6875. parent.$children.push(vm);
  6876. }
  6877. vm.$parent = parent;
  6878. vm.$root = parent ? parent.$root : vm;
  6879. vm.$children = [];
  6880. vm.$refs = {};
  6881. vm._watcher = null;
  6882. vm._inactive = null;
  6883. vm._directInactive = false;
  6884. vm._isMounted = false;
  6885. vm._isDestroyed = false;
  6886. vm._isBeingDestroyed = false;
  6887. }
  6888. function lifecycleMixin (Vue) {
  6889. Vue.prototype._update = function (vnode, hydrating) {
  6890. var vm = this;
  6891. var prevEl = vm.$el;
  6892. var prevVnode = vm._vnode;
  6893. var restoreActiveInstance = setActiveInstance(vm);
  6894. vm._vnode = vnode;
  6895. // Vue.prototype.__patch__ is injected in entry points
  6896. // based on the rendering backend used.
  6897. if (!prevVnode) {
  6898. // initial render
  6899. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6900. } else {
  6901. // updates
  6902. vm.$el = vm.__patch__(prevVnode, vnode);
  6903. }
  6904. restoreActiveInstance();
  6905. // update __vue__ reference
  6906. if (prevEl) {
  6907. prevEl.__vue__ = null;
  6908. }
  6909. if (vm.$el) {
  6910. vm.$el.__vue__ = vm;
  6911. }
  6912. // if parent is an HOC, update its $el as well
  6913. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6914. vm.$parent.$el = vm.$el;
  6915. }
  6916. // updated hook is called by the scheduler to ensure that children are
  6917. // updated in a parent's updated hook.
  6918. };
  6919. Vue.prototype.$forceUpdate = function () {
  6920. var vm = this;
  6921. if (vm._watcher) {
  6922. vm._watcher.update();
  6923. }
  6924. };
  6925. Vue.prototype.$destroy = function () {
  6926. var vm = this;
  6927. if (vm._isBeingDestroyed) {
  6928. return
  6929. }
  6930. callHook(vm, 'beforeDestroy');
  6931. vm._isBeingDestroyed = true;
  6932. // remove self from parent
  6933. var parent = vm.$parent;
  6934. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6935. remove(parent.$children, vm);
  6936. }
  6937. // teardown watchers
  6938. if (vm._watcher) {
  6939. vm._watcher.teardown();
  6940. }
  6941. var i = vm._watchers.length;
  6942. while (i--) {
  6943. vm._watchers[i].teardown();
  6944. }
  6945. // remove reference from data ob
  6946. // frozen object may not have observer.
  6947. if (vm._data.__ob__) {
  6948. vm._data.__ob__.vmCount--;
  6949. }
  6950. // call the last hook...
  6951. vm._isDestroyed = true;
  6952. // invoke destroy hooks on current rendered tree
  6953. vm.__patch__(vm._vnode, null);
  6954. // fire destroyed hook
  6955. callHook(vm, 'destroyed');
  6956. // turn off all instance listeners.
  6957. vm.$off();
  6958. // remove __vue__ reference
  6959. if (vm.$el) {
  6960. vm.$el.__vue__ = null;
  6961. }
  6962. // release circular reference (#6759)
  6963. if (vm.$vnode) {
  6964. vm.$vnode.parent = null;
  6965. }
  6966. };
  6967. }
  6968. function updateChildComponent (
  6969. vm,
  6970. propsData,
  6971. listeners,
  6972. parentVnode,
  6973. renderChildren
  6974. ) {
  6975. if (true) {
  6976. isUpdatingChildComponent = true;
  6977. }
  6978. // determine whether component has slot children
  6979. // we need to do this before overwriting $options._renderChildren.
  6980. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6981. // dynamic slot names). Static scoped slots compiled from template has the
  6982. // "$stable" marker.
  6983. var newScopedSlots = parentVnode.data.scopedSlots;
  6984. var oldScopedSlots = vm.$scopedSlots;
  6985. var hasDynamicScopedSlot = !!(
  6986. (newScopedSlots && !newScopedSlots.$stable) ||
  6987. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6988. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6989. );
  6990. // Any static slot children from the parent may have changed during parent's
  6991. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6992. // update is necessary to ensure correctness.
  6993. var needsForceUpdate = !!(
  6994. renderChildren || // has new static slots
  6995. vm.$options._renderChildren || // has old static slots
  6996. hasDynamicScopedSlot
  6997. );
  6998. vm.$options._parentVnode = parentVnode;
  6999. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7000. if (vm._vnode) { // update child tree's parent
  7001. vm._vnode.parent = parentVnode;
  7002. }
  7003. vm.$options._renderChildren = renderChildren;
  7004. // update $attrs and $listeners hash
  7005. // these are also reactive so they may trigger child update if the child
  7006. // used them during render
  7007. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7008. vm.$listeners = listeners || emptyObject;
  7009. // update props
  7010. if (propsData && vm.$options.props) {
  7011. toggleObserving(false);
  7012. var props = vm._props;
  7013. var propKeys = vm.$options._propKeys || [];
  7014. for (var i = 0; i < propKeys.length; i++) {
  7015. var key = propKeys[i];
  7016. var propOptions = vm.$options.props; // wtf flow?
  7017. props[key] = validateProp(key, propOptions, propsData, vm);
  7018. }
  7019. toggleObserving(true);
  7020. // keep a copy of raw propsData
  7021. vm.$options.propsData = propsData;
  7022. }
  7023. // fixed by xxxxxx update properties(mp runtime)
  7024. vm._$updateProperties && vm._$updateProperties(vm);
  7025. // update listeners
  7026. listeners = listeners || emptyObject;
  7027. var oldListeners = vm.$options._parentListeners;
  7028. vm.$options._parentListeners = listeners;
  7029. updateComponentListeners(vm, listeners, oldListeners);
  7030. // resolve slots + force update if has children
  7031. if (needsForceUpdate) {
  7032. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7033. vm.$forceUpdate();
  7034. }
  7035. if (true) {
  7036. isUpdatingChildComponent = false;
  7037. }
  7038. }
  7039. function isInInactiveTree (vm) {
  7040. while (vm && (vm = vm.$parent)) {
  7041. if (vm._inactive) { return true }
  7042. }
  7043. return false
  7044. }
  7045. function activateChildComponent (vm, direct) {
  7046. if (direct) {
  7047. vm._directInactive = false;
  7048. if (isInInactiveTree(vm)) {
  7049. return
  7050. }
  7051. } else if (vm._directInactive) {
  7052. return
  7053. }
  7054. if (vm._inactive || vm._inactive === null) {
  7055. vm._inactive = false;
  7056. for (var i = 0; i < vm.$children.length; i++) {
  7057. activateChildComponent(vm.$children[i]);
  7058. }
  7059. callHook(vm, 'activated');
  7060. }
  7061. }
  7062. function deactivateChildComponent (vm, direct) {
  7063. if (direct) {
  7064. vm._directInactive = true;
  7065. if (isInInactiveTree(vm)) {
  7066. return
  7067. }
  7068. }
  7069. if (!vm._inactive) {
  7070. vm._inactive = true;
  7071. for (var i = 0; i < vm.$children.length; i++) {
  7072. deactivateChildComponent(vm.$children[i]);
  7073. }
  7074. callHook(vm, 'deactivated');
  7075. }
  7076. }
  7077. function callHook (vm, hook) {
  7078. // #7573 disable dep collection when invoking lifecycle hooks
  7079. pushTarget();
  7080. var handlers = vm.$options[hook];
  7081. var info = hook + " hook";
  7082. if (handlers) {
  7083. for (var i = 0, j = handlers.length; i < j; i++) {
  7084. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7085. }
  7086. }
  7087. if (vm._hasHookEvent) {
  7088. vm.$emit('hook:' + hook);
  7089. }
  7090. popTarget();
  7091. }
  7092. /* */
  7093. var MAX_UPDATE_COUNT = 100;
  7094. var queue = [];
  7095. var activatedChildren = [];
  7096. var has = {};
  7097. var circular = {};
  7098. var waiting = false;
  7099. var flushing = false;
  7100. var index = 0;
  7101. /**
  7102. * Reset the scheduler's state.
  7103. */
  7104. function resetSchedulerState () {
  7105. index = queue.length = activatedChildren.length = 0;
  7106. has = {};
  7107. if (true) {
  7108. circular = {};
  7109. }
  7110. waiting = flushing = false;
  7111. }
  7112. // Async edge case #6566 requires saving the timestamp when event listeners are
  7113. // attached. However, calling performance.now() has a perf overhead especially
  7114. // if the page has thousands of event listeners. Instead, we take a timestamp
  7115. // every time the scheduler flushes and use that for all event listeners
  7116. // attached during that flush.
  7117. var currentFlushTimestamp = 0;
  7118. // Async edge case fix requires storing an event listener's attach timestamp.
  7119. var getNow = Date.now;
  7120. // Determine what event timestamp the browser is using. Annoyingly, the
  7121. // timestamp can either be hi-res (relative to page load) or low-res
  7122. // (relative to UNIX epoch), so in order to compare time we have to use the
  7123. // same timestamp type when saving the flush timestamp.
  7124. // All IE versions use low-res event timestamps, and have problematic clock
  7125. // implementations (#9632)
  7126. if (inBrowser && !isIE) {
  7127. var performance = window.performance;
  7128. if (
  7129. performance &&
  7130. typeof performance.now === 'function' &&
  7131. getNow() > document.createEvent('Event').timeStamp
  7132. ) {
  7133. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7134. // smaller than it, it means the event is using a hi-res timestamp,
  7135. // and we need to use the hi-res version for event listener timestamps as
  7136. // well.
  7137. getNow = function () { return performance.now(); };
  7138. }
  7139. }
  7140. /**
  7141. * Flush both queues and run the watchers.
  7142. */
  7143. function flushSchedulerQueue () {
  7144. currentFlushTimestamp = getNow();
  7145. flushing = true;
  7146. var watcher, id;
  7147. // Sort queue before flush.
  7148. // This ensures that:
  7149. // 1. Components are updated from parent to child. (because parent is always
  7150. // created before the child)
  7151. // 2. A component's user watchers are run before its render watcher (because
  7152. // user watchers are created before the render watcher)
  7153. // 3. If a component is destroyed during a parent component's watcher run,
  7154. // its watchers can be skipped.
  7155. queue.sort(function (a, b) { return a.id - b.id; });
  7156. // do not cache length because more watchers might be pushed
  7157. // as we run existing watchers
  7158. for (index = 0; index < queue.length; index++) {
  7159. watcher = queue[index];
  7160. if (watcher.before) {
  7161. watcher.before();
  7162. }
  7163. id = watcher.id;
  7164. has[id] = null;
  7165. watcher.run();
  7166. // in dev build, check and stop circular updates.
  7167. if ( true && has[id] != null) {
  7168. circular[id] = (circular[id] || 0) + 1;
  7169. if (circular[id] > MAX_UPDATE_COUNT) {
  7170. warn(
  7171. 'You may have an infinite update loop ' + (
  7172. watcher.user
  7173. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7174. : "in a component render function."
  7175. ),
  7176. watcher.vm
  7177. );
  7178. break
  7179. }
  7180. }
  7181. }
  7182. // keep copies of post queues before resetting state
  7183. var activatedQueue = activatedChildren.slice();
  7184. var updatedQueue = queue.slice();
  7185. resetSchedulerState();
  7186. // call component updated and activated hooks
  7187. callActivatedHooks(activatedQueue);
  7188. callUpdatedHooks(updatedQueue);
  7189. // devtool hook
  7190. /* istanbul ignore if */
  7191. if (devtools && config.devtools) {
  7192. devtools.emit('flush');
  7193. }
  7194. }
  7195. function callUpdatedHooks (queue) {
  7196. var i = queue.length;
  7197. while (i--) {
  7198. var watcher = queue[i];
  7199. var vm = watcher.vm;
  7200. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7201. callHook(vm, 'updated');
  7202. }
  7203. }
  7204. }
  7205. /**
  7206. * Queue a kept-alive component that was activated during patch.
  7207. * The queue will be processed after the entire tree has been patched.
  7208. */
  7209. function queueActivatedComponent (vm) {
  7210. // setting _inactive to false here so that a render function can
  7211. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7212. vm._inactive = false;
  7213. activatedChildren.push(vm);
  7214. }
  7215. function callActivatedHooks (queue) {
  7216. for (var i = 0; i < queue.length; i++) {
  7217. queue[i]._inactive = true;
  7218. activateChildComponent(queue[i], true /* true */);
  7219. }
  7220. }
  7221. /**
  7222. * Push a watcher into the watcher queue.
  7223. * Jobs with duplicate IDs will be skipped unless it's
  7224. * pushed when the queue is being flushed.
  7225. */
  7226. function queueWatcher (watcher) {
  7227. var id = watcher.id;
  7228. if (has[id] == null) {
  7229. has[id] = true;
  7230. if (!flushing) {
  7231. queue.push(watcher);
  7232. } else {
  7233. // if already flushing, splice the watcher based on its id
  7234. // if already past its id, it will be run next immediately.
  7235. var i = queue.length - 1;
  7236. while (i > index && queue[i].id > watcher.id) {
  7237. i--;
  7238. }
  7239. queue.splice(i + 1, 0, watcher);
  7240. }
  7241. // queue the flush
  7242. if (!waiting) {
  7243. waiting = true;
  7244. if ( true && !config.async) {
  7245. flushSchedulerQueue();
  7246. return
  7247. }
  7248. nextTick(flushSchedulerQueue);
  7249. }
  7250. }
  7251. }
  7252. /* */
  7253. var uid$2 = 0;
  7254. /**
  7255. * A watcher parses an expression, collects dependencies,
  7256. * and fires callback when the expression value changes.
  7257. * This is used for both the $watch() api and directives.
  7258. */
  7259. var Watcher = function Watcher (
  7260. vm,
  7261. expOrFn,
  7262. cb,
  7263. options,
  7264. isRenderWatcher
  7265. ) {
  7266. this.vm = vm;
  7267. if (isRenderWatcher) {
  7268. vm._watcher = this;
  7269. }
  7270. vm._watchers.push(this);
  7271. // options
  7272. if (options) {
  7273. this.deep = !!options.deep;
  7274. this.user = !!options.user;
  7275. this.lazy = !!options.lazy;
  7276. this.sync = !!options.sync;
  7277. this.before = options.before;
  7278. } else {
  7279. this.deep = this.user = this.lazy = this.sync = false;
  7280. }
  7281. this.cb = cb;
  7282. this.id = ++uid$2; // uid for batching
  7283. this.active = true;
  7284. this.dirty = this.lazy; // for lazy watchers
  7285. this.deps = [];
  7286. this.newDeps = [];
  7287. this.depIds = new _Set();
  7288. this.newDepIds = new _Set();
  7289. this.expression = true
  7290. ? expOrFn.toString()
  7291. : undefined;
  7292. // parse expression for getter
  7293. if (typeof expOrFn === 'function') {
  7294. this.getter = expOrFn;
  7295. } else {
  7296. this.getter = parsePath(expOrFn);
  7297. if (!this.getter) {
  7298. this.getter = noop;
  7299. true && warn(
  7300. "Failed watching path: \"" + expOrFn + "\" " +
  7301. 'Watcher only accepts simple dot-delimited paths. ' +
  7302. 'For full control, use a function instead.',
  7303. vm
  7304. );
  7305. }
  7306. }
  7307. this.value = this.lazy
  7308. ? undefined
  7309. : this.get();
  7310. };
  7311. /**
  7312. * Evaluate the getter, and re-collect dependencies.
  7313. */
  7314. Watcher.prototype.get = function get () {
  7315. pushTarget(this);
  7316. var value;
  7317. var vm = this.vm;
  7318. try {
  7319. value = this.getter.call(vm, vm);
  7320. } catch (e) {
  7321. if (this.user) {
  7322. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7323. } else {
  7324. throw e
  7325. }
  7326. } finally {
  7327. // "touch" every property so they are all tracked as
  7328. // dependencies for deep watching
  7329. if (this.deep) {
  7330. traverse(value);
  7331. }
  7332. popTarget();
  7333. this.cleanupDeps();
  7334. }
  7335. return value
  7336. };
  7337. /**
  7338. * Add a dependency to this directive.
  7339. */
  7340. Watcher.prototype.addDep = function addDep (dep) {
  7341. var id = dep.id;
  7342. if (!this.newDepIds.has(id)) {
  7343. this.newDepIds.add(id);
  7344. this.newDeps.push(dep);
  7345. if (!this.depIds.has(id)) {
  7346. dep.addSub(this);
  7347. }
  7348. }
  7349. };
  7350. /**
  7351. * Clean up for dependency collection.
  7352. */
  7353. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7354. var i = this.deps.length;
  7355. while (i--) {
  7356. var dep = this.deps[i];
  7357. if (!this.newDepIds.has(dep.id)) {
  7358. dep.removeSub(this);
  7359. }
  7360. }
  7361. var tmp = this.depIds;
  7362. this.depIds = this.newDepIds;
  7363. this.newDepIds = tmp;
  7364. this.newDepIds.clear();
  7365. tmp = this.deps;
  7366. this.deps = this.newDeps;
  7367. this.newDeps = tmp;
  7368. this.newDeps.length = 0;
  7369. };
  7370. /**
  7371. * Subscriber interface.
  7372. * Will be called when a dependency changes.
  7373. */
  7374. Watcher.prototype.update = function update () {
  7375. /* istanbul ignore else */
  7376. if (this.lazy) {
  7377. this.dirty = true;
  7378. } else if (this.sync) {
  7379. this.run();
  7380. } else {
  7381. queueWatcher(this);
  7382. }
  7383. };
  7384. /**
  7385. * Scheduler job interface.
  7386. * Will be called by the scheduler.
  7387. */
  7388. Watcher.prototype.run = function run () {
  7389. if (this.active) {
  7390. var value = this.get();
  7391. if (
  7392. value !== this.value ||
  7393. // Deep watchers and watchers on Object/Arrays should fire even
  7394. // when the value is the same, because the value may
  7395. // have mutated.
  7396. isObject(value) ||
  7397. this.deep
  7398. ) {
  7399. // set new value
  7400. var oldValue = this.value;
  7401. this.value = value;
  7402. if (this.user) {
  7403. try {
  7404. this.cb.call(this.vm, value, oldValue);
  7405. } catch (e) {
  7406. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7407. }
  7408. } else {
  7409. this.cb.call(this.vm, value, oldValue);
  7410. }
  7411. }
  7412. }
  7413. };
  7414. /**
  7415. * Evaluate the value of the watcher.
  7416. * This only gets called for lazy watchers.
  7417. */
  7418. Watcher.prototype.evaluate = function evaluate () {
  7419. this.value = this.get();
  7420. this.dirty = false;
  7421. };
  7422. /**
  7423. * Depend on all deps collected by this watcher.
  7424. */
  7425. Watcher.prototype.depend = function depend () {
  7426. var i = this.deps.length;
  7427. while (i--) {
  7428. this.deps[i].depend();
  7429. }
  7430. };
  7431. /**
  7432. * Remove self from all dependencies' subscriber list.
  7433. */
  7434. Watcher.prototype.teardown = function teardown () {
  7435. if (this.active) {
  7436. // remove self from vm's watcher list
  7437. // this is a somewhat expensive operation so we skip it
  7438. // if the vm is being destroyed.
  7439. if (!this.vm._isBeingDestroyed) {
  7440. remove(this.vm._watchers, this);
  7441. }
  7442. var i = this.deps.length;
  7443. while (i--) {
  7444. this.deps[i].removeSub(this);
  7445. }
  7446. this.active = false;
  7447. }
  7448. };
  7449. /* */
  7450. var sharedPropertyDefinition = {
  7451. enumerable: true,
  7452. configurable: true,
  7453. get: noop,
  7454. set: noop
  7455. };
  7456. function proxy (target, sourceKey, key) {
  7457. sharedPropertyDefinition.get = function proxyGetter () {
  7458. return this[sourceKey][key]
  7459. };
  7460. sharedPropertyDefinition.set = function proxySetter (val) {
  7461. this[sourceKey][key] = val;
  7462. };
  7463. Object.defineProperty(target, key, sharedPropertyDefinition);
  7464. }
  7465. function initState (vm) {
  7466. vm._watchers = [];
  7467. var opts = vm.$options;
  7468. if (opts.props) { initProps(vm, opts.props); }
  7469. if (opts.methods) { initMethods(vm, opts.methods); }
  7470. if (opts.data) {
  7471. initData(vm);
  7472. } else {
  7473. observe(vm._data = {}, true /* asRootData */);
  7474. }
  7475. if (opts.computed) { initComputed(vm, opts.computed); }
  7476. if (opts.watch && opts.watch !== nativeWatch) {
  7477. initWatch(vm, opts.watch);
  7478. }
  7479. }
  7480. function initProps (vm, propsOptions) {
  7481. var propsData = vm.$options.propsData || {};
  7482. var props = vm._props = {};
  7483. // cache prop keys so that future props updates can iterate using Array
  7484. // instead of dynamic object key enumeration.
  7485. var keys = vm.$options._propKeys = [];
  7486. var isRoot = !vm.$parent;
  7487. // root instance props should be converted
  7488. if (!isRoot) {
  7489. toggleObserving(false);
  7490. }
  7491. var loop = function ( key ) {
  7492. keys.push(key);
  7493. var value = validateProp(key, propsOptions, propsData, vm);
  7494. /* istanbul ignore else */
  7495. if (true) {
  7496. var hyphenatedKey = hyphenate(key);
  7497. if (isReservedAttribute(hyphenatedKey) ||
  7498. config.isReservedAttr(hyphenatedKey)) {
  7499. warn(
  7500. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7501. vm
  7502. );
  7503. }
  7504. defineReactive$$1(props, key, value, function () {
  7505. if (!isRoot && !isUpdatingChildComponent) {
  7506. {
  7507. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7508. return
  7509. }
  7510. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7511. if(
  7512. key === 'value' &&
  7513. Array.isArray(vm.$options.behaviors) &&
  7514. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7515. ){
  7516. return
  7517. }
  7518. if(vm._getFormData){
  7519. return
  7520. }
  7521. var $parent = vm.$parent;
  7522. while($parent){
  7523. if($parent.__next_tick_pending){
  7524. return
  7525. }
  7526. $parent = $parent.$parent;
  7527. }
  7528. }
  7529. warn(
  7530. "Avoid mutating a prop directly since the value will be " +
  7531. "overwritten whenever the parent component re-renders. " +
  7532. "Instead, use a data or computed property based on the prop's " +
  7533. "value. Prop being mutated: \"" + key + "\"",
  7534. vm
  7535. );
  7536. }
  7537. });
  7538. } else {}
  7539. // static props are already proxied on the component's prototype
  7540. // during Vue.extend(). We only need to proxy props defined at
  7541. // instantiation here.
  7542. if (!(key in vm)) {
  7543. proxy(vm, "_props", key);
  7544. }
  7545. };
  7546. for (var key in propsOptions) loop( key );
  7547. toggleObserving(true);
  7548. }
  7549. function initData (vm) {
  7550. var data = vm.$options.data;
  7551. data = vm._data = typeof data === 'function'
  7552. ? getData(data, vm)
  7553. : data || {};
  7554. if (!isPlainObject(data)) {
  7555. data = {};
  7556. true && warn(
  7557. 'data functions should return an object:\n' +
  7558. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7559. vm
  7560. );
  7561. }
  7562. // proxy data on instance
  7563. var keys = Object.keys(data);
  7564. var props = vm.$options.props;
  7565. var methods = vm.$options.methods;
  7566. var i = keys.length;
  7567. while (i--) {
  7568. var key = keys[i];
  7569. if (true) {
  7570. if (methods && hasOwn(methods, key)) {
  7571. warn(
  7572. ("Method \"" + key + "\" has already been defined as a data property."),
  7573. vm
  7574. );
  7575. }
  7576. }
  7577. if (props && hasOwn(props, key)) {
  7578. true && warn(
  7579. "The data property \"" + key + "\" is already declared as a prop. " +
  7580. "Use prop default value instead.",
  7581. vm
  7582. );
  7583. } else if (!isReserved(key)) {
  7584. proxy(vm, "_data", key);
  7585. }
  7586. }
  7587. // observe data
  7588. observe(data, true /* asRootData */);
  7589. }
  7590. function getData (data, vm) {
  7591. // #7573 disable dep collection when invoking data getters
  7592. pushTarget();
  7593. try {
  7594. return data.call(vm, vm)
  7595. } catch (e) {
  7596. handleError(e, vm, "data()");
  7597. return {}
  7598. } finally {
  7599. popTarget();
  7600. }
  7601. }
  7602. var computedWatcherOptions = { lazy: true };
  7603. function initComputed (vm, computed) {
  7604. // $flow-disable-line
  7605. var watchers = vm._computedWatchers = Object.create(null);
  7606. // computed properties are just getters during SSR
  7607. var isSSR = isServerRendering();
  7608. for (var key in computed) {
  7609. var userDef = computed[key];
  7610. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7611. if ( true && getter == null) {
  7612. warn(
  7613. ("Getter is missing for computed property \"" + key + "\"."),
  7614. vm
  7615. );
  7616. }
  7617. if (!isSSR) {
  7618. // create internal watcher for the computed property.
  7619. watchers[key] = new Watcher(
  7620. vm,
  7621. getter || noop,
  7622. noop,
  7623. computedWatcherOptions
  7624. );
  7625. }
  7626. // component-defined computed properties are already defined on the
  7627. // component prototype. We only need to define computed properties defined
  7628. // at instantiation here.
  7629. if (!(key in vm)) {
  7630. defineComputed(vm, key, userDef);
  7631. } else if (true) {
  7632. if (key in vm.$data) {
  7633. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7634. } else if (vm.$options.props && key in vm.$options.props) {
  7635. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7636. }
  7637. }
  7638. }
  7639. }
  7640. function defineComputed (
  7641. target,
  7642. key,
  7643. userDef
  7644. ) {
  7645. var shouldCache = !isServerRendering();
  7646. if (typeof userDef === 'function') {
  7647. sharedPropertyDefinition.get = shouldCache
  7648. ? createComputedGetter(key)
  7649. : createGetterInvoker(userDef);
  7650. sharedPropertyDefinition.set = noop;
  7651. } else {
  7652. sharedPropertyDefinition.get = userDef.get
  7653. ? shouldCache && userDef.cache !== false
  7654. ? createComputedGetter(key)
  7655. : createGetterInvoker(userDef.get)
  7656. : noop;
  7657. sharedPropertyDefinition.set = userDef.set || noop;
  7658. }
  7659. if ( true &&
  7660. sharedPropertyDefinition.set === noop) {
  7661. sharedPropertyDefinition.set = function () {
  7662. warn(
  7663. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7664. this
  7665. );
  7666. };
  7667. }
  7668. Object.defineProperty(target, key, sharedPropertyDefinition);
  7669. }
  7670. function createComputedGetter (key) {
  7671. return function computedGetter () {
  7672. var watcher = this._computedWatchers && this._computedWatchers[key];
  7673. if (watcher) {
  7674. if (watcher.dirty) {
  7675. watcher.evaluate();
  7676. }
  7677. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7678. watcher.depend();
  7679. }
  7680. return watcher.value
  7681. }
  7682. }
  7683. }
  7684. function createGetterInvoker(fn) {
  7685. return function computedGetter () {
  7686. return fn.call(this, this)
  7687. }
  7688. }
  7689. function initMethods (vm, methods) {
  7690. var props = vm.$options.props;
  7691. for (var key in methods) {
  7692. if (true) {
  7693. if (typeof methods[key] !== 'function') {
  7694. warn(
  7695. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7696. "Did you reference the function correctly?",
  7697. vm
  7698. );
  7699. }
  7700. if (props && hasOwn(props, key)) {
  7701. warn(
  7702. ("Method \"" + key + "\" has already been defined as a prop."),
  7703. vm
  7704. );
  7705. }
  7706. if ((key in vm) && isReserved(key)) {
  7707. warn(
  7708. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7709. "Avoid defining component methods that start with _ or $."
  7710. );
  7711. }
  7712. }
  7713. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7714. }
  7715. }
  7716. function initWatch (vm, watch) {
  7717. for (var key in watch) {
  7718. var handler = watch[key];
  7719. if (Array.isArray(handler)) {
  7720. for (var i = 0; i < handler.length; i++) {
  7721. createWatcher(vm, key, handler[i]);
  7722. }
  7723. } else {
  7724. createWatcher(vm, key, handler);
  7725. }
  7726. }
  7727. }
  7728. function createWatcher (
  7729. vm,
  7730. expOrFn,
  7731. handler,
  7732. options
  7733. ) {
  7734. if (isPlainObject(handler)) {
  7735. options = handler;
  7736. handler = handler.handler;
  7737. }
  7738. if (typeof handler === 'string') {
  7739. handler = vm[handler];
  7740. }
  7741. return vm.$watch(expOrFn, handler, options)
  7742. }
  7743. function stateMixin (Vue) {
  7744. // flow somehow has problems with directly declared definition object
  7745. // when using Object.defineProperty, so we have to procedurally build up
  7746. // the object here.
  7747. var dataDef = {};
  7748. dataDef.get = function () { return this._data };
  7749. var propsDef = {};
  7750. propsDef.get = function () { return this._props };
  7751. if (true) {
  7752. dataDef.set = function () {
  7753. warn(
  7754. 'Avoid replacing instance root $data. ' +
  7755. 'Use nested data properties instead.',
  7756. this
  7757. );
  7758. };
  7759. propsDef.set = function () {
  7760. warn("$props is readonly.", this);
  7761. };
  7762. }
  7763. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7764. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7765. Vue.prototype.$set = set;
  7766. Vue.prototype.$delete = del;
  7767. Vue.prototype.$watch = function (
  7768. expOrFn,
  7769. cb,
  7770. options
  7771. ) {
  7772. var vm = this;
  7773. if (isPlainObject(cb)) {
  7774. return createWatcher(vm, expOrFn, cb, options)
  7775. }
  7776. options = options || {};
  7777. options.user = true;
  7778. var watcher = new Watcher(vm, expOrFn, cb, options);
  7779. if (options.immediate) {
  7780. try {
  7781. cb.call(vm, watcher.value);
  7782. } catch (error) {
  7783. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7784. }
  7785. }
  7786. return function unwatchFn () {
  7787. watcher.teardown();
  7788. }
  7789. };
  7790. }
  7791. /* */
  7792. var uid$3 = 0;
  7793. function initMixin (Vue) {
  7794. Vue.prototype._init = function (options) {
  7795. var vm = this;
  7796. // a uid
  7797. vm._uid = uid$3++;
  7798. var startTag, endTag;
  7799. /* istanbul ignore if */
  7800. if ( true && config.performance && mark) {
  7801. startTag = "vue-perf-start:" + (vm._uid);
  7802. endTag = "vue-perf-end:" + (vm._uid);
  7803. mark(startTag);
  7804. }
  7805. // a flag to avoid this being observed
  7806. vm._isVue = true;
  7807. // merge options
  7808. if (options && options._isComponent) {
  7809. // optimize internal component instantiation
  7810. // since dynamic options merging is pretty slow, and none of the
  7811. // internal component options needs special treatment.
  7812. initInternalComponent(vm, options);
  7813. } else {
  7814. vm.$options = mergeOptions(
  7815. resolveConstructorOptions(vm.constructor),
  7816. options || {},
  7817. vm
  7818. );
  7819. }
  7820. /* istanbul ignore else */
  7821. if (true) {
  7822. initProxy(vm);
  7823. } else {}
  7824. // expose real self
  7825. vm._self = vm;
  7826. initLifecycle(vm);
  7827. initEvents(vm);
  7828. initRender(vm);
  7829. callHook(vm, 'beforeCreate');
  7830. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7831. initState(vm);
  7832. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7833. !vm._$fallback && callHook(vm, 'created');
  7834. /* istanbul ignore if */
  7835. if ( true && config.performance && mark) {
  7836. vm._name = formatComponentName(vm, false);
  7837. mark(endTag);
  7838. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7839. }
  7840. if (vm.$options.el) {
  7841. vm.$mount(vm.$options.el);
  7842. }
  7843. };
  7844. }
  7845. function initInternalComponent (vm, options) {
  7846. var opts = vm.$options = Object.create(vm.constructor.options);
  7847. // doing this because it's faster than dynamic enumeration.
  7848. var parentVnode = options._parentVnode;
  7849. opts.parent = options.parent;
  7850. opts._parentVnode = parentVnode;
  7851. var vnodeComponentOptions = parentVnode.componentOptions;
  7852. opts.propsData = vnodeComponentOptions.propsData;
  7853. opts._parentListeners = vnodeComponentOptions.listeners;
  7854. opts._renderChildren = vnodeComponentOptions.children;
  7855. opts._componentTag = vnodeComponentOptions.tag;
  7856. if (options.render) {
  7857. opts.render = options.render;
  7858. opts.staticRenderFns = options.staticRenderFns;
  7859. }
  7860. }
  7861. function resolveConstructorOptions (Ctor) {
  7862. var options = Ctor.options;
  7863. if (Ctor.super) {
  7864. var superOptions = resolveConstructorOptions(Ctor.super);
  7865. var cachedSuperOptions = Ctor.superOptions;
  7866. if (superOptions !== cachedSuperOptions) {
  7867. // super option changed,
  7868. // need to resolve new options.
  7869. Ctor.superOptions = superOptions;
  7870. // check if there are any late-modified/attached options (#4976)
  7871. var modifiedOptions = resolveModifiedOptions(Ctor);
  7872. // update base extend options
  7873. if (modifiedOptions) {
  7874. extend(Ctor.extendOptions, modifiedOptions);
  7875. }
  7876. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7877. if (options.name) {
  7878. options.components[options.name] = Ctor;
  7879. }
  7880. }
  7881. }
  7882. return options
  7883. }
  7884. function resolveModifiedOptions (Ctor) {
  7885. var modified;
  7886. var latest = Ctor.options;
  7887. var sealed = Ctor.sealedOptions;
  7888. for (var key in latest) {
  7889. if (latest[key] !== sealed[key]) {
  7890. if (!modified) { modified = {}; }
  7891. modified[key] = latest[key];
  7892. }
  7893. }
  7894. return modified
  7895. }
  7896. function Vue (options) {
  7897. if ( true &&
  7898. !(this instanceof Vue)
  7899. ) {
  7900. warn('Vue is a constructor and should be called with the `new` keyword');
  7901. }
  7902. this._init(options);
  7903. }
  7904. initMixin(Vue);
  7905. stateMixin(Vue);
  7906. eventsMixin(Vue);
  7907. lifecycleMixin(Vue);
  7908. renderMixin(Vue);
  7909. /* */
  7910. function initUse (Vue) {
  7911. Vue.use = function (plugin) {
  7912. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7913. if (installedPlugins.indexOf(plugin) > -1) {
  7914. return this
  7915. }
  7916. // additional parameters
  7917. var args = toArray(arguments, 1);
  7918. args.unshift(this);
  7919. if (typeof plugin.install === 'function') {
  7920. plugin.install.apply(plugin, args);
  7921. } else if (typeof plugin === 'function') {
  7922. plugin.apply(null, args);
  7923. }
  7924. installedPlugins.push(plugin);
  7925. return this
  7926. };
  7927. }
  7928. /* */
  7929. function initMixin$1 (Vue) {
  7930. Vue.mixin = function (mixin) {
  7931. this.options = mergeOptions(this.options, mixin);
  7932. return this
  7933. };
  7934. }
  7935. /* */
  7936. function initExtend (Vue) {
  7937. /**
  7938. * Each instance constructor, including Vue, has a unique
  7939. * cid. This enables us to create wrapped "child
  7940. * constructors" for prototypal inheritance and cache them.
  7941. */
  7942. Vue.cid = 0;
  7943. var cid = 1;
  7944. /**
  7945. * Class inheritance
  7946. */
  7947. Vue.extend = function (extendOptions) {
  7948. extendOptions = extendOptions || {};
  7949. var Super = this;
  7950. var SuperId = Super.cid;
  7951. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7952. if (cachedCtors[SuperId]) {
  7953. return cachedCtors[SuperId]
  7954. }
  7955. var name = extendOptions.name || Super.options.name;
  7956. if ( true && name) {
  7957. validateComponentName(name);
  7958. }
  7959. var Sub = function VueComponent (options) {
  7960. this._init(options);
  7961. };
  7962. Sub.prototype = Object.create(Super.prototype);
  7963. Sub.prototype.constructor = Sub;
  7964. Sub.cid = cid++;
  7965. Sub.options = mergeOptions(
  7966. Super.options,
  7967. extendOptions
  7968. );
  7969. Sub['super'] = Super;
  7970. // For props and computed properties, we define the proxy getters on
  7971. // the Vue instances at extension time, on the extended prototype. This
  7972. // avoids Object.defineProperty calls for each instance created.
  7973. if (Sub.options.props) {
  7974. initProps$1(Sub);
  7975. }
  7976. if (Sub.options.computed) {
  7977. initComputed$1(Sub);
  7978. }
  7979. // allow further extension/mixin/plugin usage
  7980. Sub.extend = Super.extend;
  7981. Sub.mixin = Super.mixin;
  7982. Sub.use = Super.use;
  7983. // create asset registers, so extended classes
  7984. // can have their private assets too.
  7985. ASSET_TYPES.forEach(function (type) {
  7986. Sub[type] = Super[type];
  7987. });
  7988. // enable recursive self-lookup
  7989. if (name) {
  7990. Sub.options.components[name] = Sub;
  7991. }
  7992. // keep a reference to the super options at extension time.
  7993. // later at instantiation we can check if Super's options have
  7994. // been updated.
  7995. Sub.superOptions = Super.options;
  7996. Sub.extendOptions = extendOptions;
  7997. Sub.sealedOptions = extend({}, Sub.options);
  7998. // cache constructor
  7999. cachedCtors[SuperId] = Sub;
  8000. return Sub
  8001. };
  8002. }
  8003. function initProps$1 (Comp) {
  8004. var props = Comp.options.props;
  8005. for (var key in props) {
  8006. proxy(Comp.prototype, "_props", key);
  8007. }
  8008. }
  8009. function initComputed$1 (Comp) {
  8010. var computed = Comp.options.computed;
  8011. for (var key in computed) {
  8012. defineComputed(Comp.prototype, key, computed[key]);
  8013. }
  8014. }
  8015. /* */
  8016. function initAssetRegisters (Vue) {
  8017. /**
  8018. * Create asset registration methods.
  8019. */
  8020. ASSET_TYPES.forEach(function (type) {
  8021. Vue[type] = function (
  8022. id,
  8023. definition
  8024. ) {
  8025. if (!definition) {
  8026. return this.options[type + 's'][id]
  8027. } else {
  8028. /* istanbul ignore if */
  8029. if ( true && type === 'component') {
  8030. validateComponentName(id);
  8031. }
  8032. if (type === 'component' && isPlainObject(definition)) {
  8033. definition.name = definition.name || id;
  8034. definition = this.options._base.extend(definition);
  8035. }
  8036. if (type === 'directive' && typeof definition === 'function') {
  8037. definition = { bind: definition, update: definition };
  8038. }
  8039. this.options[type + 's'][id] = definition;
  8040. return definition
  8041. }
  8042. };
  8043. });
  8044. }
  8045. /* */
  8046. function getComponentName (opts) {
  8047. return opts && (opts.Ctor.options.name || opts.tag)
  8048. }
  8049. function matches (pattern, name) {
  8050. if (Array.isArray(pattern)) {
  8051. return pattern.indexOf(name) > -1
  8052. } else if (typeof pattern === 'string') {
  8053. return pattern.split(',').indexOf(name) > -1
  8054. } else if (isRegExp(pattern)) {
  8055. return pattern.test(name)
  8056. }
  8057. /* istanbul ignore next */
  8058. return false
  8059. }
  8060. function pruneCache (keepAliveInstance, filter) {
  8061. var cache = keepAliveInstance.cache;
  8062. var keys = keepAliveInstance.keys;
  8063. var _vnode = keepAliveInstance._vnode;
  8064. for (var key in cache) {
  8065. var cachedNode = cache[key];
  8066. if (cachedNode) {
  8067. var name = getComponentName(cachedNode.componentOptions);
  8068. if (name && !filter(name)) {
  8069. pruneCacheEntry(cache, key, keys, _vnode);
  8070. }
  8071. }
  8072. }
  8073. }
  8074. function pruneCacheEntry (
  8075. cache,
  8076. key,
  8077. keys,
  8078. current
  8079. ) {
  8080. var cached$$1 = cache[key];
  8081. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8082. cached$$1.componentInstance.$destroy();
  8083. }
  8084. cache[key] = null;
  8085. remove(keys, key);
  8086. }
  8087. var patternTypes = [String, RegExp, Array];
  8088. var KeepAlive = {
  8089. name: 'keep-alive',
  8090. abstract: true,
  8091. props: {
  8092. include: patternTypes,
  8093. exclude: patternTypes,
  8094. max: [String, Number]
  8095. },
  8096. created: function created () {
  8097. this.cache = Object.create(null);
  8098. this.keys = [];
  8099. },
  8100. destroyed: function destroyed () {
  8101. for (var key in this.cache) {
  8102. pruneCacheEntry(this.cache, key, this.keys);
  8103. }
  8104. },
  8105. mounted: function mounted () {
  8106. var this$1 = this;
  8107. this.$watch('include', function (val) {
  8108. pruneCache(this$1, function (name) { return matches(val, name); });
  8109. });
  8110. this.$watch('exclude', function (val) {
  8111. pruneCache(this$1, function (name) { return !matches(val, name); });
  8112. });
  8113. },
  8114. render: function render () {
  8115. var slot = this.$slots.default;
  8116. var vnode = getFirstComponentChild(slot);
  8117. var componentOptions = vnode && vnode.componentOptions;
  8118. if (componentOptions) {
  8119. // check pattern
  8120. var name = getComponentName(componentOptions);
  8121. var ref = this;
  8122. var include = ref.include;
  8123. var exclude = ref.exclude;
  8124. if (
  8125. // not included
  8126. (include && (!name || !matches(include, name))) ||
  8127. // excluded
  8128. (exclude && name && matches(exclude, name))
  8129. ) {
  8130. return vnode
  8131. }
  8132. var ref$1 = this;
  8133. var cache = ref$1.cache;
  8134. var keys = ref$1.keys;
  8135. var key = vnode.key == null
  8136. // same constructor may get registered as different local components
  8137. // so cid alone is not enough (#3269)
  8138. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8139. : vnode.key;
  8140. if (cache[key]) {
  8141. vnode.componentInstance = cache[key].componentInstance;
  8142. // make current key freshest
  8143. remove(keys, key);
  8144. keys.push(key);
  8145. } else {
  8146. cache[key] = vnode;
  8147. keys.push(key);
  8148. // prune oldest entry
  8149. if (this.max && keys.length > parseInt(this.max)) {
  8150. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8151. }
  8152. }
  8153. vnode.data.keepAlive = true;
  8154. }
  8155. return vnode || (slot && slot[0])
  8156. }
  8157. };
  8158. var builtInComponents = {
  8159. KeepAlive: KeepAlive
  8160. };
  8161. /* */
  8162. function initGlobalAPI (Vue) {
  8163. // config
  8164. var configDef = {};
  8165. configDef.get = function () { return config; };
  8166. if (true) {
  8167. configDef.set = function () {
  8168. warn(
  8169. 'Do not replace the Vue.config object, set individual fields instead.'
  8170. );
  8171. };
  8172. }
  8173. Object.defineProperty(Vue, 'config', configDef);
  8174. // exposed util methods.
  8175. // NOTE: these are not considered part of the public API - avoid relying on
  8176. // them unless you are aware of the risk.
  8177. Vue.util = {
  8178. warn: warn,
  8179. extend: extend,
  8180. mergeOptions: mergeOptions,
  8181. defineReactive: defineReactive$$1
  8182. };
  8183. Vue.set = set;
  8184. Vue.delete = del;
  8185. Vue.nextTick = nextTick;
  8186. // 2.6 explicit observable API
  8187. Vue.observable = function (obj) {
  8188. observe(obj);
  8189. return obj
  8190. };
  8191. Vue.options = Object.create(null);
  8192. ASSET_TYPES.forEach(function (type) {
  8193. Vue.options[type + 's'] = Object.create(null);
  8194. });
  8195. // this is used to identify the "base" constructor to extend all plain-object
  8196. // components with in Weex's multi-instance scenarios.
  8197. Vue.options._base = Vue;
  8198. extend(Vue.options.components, builtInComponents);
  8199. initUse(Vue);
  8200. initMixin$1(Vue);
  8201. initExtend(Vue);
  8202. initAssetRegisters(Vue);
  8203. }
  8204. initGlobalAPI(Vue);
  8205. Object.defineProperty(Vue.prototype, '$isServer', {
  8206. get: isServerRendering
  8207. });
  8208. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8209. get: function get () {
  8210. /* istanbul ignore next */
  8211. return this.$vnode && this.$vnode.ssrContext
  8212. }
  8213. });
  8214. // expose FunctionalRenderContext for ssr runtime helper installation
  8215. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8216. value: FunctionalRenderContext
  8217. });
  8218. Vue.version = '2.6.11';
  8219. /**
  8220. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8221. */
  8222. var ARRAYTYPE = '[object Array]';
  8223. var OBJECTTYPE = '[object Object]';
  8224. var NULLTYPE = '[object Null]';
  8225. var UNDEFINEDTYPE = '[object Undefined]';
  8226. // const FUNCTIONTYPE = '[object Function]'
  8227. function diff(current, pre) {
  8228. var result = {};
  8229. syncKeys(current, pre);
  8230. _diff(current, pre, '', result);
  8231. return result
  8232. }
  8233. function syncKeys(current, pre) {
  8234. if (current === pre) { return }
  8235. var rootCurrentType = type(current);
  8236. var rootPreType = type(pre);
  8237. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8238. if(Object.keys(current).length >= Object.keys(pre).length){
  8239. for (var key in pre) {
  8240. var currentValue = current[key];
  8241. if (currentValue === undefined) {
  8242. current[key] = null;
  8243. } else {
  8244. syncKeys(currentValue, pre[key]);
  8245. }
  8246. }
  8247. }
  8248. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8249. if (current.length >= pre.length) {
  8250. pre.forEach(function (item, index) {
  8251. syncKeys(current[index], item);
  8252. });
  8253. }
  8254. }
  8255. }
  8256. function nullOrUndefined(currentType, preType) {
  8257. if(
  8258. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8259. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8260. ) {
  8261. return false
  8262. }
  8263. return true
  8264. }
  8265. function _diff(current, pre, path, result) {
  8266. if (current === pre) { return }
  8267. var rootCurrentType = type(current);
  8268. var rootPreType = type(pre);
  8269. if (rootCurrentType == OBJECTTYPE) {
  8270. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8271. setResult(result, path, current);
  8272. } else {
  8273. var loop = function ( key ) {
  8274. var currentValue = current[key];
  8275. var preValue = pre[key];
  8276. var currentType = type(currentValue);
  8277. var preType = type(preValue);
  8278. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8279. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8280. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8281. }
  8282. } else if (currentType == ARRAYTYPE) {
  8283. if (preType != ARRAYTYPE) {
  8284. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8285. } else {
  8286. if (currentValue.length < preValue.length) {
  8287. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8288. } else {
  8289. currentValue.forEach(function (item, index) {
  8290. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8291. });
  8292. }
  8293. }
  8294. } else if (currentType == OBJECTTYPE) {
  8295. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8296. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8297. } else {
  8298. for (var subKey in currentValue) {
  8299. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8300. }
  8301. }
  8302. }
  8303. };
  8304. for (var key in current) loop( key );
  8305. }
  8306. } else if (rootCurrentType == ARRAYTYPE) {
  8307. if (rootPreType != ARRAYTYPE) {
  8308. setResult(result, path, current);
  8309. } else {
  8310. if (current.length < pre.length) {
  8311. setResult(result, path, current);
  8312. } else {
  8313. current.forEach(function (item, index) {
  8314. _diff(item, pre[index], path + '[' + index + ']', result);
  8315. });
  8316. }
  8317. }
  8318. } else {
  8319. setResult(result, path, current);
  8320. }
  8321. }
  8322. function setResult(result, k, v) {
  8323. // if (type(v) != FUNCTIONTYPE) {
  8324. result[k] = v;
  8325. // }
  8326. }
  8327. function type(obj) {
  8328. return Object.prototype.toString.call(obj)
  8329. }
  8330. /* */
  8331. function flushCallbacks$1(vm) {
  8332. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8333. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"sws","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8334. var mpInstance = vm.$scope;
  8335. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8336. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8337. }
  8338. var copies = vm.__next_tick_callbacks.slice(0);
  8339. vm.__next_tick_callbacks.length = 0;
  8340. for (var i = 0; i < copies.length; i++) {
  8341. copies[i]();
  8342. }
  8343. }
  8344. }
  8345. function hasRenderWatcher(vm) {
  8346. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8347. }
  8348. function nextTick$1(vm, cb) {
  8349. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8350. //2.nextTick 之前存在 render watcher
  8351. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8352. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"sws","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8353. var mpInstance = vm.$scope;
  8354. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8355. ']:nextVueTick');
  8356. }
  8357. return nextTick(cb, vm)
  8358. }else{
  8359. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"sws","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8360. var mpInstance$1 = vm.$scope;
  8361. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8362. ']:nextMPTick');
  8363. }
  8364. }
  8365. var _resolve;
  8366. if (!vm.__next_tick_callbacks) {
  8367. vm.__next_tick_callbacks = [];
  8368. }
  8369. vm.__next_tick_callbacks.push(function () {
  8370. if (cb) {
  8371. try {
  8372. cb.call(vm);
  8373. } catch (e) {
  8374. handleError(e, vm, 'nextTick');
  8375. }
  8376. } else if (_resolve) {
  8377. _resolve(vm);
  8378. }
  8379. });
  8380. // $flow-disable-line
  8381. if (!cb && typeof Promise !== 'undefined') {
  8382. return new Promise(function (resolve) {
  8383. _resolve = resolve;
  8384. })
  8385. }
  8386. }
  8387. /* */
  8388. function clearInstance(key, value) {
  8389. // 简易去除 Vue 和小程序组件实例
  8390. if (value) {
  8391. if (value._isVue || value.__v_isMPComponent) {
  8392. return {}
  8393. }
  8394. }
  8395. return value
  8396. }
  8397. function cloneWithData(vm) {
  8398. // 确保当前 vm 所有数据被同步
  8399. var ret = Object.create(null);
  8400. var dataKeys = [].concat(
  8401. Object.keys(vm._data || {}),
  8402. Object.keys(vm._computedWatchers || {}));
  8403. dataKeys.reduce(function(ret, key) {
  8404. ret[key] = vm[key];
  8405. return ret
  8406. }, ret);
  8407. // vue-composition-api
  8408. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8409. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8410. if (rawBindings) {
  8411. Object.keys(rawBindings).forEach(function (key) {
  8412. ret[key] = vm[key];
  8413. });
  8414. }
  8415. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8416. Object.assign(ret, vm.$mp.data || {});
  8417. if (
  8418. Array.isArray(vm.$options.behaviors) &&
  8419. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8420. ) { //form-field
  8421. ret['name'] = vm.name;
  8422. ret['value'] = vm.value;
  8423. }
  8424. return JSON.parse(JSON.stringify(ret, clearInstance))
  8425. }
  8426. var patch = function(oldVnode, vnode) {
  8427. var this$1 = this;
  8428. if (vnode === null) { //destroy
  8429. return
  8430. }
  8431. if (this.mpType === 'page' || this.mpType === 'component') {
  8432. var mpInstance = this.$scope;
  8433. var data = Object.create(null);
  8434. try {
  8435. data = cloneWithData(this);
  8436. } catch (err) {
  8437. console.error(err);
  8438. }
  8439. data.__webviewId__ = mpInstance.data.__webviewId__;
  8440. var mpData = Object.create(null);
  8441. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8442. mpData[key] = mpInstance.data[key];
  8443. });
  8444. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8445. if (Object.keys(diffData).length) {
  8446. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"sws","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8447. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8448. ']差量更新',
  8449. JSON.stringify(diffData));
  8450. }
  8451. this.__next_tick_pending = true;
  8452. mpInstance.setData(diffData, function () {
  8453. this$1.__next_tick_pending = false;
  8454. flushCallbacks$1(this$1);
  8455. });
  8456. } else {
  8457. flushCallbacks$1(this);
  8458. }
  8459. }
  8460. };
  8461. /* */
  8462. function createEmptyRender() {
  8463. }
  8464. function mountComponent$1(
  8465. vm,
  8466. el,
  8467. hydrating
  8468. ) {
  8469. if (!vm.mpType) {//main.js 中的 new Vue
  8470. return vm
  8471. }
  8472. if (vm.mpType === 'app') {
  8473. vm.$options.render = createEmptyRender;
  8474. }
  8475. if (!vm.$options.render) {
  8476. vm.$options.render = createEmptyRender;
  8477. if (true) {
  8478. /* istanbul ignore if */
  8479. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8480. vm.$options.el || el) {
  8481. warn(
  8482. 'You are using the runtime-only build of Vue where the template ' +
  8483. 'compiler is not available. Either pre-compile the templates into ' +
  8484. 'render functions, or use the compiler-included build.',
  8485. vm
  8486. );
  8487. } else {
  8488. warn(
  8489. 'Failed to mount component: template or render function not defined.',
  8490. vm
  8491. );
  8492. }
  8493. }
  8494. }
  8495. !vm._$fallback && callHook(vm, 'beforeMount');
  8496. var updateComponent = function () {
  8497. vm._update(vm._render(), hydrating);
  8498. };
  8499. // we set this to vm._watcher inside the watcher's constructor
  8500. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8501. // component's mounted hook), which relies on vm._watcher being already defined
  8502. new Watcher(vm, updateComponent, noop, {
  8503. before: function before() {
  8504. if (vm._isMounted && !vm._isDestroyed) {
  8505. callHook(vm, 'beforeUpdate');
  8506. }
  8507. }
  8508. }, true /* isRenderWatcher */);
  8509. hydrating = false;
  8510. return vm
  8511. }
  8512. /* */
  8513. function renderClass (
  8514. staticClass,
  8515. dynamicClass
  8516. ) {
  8517. if (isDef(staticClass) || isDef(dynamicClass)) {
  8518. return concat(staticClass, stringifyClass(dynamicClass))
  8519. }
  8520. /* istanbul ignore next */
  8521. return ''
  8522. }
  8523. function concat (a, b) {
  8524. return a ? b ? (a + ' ' + b) : a : (b || '')
  8525. }
  8526. function stringifyClass (value) {
  8527. if (Array.isArray(value)) {
  8528. return stringifyArray(value)
  8529. }
  8530. if (isObject(value)) {
  8531. return stringifyObject(value)
  8532. }
  8533. if (typeof value === 'string') {
  8534. return value
  8535. }
  8536. /* istanbul ignore next */
  8537. return ''
  8538. }
  8539. function stringifyArray (value) {
  8540. var res = '';
  8541. var stringified;
  8542. for (var i = 0, l = value.length; i < l; i++) {
  8543. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8544. if (res) { res += ' '; }
  8545. res += stringified;
  8546. }
  8547. }
  8548. return res
  8549. }
  8550. function stringifyObject (value) {
  8551. var res = '';
  8552. for (var key in value) {
  8553. if (value[key]) {
  8554. if (res) { res += ' '; }
  8555. res += key;
  8556. }
  8557. }
  8558. return res
  8559. }
  8560. /* */
  8561. var parseStyleText = cached(function (cssText) {
  8562. var res = {};
  8563. var listDelimiter = /;(?![^(]*\))/g;
  8564. var propertyDelimiter = /:(.+)/;
  8565. cssText.split(listDelimiter).forEach(function (item) {
  8566. if (item) {
  8567. var tmp = item.split(propertyDelimiter);
  8568. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8569. }
  8570. });
  8571. return res
  8572. });
  8573. // normalize possible array / string values into Object
  8574. function normalizeStyleBinding (bindingStyle) {
  8575. if (Array.isArray(bindingStyle)) {
  8576. return toObject(bindingStyle)
  8577. }
  8578. if (typeof bindingStyle === 'string') {
  8579. return parseStyleText(bindingStyle)
  8580. }
  8581. return bindingStyle
  8582. }
  8583. /* */
  8584. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8585. function getTarget(obj, path) {
  8586. var parts = path.split('.');
  8587. var key = parts[0];
  8588. if (key.indexOf('__$n') === 0) { //number index
  8589. key = parseInt(key.replace('__$n', ''));
  8590. }
  8591. if (parts.length === 1) {
  8592. return obj[key]
  8593. }
  8594. return getTarget(obj[key], parts.slice(1).join('.'))
  8595. }
  8596. function internalMixin(Vue) {
  8597. Vue.config.errorHandler = function(err, vm, info) {
  8598. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8599. console.error(err);
  8600. /* eslint-disable no-undef */
  8601. var app = typeof getApp === 'function' && getApp();
  8602. if (app && app.onError) {
  8603. app.onError(err);
  8604. }
  8605. };
  8606. var oldEmit = Vue.prototype.$emit;
  8607. Vue.prototype.$emit = function(event) {
  8608. if (this.$scope && event) {
  8609. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8610. if (triggerEvent) {
  8611. try {
  8612. triggerEvent.call(this.$scope, event, {
  8613. __args__: toArray(arguments, 1)
  8614. });
  8615. } catch (error) {
  8616. }
  8617. }
  8618. }
  8619. return oldEmit.apply(this, arguments)
  8620. };
  8621. Vue.prototype.$nextTick = function(fn) {
  8622. return nextTick$1(this, fn)
  8623. };
  8624. MP_METHODS.forEach(function (method) {
  8625. Vue.prototype[method] = function(args) {
  8626. if (this.$scope && this.$scope[method]) {
  8627. return this.$scope[method](args)
  8628. }
  8629. // mp-alipay
  8630. if (typeof my === 'undefined') {
  8631. return
  8632. }
  8633. if (method === 'createSelectorQuery') {
  8634. /* eslint-disable no-undef */
  8635. return my.createSelectorQuery(args)
  8636. } else if (method === 'createIntersectionObserver') {
  8637. /* eslint-disable no-undef */
  8638. return my.createIntersectionObserver(args)
  8639. }
  8640. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8641. };
  8642. });
  8643. Vue.prototype.__init_provide = initProvide;
  8644. Vue.prototype.__init_injections = initInjections;
  8645. Vue.prototype.__call_hook = function(hook, args) {
  8646. var vm = this;
  8647. // #7573 disable dep collection when invoking lifecycle hooks
  8648. pushTarget();
  8649. var handlers = vm.$options[hook];
  8650. var info = hook + " hook";
  8651. var ret;
  8652. if (handlers) {
  8653. for (var i = 0, j = handlers.length; i < j; i++) {
  8654. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8655. }
  8656. }
  8657. if (vm._hasHookEvent) {
  8658. vm.$emit('hook:' + hook, args);
  8659. }
  8660. popTarget();
  8661. return ret
  8662. };
  8663. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8664. if (Array.isArray(modifiers)) {
  8665. if (modifiers.indexOf('trim') !== -1) {
  8666. value = value.trim();
  8667. }
  8668. if (modifiers.indexOf('number') !== -1) {
  8669. value = this._n(value);
  8670. }
  8671. }
  8672. if (!target) {
  8673. target = this;
  8674. }
  8675. // 解决动态属性添加
  8676. Vue.set(target, key, value);
  8677. };
  8678. Vue.prototype.__set_sync = function(target, key, value) {
  8679. if (!target) {
  8680. target = this;
  8681. }
  8682. // 解决动态属性添加
  8683. Vue.set(target, key, value);
  8684. };
  8685. Vue.prototype.__get_orig = function(item) {
  8686. if (isPlainObject(item)) {
  8687. return item['$orig'] || item
  8688. }
  8689. return item
  8690. };
  8691. Vue.prototype.__get_value = function(dataPath, target) {
  8692. return getTarget(target || this, dataPath)
  8693. };
  8694. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8695. return renderClass(staticClass, dynamicClass)
  8696. };
  8697. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8698. if (!dynamicStyle && !staticStyle) {
  8699. return ''
  8700. }
  8701. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8702. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8703. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8704. };
  8705. Vue.prototype.__map = function(val, iteratee) {
  8706. //TODO 暂不考虑 string
  8707. var ret, i, l, keys, key;
  8708. if (Array.isArray(val)) {
  8709. ret = new Array(val.length);
  8710. for (i = 0, l = val.length; i < l; i++) {
  8711. ret[i] = iteratee(val[i], i);
  8712. }
  8713. return ret
  8714. } else if (isObject(val)) {
  8715. keys = Object.keys(val);
  8716. ret = Object.create(null);
  8717. for (i = 0, l = keys.length; i < l; i++) {
  8718. key = keys[i];
  8719. ret[key] = iteratee(val[key], key, i);
  8720. }
  8721. return ret
  8722. } else if (typeof val === 'number') {
  8723. ret = new Array(val);
  8724. for (i = 0, l = val; i < l; i++) {
  8725. // 第一个参数暂时仍和小程序一致
  8726. ret[i] = iteratee(i, i);
  8727. }
  8728. return ret
  8729. }
  8730. return []
  8731. };
  8732. }
  8733. /* */
  8734. var LIFECYCLE_HOOKS$1 = [
  8735. //App
  8736. 'onLaunch',
  8737. 'onShow',
  8738. 'onHide',
  8739. 'onUniNViewMessage',
  8740. 'onPageNotFound',
  8741. 'onThemeChange',
  8742. 'onError',
  8743. 'onUnhandledRejection',
  8744. //Page
  8745. 'onInit',
  8746. 'onLoad',
  8747. // 'onShow',
  8748. 'onReady',
  8749. // 'onHide',
  8750. 'onUnload',
  8751. 'onPullDownRefresh',
  8752. 'onReachBottom',
  8753. 'onTabItemTap',
  8754. 'onAddToFavorites',
  8755. 'onShareTimeline',
  8756. 'onShareAppMessage',
  8757. 'onResize',
  8758. 'onPageScroll',
  8759. 'onNavigationBarButtonTap',
  8760. 'onBackPress',
  8761. 'onNavigationBarSearchInputChanged',
  8762. 'onNavigationBarSearchInputConfirmed',
  8763. 'onNavigationBarSearchInputClicked',
  8764. 'onUploadDouyinVideo',
  8765. 'onNFCReadMessage',
  8766. //Component
  8767. // 'onReady', // 兼容旧版本,应该移除该事件
  8768. 'onPageShow',
  8769. 'onPageHide',
  8770. 'onPageResize'
  8771. ];
  8772. function lifecycleMixin$1(Vue) {
  8773. //fixed vue-class-component
  8774. var oldExtend = Vue.extend;
  8775. Vue.extend = function(extendOptions) {
  8776. extendOptions = extendOptions || {};
  8777. var methods = extendOptions.methods;
  8778. if (methods) {
  8779. Object.keys(methods).forEach(function (methodName) {
  8780. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8781. extendOptions[methodName] = methods[methodName];
  8782. delete methods[methodName];
  8783. }
  8784. });
  8785. }
  8786. return oldExtend.call(this, extendOptions)
  8787. };
  8788. var strategies = Vue.config.optionMergeStrategies;
  8789. var mergeHook = strategies.created;
  8790. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8791. strategies[hook] = mergeHook;
  8792. });
  8793. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8794. }
  8795. /* */
  8796. // install platform patch function
  8797. Vue.prototype.__patch__ = patch;
  8798. // public mount method
  8799. Vue.prototype.$mount = function(
  8800. el ,
  8801. hydrating
  8802. ) {
  8803. return mountComponent$1(this, el, hydrating)
  8804. };
  8805. lifecycleMixin$1(Vue);
  8806. internalMixin(Vue);
  8807. /* */
  8808. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8809. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8810. /***/ }),
  8811. /* 26 */
  8812. /*!*************************************!*\
  8813. !*** D:/SWS_New/sws_new/pages.json ***!
  8814. \*************************************/
  8815. /*! no static exports found */
  8816. /***/ (function(module, exports) {
  8817. /***/ }),
  8818. /* 27 */,
  8819. /* 28 */,
  8820. /* 29 */,
  8821. /* 30 */,
  8822. /* 31 */,
  8823. /* 32 */
  8824. /*!**********************************************************************************************************!*\
  8825. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8826. \**********************************************************************************************************/
  8827. /*! exports provided: default */
  8828. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8829. "use strict";
  8830. __webpack_require__.r(__webpack_exports__);
  8831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8832. /* globals __VUE_SSR_CONTEXT__ */
  8833. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8834. // This module is a runtime utility for cleaner component module output and will
  8835. // be included in the final webpack user bundle.
  8836. function normalizeComponent (
  8837. scriptExports,
  8838. render,
  8839. staticRenderFns,
  8840. functionalTemplate,
  8841. injectStyles,
  8842. scopeId,
  8843. moduleIdentifier, /* server only */
  8844. shadowMode, /* vue-cli only */
  8845. components, // fixed by xxxxxx auto components
  8846. renderjs // fixed by xxxxxx renderjs
  8847. ) {
  8848. // Vue.extend constructor export interop
  8849. var options = typeof scriptExports === 'function'
  8850. ? scriptExports.options
  8851. : scriptExports
  8852. // fixed by xxxxxx auto components
  8853. if (components) {
  8854. if (!options.components) {
  8855. options.components = {}
  8856. }
  8857. var hasOwn = Object.prototype.hasOwnProperty
  8858. for (var name in components) {
  8859. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8860. options.components[name] = components[name]
  8861. }
  8862. }
  8863. }
  8864. // fixed by xxxxxx renderjs
  8865. if (renderjs) {
  8866. if(typeof renderjs.beforeCreate === 'function'){
  8867. renderjs.beforeCreate = [renderjs.beforeCreate]
  8868. }
  8869. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8870. this[renderjs.__module] = this
  8871. });
  8872. (options.mixins || (options.mixins = [])).push(renderjs)
  8873. }
  8874. // render functions
  8875. if (render) {
  8876. options.render = render
  8877. options.staticRenderFns = staticRenderFns
  8878. options._compiled = true
  8879. }
  8880. // functional template
  8881. if (functionalTemplate) {
  8882. options.functional = true
  8883. }
  8884. // scopedId
  8885. if (scopeId) {
  8886. options._scopeId = 'data-v-' + scopeId
  8887. }
  8888. var hook
  8889. if (moduleIdentifier) { // server build
  8890. hook = function (context) {
  8891. // 2.3 injection
  8892. context =
  8893. context || // cached call
  8894. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8895. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8896. // 2.2 with runInNewContext: true
  8897. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8898. context = __VUE_SSR_CONTEXT__
  8899. }
  8900. // inject component styles
  8901. if (injectStyles) {
  8902. injectStyles.call(this, context)
  8903. }
  8904. // register component module identifier for async chunk inferrence
  8905. if (context && context._registeredComponents) {
  8906. context._registeredComponents.add(moduleIdentifier)
  8907. }
  8908. }
  8909. // used by ssr in case component is cached and beforeCreate
  8910. // never gets called
  8911. options._ssrRegister = hook
  8912. } else if (injectStyles) {
  8913. hook = shadowMode
  8914. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8915. : injectStyles
  8916. }
  8917. if (hook) {
  8918. if (options.functional) {
  8919. // for template-only hot-reload because in that case the render fn doesn't
  8920. // go through the normalizer
  8921. options._injectStyles = hook
  8922. // register for functioal component in vue file
  8923. var originalRender = options.render
  8924. options.render = function renderWithStyleInjection (h, context) {
  8925. hook.call(context)
  8926. return originalRender(h, context)
  8927. }
  8928. } else {
  8929. // inject component registration as beforeCreate hook
  8930. var existing = options.beforeCreate
  8931. options.beforeCreate = existing
  8932. ? [].concat(existing, hook)
  8933. : [hook]
  8934. }
  8935. }
  8936. return {
  8937. exports: scriptExports,
  8938. options: options
  8939. }
  8940. }
  8941. /***/ }),
  8942. /* 33 */
  8943. /*!*****************************************!*\
  8944. !*** D:/SWS_New/sws_new/store/index.js ***!
  8945. \*****************************************/
  8946. /*! no static exports found */
  8947. /***/ (function(module, exports, __webpack_require__) {
  8948. "use strict";
  8949. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8950. Object.defineProperty(exports, "__esModule", {
  8951. value: true
  8952. });
  8953. exports.default = void 0;
  8954. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  8955. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 34));
  8956. var _data = _interopRequireDefault(__webpack_require__(/*! ./modules/data.js */ 35));
  8957. _vue.default.use(_vuex.default);
  8958. var _default = new _vuex.default.Store({
  8959. // export
  8960. modules: {
  8961. data: _data.default
  8962. }
  8963. });
  8964. exports.default = _default;
  8965. /***/ }),
  8966. /* 34 */
  8967. /*!**************************************************************************************!*\
  8968. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  8969. \**************************************************************************************/
  8970. /*! no static exports found */
  8971. /***/ (function(module, exports, __webpack_require__) {
  8972. "use strict";
  8973. /* WEBPACK VAR INJECTION */(function(global) {/*!
  8974. * vuex v3.6.2
  8975. * (c) 2021 Evan You
  8976. * @license MIT
  8977. */
  8978. function applyMixin (Vue) {
  8979. var version = Number(Vue.version.split('.')[0]);
  8980. if (version >= 2) {
  8981. Vue.mixin({ beforeCreate: vuexInit });
  8982. } else {
  8983. // override init and inject vuex init procedure
  8984. // for 1.x backwards compatibility.
  8985. var _init = Vue.prototype._init;
  8986. Vue.prototype._init = function (options) {
  8987. if ( options === void 0 ) options = {};
  8988. options.init = options.init
  8989. ? [vuexInit].concat(options.init)
  8990. : vuexInit;
  8991. _init.call(this, options);
  8992. };
  8993. }
  8994. /**
  8995. * Vuex init hook, injected into each instances init hooks list.
  8996. */
  8997. function vuexInit () {
  8998. var options = this.$options;
  8999. // store injection
  9000. if (options.store) {
  9001. this.$store = typeof options.store === 'function'
  9002. ? options.store()
  9003. : options.store;
  9004. } else if (options.parent && options.parent.$store) {
  9005. this.$store = options.parent.$store;
  9006. }
  9007. }
  9008. }
  9009. var target = typeof window !== 'undefined'
  9010. ? window
  9011. : typeof global !== 'undefined'
  9012. ? global
  9013. : {};
  9014. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  9015. function devtoolPlugin (store) {
  9016. if (!devtoolHook) { return }
  9017. store._devtoolHook = devtoolHook;
  9018. devtoolHook.emit('vuex:init', store);
  9019. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  9020. store.replaceState(targetState);
  9021. });
  9022. store.subscribe(function (mutation, state) {
  9023. devtoolHook.emit('vuex:mutation', mutation, state);
  9024. }, { prepend: true });
  9025. store.subscribeAction(function (action, state) {
  9026. devtoolHook.emit('vuex:action', action, state);
  9027. }, { prepend: true });
  9028. }
  9029. /**
  9030. * Get the first item that pass the test
  9031. * by second argument function
  9032. *
  9033. * @param {Array} list
  9034. * @param {Function} f
  9035. * @return {*}
  9036. */
  9037. function find (list, f) {
  9038. return list.filter(f)[0]
  9039. }
  9040. /**
  9041. * Deep copy the given object considering circular structure.
  9042. * This function caches all nested objects and its copies.
  9043. * If it detects circular structure, use cached copy to avoid infinite loop.
  9044. *
  9045. * @param {*} obj
  9046. * @param {Array<Object>} cache
  9047. * @return {*}
  9048. */
  9049. function deepCopy (obj, cache) {
  9050. if ( cache === void 0 ) cache = [];
  9051. // just return if obj is immutable value
  9052. if (obj === null || typeof obj !== 'object') {
  9053. return obj
  9054. }
  9055. // if obj is hit, it is in circular structure
  9056. var hit = find(cache, function (c) { return c.original === obj; });
  9057. if (hit) {
  9058. return hit.copy
  9059. }
  9060. var copy = Array.isArray(obj) ? [] : {};
  9061. // put the copy into cache at first
  9062. // because we want to refer it in recursive deepCopy
  9063. cache.push({
  9064. original: obj,
  9065. copy: copy
  9066. });
  9067. Object.keys(obj).forEach(function (key) {
  9068. copy[key] = deepCopy(obj[key], cache);
  9069. });
  9070. return copy
  9071. }
  9072. /**
  9073. * forEach for object
  9074. */
  9075. function forEachValue (obj, fn) {
  9076. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  9077. }
  9078. function isObject (obj) {
  9079. return obj !== null && typeof obj === 'object'
  9080. }
  9081. function isPromise (val) {
  9082. return val && typeof val.then === 'function'
  9083. }
  9084. function assert (condition, msg) {
  9085. if (!condition) { throw new Error(("[vuex] " + msg)) }
  9086. }
  9087. function partial (fn, arg) {
  9088. return function () {
  9089. return fn(arg)
  9090. }
  9091. }
  9092. // Base data struct for store's module, package with some attribute and method
  9093. var Module = function Module (rawModule, runtime) {
  9094. this.runtime = runtime;
  9095. // Store some children item
  9096. this._children = Object.create(null);
  9097. // Store the origin module object which passed by programmer
  9098. this._rawModule = rawModule;
  9099. var rawState = rawModule.state;
  9100. // Store the origin module's state
  9101. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  9102. };
  9103. var prototypeAccessors = { namespaced: { configurable: true } };
  9104. prototypeAccessors.namespaced.get = function () {
  9105. return !!this._rawModule.namespaced
  9106. };
  9107. Module.prototype.addChild = function addChild (key, module) {
  9108. this._children[key] = module;
  9109. };
  9110. Module.prototype.removeChild = function removeChild (key) {
  9111. delete this._children[key];
  9112. };
  9113. Module.prototype.getChild = function getChild (key) {
  9114. return this._children[key]
  9115. };
  9116. Module.prototype.hasChild = function hasChild (key) {
  9117. return key in this._children
  9118. };
  9119. Module.prototype.update = function update (rawModule) {
  9120. this._rawModule.namespaced = rawModule.namespaced;
  9121. if (rawModule.actions) {
  9122. this._rawModule.actions = rawModule.actions;
  9123. }
  9124. if (rawModule.mutations) {
  9125. this._rawModule.mutations = rawModule.mutations;
  9126. }
  9127. if (rawModule.getters) {
  9128. this._rawModule.getters = rawModule.getters;
  9129. }
  9130. };
  9131. Module.prototype.forEachChild = function forEachChild (fn) {
  9132. forEachValue(this._children, fn);
  9133. };
  9134. Module.prototype.forEachGetter = function forEachGetter (fn) {
  9135. if (this._rawModule.getters) {
  9136. forEachValue(this._rawModule.getters, fn);
  9137. }
  9138. };
  9139. Module.prototype.forEachAction = function forEachAction (fn) {
  9140. if (this._rawModule.actions) {
  9141. forEachValue(this._rawModule.actions, fn);
  9142. }
  9143. };
  9144. Module.prototype.forEachMutation = function forEachMutation (fn) {
  9145. if (this._rawModule.mutations) {
  9146. forEachValue(this._rawModule.mutations, fn);
  9147. }
  9148. };
  9149. Object.defineProperties( Module.prototype, prototypeAccessors );
  9150. var ModuleCollection = function ModuleCollection (rawRootModule) {
  9151. // register root module (Vuex.Store options)
  9152. this.register([], rawRootModule, false);
  9153. };
  9154. ModuleCollection.prototype.get = function get (path) {
  9155. return path.reduce(function (module, key) {
  9156. return module.getChild(key)
  9157. }, this.root)
  9158. };
  9159. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  9160. var module = this.root;
  9161. return path.reduce(function (namespace, key) {
  9162. module = module.getChild(key);
  9163. return namespace + (module.namespaced ? key + '/' : '')
  9164. }, '')
  9165. };
  9166. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  9167. update([], this.root, rawRootModule);
  9168. };
  9169. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  9170. var this$1 = this;
  9171. if ( runtime === void 0 ) runtime = true;
  9172. if ((true)) {
  9173. assertRawModule(path, rawModule);
  9174. }
  9175. var newModule = new Module(rawModule, runtime);
  9176. if (path.length === 0) {
  9177. this.root = newModule;
  9178. } else {
  9179. var parent = this.get(path.slice(0, -1));
  9180. parent.addChild(path[path.length - 1], newModule);
  9181. }
  9182. // register nested modules
  9183. if (rawModule.modules) {
  9184. forEachValue(rawModule.modules, function (rawChildModule, key) {
  9185. this$1.register(path.concat(key), rawChildModule, runtime);
  9186. });
  9187. }
  9188. };
  9189. ModuleCollection.prototype.unregister = function unregister (path) {
  9190. var parent = this.get(path.slice(0, -1));
  9191. var key = path[path.length - 1];
  9192. var child = parent.getChild(key);
  9193. if (!child) {
  9194. if ((true)) {
  9195. console.warn(
  9196. "[vuex] trying to unregister module '" + key + "', which is " +
  9197. "not registered"
  9198. );
  9199. }
  9200. return
  9201. }
  9202. if (!child.runtime) {
  9203. return
  9204. }
  9205. parent.removeChild(key);
  9206. };
  9207. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  9208. var parent = this.get(path.slice(0, -1));
  9209. var key = path[path.length - 1];
  9210. if (parent) {
  9211. return parent.hasChild(key)
  9212. }
  9213. return false
  9214. };
  9215. function update (path, targetModule, newModule) {
  9216. if ((true)) {
  9217. assertRawModule(path, newModule);
  9218. }
  9219. // update target module
  9220. targetModule.update(newModule);
  9221. // update nested modules
  9222. if (newModule.modules) {
  9223. for (var key in newModule.modules) {
  9224. if (!targetModule.getChild(key)) {
  9225. if ((true)) {
  9226. console.warn(
  9227. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  9228. 'manual reload is needed'
  9229. );
  9230. }
  9231. return
  9232. }
  9233. update(
  9234. path.concat(key),
  9235. targetModule.getChild(key),
  9236. newModule.modules[key]
  9237. );
  9238. }
  9239. }
  9240. }
  9241. var functionAssert = {
  9242. assert: function (value) { return typeof value === 'function'; },
  9243. expected: 'function'
  9244. };
  9245. var objectAssert = {
  9246. assert: function (value) { return typeof value === 'function' ||
  9247. (typeof value === 'object' && typeof value.handler === 'function'); },
  9248. expected: 'function or object with "handler" function'
  9249. };
  9250. var assertTypes = {
  9251. getters: functionAssert,
  9252. mutations: functionAssert,
  9253. actions: objectAssert
  9254. };
  9255. function assertRawModule (path, rawModule) {
  9256. Object.keys(assertTypes).forEach(function (key) {
  9257. if (!rawModule[key]) { return }
  9258. var assertOptions = assertTypes[key];
  9259. forEachValue(rawModule[key], function (value, type) {
  9260. assert(
  9261. assertOptions.assert(value),
  9262. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  9263. );
  9264. });
  9265. });
  9266. }
  9267. function makeAssertionMessage (path, key, type, value, expected) {
  9268. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  9269. if (path.length > 0) {
  9270. buf += " in module \"" + (path.join('.')) + "\"";
  9271. }
  9272. buf += " is " + (JSON.stringify(value)) + ".";
  9273. return buf
  9274. }
  9275. var Vue; // bind on install
  9276. var Store = function Store (options) {
  9277. var this$1 = this;
  9278. if ( options === void 0 ) options = {};
  9279. // Auto install if it is not done yet and `window` has `Vue`.
  9280. // To allow users to avoid auto-installation in some cases,
  9281. // this code should be placed here. See #731
  9282. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  9283. install(window.Vue);
  9284. }
  9285. if ((true)) {
  9286. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  9287. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  9288. assert(this instanceof Store, "store must be called with the new operator.");
  9289. }
  9290. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  9291. var strict = options.strict; if ( strict === void 0 ) strict = false;
  9292. // store internal state
  9293. this._committing = false;
  9294. this._actions = Object.create(null);
  9295. this._actionSubscribers = [];
  9296. this._mutations = Object.create(null);
  9297. this._wrappedGetters = Object.create(null);
  9298. this._modules = new ModuleCollection(options);
  9299. this._modulesNamespaceMap = Object.create(null);
  9300. this._subscribers = [];
  9301. this._watcherVM = new Vue();
  9302. this._makeLocalGettersCache = Object.create(null);
  9303. // bind commit and dispatch to self
  9304. var store = this;
  9305. var ref = this;
  9306. var dispatch = ref.dispatch;
  9307. var commit = ref.commit;
  9308. this.dispatch = function boundDispatch (type, payload) {
  9309. return dispatch.call(store, type, payload)
  9310. };
  9311. this.commit = function boundCommit (type, payload, options) {
  9312. return commit.call(store, type, payload, options)
  9313. };
  9314. // strict mode
  9315. this.strict = strict;
  9316. var state = this._modules.root.state;
  9317. // init root module.
  9318. // this also recursively registers all sub-modules
  9319. // and collects all module getters inside this._wrappedGetters
  9320. installModule(this, state, [], this._modules.root);
  9321. // initialize the store vm, which is responsible for the reactivity
  9322. // (also registers _wrappedGetters as computed properties)
  9323. resetStoreVM(this, state);
  9324. // apply plugins
  9325. plugins.forEach(function (plugin) { return plugin(this$1); });
  9326. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  9327. if (useDevtools) {
  9328. devtoolPlugin(this);
  9329. }
  9330. };
  9331. var prototypeAccessors$1 = { state: { configurable: true } };
  9332. prototypeAccessors$1.state.get = function () {
  9333. return this._vm._data.$$state
  9334. };
  9335. prototypeAccessors$1.state.set = function (v) {
  9336. if ((true)) {
  9337. assert(false, "use store.replaceState() to explicit replace store state.");
  9338. }
  9339. };
  9340. Store.prototype.commit = function commit (_type, _payload, _options) {
  9341. var this$1 = this;
  9342. // check object-style commit
  9343. var ref = unifyObjectStyle(_type, _payload, _options);
  9344. var type = ref.type;
  9345. var payload = ref.payload;
  9346. var options = ref.options;
  9347. var mutation = { type: type, payload: payload };
  9348. var entry = this._mutations[type];
  9349. if (!entry) {
  9350. if ((true)) {
  9351. console.error(("[vuex] unknown mutation type: " + type));
  9352. }
  9353. return
  9354. }
  9355. this._withCommit(function () {
  9356. entry.forEach(function commitIterator (handler) {
  9357. handler(payload);
  9358. });
  9359. });
  9360. this._subscribers
  9361. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  9362. .forEach(function (sub) { return sub(mutation, this$1.state); });
  9363. if (
  9364. ( true) &&
  9365. options && options.silent
  9366. ) {
  9367. console.warn(
  9368. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  9369. 'Use the filter functionality in the vue-devtools'
  9370. );
  9371. }
  9372. };
  9373. Store.prototype.dispatch = function dispatch (_type, _payload) {
  9374. var this$1 = this;
  9375. // check object-style dispatch
  9376. var ref = unifyObjectStyle(_type, _payload);
  9377. var type = ref.type;
  9378. var payload = ref.payload;
  9379. var action = { type: type, payload: payload };
  9380. var entry = this._actions[type];
  9381. if (!entry) {
  9382. if ((true)) {
  9383. console.error(("[vuex] unknown action type: " + type));
  9384. }
  9385. return
  9386. }
  9387. try {
  9388. this._actionSubscribers
  9389. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  9390. .filter(function (sub) { return sub.before; })
  9391. .forEach(function (sub) { return sub.before(action, this$1.state); });
  9392. } catch (e) {
  9393. if ((true)) {
  9394. console.warn("[vuex] error in before action subscribers: ");
  9395. console.error(e);
  9396. }
  9397. }
  9398. var result = entry.length > 1
  9399. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  9400. : entry[0](payload);
  9401. return new Promise(function (resolve, reject) {
  9402. result.then(function (res) {
  9403. try {
  9404. this$1._actionSubscribers
  9405. .filter(function (sub) { return sub.after; })
  9406. .forEach(function (sub) { return sub.after(action, this$1.state); });
  9407. } catch (e) {
  9408. if ((true)) {
  9409. console.warn("[vuex] error in after action subscribers: ");
  9410. console.error(e);
  9411. }
  9412. }
  9413. resolve(res);
  9414. }, function (error) {
  9415. try {
  9416. this$1._actionSubscribers
  9417. .filter(function (sub) { return sub.error; })
  9418. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  9419. } catch (e) {
  9420. if ((true)) {
  9421. console.warn("[vuex] error in error action subscribers: ");
  9422. console.error(e);
  9423. }
  9424. }
  9425. reject(error);
  9426. });
  9427. })
  9428. };
  9429. Store.prototype.subscribe = function subscribe (fn, options) {
  9430. return genericSubscribe(fn, this._subscribers, options)
  9431. };
  9432. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  9433. var subs = typeof fn === 'function' ? { before: fn } : fn;
  9434. return genericSubscribe(subs, this._actionSubscribers, options)
  9435. };
  9436. Store.prototype.watch = function watch (getter, cb, options) {
  9437. var this$1 = this;
  9438. if ((true)) {
  9439. assert(typeof getter === 'function', "store.watch only accepts a function.");
  9440. }
  9441. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  9442. };
  9443. Store.prototype.replaceState = function replaceState (state) {
  9444. var this$1 = this;
  9445. this._withCommit(function () {
  9446. this$1._vm._data.$$state = state;
  9447. });
  9448. };
  9449. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  9450. if ( options === void 0 ) options = {};
  9451. if (typeof path === 'string') { path = [path]; }
  9452. if ((true)) {
  9453. assert(Array.isArray(path), "module path must be a string or an Array.");
  9454. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  9455. }
  9456. this._modules.register(path, rawModule);
  9457. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  9458. // reset store to update getters...
  9459. resetStoreVM(this, this.state);
  9460. };
  9461. Store.prototype.unregisterModule = function unregisterModule (path) {
  9462. var this$1 = this;
  9463. if (typeof path === 'string') { path = [path]; }
  9464. if ((true)) {
  9465. assert(Array.isArray(path), "module path must be a string or an Array.");
  9466. }
  9467. this._modules.unregister(path);
  9468. this._withCommit(function () {
  9469. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  9470. Vue.delete(parentState, path[path.length - 1]);
  9471. });
  9472. resetStore(this);
  9473. };
  9474. Store.prototype.hasModule = function hasModule (path) {
  9475. if (typeof path === 'string') { path = [path]; }
  9476. if ((true)) {
  9477. assert(Array.isArray(path), "module path must be a string or an Array.");
  9478. }
  9479. return this._modules.isRegistered(path)
  9480. };
  9481. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  9482. this._modules.update(newOptions);
  9483. resetStore(this, true);
  9484. };
  9485. Store.prototype._withCommit = function _withCommit (fn) {
  9486. var committing = this._committing;
  9487. this._committing = true;
  9488. fn();
  9489. this._committing = committing;
  9490. };
  9491. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  9492. function genericSubscribe (fn, subs, options) {
  9493. if (subs.indexOf(fn) < 0) {
  9494. options && options.prepend
  9495. ? subs.unshift(fn)
  9496. : subs.push(fn);
  9497. }
  9498. return function () {
  9499. var i = subs.indexOf(fn);
  9500. if (i > -1) {
  9501. subs.splice(i, 1);
  9502. }
  9503. }
  9504. }
  9505. function resetStore (store, hot) {
  9506. store._actions = Object.create(null);
  9507. store._mutations = Object.create(null);
  9508. store._wrappedGetters = Object.create(null);
  9509. store._modulesNamespaceMap = Object.create(null);
  9510. var state = store.state;
  9511. // init all modules
  9512. installModule(store, state, [], store._modules.root, true);
  9513. // reset vm
  9514. resetStoreVM(store, state, hot);
  9515. }
  9516. function resetStoreVM (store, state, hot) {
  9517. var oldVm = store._vm;
  9518. // bind store public getters
  9519. store.getters = {};
  9520. // reset local getters cache
  9521. store._makeLocalGettersCache = Object.create(null);
  9522. var wrappedGetters = store._wrappedGetters;
  9523. var computed = {};
  9524. forEachValue(wrappedGetters, function (fn, key) {
  9525. // use computed to leverage its lazy-caching mechanism
  9526. // direct inline function use will lead to closure preserving oldVm.
  9527. // using partial to return function with only arguments preserved in closure environment.
  9528. computed[key] = partial(fn, store);
  9529. Object.defineProperty(store.getters, key, {
  9530. get: function () { return store._vm[key]; },
  9531. enumerable: true // for local getters
  9532. });
  9533. });
  9534. // use a Vue instance to store the state tree
  9535. // suppress warnings just in case the user has added
  9536. // some funky global mixins
  9537. var silent = Vue.config.silent;
  9538. Vue.config.silent = true;
  9539. store._vm = new Vue({
  9540. data: {
  9541. $$state: state
  9542. },
  9543. computed: computed
  9544. });
  9545. Vue.config.silent = silent;
  9546. // enable strict mode for new vm
  9547. if (store.strict) {
  9548. enableStrictMode(store);
  9549. }
  9550. if (oldVm) {
  9551. if (hot) {
  9552. // dispatch changes in all subscribed watchers
  9553. // to force getter re-evaluation for hot reloading.
  9554. store._withCommit(function () {
  9555. oldVm._data.$$state = null;
  9556. });
  9557. }
  9558. Vue.nextTick(function () { return oldVm.$destroy(); });
  9559. }
  9560. }
  9561. function installModule (store, rootState, path, module, hot) {
  9562. var isRoot = !path.length;
  9563. var namespace = store._modules.getNamespace(path);
  9564. // register in namespace map
  9565. if (module.namespaced) {
  9566. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  9567. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  9568. }
  9569. store._modulesNamespaceMap[namespace] = module;
  9570. }
  9571. // set state
  9572. if (!isRoot && !hot) {
  9573. var parentState = getNestedState(rootState, path.slice(0, -1));
  9574. var moduleName = path[path.length - 1];
  9575. store._withCommit(function () {
  9576. if ((true)) {
  9577. if (moduleName in parentState) {
  9578. console.warn(
  9579. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  9580. );
  9581. }
  9582. }
  9583. Vue.set(parentState, moduleName, module.state);
  9584. });
  9585. }
  9586. var local = module.context = makeLocalContext(store, namespace, path);
  9587. module.forEachMutation(function (mutation, key) {
  9588. var namespacedType = namespace + key;
  9589. registerMutation(store, namespacedType, mutation, local);
  9590. });
  9591. module.forEachAction(function (action, key) {
  9592. var type = action.root ? key : namespace + key;
  9593. var handler = action.handler || action;
  9594. registerAction(store, type, handler, local);
  9595. });
  9596. module.forEachGetter(function (getter, key) {
  9597. var namespacedType = namespace + key;
  9598. registerGetter(store, namespacedType, getter, local);
  9599. });
  9600. module.forEachChild(function (child, key) {
  9601. installModule(store, rootState, path.concat(key), child, hot);
  9602. });
  9603. }
  9604. /**
  9605. * make localized dispatch, commit, getters and state
  9606. * if there is no namespace, just use root ones
  9607. */
  9608. function makeLocalContext (store, namespace, path) {
  9609. var noNamespace = namespace === '';
  9610. var local = {
  9611. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  9612. var args = unifyObjectStyle(_type, _payload, _options);
  9613. var payload = args.payload;
  9614. var options = args.options;
  9615. var type = args.type;
  9616. if (!options || !options.root) {
  9617. type = namespace + type;
  9618. if (( true) && !store._actions[type]) {
  9619. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  9620. return
  9621. }
  9622. }
  9623. return store.dispatch(type, payload)
  9624. },
  9625. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  9626. var args = unifyObjectStyle(_type, _payload, _options);
  9627. var payload = args.payload;
  9628. var options = args.options;
  9629. var type = args.type;
  9630. if (!options || !options.root) {
  9631. type = namespace + type;
  9632. if (( true) && !store._mutations[type]) {
  9633. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  9634. return
  9635. }
  9636. }
  9637. store.commit(type, payload, options);
  9638. }
  9639. };
  9640. // getters and state object must be gotten lazily
  9641. // because they will be changed by vm update
  9642. Object.defineProperties(local, {
  9643. getters: {
  9644. get: noNamespace
  9645. ? function () { return store.getters; }
  9646. : function () { return makeLocalGetters(store, namespace); }
  9647. },
  9648. state: {
  9649. get: function () { return getNestedState(store.state, path); }
  9650. }
  9651. });
  9652. return local
  9653. }
  9654. function makeLocalGetters (store, namespace) {
  9655. if (!store._makeLocalGettersCache[namespace]) {
  9656. var gettersProxy = {};
  9657. var splitPos = namespace.length;
  9658. Object.keys(store.getters).forEach(function (type) {
  9659. // skip if the target getter is not match this namespace
  9660. if (type.slice(0, splitPos) !== namespace) { return }
  9661. // extract local getter type
  9662. var localType = type.slice(splitPos);
  9663. // Add a port to the getters proxy.
  9664. // Define as getter property because
  9665. // we do not want to evaluate the getters in this time.
  9666. Object.defineProperty(gettersProxy, localType, {
  9667. get: function () { return store.getters[type]; },
  9668. enumerable: true
  9669. });
  9670. });
  9671. store._makeLocalGettersCache[namespace] = gettersProxy;
  9672. }
  9673. return store._makeLocalGettersCache[namespace]
  9674. }
  9675. function registerMutation (store, type, handler, local) {
  9676. var entry = store._mutations[type] || (store._mutations[type] = []);
  9677. entry.push(function wrappedMutationHandler (payload) {
  9678. handler.call(store, local.state, payload);
  9679. });
  9680. }
  9681. function registerAction (store, type, handler, local) {
  9682. var entry = store._actions[type] || (store._actions[type] = []);
  9683. entry.push(function wrappedActionHandler (payload) {
  9684. var res = handler.call(store, {
  9685. dispatch: local.dispatch,
  9686. commit: local.commit,
  9687. getters: local.getters,
  9688. state: local.state,
  9689. rootGetters: store.getters,
  9690. rootState: store.state
  9691. }, payload);
  9692. if (!isPromise(res)) {
  9693. res = Promise.resolve(res);
  9694. }
  9695. if (store._devtoolHook) {
  9696. return res.catch(function (err) {
  9697. store._devtoolHook.emit('vuex:error', err);
  9698. throw err
  9699. })
  9700. } else {
  9701. return res
  9702. }
  9703. });
  9704. }
  9705. function registerGetter (store, type, rawGetter, local) {
  9706. if (store._wrappedGetters[type]) {
  9707. if ((true)) {
  9708. console.error(("[vuex] duplicate getter key: " + type));
  9709. }
  9710. return
  9711. }
  9712. store._wrappedGetters[type] = function wrappedGetter (store) {
  9713. return rawGetter(
  9714. local.state, // local state
  9715. local.getters, // local getters
  9716. store.state, // root state
  9717. store.getters // root getters
  9718. )
  9719. };
  9720. }
  9721. function enableStrictMode (store) {
  9722. store._vm.$watch(function () { return this._data.$$state }, function () {
  9723. if ((true)) {
  9724. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  9725. }
  9726. }, { deep: true, sync: true });
  9727. }
  9728. function getNestedState (state, path) {
  9729. return path.reduce(function (state, key) { return state[key]; }, state)
  9730. }
  9731. function unifyObjectStyle (type, payload, options) {
  9732. if (isObject(type) && type.type) {
  9733. options = payload;
  9734. payload = type;
  9735. type = type.type;
  9736. }
  9737. if ((true)) {
  9738. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  9739. }
  9740. return { type: type, payload: payload, options: options }
  9741. }
  9742. function install (_Vue) {
  9743. if (Vue && _Vue === Vue) {
  9744. if ((true)) {
  9745. console.error(
  9746. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  9747. );
  9748. }
  9749. return
  9750. }
  9751. Vue = _Vue;
  9752. applyMixin(Vue);
  9753. }
  9754. /**
  9755. * Reduce the code which written in Vue.js for getting the state.
  9756. * @param {String} [namespace] - Module's namespace
  9757. * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
  9758. * @param {Object}
  9759. */
  9760. var mapState = normalizeNamespace(function (namespace, states) {
  9761. var res = {};
  9762. if (( true) && !isValidMap(states)) {
  9763. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  9764. }
  9765. normalizeMap(states).forEach(function (ref) {
  9766. var key = ref.key;
  9767. var val = ref.val;
  9768. res[key] = function mappedState () {
  9769. var state = this.$store.state;
  9770. var getters = this.$store.getters;
  9771. if (namespace) {
  9772. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  9773. if (!module) {
  9774. return
  9775. }
  9776. state = module.context.state;
  9777. getters = module.context.getters;
  9778. }
  9779. return typeof val === 'function'
  9780. ? val.call(this, state, getters)
  9781. : state[val]
  9782. };
  9783. // mark vuex getter for devtools
  9784. res[key].vuex = true;
  9785. });
  9786. return res
  9787. });
  9788. /**
  9789. * Reduce the code which written in Vue.js for committing the mutation
  9790. * @param {String} [namespace] - Module's namespace
  9791. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  9792. * @return {Object}
  9793. */
  9794. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  9795. var res = {};
  9796. if (( true) && !isValidMap(mutations)) {
  9797. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  9798. }
  9799. normalizeMap(mutations).forEach(function (ref) {
  9800. var key = ref.key;
  9801. var val = ref.val;
  9802. res[key] = function mappedMutation () {
  9803. var args = [], len = arguments.length;
  9804. while ( len-- ) args[ len ] = arguments[ len ];
  9805. // Get the commit method from store
  9806. var commit = this.$store.commit;
  9807. if (namespace) {
  9808. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  9809. if (!module) {
  9810. return
  9811. }
  9812. commit = module.context.commit;
  9813. }
  9814. return typeof val === 'function'
  9815. ? val.apply(this, [commit].concat(args))
  9816. : commit.apply(this.$store, [val].concat(args))
  9817. };
  9818. });
  9819. return res
  9820. });
  9821. /**
  9822. * Reduce the code which written in Vue.js for getting the getters
  9823. * @param {String} [namespace] - Module's namespace
  9824. * @param {Object|Array} getters
  9825. * @return {Object}
  9826. */
  9827. var mapGetters = normalizeNamespace(function (namespace, getters) {
  9828. var res = {};
  9829. if (( true) && !isValidMap(getters)) {
  9830. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  9831. }
  9832. normalizeMap(getters).forEach(function (ref) {
  9833. var key = ref.key;
  9834. var val = ref.val;
  9835. // The namespace has been mutated by normalizeNamespace
  9836. val = namespace + val;
  9837. res[key] = function mappedGetter () {
  9838. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  9839. return
  9840. }
  9841. if (( true) && !(val in this.$store.getters)) {
  9842. console.error(("[vuex] unknown getter: " + val));
  9843. return
  9844. }
  9845. return this.$store.getters[val]
  9846. };
  9847. // mark vuex getter for devtools
  9848. res[key].vuex = true;
  9849. });
  9850. return res
  9851. });
  9852. /**
  9853. * Reduce the code which written in Vue.js for dispatch the action
  9854. * @param {String} [namespace] - Module's namespace
  9855. * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  9856. * @return {Object}
  9857. */
  9858. var mapActions = normalizeNamespace(function (namespace, actions) {
  9859. var res = {};
  9860. if (( true) && !isValidMap(actions)) {
  9861. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  9862. }
  9863. normalizeMap(actions).forEach(function (ref) {
  9864. var key = ref.key;
  9865. var val = ref.val;
  9866. res[key] = function mappedAction () {
  9867. var args = [], len = arguments.length;
  9868. while ( len-- ) args[ len ] = arguments[ len ];
  9869. // get dispatch function from store
  9870. var dispatch = this.$store.dispatch;
  9871. if (namespace) {
  9872. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  9873. if (!module) {
  9874. return
  9875. }
  9876. dispatch = module.context.dispatch;
  9877. }
  9878. return typeof val === 'function'
  9879. ? val.apply(this, [dispatch].concat(args))
  9880. : dispatch.apply(this.$store, [val].concat(args))
  9881. };
  9882. });
  9883. return res
  9884. });
  9885. /**
  9886. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  9887. * @param {String} namespace
  9888. * @return {Object}
  9889. */
  9890. var createNamespacedHelpers = function (namespace) { return ({
  9891. mapState: mapState.bind(null, namespace),
  9892. mapGetters: mapGetters.bind(null, namespace),
  9893. mapMutations: mapMutations.bind(null, namespace),
  9894. mapActions: mapActions.bind(null, namespace)
  9895. }); };
  9896. /**
  9897. * Normalize the map
  9898. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  9899. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  9900. * @param {Array|Object} map
  9901. * @return {Object}
  9902. */
  9903. function normalizeMap (map) {
  9904. if (!isValidMap(map)) {
  9905. return []
  9906. }
  9907. return Array.isArray(map)
  9908. ? map.map(function (key) { return ({ key: key, val: key }); })
  9909. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  9910. }
  9911. /**
  9912. * Validate whether given map is valid or not
  9913. * @param {*} map
  9914. * @return {Boolean}
  9915. */
  9916. function isValidMap (map) {
  9917. return Array.isArray(map) || isObject(map)
  9918. }
  9919. /**
  9920. * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
  9921. * @param {Function} fn
  9922. * @return {Function}
  9923. */
  9924. function normalizeNamespace (fn) {
  9925. return function (namespace, map) {
  9926. if (typeof namespace !== 'string') {
  9927. map = namespace;
  9928. namespace = '';
  9929. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  9930. namespace += '/';
  9931. }
  9932. return fn(namespace, map)
  9933. }
  9934. }
  9935. /**
  9936. * Search a special module from store by namespace. if module not exist, print error message.
  9937. * @param {Object} store
  9938. * @param {String} helper
  9939. * @param {String} namespace
  9940. * @return {Object}
  9941. */
  9942. function getModuleByNamespace (store, helper, namespace) {
  9943. var module = store._modulesNamespaceMap[namespace];
  9944. if (( true) && !module) {
  9945. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  9946. }
  9947. return module
  9948. }
  9949. // Credits: borrowed code from fcomb/redux-logger
  9950. function createLogger (ref) {
  9951. if ( ref === void 0 ) ref = {};
  9952. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  9953. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  9954. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  9955. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  9956. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  9957. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  9958. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  9959. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  9960. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  9961. return function (store) {
  9962. var prevState = deepCopy(store.state);
  9963. if (typeof logger === 'undefined') {
  9964. return
  9965. }
  9966. if (logMutations) {
  9967. store.subscribe(function (mutation, state) {
  9968. var nextState = deepCopy(state);
  9969. if (filter(mutation, prevState, nextState)) {
  9970. var formattedTime = getFormattedTime();
  9971. var formattedMutation = mutationTransformer(mutation);
  9972. var message = "mutation " + (mutation.type) + formattedTime;
  9973. startMessage(logger, message, collapsed);
  9974. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  9975. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  9976. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  9977. endMessage(logger);
  9978. }
  9979. prevState = nextState;
  9980. });
  9981. }
  9982. if (logActions) {
  9983. store.subscribeAction(function (action, state) {
  9984. if (actionFilter(action, state)) {
  9985. var formattedTime = getFormattedTime();
  9986. var formattedAction = actionTransformer(action);
  9987. var message = "action " + (action.type) + formattedTime;
  9988. startMessage(logger, message, collapsed);
  9989. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  9990. endMessage(logger);
  9991. }
  9992. });
  9993. }
  9994. }
  9995. }
  9996. function startMessage (logger, message, collapsed) {
  9997. var startMessage = collapsed
  9998. ? logger.groupCollapsed
  9999. : logger.group;
  10000. // render
  10001. try {
  10002. startMessage.call(logger, message);
  10003. } catch (e) {
  10004. logger.log(message);
  10005. }
  10006. }
  10007. function endMessage (logger) {
  10008. try {
  10009. logger.groupEnd();
  10010. } catch (e) {
  10011. logger.log('—— log end ——');
  10012. }
  10013. }
  10014. function getFormattedTime () {
  10015. var time = new Date();
  10016. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  10017. }
  10018. function repeat (str, times) {
  10019. return (new Array(times + 1)).join(str)
  10020. }
  10021. function pad (num, maxLength) {
  10022. return repeat('0', maxLength - num.toString().length) + num
  10023. }
  10024. var index_cjs = {
  10025. Store: Store,
  10026. install: install,
  10027. version: '3.6.2',
  10028. mapState: mapState,
  10029. mapMutations: mapMutations,
  10030. mapGetters: mapGetters,
  10031. mapActions: mapActions,
  10032. createNamespacedHelpers: createNamespacedHelpers,
  10033. createLogger: createLogger
  10034. };
  10035. module.exports = index_cjs;
  10036. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  10037. /***/ }),
  10038. /* 35 */
  10039. /*!************************************************!*\
  10040. !*** D:/SWS_New/sws_new/store/modules/data.js ***!
  10041. \************************************************/
  10042. /*! no static exports found */
  10043. /***/ (function(module, exports, __webpack_require__) {
  10044. "use strict";
  10045. /* WEBPACK VAR INJECTION */(function(uni) {
  10046. Object.defineProperty(exports, "__esModule", {
  10047. value: true
  10048. });
  10049. exports.default = void 0;
  10050. var data = {
  10051. state: {
  10052. hasLogin: false,
  10053. userInfo: {},
  10054. is_bind: false,
  10055. configList: [],
  10056. filedList: [],
  10057. org: {}
  10058. },
  10059. getters: {
  10060. getHasLogin: function getHasLogin(state, getters) {
  10061. return state.hasLogin;
  10062. },
  10063. getUserInfo: function getUserInfo(state, getters) {
  10064. return state.userInfo;
  10065. },
  10066. getBind: function getBind(state, getters) {
  10067. return state.is_bind;
  10068. },
  10069. getConfigList: function getConfigList(state, getters) {
  10070. return state.configList;
  10071. }
  10072. },
  10073. mutations: {
  10074. setHasLogin: function setHasLogin(state, newState) {
  10075. state.is_bind = newState.is_bind;
  10076. state.userInfo = newState.userInfo;
  10077. state.hasLogin = true;
  10078. console.log('state.is_bind', state.is_bind);
  10079. uni.setStorageSync('userInfo', newState);
  10080. },
  10081. setIsBand: function setIsBand(state, newState) {
  10082. state.is_bind = newState.is_bind;
  10083. state.userInfo = newState.userInfo;
  10084. },
  10085. setLogout: function setLogout(state) {
  10086. state.userInfo = {};
  10087. state.hasLogin = false;
  10088. state.is_bind = false;
  10089. uni.clearStorageSync('userInfo');
  10090. },
  10091. setConfigList: function setConfigList(state, newState) {
  10092. state.configList = newState.configList;
  10093. },
  10094. setFiledList: function setFiledList(state, newState) {
  10095. state.filedList = newState.filedList;
  10096. },
  10097. setOrg: function setOrg(state, newState) {
  10098. state.org = newState.org;
  10099. }
  10100. },
  10101. actions: {// 使用actions,通过mutations更改state的值
  10102. // handleSetNum2({ commit }, data) {
  10103. // commit('setNum2', data)
  10104. // }
  10105. }
  10106. };
  10107. var _default = data;
  10108. exports.default = _default;
  10109. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10110. /***/ }),
  10111. /* 36 */
  10112. /*!*******************************************!*\
  10113. !*** D:/SWS_New/sws_new/request/index.js ***!
  10114. \*******************************************/
  10115. /*! no static exports found */
  10116. /***/ (function(module, exports, __webpack_require__) {
  10117. "use strict";
  10118. /* WEBPACK VAR INJECTION */(function(uni) {
  10119. Object.defineProperty(exports, "__esModule", {
  10120. value: true
  10121. });
  10122. exports.default = void 0;
  10123. function fetch(method, url, data, loading) {
  10124. return new Promise(function (resolve, reject) {
  10125. //显示加载动画
  10126. if (loading) uni.showLoading({
  10127. title: '数据加载中...',
  10128. mask: true
  10129. });
  10130. // let URL = 'http://localhost:9529' + url
  10131. // let URL = 'https://xcx.sgjyun.com' + url
  10132. var URL = 'https://xcx.kuyicloud.com' + url;
  10133. //获取token
  10134. // let token = wx.getStorageSync("token")
  10135. // let obj = { token, }
  10136. //添加token
  10137. // Object.assign(data,obj)
  10138. var header = {
  10139. "Content-Type": "application/x-www-form-urlencoded;charset=utf-8"
  10140. };
  10141. //发起请求
  10142. uni.request({
  10143. url: URL,
  10144. method: method,
  10145. header: header,
  10146. data: data || {},
  10147. success: function success(res) {
  10148. var code = res.data.code;
  10149. var message = res.data.message;
  10150. resolve(res);
  10151. },
  10152. fail: function fail(err) {
  10153. uni.hideLoading();
  10154. // console.log(err)
  10155. reject(err);
  10156. },
  10157. complete: function complete() {
  10158. uni.hideLoading();
  10159. }
  10160. });
  10161. });
  10162. }
  10163. var _default = {
  10164. get: function get(url, params, loading) {
  10165. return fetch('GET', url, params, loading);
  10166. },
  10167. post: function post(url, params, loading) {
  10168. return fetch('POST', url, params, loading);
  10169. },
  10170. put: function put(url, params, loading) {
  10171. return fetch('PUT', url, params, loading);
  10172. },
  10173. delete: function _delete(url, params, loading) {
  10174. return fetch('DELETE', url, params, loading);
  10175. }
  10176. };
  10177. exports.default = _default;
  10178. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10179. /***/ }),
  10180. /* 37 */,
  10181. /* 38 */,
  10182. /* 39 */,
  10183. /* 40 */,
  10184. /* 41 */,
  10185. /* 42 */,
  10186. /* 43 */
  10187. /*!***********************************************************!*\
  10188. !*** D:/SWS_New/sws_new/wxcomponents/vant/toast/toast.js ***!
  10189. \***********************************************************/
  10190. /*! no static exports found */
  10191. /***/ (function(module, exports, __webpack_require__) {
  10192. "use strict";
  10193. Object.defineProperty(exports, "__esModule", {
  10194. value: true
  10195. });
  10196. exports.default = void 0;
  10197. var _utils = __webpack_require__(/*! ../common/utils */ 44);
  10198. var defaultOptions = {
  10199. type: 'text',
  10200. mask: false,
  10201. message: '',
  10202. show: true,
  10203. zIndex: 1000,
  10204. duration: 3000,
  10205. position: 'middle',
  10206. forbidClick: false,
  10207. loadingType: 'circular',
  10208. selector: '#van-toast'
  10209. };
  10210. var queue = [];
  10211. var currentOptions = Object.assign({}, defaultOptions);
  10212. function parseOptions(message) {
  10213. return (0, _utils.isObj)(message) ? message : {
  10214. message: message
  10215. };
  10216. }
  10217. function getContext() {
  10218. var pages = getCurrentPages();
  10219. return pages[pages.length - 1];
  10220. }
  10221. function Toast(toastOptions) {
  10222. var options = Object.assign({}, currentOptions, parseOptions(toastOptions));
  10223. var context = options.context || getContext();
  10224. var toast = context.selectComponent(options.selector);
  10225. if (!toast) {
  10226. console.warn('未找到 van-toast 节点,请确认 selector 及 context 是否正确');
  10227. return;
  10228. }
  10229. delete options.context;
  10230. delete options.selector;
  10231. toast.clear = function () {
  10232. toast.set({
  10233. show: false
  10234. });
  10235. if (options.onClose) {
  10236. options.onClose();
  10237. }
  10238. };
  10239. queue.push(toast);
  10240. toast.set(options);
  10241. clearTimeout(toast.timer);
  10242. if (options.duration > 0) {
  10243. toast.timer = setTimeout(function () {
  10244. toast.clear();
  10245. queue = queue.filter(function (item) {
  10246. return item !== toast;
  10247. });
  10248. }, options.duration);
  10249. }
  10250. return toast;
  10251. }
  10252. var createMethod = function createMethod(type) {
  10253. return function (options) {
  10254. return Toast(Object.assign({
  10255. type: type
  10256. }, parseOptions(options)));
  10257. };
  10258. };
  10259. Toast.loading = createMethod('loading');
  10260. Toast.success = createMethod('success');
  10261. Toast.fail = createMethod('fail');
  10262. Toast.clear = function () {
  10263. queue.forEach(function (toast) {
  10264. toast.clear();
  10265. });
  10266. queue = [];
  10267. };
  10268. Toast.setDefaultOptions = function (options) {
  10269. Object.assign(currentOptions, options);
  10270. };
  10271. Toast.resetDefaultOptions = function () {
  10272. currentOptions = Object.assign({}, defaultOptions);
  10273. };
  10274. var _default = Toast;
  10275. exports.default = _default;
  10276. /***/ }),
  10277. /* 44 */
  10278. /*!************************************************************!*\
  10279. !*** D:/SWS_New/sws_new/wxcomponents/vant/common/utils.js ***!
  10280. \************************************************************/
  10281. /*! no static exports found */
  10282. /***/ (function(module, exports, __webpack_require__) {
  10283. "use strict";
  10284. /* WEBPACK VAR INJECTION */(function(wx) {
  10285. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10286. Object.defineProperty(exports, "__esModule", {
  10287. value: true
  10288. });
  10289. exports.getSystemInfoSync = getSystemInfoSync;
  10290. exports.isDef = isDef;
  10291. exports.isNumber = isNumber;
  10292. exports.isObj = isObj;
  10293. exports.nextTick = nextTick;
  10294. exports.range = range;
  10295. exports.requestAnimationFrame = requestAnimationFrame;
  10296. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10297. function isDef(value) {
  10298. return value !== undefined && value !== null;
  10299. }
  10300. function isObj(x) {
  10301. var type = (0, _typeof2.default)(x);
  10302. return x !== null && (type === 'object' || type === 'function');
  10303. }
  10304. function isNumber(value) {
  10305. return /^\d+$/.test(value);
  10306. }
  10307. function range(num, min, max) {
  10308. return Math.min(Math.max(num, min), max);
  10309. }
  10310. function nextTick(fn) {
  10311. setTimeout(function () {
  10312. fn();
  10313. }, 1000 / 30);
  10314. }
  10315. var systemInfo = null;
  10316. function getSystemInfoSync() {
  10317. if (systemInfo == null) {
  10318. systemInfo = wx.getSystemInfoSync();
  10319. }
  10320. return systemInfo;
  10321. }
  10322. function requestAnimationFrame(cb) {
  10323. var systemInfo = getSystemInfoSync();
  10324. if (systemInfo.platform === 'devtools') {
  10325. return setTimeout(function () {
  10326. cb();
  10327. }, 1000 / 30);
  10328. }
  10329. return wx.createSelectorQuery().selectViewport().boundingClientRect().exec(function () {
  10330. cb();
  10331. });
  10332. }
  10333. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  10334. /***/ }),
  10335. /* 45 */
  10336. /*!*************************************!*\
  10337. !*** D:/SWS_New/sws_new/api/api.js ***!
  10338. \*************************************/
  10339. /*! no static exports found */
  10340. /***/ (function(module, exports, __webpack_require__) {
  10341. "use strict";
  10342. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10343. Object.defineProperty(exports, "__esModule", {
  10344. value: true
  10345. });
  10346. exports.bindMobile = bindMobile;
  10347. exports.getAdvice = getAdvice;
  10348. exports.getArticList = getArticList;
  10349. exports.getArticListDetail = getArticListDetail;
  10350. exports.getCode = getCode;
  10351. exports.getDataConfig = getDataConfig;
  10352. exports.getDialysisRecord = getDialysisRecord;
  10353. exports.getDoctor = getDoctor;
  10354. exports.getEducation = getEducation;
  10355. exports.getFieldConfig = getFieldConfig;
  10356. exports.getInspection = getInspection;
  10357. exports.getInspectioninfo = getInspectioninfo;
  10358. exports.getKey = getKey;
  10359. exports.getMobile = getMobile;
  10360. exports.getOrg = getOrg;
  10361. exports.getRecord = getRecord;
  10362. exports.getSchedule = getSchedule;
  10363. exports.getStoryScore = getStoryScore;
  10364. exports.getbloods = getbloods;
  10365. exports.getgetbalance = getgetbalance;
  10366. exports.getgetbalanceinfo = getgetbalanceinfo;
  10367. exports.getweight = getweight;
  10368. exports.login = login;
  10369. exports.sendCode = sendCode;
  10370. var _index = _interopRequireDefault(__webpack_require__(/*! @/request/index.js */ 36));
  10371. // 获取key
  10372. function getKey(params, boolean) {
  10373. return _index.default.get('/xcx/api/mobile/getappid', params, boolean);
  10374. }
  10375. // 获取密钥code
  10376. function getCode(params, boolean) {
  10377. return _index.default.get('/xcx/m/api/code', params, boolean);
  10378. }
  10379. // 登录
  10380. function login(params) {
  10381. return _index.default.get('/xcx/api/mobile/login', params);
  10382. }
  10383. // 获取验证码
  10384. function sendCode(params, boolean) {
  10385. return _index.default.post('/xcx/api/mobile/code', params, boolean);
  10386. }
  10387. // 解析手机号
  10388. function getMobile(params, boolean) {
  10389. return _index.default.get('/xcx/api/mobile/getdatainfo', params, boolean);
  10390. }
  10391. // 解析手机号
  10392. function bindMobile(params, boolean) {
  10393. return _index.default.get('/xcx/api/mobile/register', params, boolean);
  10394. }
  10395. // 获取上周 本周 下周排班 模式
  10396. function getSchedule(params, boolean) {
  10397. return _index.default.get('/xcx/api/mobile/schedule', params, boolean);
  10398. }
  10399. // 获取电子病历
  10400. function getRecord(params, boolean) {
  10401. return _index.default.get('/xcx/api/mobile/getpatientinfo', params, boolean);
  10402. }
  10403. // 获取机构
  10404. function getOrg(params, boolean) {
  10405. return _index.default.get('/xcx/api/mobile/getorginfo', params, boolean);
  10406. }
  10407. // 获取透析记录
  10408. function getDialysisRecord(params, boolean) {
  10409. return _index.default.get('/xcx/api/mobile/dialysis', params, boolean);
  10410. }
  10411. // 获取医嘱
  10412. function getAdvice(params, boolean) {
  10413. return _index.default.get('/xcx/api/mobile/getdoctoradvice', params, boolean);
  10414. }
  10415. // 获取宣教信息
  10416. function getEducation(params, boolean) {
  10417. return _index.default.get('/xcx/api/mobile/geteducation', params, boolean);
  10418. }
  10419. // 获取机构人员
  10420. function getDoctor(params, boolean) {
  10421. return _index.default.get('/xcx/api/mobile/getdoctorname', params, boolean);
  10422. }
  10423. // 获取显示配置
  10424. function getFieldConfig(params, boolean) {
  10425. return _index.default.get('/xcx/api/moible/getfieldconfig', params, boolean);
  10426. }
  10427. // 获取数据字典数据
  10428. function getDataConfig(params, boolean) {
  10429. return _index.default.get('/xcx/api/mobile/getdataconfig', params, boolean);
  10430. }
  10431. // 获取检验检查
  10432. function getInspection(params, boolean) {
  10433. return _index.default.get('/xcx/api/mobile/getinspectionlist', params, boolean);
  10434. }
  10435. // 获取检验检查详情
  10436. function getInspectioninfo(params, boolean) {
  10437. return _index.default.get('/xcx/api/mobile/getinspectioninfo', params, boolean);
  10438. }
  10439. // 获取精选故事
  10440. function getStoryScore(params, boolean) {
  10441. return _index.default.get('/xcx/api/mobile/getstoryscore', params, boolean);
  10442. }
  10443. // 获取肾友杯列表
  10444. function getArticList(params, boolean) {
  10445. return _index.default.get('/xcx/api/mobile/getarticlist', params, boolean);
  10446. }
  10447. // 获取肾友杯列表详情
  10448. function getArticListDetail(params, boolean) {
  10449. return _index.default.get('/xcx/api/mobile/getarticlistdetail', params, boolean);
  10450. }
  10451. // 获取用户体重信息
  10452. function getweight(start, end, patient_id, org_id) {
  10453. return _index.default.get('/xcx/api/mobile/signweight', start, end, patient_id, org_id);
  10454. }
  10455. // 获取血压体重信息
  10456. function getbloods(start, end, patient_id, org_id) {
  10457. return _index.default.get('/xcx/api/mobile/signblood', start, end, patient_id, org_id);
  10458. }
  10459. // 获取预交金信息
  10460. function getgetbalance(patient_id, org_id) {
  10461. return _index.default.get('/xcx/api/mobile/getbalance', patient_id, org_id);
  10462. }
  10463. // 获取预交金流水信息
  10464. function getgetbalanceinfo(start, end, patient_id, org_id) {
  10465. return _index.default.get('/xcx/api/mobile/getbalanceinfo', start, end, patient_id, org_id);
  10466. }
  10467. /***/ }),
  10468. /* 46 */,
  10469. /* 47 */,
  10470. /* 48 */,
  10471. /* 49 */,
  10472. /* 50 */,
  10473. /* 51 */,
  10474. /* 52 */,
  10475. /* 53 */,
  10476. /* 54 */
  10477. /*!***********************************************!*\
  10478. !*** D:/SWS_New/sws_new/static/images/11.png ***!
  10479. \***********************************************/
  10480. /*! no static exports found */
  10481. /***/ (function(module, exports) {
  10482. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABanSURBVHhe7V0JsB5VlT79v6yQYIgKBANhDYJBNgsSZiI7YZEtBBFUrLGsEhcWnYGpEQZKHBeCJMUUILG0FAPCjCAMAyIKEmRYhAFxQAlkZAlhlxBIJAt5f8/5Tp9z+9zb3S//Sx7vPabeV3Xv953ldt++J91/9/uXZHmet6iKTLk3WJ8xTejLba0LuXJfoLfbquTXFaSjxchz2mRVN+20YnU+aeVaGseu9VpE3k5/Lv46kWXrX6ARXfTXjYbTKxsPzxZ2tWiJujtB2GdakB4Xp7tNE59cmp/8i0X5zAWLaY82tbo0NIQEO23aXnz05OzWvT+Qzeci3a/uniBF8QVpLEY7pwl3Ppuff+mD+Slr2q0R6h5Ch5ixTfv+z+6RfW3MiOy36mpCbgVpLMbzy/PPnHNnfvGrK1u4LA1hPcCXZWq12/lpU7MrD90uO5MXe4WGUkhBmi47XQueyf/1ot9ln1d7CL2EXIPcKxLk3hO6/3Te9K4j+TXmucIbo6kgXTcszK/+wR+yWWoPoZfwxQg1YQH9wfHtxd89pHXwsBY9VQRK1N3y0r1L8tlDxVh/VIqBjpu6aOFrra3PW9C+GXeq6gqoFGTpyvyob9+dn67mEHoJvF5UimHEHeLQD73YmnzTE/llcHtEBeHEMefflV/abrUG1bPBuwFYZCmGQqTapkNY9WUPZSctW5UfVjgLRAX506v5aU+90fqAmkPoELbgRmanWmSi596Xf4dlOAF8QUbMfSA/Q/UQOoQsrq6wLTREnbYzCGT6niWtKctW5jMKyxXktZX54S+uaL1PzSF0AFlTt8jFSgdXpEMxwOqHBt/+NJ2CGBAK8sjLdLjKIXQAW1jRoSu1LbZpkcbaGV+3MD+UlTx+hILc9Ux7usoh9AAsoi0sYIsqfqcFTjcVA/zK8ta41WtpF7isIMMffTnbXvUQGmCLaGS2uiIdzhDVgc2fMD9uTIEpBelu02ZrqDUMegj1sMULhI6buiLtCxAVA6ydZ8TeXE2bwyUFaec0BjyEeshiygoqeQ1m4XXEqgN7rQz89W15as9QkKxN+dCf1GvgFwwQqbbpEHc6sHYVFhHzmm4aBR1e1IcQwxbPYDbYa5GJDmz+lCFVhLFqDxWkBn6BQGarK9K2sEBUDLB2FVadFgMYKkgCv0BBc1NXpH0B/CKbz3J9zFhixgUJ8H7IsNXd+ZSZ12W/V987ioljiQ7elmivCUQTBuBWYuXb+PM30f3PE93xjDoVskAKkWqbDmGnbYyQ+Y0hVdSxSOWLDslnT9s6O6dfz5D9JxHNO4LohJ2JthtHNJpvtPu7jR9NtO9Eoq/uQ3QePwoP4xXAgthCAbZQgbgLYafD4mpXYRExQxr7XEO/FeRveBHOmqrGIME+WxJdfHD5p1asi18or0UmOrD561h1XRHAfptAv1yyRnQR3ZC8//j0MqIHXuCHUj+bfsB4vrmcsX1ZBODqx4iu4mYrE6bkFisUIHRVn+cQM9bOs8+5eEZxyeqXgpy4C9Epu6rB+PkTRD98RI0BwER+BPvmfkTv26iwsS4nXk+0fE2hAVssoJPFFamiJxZpDAnNbc5h/fgaMs295fX6qoEtBhbiuTeI5j9a2ADOlh3H6yLpAgmcDqxdhUXUM6SxjRFbG9AuqH9eQ0YPV8FYulLFAECOXRdgKf/D8BjBL/i2WEBYQNWBzZ8ypAobG7aRcLQ9x0C/3mUBA/VuvRyzLQC3rmQeOf8TtXXxC1RZPO0qrNo4ijm/3573F10/FcQmAWQDUBB/wKbTadglI1owtMQHh/lSlphxGktscTnb0O9nSH9DDlYPWMhrD3b4hRPWDmyLaBqoY4uLL+FUe5/h/21B5DjdgYpU27kDzGdjLL/CIupZZMLmb8oLtqIoyCD7jsaGwg7YyGyv6+AXzfJrWUTBkGFRE7uTPDHNzxg0Z8gmI4l233zD227gzYpnDDlIOfLygCPtoc6wSNp5jhZWtcWMw3jHIpXNlji0tiLJntTX5rvOvD57uHD1Pa44nGgr/RTrM/wM8KVfFtqARfzavkRj+vBtsrX8Kn3hvUT/9Vw41mIBVE7lZ6Ov88Oh4dw7ie5fonGXJ4u1DlZZ9YHrfGqLqXzJkfnsv92mn/+42IRjJvdtMQD80fBze7hFQHO6DiEuVplXx5DGMiZpwZfmqS1mYjPkLdwBx22VD+X3Da75I3d60EBYGNUeYlocrHHPkGEbCTfl+3gdW9yAS9ZwvmRNGchLFrDlGKLNNlajQ9gBOQoHiL9L/Xlp6beFAqCnTSS6YH91MM75DdF9+Jqmjjf2OmXbpmeRCUdxr0UUfOlRcsk6d9C8qL+wQj492XH7PfilRHMTza2uGH5BQtADcZBj8RmnscQWl7drmqRAiyg42IxBU5DeQA5Mj0Ao0dEBi3CsWs0A81XyHYtOONWRT8cB4necxgvnu6wg0QEwRKptOoSdDouinflThDzHkMY21vuBDYlbM7xrCiJz1omDzE61yEQHNr+xg9k2Nmwjsf32vN/nielscYG1RRqmMvCuKIjM1yZfkIg6HQ7Sa+cLueoLgN/FPFe2o34fNwbEFkeppVlMGTDbMCjusjYdxb6PcM5YdTj4yTZhdTfR1Y8S3aNfNA4Hq13EkCz23Yromweqg/FPt/P4xYX2i1RZOM+Jz+cai1Ru8qO7/Nh89ke3HSR3WX+3W/GuIt5aTRsKua62w6ZE53+0eLgMB61dxJBBKCtskaLFSlrFZ3kgMUp/HQNii6PUFgMGRUEW81mzocA7kW/zmQKEAxbDsYiSPUKO4zQfLFLZ7J7iopMGiBZRMjBoHgwPmMQPh3zJ8pPzCC4XM7lmLdGv+GkfRQkHrF0dox20DdF57sHw3DuIFjzDMUmMWWTCtXGvHTdty/vnHceXrO2ycwdNQQCbbCCvARam/cEYgk87z2n+hzbj6/aRhQa+fAs/VL5YaORIWsIy1uuERSr3Nn4FF2Q/LsigucuSidkkQ1fq6IBEOFYd2GtlwPNj/DQ//w/8RP96wY+gGMjXZrri0/GA+B33GE+a5HpbMeAFkbm5CYlU23QIO21jhMzvWUQ9Q4Ln/TfRZ67nf50PypeWgh/weSkDZqMzf2DXJI7WkAsYAwNaEJmHTcokd6kWmejA5k8ZUoWNDdtI7E7yxHS2uMDaIg0T2rHE1RbTsUrBgBVEJmGTKkhEnQ6T99r5Qq5n39IYSIyYRSqbHcXFUWppFlMGzJZcZ6dxn2cYkIL4SQTNTV2R9gdh/uiAanx4fvncnkRfPwCfmSX69kFEZ0wl2oefdSwHAE8aR/TFvTnnEL6EHU102cf4mYbHHbVTEffNxohUTv21ceikRT7LY/T/XdYyXgC9y5I56ERMqxlpm6yQ+Y0hVYC/zIs7S77xXY/7+Gn+W3fhlyuITtuH6KQPa6AGeKG/5F6i/3kp3qffn3GkRcRcO0ZEwT+Ylc/ef/sBvMvyk/Fa4HQ4AO0qLIJoZBfR9/g2tqdiANO2IvrRTL7lParnYgC7T+Dc44kO3oEN3afsT/frGyBaRMFmp/G6PMOAXrLCPJwOk1Ud2Px1zG0OX5p2fj8cJZ7ls/GhF4gef1UdCnwiZfct1FDgrwUPLinOBtxxeVzI28alzc/Dz81scTlbTGeLK7Etz/COFyTZXwGdjMDp6CCcFtbOs+QxT9+aaBdXjOWrif7x10Sf5Fva03/Bryf/wfo6Xmx+9kjxxiqiv7+V6Pif8qX0JqLP/pzo6PlEdybv83+DX2Nsf35uIp3fGEjjxj7uGXhHCyI7cjszmCtMWHXEqgN7rQyAj5xcaMMXbia651nNQT63p5YSfZ4L8zv388YoBgrwW/2TiaRz98JyLhIX8lFXwCmbE+2FmwKXF1ib7WudPrgdi9QPF78jBcEObIe1wCQs7nRg7SosImZ81WFPvtYbrn2Mbxz46RspiBsD4NNvKV6s8bmtT/+suFT5uEjlS+6BUWJfPhMlF3FtlmtjxZfY4vLsm/oMfV6QdAdOBpgvTEh1YPOnDKnCxm7Nd2/4ypzhrqcLf5pnjO5UvjQddzXRiyvq46K5LUn+Cj1qWJET5aotpmORCZs/ylefAQXx9gZBNqRbA5mtLoFpmxQQTRCsXYVVG6PDv3SPkVg0CcZ5YLO7ecxLVgwJlNpyxJ9AXuxd3BjwtrgS2+dVmJuafXeGyAZtJ9ZxU1cEPxlpic/G+ZixxIyZcCeF754bjtix8NsYy/NjfQNEiyjY/Dsmv6/32lsujtykRT7La2CLC4u3QJ8URHakWxWq0SnC5LQD+wmGeA1bHG31WqKH9c/mwKH8zDB1Yhm35vcBiL+BAfBZ7ifdcHbc9qTGuQmhS1gkGEJZZMISMxYhqP2/QzoGtuM2FnYQiDsXDrAxUY5nETFDGke5TNe6L3ACcw8n+gi+aKpxPx5ItyN+aNeu+ji/Prlfu7/hj3wDwGejjZUxymaLK7ElT3UjF1Kw3gWxDRqZnWpBECXWOVHV6YEa+zge/u5Inhsu/VjxpC37YUTbS5rfJr4D+RMuxofdnRsuVd9ZoLkMGefYxhv7vMAaq2URBYqC9PI/MbENBULHTV2R9jszhIlq5xkx4zRmHMY7Puf2ojAe844h2kOLEraHhqCy2RJn/NtJRSENq/iSePK1RCv4YRNIxxun26ljnyNuY4denyGyA92KbdRRuTPVdYBb8jTXMxAxYkmzWOTjhifte/WjPIbvH0u0N15TWEsunMoyThm3zv9+MtFOyRP/LH5qX4znGozRJuOTBniGTBmo5Kg2dFyQdKBItU2HuNNgfFfDgFtOicNI8lKGNLYxYmsTt/czn8kPfvclRbn8aL4E8ZO2z/PjcZm68gSiD7pi4Hb6xJ/qh7Zdro0Vl2ff0pixiIRVGzoqiIxxA80Gey0y0YD/PRN5ToCoybOxYRsJ+zxjkcpmn3YzfvYWgRI/nsVP9FuyQI5rG/GT/jWfIPoQF8zwFt9GH/cToqdrimH7Mja/z0tzAkOqCOw0sM6CSK4frEJdkfYb9jtexAdmwEd9tt9Ux3CHOLSx+Bz7OJDm18a5fZXPlAX81O7xw5lE0yaVuRuPKC5TO29W2AAuU8deSfS/r+m22GeMztu2nQprV2ERjkMXqOeCVAag46auSPudSXO+Gx8vGMAvKOBP5YdsV/zrxG9YbcQtsPqMLcf7fZ6N9Q1jsO+vcFHSv9p+j1/ocWlCHGeGv7VdtoroeLxm2O2tHESpxUTXwBaPtGMAWlg7sGkA7xjW/hqQDQT8ANMh7HTdzowvPpTveJL3IPCELTl9CNsnfuTmK3zpWsT/0r/LzyXyJpMC+33hTT5T36sOxoo1REf+iOjl5YUdjoXZthkxZOpLGVKF+YVqfPNPzmcfNLnmS5+I2wDADzIdwk6nO0n57F8TLfwLjBLyr72P28ZofCnC++pzjuBd875x+frNn3WnDOzXF2PZSqITroqLgXkb++MAiz/xVRhShbD6g0878UErooJYkpHZqRaZ6MDmT3htN9Gp/C/2msfkR4P7Bdfz07XN7Yz/JLptUaE9XuQz5XguhryAsx2OK2Hzd3KswiIch67UajrhLlnH4ZKVDHAkwnTtThKf53RyY0fys4F+2h0/IWG5jkQEzbCxgh5iIrl7mp8dbn1CXBI3/1x+gj9kR3HTS3xG4NYWZ4bFPafzrmOVwRe2AalCyPnr9NWfLC5ZZUF+VryGSKJmp4NEWsznWNwYUkVPrLLqA9f51BbTsUjlJr+w6sv4hR0PgLP4zFiKv+BKQhkPYyCbYsaQKgKHrsFXkAjTVpAeL1kyAM1pkcbaRQypoo4hjWVM0oIvzVNbTGenDIgtjlJLkyA/0d9IdOD3y2LA7+OBfUtjxiISTn2hC1RuEwjCvYaIT5O8FpnowOb3LCJmSOMoV/1iOhapnI6vi4tOW0OuMZDGjevy0pzAkCoCJ9pygxah0JihPEN8wGk/uG7HIdezauMo5vx+e97v88SELY5SRz7NAcQvovQbA94WV2L7vIi1q7AIx6ErtZqxZmCMt4GiID7gtN9ZZcdg+MUoWPJ8zDiNJba4vF3TJAVaRMFmp+zjYjoWDRZHwXV5xhaPtGMAWlg7sNcCrxk2JgUKkreybLUMsEGqRRqrjjjxAXUsOuFURz4dB4jfcVNc/Emr9cGd+owt5lhixiIcey1G4SsCqgGvGTbGg5+N+BVNz5BWi1bUDfY7Dn7PIuoZ0tjGeD+wIXHfJI7WkAt4W1wJiz/xVRhShbD6gy90pQ7bBNSuw5iRhMfS4i3croxeGdFqr/GDw07A5q9jEQVDhm0kdid5YjpbXGBtkYYJ7VjiaovpbHEl7OOAsPoqDKkicOhKDfbaYPtqwviNSN5esxf1tXttQU9CYFDTjj3bDoRVW8y4sh31+7gxILY4Si3NYsqA2ZLr7Ka4cV1ehbmJ6VmEY+3AXgu8ZtiYnvD+MRl+TKq8y9pvm+xuPxnowDU+IGLErJlP2WxxgbVFY8wHN7SIglN/bRw6abU+uB1DVrjGB0AHNr/XgNcMG9MTthvf/svIYbQQOhRkjy3oZrCMt40aQ6qoY0hjGZO0is/yQGKU/joGxBZHqSOf5gCeRXpWXRszFhFzxRe6QCIiHYye8aXp2S1M8pG/UJBxo7LbdxzXXhI26llEzJDGUa76xXQsUtmPB+riopMGiBZRsNlpvMc81Y0MqSJwoi03aLUFXneAo3ahH6ssC8LoPnNaNlc2ZBv0rDrsOGEfB5rya+NJ6zE3YSD1o/O2zwussVoW4Th0pVYz1gyM8fa68Ik92w+8Z3R2t5pRQWjye7N5e01oL5IN6oZtB3UHEcUSW1zermkSR0tzlYG6uJiORSZcl2ds8Ug7BqCFtQN7LfCaYWM6RavVzr9xWOssNQVRQRir/nl6dmqWt+VzCWFSnrmBve7IB0KnbLa4nC2ms9Mmub3wAeJzLDEwpIrAXotR+IqAasBrho3pDS4/Prtik1EUfekhLQiNHZndNWdGdkFlojoBY5uQ9wNpXlMcnfkDuyZxtIZcwNviSlj8iS9iEQnDb7owtQtUbhOADkbnwKXquF2z6OwAKgUBdtsi+9b5++WX247DBBLbJtJTnpjOFhdYW6RhQjuWuNpiOhaZsB8PCKuvwpAqAoeu1OCgRRSAdmbHOHiH9sK5x7SOYZn8LyYNBWHkB2ybnTFnRv4vre52MQfdeeUA1O/jxoDY4ii1NIspA2ZLrrPTeCd5FeYmpmcRjrUDey3wmmFjeotP7dW+b/6nWwe0Mkq+iloA7xiiKI0/xr90ZX74P9yaz3vy9daW/gBEek58PtdYpHKTP4p7nbDK2pixSGNIFzMEn3Yh1KQZfnynGNVqr73yU9lF+++QXcBm06cKcisI0FgUnsDYB57Pz77w7uyLL62g9/gDE5lwU9z7jZtyexwjIuY6X4UhVRgDwRe6QCJqdYfAndTZB2Y3fWHf7LxRw0j+PNIA2bQvCNBYFIAnPva5N/OZv1pEM298PJ/+6lutTWyS6YGCRSqL3+uERSqvK96Yp10tQ6pI8wNxp2asgdTuASOGtbuPnUIPf3z37JdTJ2VXDe8i9yGkWoRNpwUBeiyKQ2ttm7Z+a02+zZpuGvN2m0arvx7J0XR6cBXowI7Gd7iT9Z6LQ1eL1o7souWjR9Aro4dn+LyLfoFhnYh2X1cQoNOieKzPmCb05bZ6Ql/UwqO326vkNxUEWN9F6Y/F7HQffb3gdVjffdSMI/o//xm+CnYCnFYAAAAASUVORK5CYII="
  10483. /***/ }),
  10484. /* 55 */,
  10485. /* 56 */,
  10486. /* 57 */,
  10487. /* 58 */,
  10488. /* 59 */,
  10489. /* 60 */,
  10490. /* 61 */,
  10491. /* 62 */,
  10492. /* 63 */
  10493. /*!***********************************************!*\
  10494. !*** D:/SWS_New/sws_new/static/images/11.jpg ***!
  10495. \***********************************************/
  10496. /*! no static exports found */
  10497. /***/ (function(module, exports) {
  10498. module.exports = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAgICAgJCAkKCgkNDgwODRMREBARExwUFhQWFBwrGx8bGx8bKyYuJSMlLiZENS8vNUROQj5CTl9VVV93cXecnNEBCAgICAkICQoKCQ0ODA4NExEQEBETHBQWFBYUHCsbHxsbHxsrJi4lIyUuJkQ1Ly81RE5CPkJOX1VVX3dxd5yc0f/CABEIAXkC7gMBIgACEQEDEQH/xAAxAAEBAQEBAQEAAAAAAAAAAAAAAQIGAwUEAQEBAQEBAQAAAAAAAAAAAAAAAQQCAwb/2gAMAwEAAhADEAAAAPsDx+HqCoWgWCoKgoAKAAQoVZRYKlAKCkWpQBZVFqUAi2UFtFFlFlVQtlAVQFJRQAIsUCKIsWAAiiKWA+eJkoAAABQAUAEKFUEooIpVAohVKABQUili0igq0UFgW1VJVBVKIoFAWKEoiliiSlktM0IsEoSiTUX5ypkAKIsFAAUABRSUFBKBVAKAVQAAqllAUAaltNUwqBbVUKFFWUFBVlAUgWUEoixUoiwlCKIFiiKPmiZFUgAAFAAFFAFAFFAKAFUAFBRQBRZQW1VKWBq3D0wCiiiigoooACygWCUsAlEWACUsUQEUfMs3MkUQAAAAKKCkoApQBQCqAUSqSigKAoVaoKFotUWymLvClCgoopKCyqKQAilElpARRJSyhFEWCWL86kxgJRKEWAqygKCkWKqkUAFKAsoKAoFAVRSqBQ0KqiylKtzdnlVJRRQAVRQsEpZQktIABLFAlBLFSiKPnSpjigCLBKWVSVSKAUBQBaAoigoKUABVqKWiFLVUUKVVBZSlLj18lWUAKUoAspYsCiAAiliiAgUCKIsPnFmMBLCKWUFAAVZQFIpZVJQAWgFFJQlq0oCFW0UVQVRQUUWgamjzsqikoAopUpAAAsURRFGVipRKEUQL84sxQKKRRLYAoAoACqACgooBQApaoCwLaKKosqgKooqyig3gsusgpFilAE3nZigCxRFEWALJRFEURYqVXzhzjSgUlAFjQigAVYsBSUFFWUlAUFtlAolVRRVJqVQFUKUUUAUU1j08xUVQFIonpjZgKWBRAAsUQEUQKlVFR82kxpQAKsoFEURSgCkoFKAUAC2igBSlAooqgqiyqKAUKUAb8/TCygKAAN50uQAAqURRFGVEWLFUlRFh84sxgRSzUoURSxRFEUCgKAoBSyqpAWqCgKoos0CgKspQCqoAAu86wCgogAu5rJFEUsAAAUuVEWCWAUlHzhzjBQGpQFAAKIoBRQAq2VSUgW0UigpRSVRZShSgVRRQBRQQ3nWQUEUUA9MbwAsKSggKLc6zRUQCVWVEB84vOQABrOllACUFFiiKAFLVAIFtFAFFKJaFFUFlAVQpQFFAJvOzIAUABvHoZgoAAAKLVzrMAJVQEWEWHzy85IohVWaIolCUUAsBSVbZQAFUUAUUClFlUUFAVVJQWFtAAom5AFAAAurhQABQFiqazqMACgIsAID56XnICgNZ0CgLFEoAC2gAKKoCgKKSqLKooAKqylSgKoClSgpcigKhYKs2MgAUAoUEVrFSoAAARYJR82nOUAUazoBQFAKBQgLVBZQVQBQUFUUAWVVABZVUBQUAVFAUIFFKuRQBQAAFm6mQAiiLABKID5w5ylADWdKKAFWyglkC2ygUCqAKCgLSgKoKAKKAUoKALCgVACgPSQABQoWJYArTXmAFEABFEAlh86nOUFAazooFi1QCJS0UAUUAoUUBVJRRRQBRQBQUFlUACoAUBtkFJRQpYgAKbzokBKAIogAIAD5w5zAFgKbFpRBAWigCigKpKKAoLKqgUAopKpKCgCgKAAKNEqAFQtS0EABSz1JgAAAAEoiwSiA+cOcxYCgW7udAEooAoCikqgKKACqKAAqhUpQAVKoCgCgKFgAAotBAAUPQZQAAKIogAAIBnWD8FOc0VQKEPXy9LQCiFUCKFmgFUAClUAClAoFAAVRSUAUABQBQAKgqKWCnqMICkoAAEFQAACGZYfhEzgBAWt4p6LAFAAFAXTOyUUolAVRSKJVJQAFUUABQAAFFCggAKFJvQvmpFACUQpFAAEWApMWCWH4b2xo4mdsOJdsOJdsOJdsOPdkONdkXjHZjjXZDjXZU4x2ZeMvZK4+9gOPvXjkJ2A5B19XkHXjkHXjkL1w5F1w5G9aXknW05J1o5J1o5J1o5J1o5J1peSvWDk3WDk3WDk3WDk3WDk3WU5X06nByrqhyrqhyjqxyl6ocq6ocq6ocq6ocq6ocq6ocq6ocrnrIcnOtHJTrof/EACsQAAEDAgYCAQQCAwAAAAAAAAEAAhEhMDFAQVBRYBBxIiAyQ2EzQnCBkf/aAAgBAQABPwCTypPKkqTypPKk8qTypPKkqTypPKkqTypPKk8qvKkqSpKryq8qSpKk8qTyq8qTypKkqSpKkqvKkqSpPKkqSpKr5kqSq+K+ZKr5r9FfFVVV818yVVVVVVV8SpPiT4r9MqVX6a/4ujoMWY6vHHXgqHFER14It1Gdi8NzCLZqMdpA3UIiajHrwonD+wujMjeAYThB/VwdSHyEf8unAb/GTeMHc3ND1JtZbcHUhinioPNsYo4nPRumLD+rhx6kw1hRpbdj1IYhPHyNt2nrqb8Gn9W3aeupn+Nvu2/T1tsbN+M+7b8f9dT/ABn3aGITvuNw9H/Gfdpg+SNSbh6Of4x7tMoHG6ceju+1otYM9m4OkPx9C0/EDgXND0dgqETJJssEuRMkm4cB0cUaTaFGe7gCdj0d1ABZAkgJ5rHFxvPR2iv6CmTNltAXXTQdHNBFkCTCcawMBcAkp2PRhysbI+LZ1N0UE9HPFlon0ETJuASU7jK6bjh7sgSYROguignLDDevtEa3QJKcZMcZYbyPj7vfaP2cu3eMPd5o1KJkzlxiEd2o33eaJKcdBmTugEqYwvASj8RAxzWg3OOVN8fATrm24HcYyIAaJKJJMnJGy3HoIAaJKJJM5I0tm2N0DQ0SUSSZOTNsVaLg3ECVAYOSiSTJyZNxhxG+NYXIkNo3HKGl0GCCjcG3BkCXIvmgoMphfbVt0Ha2sJUtZhUokk1ypM3xru4WmWP1f//EABYRAQEBAAAAAAAAAAAAAAAAAAARoP/aAAgBAgEBPwDBzEREREREREREREREREREREREREREREREf//EAB0RAAMBAQEBAAMAAAAAAAAAAAAUY6EBESEQMKD/2gAIAQMBAT8APenvT3p7096e9PenvT3p9/HvT3p9/R9/gjRpgjTBGmCNMEaYJUwSpglTBKmCVMEqYJUwSpglTBOmCdME6YJUwSpglTBOmCdME6YJ0wTpgnTBOmCdME6YJ0wTpgnTBOmCdME6YJ0wTpgnTBOmCdME6YJ0wTpgnTBOmCdME6Yf/9k="
  10499. /***/ }),
  10500. /* 64 */
  10501. /*!*************************************************!*\
  10502. !*** D:/SWS_New/sws_new/static/images/head.png ***!
  10503. \*************************************************/
  10504. /*! no static exports found */
  10505. /***/ (function(module, exports) {
  10506. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAYAAAA9zQYyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAV/0lEQVR4nO2deZgV1ZnGf922LXSzyqIigsQgiCioUXEnalyjjhNXEo3JqBkdjY4Kbkk0oxI3Mq5BE9Q4Lo/LuCsajIq7Isa4RESNsiiKCk2wF8CGzh9vFVw699atureqTtWp+j1PPd19b92qD/rtU+d85zvvqeno6CDHF3VAF2A9oCvQAxgMDAE2Abo7r3Vzju7O0c15fSXwtXM0O8fSgu+bgPnAR8A8oAVY5hzLnc/nlKEmF3RJegD9gY2B0Ui8mzpfNwN6Rnz/L4GPnWMu8HfgbeAz4AugNeL7p5Jc0GvohsQ6GNga2AXYEehnMqgizAVeBV4E3nV+noda8cyTdUH3Q6LdBtgB2B7YwGhEwfkYmAnMAN4AXibDrXcWBV0H7APsAewG7GQ2nFBZBfwZeB54zjkyRZYEvTtwAGqJd0aDO5tpQq31q8BDwJtmw4kH2wXdCJyMhDwS6Gs2HGPMB94BHgD+YDiWSLFV0EOB44GDgeGGY0kS7cDfgPuBKcACs+GEj02C7oLSaycD+6KUW05xOlD6bypwA/AW8I3RiELCBkH3QAO7s4ExaNIjxz+twMPAZaj1TrWw0y7oMcCvUdYip3p+B1wHzDIdSKWkVdCbASegVjknXFYAVwC3Ah8YjiUwaRP0esBPgDPQwC8nOj4CLgVuQYPJVJAmQY8FxqMUXE58PAJcSUomadIi6F8AZxF9QVBOcZYANwIXoSrAxJJ0QY8BLkdT1Dnm+QtwPvCE6UBKkVRB1wLnAj8nzycnjSXAJGAiqh1JFEkU9GjUZ9sTqDEbSk4JOlDu+gw0eEwMSRP0YcBVqKg+J/nMBk4D/mQ6EJda0wE4dEUDvzvJxZwmhgEPAueg0gPjJKGF3gj1yY42HUhOVdyBWutFJoMwLehRKB20o8kgckJjOpr4mmMqAJNdjkOAx8jFbBNj0UTMKFMBmBL0mcB95P1lGxmJRL2fiZubEPS5KC23joF758TDJsBdwJFx3zhuQV8IXBzzPXPM0BO4GTgmzpvGJegaVLf8yxjvmWOeBlRj/eO4blgX0z0uAM4jF3MW6QZc43x/a9Q3iyNtdwkSc062aQZ+hibPIiNqQZ+C/jrzmowckFHlYcC0qG4QpaD3Ram5xqhukJNKFqDCs9lRXDwqQQ9Hs0Zp84nLiYcPkRVb6L4gUQh6Y+BZtJA1a3wMvIbcQFcAbcgmoBUNiBtRIVYXlAEYiqzJsujoNBP4HqqvDo2wBd0beBR5x2WBL1Hp5Kto6f88ZG+7wufnu7PGc3prYFdkyZCVSad7UUqvLawLhinorshealxYF0woy9Af7V3IAPET57Uw6AkMRMaSP0Qe1bbza+cIRYhhCvoc4DdhXSyBLER+FfcAi4l+sWhvYEPgdDTbZqsjVDsqVJsaxsXCEvRuqCDFxlXZS4C70Rq6eQbuX4eM2C9E/882CvtDlBWrejlXGILujjwbRld7oQQyFZmtPG86EIdjkJ3D1qYDiYDHgEOp0lsvjKnoy7BPzIuACcCBJEfMALehmuNbDMcRBQeiSsyqqLaF3h+tKauvNpAEMQN55k03HEc5jkeDqQGmAwmRNtT1qLgRqUbQm6ItDzas9AIJ5AEklMWmA/HJdsiRfxvTgYTIX1H6sqJBd6VdjhrkaGSTmG8GDic9YgZ4HTgIbfFmC6OBUyv9cKUt9DjgduwpOroaLQtL626t/VFe/LumAwmJZvRvmRn0g5W00ANRztkGMa9CK2jSLGbQzrKHoQkfG+iGPPQC71RWiaDHAVtV8Lkkci1afJBmMbssRmm9VNje+uAQKph1DtrlGAE8hR1956eAf0cbyNvECOQOuonpQEJgFsqkzfX7gaAt9CnYIeY5wEnYJ2bQ/t+nkSLXfQ+2IKCjVpAWeifgpaARJZCV6K/+SdOBRMxEQpioSAALUPWmr1babwtdg/qaNnAr8LTpIGJgIqrPTjsDgBP9nuy3hR4LPFNhQEmiCf21v2c6kJgYh0wU004zSkTMKXei3xb6nGqiSRDXkx0xg9Z0TjcdRAh0Q6nVsvhpobdHfec4PDyi5B2UrP/KdCAxsyeqZEuEf3MVtCItvut1kp8W+nTSL2ZQ3zlrYga10A8ajiEMGtBmq56UE/QWqPop7XwA3G86CEOsQmv3jDvbh8APgD5eJ5QT9InlLpASniRhm9vEzDRUGZl2BlDGJ89L0P3QCoK0swQtocoyzYS0Zs8w66DMTckusJegT0LL69POe8ALpoNIAI8Cn5sOIgSGozqPopQSdB129J1BNcOJ2yDSAG+isUTaaUR160UpJeidsWMhZgvwuOkgEsQM0wGExI6UsJkrJeiDUTI77SxAtmQ5YjoJ33zeJ4OBI4q9UUzQvdCaLhtoQgOiHPEOduTia4C9ir1RTNC7oMWXNpClaW4/zAP+YTqIkNiJIvYZxQQ9FjtmBleiFilnDauQF58N9KfI1nGdBT0A2DuWcKJnBRH4D1uALYIGeUyvVaPSWdBbYY8LUjshew9bwhLTAYTIdigvvZrOgh4ZXyyRkwu6OEuwJy/fD9iy8IVCQdcDY2INJ1raUZYjZ22asGO9ocu2hT8UCnpT7EnXgVqh5aaDSCArsKeFBpnD93N/KBT0YOxY0e1Sg10mkmFRj10boI6mYD+fwn+YLblnlzrsmO0Mm0bs2sOljoIyDVfQ3ZE7vE3Ukc3dpcrRB7sEDartqIc1gu7vvGgT9RT0rXJW02A6gAgYiUo2Vgu6L3asTCmkhvQvDI2CwAaIKWAY0APWCHqouVgiow51pXLWpofpACKgJ073sha1ZMOMhhMN62DnL69abNypDJwJllq0TdjmZmOJjFzQ/0ov0wFExEigznZB2zgAqhYb9zkE2Qg31qKB0xaGg4mKgaYDSBjrYu9AeTBQXwtsjJ0jX4BB2DUrVi3DsLcPPQBH0MPLnZliemNvd6oStsHeyabuOF0Om+o3OrM+MMp0EAlia+x9GgNsXIt9EyqFdMWeDY7CwNaxkov1ggb4jukAEsIGwLdNBxExG9WiOg6bGUXeSgMcQEGZpaX0ykILvSH6ZWadPbFjNb8XXd2JFdvZxXQAhtkA+6opi9FYi92jXpc9sG8BQxC+j50FaJ3p6s4U2k4PAm7gaBE9qWCL4ZTSkBVBAxyLXTYNftkXbZaUBTLTQoNWrxxlOoiY6QH8ByoRzgINWatzOIZs9CVddgf2MR1EjNTUIlPDrDAIONV0EDHRFfhv00HETEstdrno+OFUlJO1nZPIxr+zkJZatENn1piE3WOHLYGLTAdhgMwKejRwhukgIuRqsrlap6UWaDMdhSF+iV1efi7jKbFdQwZoqyW7Dp1dgJuAIaYDCZEjgYmmgzBISy3ZdrnfHJiCHf4duwLXYn8BkhettcCnpqMwzJ7AdaTb720Q6jdn3fpsUS3wmekoEsCxwPWks/KwO3ADnYy/M8qcrHc5CvkZ8HvS1f3YELgT2N90IAlhbi0w33QUCeJHwG2kY9HD1mhD+u+bDiQhfInTh/6CbE1/l+MQ4P9J9oLSQ9Ee5lmu8e7Mx8Ayd+r7C8PBJI2xwGMkr4a6EbgMuB8Zq+SsYQ6wvBZY5vyQszZDUP/0GpIx67YzMBWYYDqQhDIPZ2KlGXjTcDBJ5lTgSdRqm2ICapV3NxhD0pkDrKoFvgH+YjaWxLMz6lc/RLyLTY8GXkbdjA1ivG8amQ1rjAzzTd7L0wc4GD32HwJ2IPy89boobegKeQp2bYYaFS042bqajo4OkAHJK9hr5AewCG3cPh11H6r1vGtDT7aHgWnAQlS52IqeeuWoQX3zBrRUagfgQDRz2ReJuxq+Jl059Wp4EWWnFrmC7o0eqbYVhC8GPkCCewB4w3l9CJoZDHNCYgEwC/ibc8/FqOVY6nx1W1/3GIQW7Y5ANSVhTr0/DvwOVd3thbyTbd7N4GpUDrzKFXQNKnq3ZcnOW+iJczfwdIlz6oErgJ/HFVQMrERZmXPQFsguBwGHITtdG23RjkUTYqsrszqAt42FEw4twJ9QRuJe1MXwYgVwGhpMTCT9RuALkJBvK/LeI87RFzgc2Bs9jXvFFVyEtAMfuj+4LTTATsBzpK/88B/ArWga+MkKrzEWdUFGhBRT3LyEnjSvB/jMHmjGcRzprtJ7B3UdP4G1Bd0bzY7tZCauwDQDk1F+9pUQrjcErfY4KYRrxclNqGX+qsLPbwfsh/LtaUwN/h/wU5zyjUJfjiY0eEo6LcCVqIWZQDhiBtUCnIxchu4P6ZpR8iJqXY+ncjGDWvVL0ODxNNJXrDaDglqkwhYalDZ6NO6IAjAZFeO/G/F9uqFf8DkkLw/8Z5TBeAFVmIXNEFR1OJ7kp/0WoafLTPeFzoIeCDyBsytnQuhA+d6zgedZe/QeNeuj7MBZ6BdtanzRBjyD0lOvonFD1GyF/s+PoPqceFQ8gsYBJVtoUJH7CTEG5cUitE7uCszaLfRBqa9D0BYXvVArHhUdKI/9JRrw3YS6BssjvGcx1kWzlhPR9n9JYzzqfq6mmKCPB/4QV0QePINaxqTVmTQC30OF9TsAGxHODGsbWg73EfAselLO9PxEfAxF8xQHmQ6kgC+Rs+obhS8WE/S30GTE4Hji+hdWApcD5xm6f1B2Q/+x26BWu7HIV/eR3YwGtc0F3y8F5iIRPwN8HmPsQZkAnEsy8tdT0ZhvLYr1CT9CAw4Tgv4M9duKTQ4kleedw6UBtdh9nK99kQCWoWyEeyxC3Yo0cTnwV+C3mB9nvVjsxWItNKiveBfx+r+9gRaqvhbjPXMqYxCaiDK1nvELVBs+u/Mbpfyhp6K/xLiYhvpnuZjTwTw0hT7J0P1fpoiYobSgv0EpkaLNd8g8hiyssm54kzaWoUF73GOdZlTqUJRSXQ7QY+VFlJuOikeBH6KBUU56OQulVuPgFWR7VtSpwGtLinkoBxoV04HjyMVsA1cCF8Zwn5XAHXjYbpTbY+WP6NESNm+jAWC5Es+c9HAx0c9ffEKZDFg5QT+BVmGESRNwCvB+yNfNMctK5Ln9XIT3uIcy0/7lBN1B+H2j8UT7j84xx0JUhrowgmu3ATeXO8nPtm73Eqxw3IurUV1Cjr28hVJ6Ye8M8RDwXrmT/Ai6HfifqsNRXvvsEK6Tk3yeR7OJYXK5n5P8brz5OEpmV0o7ehTFXS2WY45LCW+d6mQ6FSGVwq+gv6G6Vvr3qD4kJzs0AxdQfZbsKwLMSAbZGnk6WlUdlK/RKpOc7PEAJYqIAnAV8He/JwcR9DI0qAs6HT6F8FN/OenhGvw5SRVjFnB7kA8E3bx+WsAbrCQdC05zomMacpOqhOtQrbhvggp6JZrm9LvKeBrpN7DJqY5lyGogKC+giZRABBU0KM94gc9zHyeeBZ05yeZhgg0OW1EVX2B7hkoEDarxKDfb10Ly1gPmmOEzSnsMFuNy1l4F5JtKBd2KjB1bPM6Z4Rw5Oa1o0Ygf3gT+t9IbVSpoUOs72eP9ocTrdp+TbPw0bq3IvarikuJqBA1wEaVHsAORne2wKu+RYwfu4mAvrqfKGvxqBb0UmdKUqmsegPrbaTQBzAmXJrwzXq/jP9lQkmoFDarx+BWwqsT7Y9C8fhr30c4JjxFo99tiLEJ2wFVX6IUhaFCthlet6nHA6SHdKyd9bIWe1MW2nF4FnElIy/28FskGpQ9a9FrKrXMF8vG9I6wb5qSCwWi2eNsS71+FFn20h3GzMAUNMBzlp0s5wi9BbutheTrnJJu+wIPALiXefwk4gBAn38Lqcri8B/ynx/u9kCPT5iHfNyd51AO3UFrMnyILi1BnksMWNOjxMtHj/cHIXMa0N1pOtPyW0lZhy4AfE8Ee81EIGpR+8SpI+TZyZirVr8pJN78A/svj/fOBp6K4cdh96ELWQx4Kh3uc8wlyiK9meVdOshiP9/q/y9BWH5EQVQsNWj/4EzQoKMVA5/29IowjJx7qUGmxl5gnEbEXXpQttEs3tO3yvh7nNKGNavwWsOQkiw1R+u1Ij3OuRdsXh5KeK0UcggZNfd+FNrgsxRK0HcZ9McSTEx5boIm1XT3OmYxW/Zf0pAuLKLschSwEjsF7H8ReaHnXBOSCn5N8dkRZLS8xT0GzxJGLGeJroV16oCnyH5Q57x5kSjMn6oByKuYAlGfu73HOH5EpZ2xb8cXVQrssBY7Cw7Da4QiUq9498ohyKuGnqGX2EvMk57w495WMXdCgQcFxlDcPGYF8QE6LOqAc33wLNUY3obRsMVqQkM8inh0g1iLuLkdnzkalpeW4F1nwfhFtODkejEMTJlt4nDMHjZWMuWSZFjSoPz2Z0gVNLu+gOpFqnXhygrE+slQ+Fu+toV9GT16jvt8muhyduQ/4LuX/qkcia6mLgd5RB5UDaO7gGdSF8BLzHcC/kQAT+yS00C7rI7GeQPlN4t9Hs1K3E74PcdapQetAz0SD8x4e536FTDynkJDfQ5IEDbAOemxdSvn9s9vRXtgXoNbd5Ob2tjAQOBGNV8o9BV9CVhaJsqpImqBdxgA3AKN8nn8X8Bvk6pQTnEGo1PNCyo9lmlGW43y8fVmMkFRBg1qIy9DoutHnZy5F4n4zqqAsoz/aAP48VNJbjvfR5vWJNeBMsqBdDkb9Ob+TLIvRbOTjBLOfyhK9gX1Q18Jr2rqQu1HZ55yIYgqFNAgaoAuq1DoTDR790I6yIo9SZrPGDDEcOBTYD/8NxGuoku7OiGIKlbQI2mUHNBA5KuDnnnaOG6nA0dICDkZptd2BzXx+pg3VNt+IzBZTQdoEDbAu+gWdjv/HpcvbaGuNW/C5CU2K6Y1SoPsD2+N/HAKamb0Ctc6pIo2CdumHWpzzCL428TM0cHwWlbTaYvs7GNgbrQD6DjLMDMJbKNMxjQRmMPyQZkG79EEzjb9CfcR1A3x2FVot8zmaEZuKPENaiLlKrALWQWOLYaiUc39UPNSb0oVDxViOnlyXoHx+qrtkNgjapQE4DC3SHEqwX6rLcuQT8QLKkryAVtIsQ31KU/ss1iBvwAbn6yg0sNsH2Nh5rSbgNZeiJ9MkNL6wYmLKJkG7rIfWJ/4IlaB61ez6YT7aVuxD55iFVqt/jUThtuZhtej1QE+0gqcnanW3RE+f4ahFruSP1WU+EvINwBPVBJpEbBR0IWOAo4GdUZ8yTJqQwOejVt09ljhfm1DL3up8bUfdofWQaOud7xudowHojvrBw1CZpt8UZTkWomrF6WjANzuk6yYO2wXt0gU59eyFBpJx+1V/g7orXVHfNw6Woy7TDGTqkwnvk6wIupAdUVnktiivvZHZcEKlmTV72zyHVvyU8u22kiwK2qUWGXBvCWwD7IYEnjbeQoseZqKuxNtUsUdJ2smyoDuzEcqOjEATESOdI2mWCp+irsSzaID6ETDPaEQJIhd0cepRPrc3cgUagVJlo1Gr3iWmONysyizU+s4GFqBBnhVptrDJBe2fwoxETzRT2RdlIvqiCZ6+ztEDtewNBZ9ZhXLZbUiMrc73i9EeI4sLjrkoVVh4Xl5c5YN/AnPS26x/eIo/AAAAAElFTkSuQmCC"
  10507. /***/ }),
  10508. /* 65 */
  10509. /*!******************************************!*\
  10510. !*** D:/SWS_New/sws_new/static/my/5.png ***!
  10511. \******************************************/
  10512. /*! no static exports found */
  10513. /***/ (function(module, exports) {
  10514. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAYAAABHomvIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo4NjM5NGZmZS0xNzY5LTNhNDYtYTgwZC05NTNmZjY0MDY5OGQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6M0YyNDVCNEQzOTJBMTFFRjlDRjZDMEMzM0FERkQzMzkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6M0YyNDVCNEMzOTJBMTFFRjlDRjZDMEMzM0FERkQzMzkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDg2MDEyZTMtOWUzNi0xZTQxLTk2ZDgtNGRjNTA0NzdhYWE4IiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6MDBjYWY3NDMtNWMzMC02NDQxLTg4MmItNjc1ZmI3YWEzNzU5Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+3uG3hQAABpFJREFUeNqcWWlsVUUU/t7rAwptEVqWVgklIhQRaRQqS+IPkKS4C1VcQGMCKBpRiYpEhLhAYtSYKISAoInBBfwhlhj9QUC0lB+CFYxgWWQRQYpFKF2A1/aO39y5fe9uM/fiS849M3fm3vvN2ebMeQlRuwCBnxDy4mq77tldycUoXiaTj+WNEeTFpHzeS5C3kDeQHyTtYns7+R6SyL5HINAWlq8vkPACdAOAD6T9QD825pE/ys5wD2jTh1X7GGk9G2vJT2THLA8gP8CkGVzmoXzyt9mQH3kzA0638vD2ENISzj1MWkHqaz8nRAhZGUpmJOQHJzKSuZt0gPQSKU+/2q6Xhn9ILcIe7056xlY/xIPhc90S7LIx+D4KkUP+Dnk1+dUh4xqJuQEJjYQccxFiA+etIXULU698R0rjDFwlPiev8oJCEJT/pdDbU7ZvuftPkEpJ09lpC5Eg/B+UXvhxAJzBkKPBWV7JBscrSV+Quvvfl8w6Q0bNb/EyM/zjsZzBaFPhc+z+PaSVQScRrjAhxJ3KGWBQoxWTopwpbI41l/SIL8xkJhSQr3FUHK3aWLYWR5qBsQ9I/bNOklXtEl6u0TqDv51gt2iUosLrgd6lwLez1FjxGGDMC97dyWoHLjfBfjB9Adj6nM6BisiXsyGdx/Fie4cQT3snQw+uZDww9D6g10DfFuk4g9Wh+p2XFe+4yHaa8weofjInRDse6T7Oy3Ly4ynnxjxe8oIS89liohsweg4wsEKN/fs7cOJ74Ox+4NL5rBOd/hnY/ID3w+NfzQLMaMjSRQV+yJpP/mLKmfBYpI3l5AI3U219rgNaTgL7PwEa92nszyWNHCrppvlK7Wf2An2HOU5pRcVHGUkWSSe5kY1hkc5QPl+BO8cdqnaxBlyII0xYCgy6FbhwAvhxsVK328a126SdHU2QEpwUKb1Bk+gMI4HmP4FdDJOd7dGZiJR4BSXej0507jDBvQLvtmpFRAF7fLIEWGEEl8oDSiuVF+6jWjsuxdvKxi8C+o8Gmo4BNbS/dKtjo9BHieD+PZYArTJ9Tmep8JFXrBxCkhacI5FkD2Dcywrc+SPA9oVAe5vX8TwAjflgmQwzJUbbK5mgXnjoK7Mz2CukSU9kOO13AxdTD+x4zQeOtHed10nMyUaxVHGBcWLhSAWw8TdzaOjWC7hloQLXdBT4gWrtaAuq7+iWaC1kxwtSkTtGzyJKodVs1HJs8GRgQLlayI43HHDmdN6oXmQT1hbj3mlvU2nzHiqfP/IdcHwbQxBPBOlmPbihtwNTV0WDV9QinaQhsweHTZTbVY++ZvXKvoxvP70b7Z3FPAQWjYib6J6RgbrekJbTE/9QUuyeHz91Mo0VlTkS1h0TPKZUL1VcZ3z5yVoFcOi9UZHflz2HSKTPtUBuH6C1Ie7ifpEAtwXTcteL//lVqa+UTpDKvTJp+ceH3MZ39GQyURc3x9xKgBZP/NYxrYqb/+ILd1PFvYGyGa7s2wqXlg5078HAqJlKG3VrYDQrBa6RVJt0yhGfGl9et5K8Exg+TUkyUr0+LeQWApUrFLia12mDbTHONDySQqSdM4mg31uXtGqSu0HNUpWIjn2eQKuYG+bEU28Rs+2pXGAuI8GhbxiOtoQc6ANAKQ079Zdx0J70NztrtZ4l+w17gJ3LVGZcPhuY8j4T13KVwodJMp/79zgu5g6qs2CQArdjmSsT8mvMc49HUHFIFY+q7+8aLCRnyLH6a3cLOLZUscCJZQkVMhqZRLSe5po6lZdKb72qVKlUju+mgg5siuEYtn3zwCJGkp+UYwnxdZXb0GeQNoZmuf4Kgwy4w3kuKSFPJIMlvOZTwMFqoJ5JxuXmcFCBezbCJ9n/sKufEJum+aW1iqCeiixbXEnZI6qdXfgG8ofdgkiGeO+zvGyOjHPadD/mgT4gRch4PDv7TsDtJO6HO+xVCLElfunCugJJhla9dvIynbzNX59MajIZWWW6i/2PgurVxDoh4gTfsHtf8jKFvClEql0qDpVEmjSH93gktc6ZJRm3oORRbQu5tPWHeOtioMSXkaBWPRnA60my5LuO1K6tegUzEZ29yUmfyfMGabW9k4UVRwFXhTXaGeS+ONc+P8N6j+On9TuIVv1nnfKaPIfPIp0KHtbgK8rLMLOx8v+k5bI8PDHzN4QQI+QBx/4bQs1pJW/gVFmH3sX2dvIaWwP+corp3wX+UnqVGW2qk1TjfNQQfMPqjAiWlOG75/r9J8AA9yWND2ba+gsAAAAASUVORK5CYII="
  10515. /***/ }),
  10516. /* 66 */
  10517. /*!**************************************************!*\
  10518. !*** D:/SWS_New/sws_new/static/images/icon4.png ***!
  10519. \**************************************************/
  10520. /*! no static exports found */
  10521. /***/ (function(module, exports) {
  10522. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QTFDMTFDM0NGOTA3MTFFQkJFRDZBOEI0QUZGNTQ1NkMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QTFDMTFDM0RGOTA3MTFFQkJFRDZBOEI0QUZGNTQ1NkMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpBMUMxMUMzQUY5MDcxMUVCQkVENkE4QjRBRkY1NDU2QyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBMUMxMUMzQkY5MDcxMUVCQkVENkE4QjRBRkY1NDU2QyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PpuSwMEAAAG4SURBVHjanJZbK0RhFIb3fBQGicgfcEeRpEQioVDiSimhHErkWCQipSinTCQh/oAyOYRIoiTxF9ySGDlEwrtq7VrJTHvtVc/Fei+e2TPf+tYej9/vj7IsawLEgH5wZ7mocFAP2rnPBoXgXisy4Fb0qeAIJLkR7YARkaWBA5CoFVGNgjGRp7MsQSuiGgbjos9gWbxWRDXIJ2hXJtgHcVqRxSMwJfosJzITJO8FM6KnsdgNJTMhPqQHzIk+B2yDWK3oB3QBn8hyeVyiNSJb1gEWRZbHMq9GZMvawLLI8vlrejUiW9YCVkRWALZsmVHcApI1gzWRFYFNEGmUd/MbNIF1kZXQ72gsdxXxp//SisL4aWpERoPqM0rJKqgV2R6oAp9GsSXo+OtERvevGnw4PTUPSxpEdshP8u50jkiyBBpFdgwqwZvTySbJAh+3XSeg4q8klIgk86BVZKeg/D9JMBFJZvl+2XUGysCrZh9N842365wlL5oNSSu2U/QXLHnW7OxJ0C36S1AKApq3CL2G+kR+xZcxYCkmlgZrQGTXoBg8ad+0yaK/Ycmjm38jGyCFN90QeHCzV34FGAB+SVO+e9XTMQAAAABJRU5ErkJggg=="
  10523. /***/ }),
  10524. /* 67 */
  10525. /*!******************************************!*\
  10526. !*** D:/SWS_New/sws_new/static/my/6.png ***!
  10527. \******************************************/
  10528. /*! no static exports found */
  10529. /***/ (function(module, exports) {
  10530. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAYAAABHomvIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo4NjM5NGZmZS0xNzY5LTNhNDYtYTgwZC05NTNmZjY0MDY5OGQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTEyOTIxOUEzOTJBMTFFRkJDODFDRkRBQjI2NDEwQ0YiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTEyOTIxOTkzOTJBMTFFRkJDODFDRkRBQjI2NDEwQ0YiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDg2MDEyZTMtOWUzNi0xZTQxLTk2ZDgtNGRjNTA0NzdhYWE4IiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6MDBjYWY3NDMtNWMzMC02NDQxLTg4MmItNjc1ZmI3YWEzNzU5Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+k8B0TgAABmxJREFUeNqcWVtsFFUY/nbYVqCUQinQUgSEQhEFI9JEDRptTIyCJGqi4l25I5AYMPFBXwAV0aCCMYjKi9zkTRMTo4GYAD5oAjVSWaCRcrNcSqDQG9Du+P17znZnZs+ZmXXTf/8zZ87OfOe/n7+JVS0ugh83O+Vm/ny8776LO8nqyWfwejLHlRwP4jhB3s7r8xwf4/gP8l/JG+Qx+reZZ2Qp+3zTvWQh4HivgqPF5C+RT/I+HP6XDeF4NAf3kM/V881k33L8FcenfeDc3HuDwJ0cssAiPziRzHqOmsnX8HqS9+HBXee9WPFxpHc5biLfRBqa97u0Js+ckwdIP9AzfoL8KEdvkZcYJRYC1EDFpGWiftKzxjUECQ3UMalUg+5H9hH595wbZZUYwoH6xn7pVJB2kb4kFcECNGmxt2J+7+Cip/MMON/ekAfeYvBw87VFWkgay+unyDuDax0DuARvbBVwrg3A/1Atgrbmv/co+U6tft9ax2BP6zh6wQgq4GUBScQGDbNDzCF9HlzrBF4+SztDnjrdQiSWjr8efqALuPZ5H0APuFIog00YQRXiDHFVbQ4xG0nD+wJ1n+cyRpFVF+IMt5eQBgK1pFv7A4sa1b27S4GlY/0J4CZffq0HSCTIbwLvNFo3Noz0HocLkckk2QzhYqkLs70FAdcRwOxhwPBiQxYi9ejfX08r3t1LgJyr0OudKC938aqA5MzJpL6xmKzECk7PSUx6pQqYXqquj3UA+68AKfI2SiWt1//ZBrze4AfwZk0OIKIBSlxcTr4qqaXzMiLsbQC3/UY1MH4A0HId2HUOONJu3oz3OkmVzhsH3FUGNF7l70v8qTXktxJJ3hYnmUqa6Ebk1QWjFLimTmDtPxqcwWODz1lJyd1bDpztAtYdUerO4EtHOlIl6T5xkoejssCD3P1kOsKZbuCzU8rgoyqR/pT4ktv4O5rDCZrAB0c8lRLMEcIgpHpRcZ3NGYRK+KL6cmXkotbrvdFpTPiKCcAUgjtNiX+YAjp7QgDa0+MMcZJaW54UPuYWYCSN+2iHcoowexNeTJtbXqPAnSS41Y25TZkAIjwz1QrAKpuqZL5usJr78UI0OAkfKycyLhJcE23045S2Oc/aHc0hAT4feGVSZxCrqGu114lTuJb0B+3lyyYocKc6lUN09eSrft/5iI3631+aRIQtlBfRfnrtRp1d9wAD9x2UduoasCGlwMUp6SNKsUwubg/Nq8h5ra8SCex+D01gfyvwCWvvjh5LyOLv6iuB96fHLtHaRcVy+qq27VTSVVlRyK6RW7e5KTL4YtoQoKY0RJJ+7VwQCabCKpHmTvWjQf0su06bJWpzpAmlOQnHOGilpB48aKvnZNHvVxTAx0ZEqCMdnh2ExtDhBjNkXewKL788c4dEgnutZTnp76sqVMwcprJDAXVd3tqZI/kMauLw5Xg1JOf2CMAG182cd40PbeFuG1id0N8xp6qA80cAZDVT5ZO6Rtx+PPowRd5KdkAASjtiW9iLt54AeskfpwfOrIiuRHznW2kzUK2rpytwn/4ViI/258iR9IajL74gddteKCpen1IgF44HZlXlis4o5xCPXUNwZQS55ywDdUv05jgnr9qYaX3oXbZIzyRMbY1tKsZJTJxLVa2dxsBcZgc6gkeA+ZOYUeqAqoEK3KbDrLbTlqOrP0HsJD8u14nXDrnZeFYubi0HljDjHc2acEGNkgzrgkzIOE5HutitJDy4SHnraJ0i21lpb6PN/XQ61N6811fJpnB8FhmAB10vgGe47LuoeJYJuEMZekYp7iTyOng4T+f6+QyBnfLHPZgk5h8v4teWvmNGQDW7efMh8iVRPZdDl0it4fnZeiK0H8h2cbTFu8YxSGsF6QdvhynW+TZdQOvDDG4vR/OC0nUMD+vRTcdfvIE37mHcJj3bgUzz3zjKNI+CdulYdigLZ5N/Y5JQoc0ia+NJgd1NeoTUZurqOiEvuUGaT5Ij6WWbGuHGzqt+adLBIbbu4jlOd7mWfrgToxKRvrK0fL8m3US6gN4MjFJMk2+HOgttRraxbmnWOzErkVbpPOnz8wbSuYJVC1yCaq9N5cyL5P9aWs45r+cnMfeAmx/rECmZfvy6X86tcjSE/BtCDtosG/WaDkghDM+/IZjlMhowdWuD/+LwfJIx27TBe738khfuC8sMxk4Z4oOTz38CDABNFOZ6F9d/OQAAAABJRU5ErkJggg=="
  10531. /***/ }),
  10532. /* 68 */
  10533. /*!******************************************!*\
  10534. !*** D:/SWS_New/sws_new/static/my/7.png ***!
  10535. \******************************************/
  10536. /*! no static exports found */
  10537. /***/ (function(module, exports) {
  10538. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo4NjM5NGZmZS0xNzY5LTNhNDYtYTgwZC05NTNmZjY0MDY5OGQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NUYwMDI1Q0EzOTJBMTFFRjlCMTFCNDQ5NDNEMDE3NDQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NUYwMDI1QzkzOTJBMTFFRjlCMTFCNDQ5NDNEMDE3NDQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDg2MDEyZTMtOWUzNi0xZTQxLTk2ZDgtNGRjNTA0NzdhYWE4IiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6MDBjYWY3NDMtNWMzMC02NDQxLTg4MmItNjc1ZmI3YWEzNzU5Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+kP2AuAAACDZJREFUeNqkWVlsVUUY/uf03ltaWlqW0lJA9rIoxRTKpgICUrCA0RA1EX0w8opo5AXjgz6hQQKGGDXG8KBojFHDVippUHYIKbIbKHuhG6W0dKO3vdfvP9udOWfOvRIP9Mz/z5lz5pt//nWuWHF0KwVdQr6LRK+QnwuXD4MahDbL7m9Hex9UlEdY78vvqn3m3frvjhIi8Sz0P0AOw4NytIvAluDJWLQhz+S9aK6hrxpcFfr24K+OJAAqaJuWBOAsIJQUpCBFAva1FPS7YJegxyBFAurkNvAicEXgXkdfDN1/gN4Kep8sNXdxHik7vPEYIGfhfgx0BdilFkjhSsCaUAHpApcmNYS10ArzW0LMEpIUnW8IjWoYKkh7iAoygmYzfxgPZgtJj4RfT90JvMATk7pbO9te+GZwEVWywrdIw5Gi0OqjKABxGF3v8cxeNQgCSdIi9EaTEAl/G3eeo0C7O8J630hiNONBHEFb6gXjjpUUPhCQf/vVBVjfKMX9CIjxsqXLtOHqo2p1LMlK05K1IFVd0umj1tWI4K0FPxb3SkeyJCQBmDrqN5oI7jstkKRKTLHSYGsXQv9OkOFJO8Fgd4KPCM/OhITfP27Eg9LH0cd+RogmZw+joqwCGpo+gMJGGrVGu+h6ZxNdelhHzT3tPicuuyMP6FJQG9Hzvjw25AE5EyPXafVRtnIbZEZahF4pnE5Lhj5J6UZg7KCzrbX0W101gN/TRh5vFMK1DvxPoE46PSFPONzqaIIepNXHFjh38ARaM3oepBk2AexvvEDXO+7Rg2gnxShO/dPSqTAjl+YMHEfPDB5PxTkj6HDzFdpRe4K6Y9FU+izsoDDHWUSIEoPLcJ9NQSuWgK8eOZfKC4rpTtcD2nptP9oW3ztdfVFzy8+33aEfao/Ty8NK6IWhU2hs/zz69Mo+6ujtJtVofKAZSxm+Vyks4bguY20qozHQt6pwhgmyqukSbbj4iwnW+05IpCk8g/4Rkvy8phI6nE0fFr1IEaiK3lMIOWisdd2T7ZbYJZRRikhTnDOSVg2fQQfvXabvbh6i3nhcscwIjOjjSS/Rl9NW05QBhT5LZ8P64moVDYlk0zujnqM0eUEy6IS6lZlBR0oqlqNJS+XE141bTHXdrfT1jT+1TnzqgBE0BlvbLy1M5fnFCSlJ37zUXke7G85QSe4oGpc5ROMFFB/NmJZbErWGLfBtg8eQFuVNNq18B/QtyIlfeHjHNCze6n0N5wK3dk/9WdPoXh0xU+Nf1aAAekHC6oUoSeXEF+RNooZHbXT6wS2dOzH53liMPvlnpzacevk9WMgbI2ZRFrxDR1+PVrK2KpZYIVSIkB3XAzOfvPQsKuyXS6dabvgiDQVIQiQByf/ZlfXFY/R07hNq5FJUxaTHs3dil5hrlxGB5UJuuD9lYtvZGCgApFkuCIM+mrSCthWvpomIUn4jSfAt0XbqhCTHZOZprJ7c3Ap0GHQu62iWfqsSH2Xj4Kuxp02rU84kLJ0xMJAMjF8xbFoSqROcfi/1xPpoYDgzcBek8dkhbQnhjRRKah2sf2G4G+eKiJC+/vH5aAoo8pTwGmc/2p4q83kU6zWf58NZJysX4vjnXBxGPUmyApJVif1uS29ngNNXcoB23voWXUkrS6INmVAX9GlydmFyo/HWX/5I444dFLH0/mZns+LqNDoaBd3CxtQHtiZJuWDG7LvdD2g6nHSyckEDVXI1qtTYiNJgfGeQWflck6qjNYzRsMuFap1lyuXCIWQ++cg1/e5EpZ3L0CbNiW8vHfoU1SKZ6Yr1+P2nakjVwi5fma1KltQyzfGdI85rw0v1SQT62C86VzTeF1izLwPInHAG/Vpf7bMH8lcUVeRmT0R70dGbqlz4CjGepfo2Egp/eBR0rq3W1LluLKiCQ6gmiEyGfy0D0DNtt+lW531t4iz1sRXvlUNog7CKuXJ9eLToi8gtd9WfoRUF0ygKH/jznZPUR3F3OTFkU5/VVGD1BsXjcZ8VcxBYM3o+3Y920Pe3T2B8THGH7owJfedctMEsRSRxbwFV7j3zkeXK/3fV/22WHVx+TMzKp29uHjQzKnnrHJDOVmciACxDNjV/cBHVP2qlbdcOQE365HiuPdLBtcXF8eapb+UBR9HMCT5pS7iumYPGIqmYbYK+3XWf/mq+jK1spjZk7iypzFCECtJzaXrOE1Q6cIw568mW62btxH5ZBil7Dwn4Ma543ODzFgNNRIoZoE4I4ZwrUdJyIcOIQFJTaf6QIjNjD7o4R9jXeN5cEPmMhnQgY2hngTnljAh5LPMU2M2gPkh+hmnxj+JR+r3+NFU0nqMJ/fORNA9B9p5lliIPIVkGVtPRiASk02c0FAyS280ySNeYPOFtA8hnhXWI5cm8tfmiaVgX2++a2btcTnudeBKjkfs5M9/gzTMMTbkQBb0S9FWRBKT3ECxJ5qNz4v6cwXrvKv5WMgYVvF3caZKCJvwtJgarPY4JzqRIk9TIRiP0W83NVWtOntsvecMfX13+Bj44h7ci+DhG/JfMRz4VDQJ53D5suKGklAnEbghVJSMUyc4Duwl9MV25kCLzSWU07PE38RzoaPKBlHbC0JYL6jZxmrXePsM8RikA6XSUhEavzRNs85vrrTTTq07qDx5GUP2jyXyQxdBctAvRt5t/8XhcoyF+h8RuMAvtb1Vr1MAH0vKjKcsFX2g7gPsBLk45NwD/vPnzjRBF1tmqstU9aC5zqgbuAP98g4dN+hJHBil8QSOU6ocon4EonoG2o2u7PR4FkxiANsf+RisXB5z0BvtNVR+DQPL1rwADAPMI8UNbTm+/AAAAAElFTkSuQmCC"
  10539. /***/ }),
  10540. /* 69 */,
  10541. /* 70 */,
  10542. /* 71 */
  10543. /*!************************************************************************************************!*\
  10544. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  10545. \************************************************************************************************/
  10546. /*! no static exports found */
  10547. /***/ (function(module, exports, __webpack_require__) {
  10548. // TODO(Babel 8): Remove this file.
  10549. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 72)();
  10550. module.exports = runtime;
  10551. /***/ }),
  10552. /* 72 */
  10553. /*!*******************************************************************!*\
  10554. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  10555. \*******************************************************************/
  10556. /*! no static exports found */
  10557. /***/ (function(module, exports, __webpack_require__) {
  10558. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  10559. function _regeneratorRuntime() {
  10560. "use strict";
  10561. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  10562. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  10563. return exports;
  10564. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  10565. var exports = {},
  10566. Op = Object.prototype,
  10567. hasOwn = Op.hasOwnProperty,
  10568. defineProperty = Object.defineProperty || function (obj, key, desc) {
  10569. obj[key] = desc.value;
  10570. },
  10571. $Symbol = "function" == typeof Symbol ? Symbol : {},
  10572. iteratorSymbol = $Symbol.iterator || "@@iterator",
  10573. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  10574. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  10575. function define(obj, key, value) {
  10576. return Object.defineProperty(obj, key, {
  10577. value: value,
  10578. enumerable: !0,
  10579. configurable: !0,
  10580. writable: !0
  10581. }), obj[key];
  10582. }
  10583. try {
  10584. define({}, "");
  10585. } catch (err) {
  10586. define = function define(obj, key, value) {
  10587. return obj[key] = value;
  10588. };
  10589. }
  10590. function wrap(innerFn, outerFn, self, tryLocsList) {
  10591. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  10592. generator = Object.create(protoGenerator.prototype),
  10593. context = new Context(tryLocsList || []);
  10594. return defineProperty(generator, "_invoke", {
  10595. value: makeInvokeMethod(innerFn, self, context)
  10596. }), generator;
  10597. }
  10598. function tryCatch(fn, obj, arg) {
  10599. try {
  10600. return {
  10601. type: "normal",
  10602. arg: fn.call(obj, arg)
  10603. };
  10604. } catch (err) {
  10605. return {
  10606. type: "throw",
  10607. arg: err
  10608. };
  10609. }
  10610. }
  10611. exports.wrap = wrap;
  10612. var ContinueSentinel = {};
  10613. function Generator() {}
  10614. function GeneratorFunction() {}
  10615. function GeneratorFunctionPrototype() {}
  10616. var IteratorPrototype = {};
  10617. define(IteratorPrototype, iteratorSymbol, function () {
  10618. return this;
  10619. });
  10620. var getProto = Object.getPrototypeOf,
  10621. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  10622. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  10623. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  10624. function defineIteratorMethods(prototype) {
  10625. ["next", "throw", "return"].forEach(function (method) {
  10626. define(prototype, method, function (arg) {
  10627. return this._invoke(method, arg);
  10628. });
  10629. });
  10630. }
  10631. function AsyncIterator(generator, PromiseImpl) {
  10632. function invoke(method, arg, resolve, reject) {
  10633. var record = tryCatch(generator[method], generator, arg);
  10634. if ("throw" !== record.type) {
  10635. var result = record.arg,
  10636. value = result.value;
  10637. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  10638. invoke("next", value, resolve, reject);
  10639. }, function (err) {
  10640. invoke("throw", err, resolve, reject);
  10641. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  10642. result.value = unwrapped, resolve(result);
  10643. }, function (error) {
  10644. return invoke("throw", error, resolve, reject);
  10645. });
  10646. }
  10647. reject(record.arg);
  10648. }
  10649. var previousPromise;
  10650. defineProperty(this, "_invoke", {
  10651. value: function value(method, arg) {
  10652. function callInvokeWithMethodAndArg() {
  10653. return new PromiseImpl(function (resolve, reject) {
  10654. invoke(method, arg, resolve, reject);
  10655. });
  10656. }
  10657. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  10658. }
  10659. });
  10660. }
  10661. function makeInvokeMethod(innerFn, self, context) {
  10662. var state = "suspendedStart";
  10663. return function (method, arg) {
  10664. if ("executing" === state) throw new Error("Generator is already running");
  10665. if ("completed" === state) {
  10666. if ("throw" === method) throw arg;
  10667. return doneResult();
  10668. }
  10669. for (context.method = method, context.arg = arg;;) {
  10670. var delegate = context.delegate;
  10671. if (delegate) {
  10672. var delegateResult = maybeInvokeDelegate(delegate, context);
  10673. if (delegateResult) {
  10674. if (delegateResult === ContinueSentinel) continue;
  10675. return delegateResult;
  10676. }
  10677. }
  10678. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  10679. if ("suspendedStart" === state) throw state = "completed", context.arg;
  10680. context.dispatchException(context.arg);
  10681. } else "return" === context.method && context.abrupt("return", context.arg);
  10682. state = "executing";
  10683. var record = tryCatch(innerFn, self, context);
  10684. if ("normal" === record.type) {
  10685. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  10686. return {
  10687. value: record.arg,
  10688. done: context.done
  10689. };
  10690. }
  10691. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  10692. }
  10693. };
  10694. }
  10695. function maybeInvokeDelegate(delegate, context) {
  10696. var methodName = context.method,
  10697. method = delegate.iterator[methodName];
  10698. if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
  10699. var record = tryCatch(method, delegate.iterator, context.arg);
  10700. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  10701. var info = record.arg;
  10702. return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  10703. }
  10704. function pushTryEntry(locs) {
  10705. var entry = {
  10706. tryLoc: locs[0]
  10707. };
  10708. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  10709. }
  10710. function resetTryEntry(entry) {
  10711. var record = entry.completion || {};
  10712. record.type = "normal", delete record.arg, entry.completion = record;
  10713. }
  10714. function Context(tryLocsList) {
  10715. this.tryEntries = [{
  10716. tryLoc: "root"
  10717. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  10718. }
  10719. function values(iterable) {
  10720. if (iterable) {
  10721. var iteratorMethod = iterable[iteratorSymbol];
  10722. if (iteratorMethod) return iteratorMethod.call(iterable);
  10723. if ("function" == typeof iterable.next) return iterable;
  10724. if (!isNaN(iterable.length)) {
  10725. var i = -1,
  10726. next = function next() {
  10727. for (; ++i < iterable.length;) {
  10728. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  10729. }
  10730. return next.value = undefined, next.done = !0, next;
  10731. };
  10732. return next.next = next;
  10733. }
  10734. }
  10735. return {
  10736. next: doneResult
  10737. };
  10738. }
  10739. function doneResult() {
  10740. return {
  10741. value: undefined,
  10742. done: !0
  10743. };
  10744. }
  10745. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  10746. value: GeneratorFunctionPrototype,
  10747. configurable: !0
  10748. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  10749. value: GeneratorFunction,
  10750. configurable: !0
  10751. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  10752. var ctor = "function" == typeof genFun && genFun.constructor;
  10753. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  10754. }, exports.mark = function (genFun) {
  10755. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  10756. }, exports.awrap = function (arg) {
  10757. return {
  10758. __await: arg
  10759. };
  10760. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  10761. return this;
  10762. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  10763. void 0 === PromiseImpl && (PromiseImpl = Promise);
  10764. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  10765. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  10766. return result.done ? result.value : iter.next();
  10767. });
  10768. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  10769. return this;
  10770. }), define(Gp, "toString", function () {
  10771. return "[object Generator]";
  10772. }), exports.keys = function (val) {
  10773. var object = Object(val),
  10774. keys = [];
  10775. for (var key in object) {
  10776. keys.push(key);
  10777. }
  10778. return keys.reverse(), function next() {
  10779. for (; keys.length;) {
  10780. var key = keys.pop();
  10781. if (key in object) return next.value = key, next.done = !1, next;
  10782. }
  10783. return next.done = !0, next;
  10784. };
  10785. }, exports.values = values, Context.prototype = {
  10786. constructor: Context,
  10787. reset: function reset(skipTempReset) {
  10788. if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
  10789. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  10790. }
  10791. },
  10792. stop: function stop() {
  10793. this.done = !0;
  10794. var rootRecord = this.tryEntries[0].completion;
  10795. if ("throw" === rootRecord.type) throw rootRecord.arg;
  10796. return this.rval;
  10797. },
  10798. dispatchException: function dispatchException(exception) {
  10799. if (this.done) throw exception;
  10800. var context = this;
  10801. function handle(loc, caught) {
  10802. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  10803. }
  10804. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  10805. var entry = this.tryEntries[i],
  10806. record = entry.completion;
  10807. if ("root" === entry.tryLoc) return handle("end");
  10808. if (entry.tryLoc <= this.prev) {
  10809. var hasCatch = hasOwn.call(entry, "catchLoc"),
  10810. hasFinally = hasOwn.call(entry, "finallyLoc");
  10811. if (hasCatch && hasFinally) {
  10812. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  10813. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  10814. } else if (hasCatch) {
  10815. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  10816. } else {
  10817. if (!hasFinally) throw new Error("try statement without catch or finally");
  10818. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  10819. }
  10820. }
  10821. }
  10822. },
  10823. abrupt: function abrupt(type, arg) {
  10824. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  10825. var entry = this.tryEntries[i];
  10826. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  10827. var finallyEntry = entry;
  10828. break;
  10829. }
  10830. }
  10831. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  10832. var record = finallyEntry ? finallyEntry.completion : {};
  10833. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  10834. },
  10835. complete: function complete(record, afterLoc) {
  10836. if ("throw" === record.type) throw record.arg;
  10837. return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
  10838. },
  10839. finish: function finish(finallyLoc) {
  10840. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  10841. var entry = this.tryEntries[i];
  10842. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  10843. }
  10844. },
  10845. "catch": function _catch(tryLoc) {
  10846. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  10847. var entry = this.tryEntries[i];
  10848. if (entry.tryLoc === tryLoc) {
  10849. var record = entry.completion;
  10850. if ("throw" === record.type) {
  10851. var thrown = record.arg;
  10852. resetTryEntry(entry);
  10853. }
  10854. return thrown;
  10855. }
  10856. }
  10857. throw new Error("illegal catch attempt");
  10858. },
  10859. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  10860. return this.delegate = {
  10861. iterator: values(iterable),
  10862. resultName: resultName,
  10863. nextLoc: nextLoc
  10864. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  10865. }
  10866. }, exports;
  10867. }
  10868. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  10869. /***/ }),
  10870. /* 73 */
  10871. /*!*****************************************************************!*\
  10872. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  10873. \*****************************************************************/
  10874. /*! no static exports found */
  10875. /***/ (function(module, exports) {
  10876. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  10877. try {
  10878. var info = gen[key](arg);
  10879. var value = info.value;
  10880. } catch (error) {
  10881. reject(error);
  10882. return;
  10883. }
  10884. if (info.done) {
  10885. resolve(value);
  10886. } else {
  10887. Promise.resolve(value).then(_next, _throw);
  10888. }
  10889. }
  10890. function _asyncToGenerator(fn) {
  10891. return function () {
  10892. var self = this,
  10893. args = arguments;
  10894. return new Promise(function (resolve, reject) {
  10895. var gen = fn.apply(self, args);
  10896. function _next(value) {
  10897. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  10898. }
  10899. function _throw(err) {
  10900. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  10901. }
  10902. _next(undefined);
  10903. });
  10904. };
  10905. }
  10906. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  10907. /***/ }),
  10908. /* 74 */
  10909. /*!******************************************!*\
  10910. !*** D:/SWS_New/sws_new/mixins/share.js ***!
  10911. \******************************************/
  10912. /*! no static exports found */
  10913. /***/ (function(module, exports, __webpack_require__) {
  10914. "use strict";
  10915. Object.defineProperty(exports, "__esModule", {
  10916. value: true
  10917. });
  10918. exports.shareMixins = void 0;
  10919. var shareMixins = {
  10920. data: function data() {
  10921. return {
  10922. shareData: {
  10923. title: '',
  10924. path: '',
  10925. imageUrl: '',
  10926. content: '',
  10927. desc: ''
  10928. }
  10929. };
  10930. },
  10931. onShareAppMessage: function onShareAppMessage() {
  10932. return {
  10933. title: this.shareData.title,
  10934. path: this.shareData.path,
  10935. imageUrl: this.shareData.imageUrl,
  10936. content: this.shareData.content,
  10937. desc: this.shareData.desc
  10938. // success: res = {
  10939. // }
  10940. };
  10941. },
  10942. onLoad: function onLoad(option) {}
  10943. };
  10944. exports.shareMixins = shareMixins;
  10945. /***/ }),
  10946. /* 75 */,
  10947. /* 76 */,
  10948. /* 77 */,
  10949. /* 78 */,
  10950. /* 79 */,
  10951. /* 80 */,
  10952. /* 81 */,
  10953. /* 82 */,
  10954. /* 83 */,
  10955. /* 84 */,
  10956. /* 85 */,
  10957. /* 86 */,
  10958. /* 87 */,
  10959. /* 88 */,
  10960. /* 89 */,
  10961. /* 90 */,
  10962. /* 91 */
  10963. /*!**************************************************!*\
  10964. !*** D:/SWS_New/sws_new/static/urinometer/1.png ***!
  10965. \**************************************************/
  10966. /*! no static exports found */
  10967. /***/ (function(module, exports) {
  10968. module.exports = "/static/urinometer/1.png";
  10969. /***/ }),
  10970. /* 92 */
  10971. /*!**************************************************!*\
  10972. !*** D:/SWS_New/sws_new/static/urinometer/3.png ***!
  10973. \**************************************************/
  10974. /*! no static exports found */
  10975. /***/ (function(module, exports) {
  10976. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAABdCAYAAADDhLr+AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo4NjM5NGZmZS0xNzY5LTNhNDYtYTgwZC05NTNmZjY0MDY5OGQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MEY5Rjg1ODgzOTJDMTFFRkFDMDQ5QkE5QzE4NzY4OTQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MEY5Rjg1ODczOTJDMTFFRkFDMDQ5QkE5QzE4NzY4OTQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDNmODZkYzQtZDZlZC1iMzQ3LWIxODEtYjUxNzIzMzk5ZGYyIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6ZWRhMTcyNjctNWMzYS04NTQwLTg3ODMtYjg5ZDM4N2RhMjAyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+KdYXVQAAB3FJREFUeNrsnXlsFFUcx39vju2223a723Z7QQF7cLQgYMQoEg2BPwzRiIhHiDHG6D8SlYiSCAQNifIfiQfBkCiIclVpisUI/CGKICblhlDaQikpLe220G1Lj53dWd90u9s9ZrezM+1sYX/fZroz82Z23/u83/u9Y2beEABgwCsCo2jrD9v55a+vfJrj+WcIIWV0VyFdLErOfQgl0qWLLrc9Hs95wen86+cdO09ueH+tS8G5Hh9wZjR451oaCrJzbB8yDLOKbtoAFUntoijuam+989X8SaWto2VAVPB7j1QZm93dm3Lycuso+DUIflTZKKePcwvy624JXRu+O7DbEOVYIoFn5UIu25uKLZnW/dS9PIpM1Ym6ozOd9o5X5+RMuylLXw7+jT77Y8bk5Gq6mo0INetOf1/fsiKT7UJoABO6o6G3rZyCP4rgx0y5ySkpf0ieJCr841dqzCkm0y901YzMxlTZ1qzMyurTf5oiuh1aue6gFcZbyGqc2qaiuH0Sm746DD71849Td3MqQdvsuvGn/n8B9f/ng9xOktG4EcGPuxhq4OuDfP7FtsaptEn5HLIZf1HOL5xtrsvzw8+wWlai1esmNtOWvUJa4Ya2WHZxLGd/cmYvdDv7IFLHITAfCQkOJcMDGwttpbDqkYXx7wjRv72Np+DSveaAQS4SEHfiT41/jYyk05eez+auUPybHMctoR/fMMNFYV7skQ5fvPvJyDaRC/fqbGcjuER33OH3CgNQ62j1QwRf/ElwWvwLGUmnLz2EkFhdz9CoAXf4v+MZ9DNLbeSnpmYDz7BSV1quCITYvFduUYQl+eXAMWzc4afxybA0bzZcvNcELOGABFk2BFs9GUkNS4H3u5xgH+xR87OTd1btT+Fy8nIztET+3dLFYE0yDQFVWmIYIkWemTBOeFHOdHjSVhLTORyNf333HdhDXZaayrJ01kwzl5qWlqa5Bqd/E8GKtYhTYQySu1HbSuENvEGz+YW5mwTSSNrVZQGjzeJRwbWZTvAJ4tdMgEGLH5Neq95uh2BOhHUidYGP4ANdr+4+H9lrFxOP4vYwWj9WuA9Yi4dBdPFq5Wv2+QTEBO7hir4xWqIj/AKT9/bMrKQ0sBpMCQs/P9kCBpZTbf2cmpPeKVkMN3vtkJeS8cAPqGlRKm+Et0ueBUHldQlV8I0sDzPM+ejwqSwaSj4jCAI2Xh60dj4K4SN8FMJH+CiEj/BRCB/hoxA+wkchfISfyFI1pNzvdsLh5vMwQD9DL6T5Hijwb4f9h+AwmZtNw48mYbduB4UQmYcywo8KiF94SGi8o32H93jflgd4hoMleeX6wD/ScglOtNWGwyUykQyBQyKAJ0FPswRnWTB4EnbPvOL9UZ80Cc4+uUwlsvHzrqmBr8rtFKfaAu6vVw9ezsZCE0ZCSkNs4CEieBhD8ERPt1NumQzrZj8PTrcLIErRlPU1owYRiOErZF2QsmOVh4z2lWovpXIqMw1yjDhDALZ2ED4K4SN8FMJH+CiEj/BRCB/hoxB+vOHzPO9BDGj5CF+J+lyDUNNxA9r6HQkPsH2gG27d79QP/u7r/8D+m6dhW+0xGHQLCQve4eyDA5RD1a0a/eBLuS1dYOgXBehxDSQs/I7BHk3zDal/CHr4chqTwI9Ea52qTN3ZBGfbkTFH/Vo7CH6ERJxmHcEsiEs7H8EH1n+6VrgIfiz8rza3g5PuxMntIHfNxs+oB4/OJ06WTyLeD5yYVq+ynS+KoqC2mElZwDKJOzDq7eGqNz6u2+HozbBaVOe5NMIpTQKtZMYp3xz1kttK5YwTCuR9mo5YwQ9oGFTs7nL0chdqzrUXTpsqzdbDqrF+6a0LLGGlWZ1HHBKRm3PSt99DMwrgiewiWJBVNCHA/2uvh2uOFmBoOghEeChC5qEKQf3LFwZ/rzzUNfSqpttiTy1tNhYrPXPLpUPQIwzIP2yg6J55AkksBx+VLYv7PPqSxe+6/je4Aub/J1HAR/Lx781Yqvg3PR7P5QImbS43vHEyFvgpXNJwG1/BQwkB7VKv2yFDI6HzrFMmxAsMTDQtM9LzobHXrhB8OPxYXZbE2/ctbNPg3Zd5g2EfNv70keB0vjglyVo9ZHqnjp+Q3gDahVh0kf3gngNH/JYvrTS7uz9nGGY9shlfuVyujYV8xpdBnawbdQ1bpVxBPOOq2/VXr30bWHP4m5jU979Gff9PyGjcfP0r1NcflB1eoAH7aI/3e8Q09qJcvw4ELzu2c/jXqtW0KXQUcY2dKM+qrZu3rA3rJYdmQHVFpXt62ayKkpnTi2lbvhzRabb43RU/7nlz05p1LrlRAtlhhaeeXUT2HfvtA47jNtPNZMQYs/oFQVg3xWDZFm2IJurQ3GV7U5El0/oFLQXLAe/tVGjsYsXdjs5P5+RMa4rmjUgA0Khjo1fvNs9MM6e/QfsCL9HNYmQcpjoKvdJxr2tnWVZh/WjVQKDlg5IM8OlcS0NBujm9jOP5QloizBDjiKg/BqIY9ysxhGHU3u/nphVpF01DE7XyK/MnlbYqTbZv5X8BBgD4+fkxCM1LKQAAAABJRU5ErkJggg=="
  10977. /***/ }),
  10978. /* 93 */,
  10979. /* 94 */,
  10980. /* 95 */,
  10981. /* 96 */,
  10982. /* 97 */,
  10983. /* 98 */,
  10984. /* 99 */,
  10985. /* 100 */,
  10986. /* 101 */,
  10987. /* 102 */,
  10988. /* 103 */,
  10989. /* 104 */,
  10990. /* 105 */,
  10991. /* 106 */,
  10992. /* 107 */,
  10993. /* 108 */,
  10994. /* 109 */,
  10995. /* 110 */,
  10996. /* 111 */
  10997. /*!********************************************************!*\
  10998. !*** D:/SWS_New/sws_new/node_modules/moment/moment.js ***!
  10999. \********************************************************/
  11000. /*! no static exports found */
  11001. /***/ (function(module, exports, __webpack_require__) {
  11002. /* WEBPACK VAR INJECTION */(function(module) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var require;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  11003. //! moment.js
  11004. //! version : 2.29.1
  11005. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  11006. //! license : MIT
  11007. //! momentjs.com
  11008. ;
  11009. (function (global, factory) {
  11010. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  11011. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  11012. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  11013. __WEBPACK_AMD_DEFINE_FACTORY__),
  11014. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  11015. })(this, function () {
  11016. 'use strict';
  11017. var hookCallback;
  11018. function hooks() {
  11019. return hookCallback.apply(null, arguments);
  11020. }
  11021. // This is done to register the method called with moment()
  11022. // without creating circular dependencies.
  11023. function setHookCallback(callback) {
  11024. hookCallback = callback;
  11025. }
  11026. function isArray(input) {
  11027. return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
  11028. }
  11029. function isObject(input) {
  11030. // IE8 will treat undefined and null as object if it wasn't for
  11031. // input != null
  11032. return input != null && Object.prototype.toString.call(input) === '[object Object]';
  11033. }
  11034. function hasOwnProp(a, b) {
  11035. return Object.prototype.hasOwnProperty.call(a, b);
  11036. }
  11037. function isObjectEmpty(obj) {
  11038. if (Object.getOwnPropertyNames) {
  11039. return Object.getOwnPropertyNames(obj).length === 0;
  11040. } else {
  11041. var k;
  11042. for (k in obj) {
  11043. if (hasOwnProp(obj, k)) {
  11044. return false;
  11045. }
  11046. }
  11047. return true;
  11048. }
  11049. }
  11050. function isUndefined(input) {
  11051. return input === void 0;
  11052. }
  11053. function isNumber(input) {
  11054. return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
  11055. }
  11056. function isDate(input) {
  11057. return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
  11058. }
  11059. function map(arr, fn) {
  11060. var res = [],
  11061. i;
  11062. for (i = 0; i < arr.length; ++i) {
  11063. res.push(fn(arr[i], i));
  11064. }
  11065. return res;
  11066. }
  11067. function extend(a, b) {
  11068. for (var i in b) {
  11069. if (hasOwnProp(b, i)) {
  11070. a[i] = b[i];
  11071. }
  11072. }
  11073. if (hasOwnProp(b, 'toString')) {
  11074. a.toString = b.toString;
  11075. }
  11076. if (hasOwnProp(b, 'valueOf')) {
  11077. a.valueOf = b.valueOf;
  11078. }
  11079. return a;
  11080. }
  11081. function createUTC(input, format, locale, strict) {
  11082. return createLocalOrUTC(input, format, locale, strict, true).utc();
  11083. }
  11084. function defaultParsingFlags() {
  11085. // We need to deep clone this object.
  11086. return {
  11087. empty: false,
  11088. unusedTokens: [],
  11089. unusedInput: [],
  11090. overflow: -2,
  11091. charsLeftOver: 0,
  11092. nullInput: false,
  11093. invalidEra: null,
  11094. invalidMonth: null,
  11095. invalidFormat: false,
  11096. userInvalidated: false,
  11097. iso: false,
  11098. parsedDateParts: [],
  11099. era: null,
  11100. meridiem: null,
  11101. rfc2822: false,
  11102. weekdayMismatch: false
  11103. };
  11104. }
  11105. function getParsingFlags(m) {
  11106. if (m._pf == null) {
  11107. m._pf = defaultParsingFlags();
  11108. }
  11109. return m._pf;
  11110. }
  11111. var some;
  11112. if (Array.prototype.some) {
  11113. some = Array.prototype.some;
  11114. } else {
  11115. some = function some(fun) {
  11116. var t = Object(this),
  11117. len = t.length >>> 0,
  11118. i;
  11119. for (i = 0; i < len; i++) {
  11120. if (i in t && fun.call(this, t[i], i, t)) {
  11121. return true;
  11122. }
  11123. }
  11124. return false;
  11125. };
  11126. }
  11127. function isValid(m) {
  11128. if (m._isValid == null) {
  11129. var flags = getParsingFlags(m),
  11130. parsedParts = some.call(flags.parsedDateParts, function (i) {
  11131. return i != null;
  11132. }),
  11133. isNowValid = !isNaN(m._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
  11134. if (m._strict) {
  11135. isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === undefined;
  11136. }
  11137. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  11138. m._isValid = isNowValid;
  11139. } else {
  11140. return isNowValid;
  11141. }
  11142. }
  11143. return m._isValid;
  11144. }
  11145. function createInvalid(flags) {
  11146. var m = createUTC(NaN);
  11147. if (flags != null) {
  11148. extend(getParsingFlags(m), flags);
  11149. } else {
  11150. getParsingFlags(m).userInvalidated = true;
  11151. }
  11152. return m;
  11153. }
  11154. // Plugins that add properties should also add the key here (null value),
  11155. // so we can properly clone ourselves.
  11156. var momentProperties = hooks.momentProperties = [],
  11157. updateInProgress = false;
  11158. function copyConfig(to, from) {
  11159. var i, prop, val;
  11160. if (!isUndefined(from._isAMomentObject)) {
  11161. to._isAMomentObject = from._isAMomentObject;
  11162. }
  11163. if (!isUndefined(from._i)) {
  11164. to._i = from._i;
  11165. }
  11166. if (!isUndefined(from._f)) {
  11167. to._f = from._f;
  11168. }
  11169. if (!isUndefined(from._l)) {
  11170. to._l = from._l;
  11171. }
  11172. if (!isUndefined(from._strict)) {
  11173. to._strict = from._strict;
  11174. }
  11175. if (!isUndefined(from._tzm)) {
  11176. to._tzm = from._tzm;
  11177. }
  11178. if (!isUndefined(from._isUTC)) {
  11179. to._isUTC = from._isUTC;
  11180. }
  11181. if (!isUndefined(from._offset)) {
  11182. to._offset = from._offset;
  11183. }
  11184. if (!isUndefined(from._pf)) {
  11185. to._pf = getParsingFlags(from);
  11186. }
  11187. if (!isUndefined(from._locale)) {
  11188. to._locale = from._locale;
  11189. }
  11190. if (momentProperties.length > 0) {
  11191. for (i = 0; i < momentProperties.length; i++) {
  11192. prop = momentProperties[i];
  11193. val = from[prop];
  11194. if (!isUndefined(val)) {
  11195. to[prop] = val;
  11196. }
  11197. }
  11198. }
  11199. return to;
  11200. }
  11201. // Moment prototype object
  11202. function Moment(config) {
  11203. copyConfig(this, config);
  11204. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  11205. if (!this.isValid()) {
  11206. this._d = new Date(NaN);
  11207. }
  11208. // Prevent infinite loop in case updateOffset creates new moment
  11209. // objects.
  11210. if (updateInProgress === false) {
  11211. updateInProgress = true;
  11212. hooks.updateOffset(this);
  11213. updateInProgress = false;
  11214. }
  11215. }
  11216. function isMoment(obj) {
  11217. return obj instanceof Moment || obj != null && obj._isAMomentObject != null;
  11218. }
  11219. function warn(msg) {
  11220. if (hooks.suppressDeprecationWarnings === false && typeof console !== 'undefined' && console.warn) {
  11221. console.warn('Deprecation warning: ' + msg);
  11222. }
  11223. }
  11224. function deprecate(msg, fn) {
  11225. var firstTime = true;
  11226. return extend(function () {
  11227. if (hooks.deprecationHandler != null) {
  11228. hooks.deprecationHandler(null, msg);
  11229. }
  11230. if (firstTime) {
  11231. var args = [],
  11232. arg,
  11233. i,
  11234. key;
  11235. for (i = 0; i < arguments.length; i++) {
  11236. arg = '';
  11237. if (_typeof(arguments[i]) === 'object') {
  11238. arg += '\n[' + i + '] ';
  11239. for (key in arguments[0]) {
  11240. if (hasOwnProp(arguments[0], key)) {
  11241. arg += key + ': ' + arguments[0][key] + ', ';
  11242. }
  11243. }
  11244. arg = arg.slice(0, -2); // Remove trailing comma and space
  11245. } else {
  11246. arg = arguments[i];
  11247. }
  11248. args.push(arg);
  11249. }
  11250. warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + new Error().stack);
  11251. firstTime = false;
  11252. }
  11253. return fn.apply(this, arguments);
  11254. }, fn);
  11255. }
  11256. var deprecations = {};
  11257. function deprecateSimple(name, msg) {
  11258. if (hooks.deprecationHandler != null) {
  11259. hooks.deprecationHandler(name, msg);
  11260. }
  11261. if (!deprecations[name]) {
  11262. warn(msg);
  11263. deprecations[name] = true;
  11264. }
  11265. }
  11266. hooks.suppressDeprecationWarnings = false;
  11267. hooks.deprecationHandler = null;
  11268. function isFunction(input) {
  11269. return typeof Function !== 'undefined' && input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  11270. }
  11271. function set(config) {
  11272. var prop, i;
  11273. for (i in config) {
  11274. if (hasOwnProp(config, i)) {
  11275. prop = config[i];
  11276. if (isFunction(prop)) {
  11277. this[i] = prop;
  11278. } else {
  11279. this['_' + i] = prop;
  11280. }
  11281. }
  11282. }
  11283. this._config = config;
  11284. // Lenient ordinal parsing accepts just a number in addition to
  11285. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  11286. // TODO: Remove "ordinalParse" fallback in next major release.
  11287. this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + '|' + /\d{1,2}/.source);
  11288. }
  11289. function mergeConfigs(parentConfig, childConfig) {
  11290. var res = extend({}, parentConfig),
  11291. prop;
  11292. for (prop in childConfig) {
  11293. if (hasOwnProp(childConfig, prop)) {
  11294. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  11295. res[prop] = {};
  11296. extend(res[prop], parentConfig[prop]);
  11297. extend(res[prop], childConfig[prop]);
  11298. } else if (childConfig[prop] != null) {
  11299. res[prop] = childConfig[prop];
  11300. } else {
  11301. delete res[prop];
  11302. }
  11303. }
  11304. }
  11305. for (prop in parentConfig) {
  11306. if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) {
  11307. // make sure changes to properties don't modify parent config
  11308. res[prop] = extend({}, res[prop]);
  11309. }
  11310. }
  11311. return res;
  11312. }
  11313. function Locale(config) {
  11314. if (config != null) {
  11315. this.set(config);
  11316. }
  11317. }
  11318. var keys;
  11319. if (Object.keys) {
  11320. keys = Object.keys;
  11321. } else {
  11322. keys = function keys(obj) {
  11323. var i,
  11324. res = [];
  11325. for (i in obj) {
  11326. if (hasOwnProp(obj, i)) {
  11327. res.push(i);
  11328. }
  11329. }
  11330. return res;
  11331. };
  11332. }
  11333. var defaultCalendar = {
  11334. sameDay: '[Today at] LT',
  11335. nextDay: '[Tomorrow at] LT',
  11336. nextWeek: 'dddd [at] LT',
  11337. lastDay: '[Yesterday at] LT',
  11338. lastWeek: '[Last] dddd [at] LT',
  11339. sameElse: 'L'
  11340. };
  11341. function calendar(key, mom, now) {
  11342. var output = this._calendar[key] || this._calendar['sameElse'];
  11343. return isFunction(output) ? output.call(mom, now) : output;
  11344. }
  11345. function zeroFill(number, targetLength, forceSign) {
  11346. var absNumber = '' + Math.abs(number),
  11347. zerosToFill = targetLength - absNumber.length,
  11348. sign = number >= 0;
  11349. return (sign ? forceSign ? '+' : '' : '-') + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
  11350. }
  11351. var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
  11352. localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  11353. formatFunctions = {},
  11354. formatTokenFunctions = {};
  11355. // token: 'M'
  11356. // padded: ['MM', 2]
  11357. // ordinal: 'Mo'
  11358. // callback: function () { this.month() + 1 }
  11359. function addFormatToken(token, padded, ordinal, callback) {
  11360. var func = callback;
  11361. if (typeof callback === 'string') {
  11362. func = function func() {
  11363. return this[callback]();
  11364. };
  11365. }
  11366. if (token) {
  11367. formatTokenFunctions[token] = func;
  11368. }
  11369. if (padded) {
  11370. formatTokenFunctions[padded[0]] = function () {
  11371. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  11372. };
  11373. }
  11374. if (ordinal) {
  11375. formatTokenFunctions[ordinal] = function () {
  11376. return this.localeData().ordinal(func.apply(this, arguments), token);
  11377. };
  11378. }
  11379. }
  11380. function removeFormattingTokens(input) {
  11381. if (input.match(/\[[\s\S]/)) {
  11382. return input.replace(/^\[|\]$/g, '');
  11383. }
  11384. return input.replace(/\\/g, '');
  11385. }
  11386. function makeFormatFunction(format) {
  11387. var array = format.match(formattingTokens),
  11388. i,
  11389. length;
  11390. for (i = 0, length = array.length; i < length; i++) {
  11391. if (formatTokenFunctions[array[i]]) {
  11392. array[i] = formatTokenFunctions[array[i]];
  11393. } else {
  11394. array[i] = removeFormattingTokens(array[i]);
  11395. }
  11396. }
  11397. return function (mom) {
  11398. var output = '',
  11399. i;
  11400. for (i = 0; i < length; i++) {
  11401. output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
  11402. }
  11403. return output;
  11404. };
  11405. }
  11406. // format date using native date object
  11407. function formatMoment(m, format) {
  11408. if (!m.isValid()) {
  11409. return m.localeData().invalidDate();
  11410. }
  11411. format = expandFormat(format, m.localeData());
  11412. formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
  11413. return formatFunctions[format](m);
  11414. }
  11415. function expandFormat(format, locale) {
  11416. var i = 5;
  11417. function replaceLongDateFormatTokens(input) {
  11418. return locale.longDateFormat(input) || input;
  11419. }
  11420. localFormattingTokens.lastIndex = 0;
  11421. while (i >= 0 && localFormattingTokens.test(format)) {
  11422. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  11423. localFormattingTokens.lastIndex = 0;
  11424. i -= 1;
  11425. }
  11426. return format;
  11427. }
  11428. var defaultLongDateFormat = {
  11429. LTS: 'h:mm:ss A',
  11430. LT: 'h:mm A',
  11431. L: 'MM/DD/YYYY',
  11432. LL: 'MMMM D, YYYY',
  11433. LLL: 'MMMM D, YYYY h:mm A',
  11434. LLLL: 'dddd, MMMM D, YYYY h:mm A'
  11435. };
  11436. function longDateFormat(key) {
  11437. var format = this._longDateFormat[key],
  11438. formatUpper = this._longDateFormat[key.toUpperCase()];
  11439. if (format || !formatUpper) {
  11440. return format;
  11441. }
  11442. this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function (tok) {
  11443. if (tok === 'MMMM' || tok === 'MM' || tok === 'DD' || tok === 'dddd') {
  11444. return tok.slice(1);
  11445. }
  11446. return tok;
  11447. }).join('');
  11448. return this._longDateFormat[key];
  11449. }
  11450. var defaultInvalidDate = 'Invalid date';
  11451. function invalidDate() {
  11452. return this._invalidDate;
  11453. }
  11454. var defaultOrdinal = '%d',
  11455. defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  11456. function ordinal(number) {
  11457. return this._ordinal.replace('%d', number);
  11458. }
  11459. var defaultRelativeTime = {
  11460. future: 'in %s',
  11461. past: '%s ago',
  11462. s: 'a few seconds',
  11463. ss: '%d seconds',
  11464. m: 'a minute',
  11465. mm: '%d minutes',
  11466. h: 'an hour',
  11467. hh: '%d hours',
  11468. d: 'a day',
  11469. dd: '%d days',
  11470. w: 'a week',
  11471. ww: '%d weeks',
  11472. M: 'a month',
  11473. MM: '%d months',
  11474. y: 'a year',
  11475. yy: '%d years'
  11476. };
  11477. function relativeTime(number, withoutSuffix, string, isFuture) {
  11478. var output = this._relativeTime[string];
  11479. return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
  11480. }
  11481. function pastFuture(diff, output) {
  11482. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  11483. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  11484. }
  11485. var aliases = {};
  11486. function addUnitAlias(unit, shorthand) {
  11487. var lowerCase = unit.toLowerCase();
  11488. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  11489. }
  11490. function normalizeUnits(units) {
  11491. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  11492. }
  11493. function normalizeObjectUnits(inputObject) {
  11494. var normalizedInput = {},
  11495. normalizedProp,
  11496. prop;
  11497. for (prop in inputObject) {
  11498. if (hasOwnProp(inputObject, prop)) {
  11499. normalizedProp = normalizeUnits(prop);
  11500. if (normalizedProp) {
  11501. normalizedInput[normalizedProp] = inputObject[prop];
  11502. }
  11503. }
  11504. }
  11505. return normalizedInput;
  11506. }
  11507. var priorities = {};
  11508. function addUnitPriority(unit, priority) {
  11509. priorities[unit] = priority;
  11510. }
  11511. function getPrioritizedUnits(unitsObj) {
  11512. var units = [],
  11513. u;
  11514. for (u in unitsObj) {
  11515. if (hasOwnProp(unitsObj, u)) {
  11516. units.push({
  11517. unit: u,
  11518. priority: priorities[u]
  11519. });
  11520. }
  11521. }
  11522. units.sort(function (a, b) {
  11523. return a.priority - b.priority;
  11524. });
  11525. return units;
  11526. }
  11527. function isLeapYear(year) {
  11528. return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
  11529. }
  11530. function absFloor(number) {
  11531. if (number < 0) {
  11532. // -0 -> 0
  11533. return Math.ceil(number) || 0;
  11534. } else {
  11535. return Math.floor(number);
  11536. }
  11537. }
  11538. function toInt(argumentForCoercion) {
  11539. var coercedNumber = +argumentForCoercion,
  11540. value = 0;
  11541. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  11542. value = absFloor(coercedNumber);
  11543. }
  11544. return value;
  11545. }
  11546. function makeGetSet(unit, keepTime) {
  11547. return function (value) {
  11548. if (value != null) {
  11549. set$1(this, unit, value);
  11550. hooks.updateOffset(this, keepTime);
  11551. return this;
  11552. } else {
  11553. return get(this, unit);
  11554. }
  11555. };
  11556. }
  11557. function get(mom, unit) {
  11558. return mom.isValid() ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
  11559. }
  11560. function set$1(mom, unit, value) {
  11561. if (mom.isValid() && !isNaN(value)) {
  11562. if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
  11563. value = toInt(value);
  11564. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
  11565. } else {
  11566. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  11567. }
  11568. }
  11569. }
  11570. // MOMENTS
  11571. function stringGet(units) {
  11572. units = normalizeUnits(units);
  11573. if (isFunction(this[units])) {
  11574. return this[units]();
  11575. }
  11576. return this;
  11577. }
  11578. function stringSet(units, value) {
  11579. if (_typeof(units) === 'object') {
  11580. units = normalizeObjectUnits(units);
  11581. var prioritized = getPrioritizedUnits(units),
  11582. i;
  11583. for (i = 0; i < prioritized.length; i++) {
  11584. this[prioritized[i].unit](units[prioritized[i].unit]);
  11585. }
  11586. } else {
  11587. units = normalizeUnits(units);
  11588. if (isFunction(this[units])) {
  11589. return this[units](value);
  11590. }
  11591. }
  11592. return this;
  11593. }
  11594. var match1 = /\d/,
  11595. // 0 - 9
  11596. match2 = /\d\d/,
  11597. // 00 - 99
  11598. match3 = /\d{3}/,
  11599. // 000 - 999
  11600. match4 = /\d{4}/,
  11601. // 0000 - 9999
  11602. match6 = /[+-]?\d{6}/,
  11603. // -999999 - 999999
  11604. match1to2 = /\d\d?/,
  11605. // 0 - 99
  11606. match3to4 = /\d\d\d\d?/,
  11607. // 999 - 9999
  11608. match5to6 = /\d\d\d\d\d\d?/,
  11609. // 99999 - 999999
  11610. match1to3 = /\d{1,3}/,
  11611. // 0 - 999
  11612. match1to4 = /\d{1,4}/,
  11613. // 0 - 9999
  11614. match1to6 = /[+-]?\d{1,6}/,
  11615. // -999999 - 999999
  11616. matchUnsigned = /\d+/,
  11617. // 0 - inf
  11618. matchSigned = /[+-]?\d+/,
  11619. // -inf - inf
  11620. matchOffset = /Z|[+-]\d\d:?\d\d/gi,
  11621. // +00:00 -00:00 +0000 -0000 or Z
  11622. matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi,
  11623. // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  11624. matchTimestamp = /[+-]?\d+(\.\d{1,3})?/,
  11625. // 123456789 123456789.123
  11626. // any word (or two) characters or numbers including two/three word month in arabic.
  11627. // includes scottish gaelic two word and hyphenated months
  11628. matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
  11629. regexes;
  11630. regexes = {};
  11631. function addRegexToken(token, regex, strictRegex) {
  11632. regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
  11633. return isStrict && strictRegex ? strictRegex : regex;
  11634. };
  11635. }
  11636. function getParseRegexForToken(token, config) {
  11637. if (!hasOwnProp(regexes, token)) {
  11638. return new RegExp(unescapeFormat(token));
  11639. }
  11640. return regexes[token](config._strict, config._locale);
  11641. }
  11642. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  11643. function unescapeFormat(s) {
  11644. return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  11645. return p1 || p2 || p3 || p4;
  11646. }));
  11647. }
  11648. function regexEscape(s) {
  11649. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  11650. }
  11651. var tokens = {};
  11652. function addParseToken(token, callback) {
  11653. var i,
  11654. func = callback;
  11655. if (typeof token === 'string') {
  11656. token = [token];
  11657. }
  11658. if (isNumber(callback)) {
  11659. func = function func(input, array) {
  11660. array[callback] = toInt(input);
  11661. };
  11662. }
  11663. for (i = 0; i < token.length; i++) {
  11664. tokens[token[i]] = func;
  11665. }
  11666. }
  11667. function addWeekParseToken(token, callback) {
  11668. addParseToken(token, function (input, array, config, token) {
  11669. config._w = config._w || {};
  11670. callback(input, config._w, config, token);
  11671. });
  11672. }
  11673. function addTimeToArrayFromToken(token, input, config) {
  11674. if (input != null && hasOwnProp(tokens, token)) {
  11675. tokens[token](input, config._a, config, token);
  11676. }
  11677. }
  11678. var YEAR = 0,
  11679. MONTH = 1,
  11680. DATE = 2,
  11681. HOUR = 3,
  11682. MINUTE = 4,
  11683. SECOND = 5,
  11684. MILLISECOND = 6,
  11685. WEEK = 7,
  11686. WEEKDAY = 8;
  11687. function mod(n, x) {
  11688. return (n % x + x) % x;
  11689. }
  11690. var indexOf;
  11691. if (Array.prototype.indexOf) {
  11692. indexOf = Array.prototype.indexOf;
  11693. } else {
  11694. indexOf = function indexOf(o) {
  11695. // I know
  11696. var i;
  11697. for (i = 0; i < this.length; ++i) {
  11698. if (this[i] === o) {
  11699. return i;
  11700. }
  11701. }
  11702. return -1;
  11703. };
  11704. }
  11705. function daysInMonth(year, month) {
  11706. if (isNaN(year) || isNaN(month)) {
  11707. return NaN;
  11708. }
  11709. var modMonth = mod(month, 12);
  11710. year += (month - modMonth) / 12;
  11711. return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;
  11712. }
  11713. // FORMATTING
  11714. addFormatToken('M', ['MM', 2], 'Mo', function () {
  11715. return this.month() + 1;
  11716. });
  11717. addFormatToken('MMM', 0, 0, function (format) {
  11718. return this.localeData().monthsShort(this, format);
  11719. });
  11720. addFormatToken('MMMM', 0, 0, function (format) {
  11721. return this.localeData().months(this, format);
  11722. });
  11723. // ALIASES
  11724. addUnitAlias('month', 'M');
  11725. // PRIORITY
  11726. addUnitPriority('month', 8);
  11727. // PARSING
  11728. addRegexToken('M', match1to2);
  11729. addRegexToken('MM', match1to2, match2);
  11730. addRegexToken('MMM', function (isStrict, locale) {
  11731. return locale.monthsShortRegex(isStrict);
  11732. });
  11733. addRegexToken('MMMM', function (isStrict, locale) {
  11734. return locale.monthsRegex(isStrict);
  11735. });
  11736. addParseToken(['M', 'MM'], function (input, array) {
  11737. array[MONTH] = toInt(input) - 1;
  11738. });
  11739. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  11740. var month = config._locale.monthsParse(input, token, config._strict);
  11741. // if we didn't find a month name, mark the date as invalid.
  11742. if (month != null) {
  11743. array[MONTH] = month;
  11744. } else {
  11745. getParsingFlags(config).invalidMonth = input;
  11746. }
  11747. });
  11748. // LOCALES
  11749. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  11750. defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  11751. MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  11752. defaultMonthsShortRegex = matchWord,
  11753. defaultMonthsRegex = matchWord;
  11754. function localeMonths(m, format) {
  11755. if (!m) {
  11756. return isArray(this._months) ? this._months : this._months['standalone'];
  11757. }
  11758. return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
  11759. }
  11760. function localeMonthsShort(m, format) {
  11761. if (!m) {
  11762. return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort['standalone'];
  11763. }
  11764. return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  11765. }
  11766. function handleStrictParse(monthName, format, strict) {
  11767. var i,
  11768. ii,
  11769. mom,
  11770. llc = monthName.toLocaleLowerCase();
  11771. if (!this._monthsParse) {
  11772. // this is not used
  11773. this._monthsParse = [];
  11774. this._longMonthsParse = [];
  11775. this._shortMonthsParse = [];
  11776. for (i = 0; i < 12; ++i) {
  11777. mom = createUTC([2000, i]);
  11778. this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
  11779. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  11780. }
  11781. }
  11782. if (strict) {
  11783. if (format === 'MMM') {
  11784. ii = indexOf.call(this._shortMonthsParse, llc);
  11785. return ii !== -1 ? ii : null;
  11786. } else {
  11787. ii = indexOf.call(this._longMonthsParse, llc);
  11788. return ii !== -1 ? ii : null;
  11789. }
  11790. } else {
  11791. if (format === 'MMM') {
  11792. ii = indexOf.call(this._shortMonthsParse, llc);
  11793. if (ii !== -1) {
  11794. return ii;
  11795. }
  11796. ii = indexOf.call(this._longMonthsParse, llc);
  11797. return ii !== -1 ? ii : null;
  11798. } else {
  11799. ii = indexOf.call(this._longMonthsParse, llc);
  11800. if (ii !== -1) {
  11801. return ii;
  11802. }
  11803. ii = indexOf.call(this._shortMonthsParse, llc);
  11804. return ii !== -1 ? ii : null;
  11805. }
  11806. }
  11807. }
  11808. function localeMonthsParse(monthName, format, strict) {
  11809. var i, mom, regex;
  11810. if (this._monthsParseExact) {
  11811. return handleStrictParse.call(this, monthName, format, strict);
  11812. }
  11813. if (!this._monthsParse) {
  11814. this._monthsParse = [];
  11815. this._longMonthsParse = [];
  11816. this._shortMonthsParse = [];
  11817. }
  11818. // TODO: add sorting
  11819. // Sorting makes sure if one month (or abbr) is a prefix of another
  11820. // see sorting in computeMonthsParse
  11821. for (i = 0; i < 12; i++) {
  11822. // make the regex if we don't have it already
  11823. mom = createUTC([2000, i]);
  11824. if (strict && !this._longMonthsParse[i]) {
  11825. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  11826. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  11827. }
  11828. if (!strict && !this._monthsParse[i]) {
  11829. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  11830. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  11831. }
  11832. // test the regex
  11833. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  11834. return i;
  11835. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  11836. return i;
  11837. } else if (!strict && this._monthsParse[i].test(monthName)) {
  11838. return i;
  11839. }
  11840. }
  11841. }
  11842. // MOMENTS
  11843. function setMonth(mom, value) {
  11844. var dayOfMonth;
  11845. if (!mom.isValid()) {
  11846. // No op
  11847. return mom;
  11848. }
  11849. if (typeof value === 'string') {
  11850. if (/^\d+$/.test(value)) {
  11851. value = toInt(value);
  11852. } else {
  11853. value = mom.localeData().monthsParse(value);
  11854. // TODO: Another silent failure?
  11855. if (!isNumber(value)) {
  11856. return mom;
  11857. }
  11858. }
  11859. }
  11860. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  11861. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  11862. return mom;
  11863. }
  11864. function getSetMonth(value) {
  11865. if (value != null) {
  11866. setMonth(this, value);
  11867. hooks.updateOffset(this, true);
  11868. return this;
  11869. } else {
  11870. return get(this, 'Month');
  11871. }
  11872. }
  11873. function getDaysInMonth() {
  11874. return daysInMonth(this.year(), this.month());
  11875. }
  11876. function monthsShortRegex(isStrict) {
  11877. if (this._monthsParseExact) {
  11878. if (!hasOwnProp(this, '_monthsRegex')) {
  11879. computeMonthsParse.call(this);
  11880. }
  11881. if (isStrict) {
  11882. return this._monthsShortStrictRegex;
  11883. } else {
  11884. return this._monthsShortRegex;
  11885. }
  11886. } else {
  11887. if (!hasOwnProp(this, '_monthsShortRegex')) {
  11888. this._monthsShortRegex = defaultMonthsShortRegex;
  11889. }
  11890. return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex;
  11891. }
  11892. }
  11893. function monthsRegex(isStrict) {
  11894. if (this._monthsParseExact) {
  11895. if (!hasOwnProp(this, '_monthsRegex')) {
  11896. computeMonthsParse.call(this);
  11897. }
  11898. if (isStrict) {
  11899. return this._monthsStrictRegex;
  11900. } else {
  11901. return this._monthsRegex;
  11902. }
  11903. } else {
  11904. if (!hasOwnProp(this, '_monthsRegex')) {
  11905. this._monthsRegex = defaultMonthsRegex;
  11906. }
  11907. return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex;
  11908. }
  11909. }
  11910. function computeMonthsParse() {
  11911. function cmpLenRev(a, b) {
  11912. return b.length - a.length;
  11913. }
  11914. var shortPieces = [],
  11915. longPieces = [],
  11916. mixedPieces = [],
  11917. i,
  11918. mom;
  11919. for (i = 0; i < 12; i++) {
  11920. // make the regex if we don't have it already
  11921. mom = createUTC([2000, i]);
  11922. shortPieces.push(this.monthsShort(mom, ''));
  11923. longPieces.push(this.months(mom, ''));
  11924. mixedPieces.push(this.months(mom, ''));
  11925. mixedPieces.push(this.monthsShort(mom, ''));
  11926. }
  11927. // Sorting makes sure if one month (or abbr) is a prefix of another it
  11928. // will match the longer piece.
  11929. shortPieces.sort(cmpLenRev);
  11930. longPieces.sort(cmpLenRev);
  11931. mixedPieces.sort(cmpLenRev);
  11932. for (i = 0; i < 12; i++) {
  11933. shortPieces[i] = regexEscape(shortPieces[i]);
  11934. longPieces[i] = regexEscape(longPieces[i]);
  11935. }
  11936. for (i = 0; i < 24; i++) {
  11937. mixedPieces[i] = regexEscape(mixedPieces[i]);
  11938. }
  11939. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  11940. this._monthsShortRegex = this._monthsRegex;
  11941. this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  11942. this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  11943. }
  11944. // FORMATTING
  11945. addFormatToken('Y', 0, 0, function () {
  11946. var y = this.year();
  11947. return y <= 9999 ? zeroFill(y, 4) : '+' + y;
  11948. });
  11949. addFormatToken(0, ['YY', 2], 0, function () {
  11950. return this.year() % 100;
  11951. });
  11952. addFormatToken(0, ['YYYY', 4], 0, 'year');
  11953. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  11954. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  11955. // ALIASES
  11956. addUnitAlias('year', 'y');
  11957. // PRIORITIES
  11958. addUnitPriority('year', 1);
  11959. // PARSING
  11960. addRegexToken('Y', matchSigned);
  11961. addRegexToken('YY', match1to2, match2);
  11962. addRegexToken('YYYY', match1to4, match4);
  11963. addRegexToken('YYYYY', match1to6, match6);
  11964. addRegexToken('YYYYYY', match1to6, match6);
  11965. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  11966. addParseToken('YYYY', function (input, array) {
  11967. array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  11968. });
  11969. addParseToken('YY', function (input, array) {
  11970. array[YEAR] = hooks.parseTwoDigitYear(input);
  11971. });
  11972. addParseToken('Y', function (input, array) {
  11973. array[YEAR] = parseInt(input, 10);
  11974. });
  11975. // HELPERS
  11976. function daysInYear(year) {
  11977. return isLeapYear(year) ? 366 : 365;
  11978. }
  11979. // HOOKS
  11980. hooks.parseTwoDigitYear = function (input) {
  11981. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  11982. };
  11983. // MOMENTS
  11984. var getSetYear = makeGetSet('FullYear', true);
  11985. function getIsLeapYear() {
  11986. return isLeapYear(this.year());
  11987. }
  11988. function createDate(y, m, d, h, M, s, ms) {
  11989. // can't just apply() to create a date:
  11990. // https://stackoverflow.com/q/181348
  11991. var date;
  11992. // the date constructor remaps years 0-99 to 1900-1999
  11993. if (y < 100 && y >= 0) {
  11994. // preserve leap years using a full 400 year cycle, then reset
  11995. date = new Date(y + 400, m, d, h, M, s, ms);
  11996. if (isFinite(date.getFullYear())) {
  11997. date.setFullYear(y);
  11998. }
  11999. } else {
  12000. date = new Date(y, m, d, h, M, s, ms);
  12001. }
  12002. return date;
  12003. }
  12004. function createUTCDate(y) {
  12005. var date, args;
  12006. // the Date.UTC function remaps years 0-99 to 1900-1999
  12007. if (y < 100 && y >= 0) {
  12008. args = Array.prototype.slice.call(arguments);
  12009. // preserve leap years using a full 400 year cycle, then reset
  12010. args[0] = y + 400;
  12011. date = new Date(Date.UTC.apply(null, args));
  12012. if (isFinite(date.getUTCFullYear())) {
  12013. date.setUTCFullYear(y);
  12014. }
  12015. } else {
  12016. date = new Date(Date.UTC.apply(null, arguments));
  12017. }
  12018. return date;
  12019. }
  12020. // start-of-first-week - start-of-year
  12021. function firstWeekOffset(year, dow, doy) {
  12022. var
  12023. // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  12024. fwd = 7 + dow - doy,
  12025. // first-week day local weekday -- which local weekday is fwd
  12026. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  12027. return -fwdlw + fwd - 1;
  12028. }
  12029. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  12030. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  12031. var localWeekday = (7 + weekday - dow) % 7,
  12032. weekOffset = firstWeekOffset(year, dow, doy),
  12033. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  12034. resYear,
  12035. resDayOfYear;
  12036. if (dayOfYear <= 0) {
  12037. resYear = year - 1;
  12038. resDayOfYear = daysInYear(resYear) + dayOfYear;
  12039. } else if (dayOfYear > daysInYear(year)) {
  12040. resYear = year + 1;
  12041. resDayOfYear = dayOfYear - daysInYear(year);
  12042. } else {
  12043. resYear = year;
  12044. resDayOfYear = dayOfYear;
  12045. }
  12046. return {
  12047. year: resYear,
  12048. dayOfYear: resDayOfYear
  12049. };
  12050. }
  12051. function weekOfYear(mom, dow, doy) {
  12052. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  12053. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  12054. resWeek,
  12055. resYear;
  12056. if (week < 1) {
  12057. resYear = mom.year() - 1;
  12058. resWeek = week + weeksInYear(resYear, dow, doy);
  12059. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  12060. resWeek = week - weeksInYear(mom.year(), dow, doy);
  12061. resYear = mom.year() + 1;
  12062. } else {
  12063. resYear = mom.year();
  12064. resWeek = week;
  12065. }
  12066. return {
  12067. week: resWeek,
  12068. year: resYear
  12069. };
  12070. }
  12071. function weeksInYear(year, dow, doy) {
  12072. var weekOffset = firstWeekOffset(year, dow, doy),
  12073. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  12074. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  12075. }
  12076. // FORMATTING
  12077. addFormatToken('w', ['ww', 2], 'wo', 'week');
  12078. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  12079. // ALIASES
  12080. addUnitAlias('week', 'w');
  12081. addUnitAlias('isoWeek', 'W');
  12082. // PRIORITIES
  12083. addUnitPriority('week', 5);
  12084. addUnitPriority('isoWeek', 5);
  12085. // PARSING
  12086. addRegexToken('w', match1to2);
  12087. addRegexToken('ww', match1to2, match2);
  12088. addRegexToken('W', match1to2);
  12089. addRegexToken('WW', match1to2, match2);
  12090. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  12091. week[token.substr(0, 1)] = toInt(input);
  12092. });
  12093. // HELPERS
  12094. // LOCALES
  12095. function localeWeek(mom) {
  12096. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  12097. }
  12098. var defaultLocaleWeek = {
  12099. dow: 0,
  12100. // Sunday is the first day of the week.
  12101. doy: 6 // The week that contains Jan 6th is the first week of the year.
  12102. };
  12103. function localeFirstDayOfWeek() {
  12104. return this._week.dow;
  12105. }
  12106. function localeFirstDayOfYear() {
  12107. return this._week.doy;
  12108. }
  12109. // MOMENTS
  12110. function getSetWeek(input) {
  12111. var week = this.localeData().week(this);
  12112. return input == null ? week : this.add((input - week) * 7, 'd');
  12113. }
  12114. function getSetISOWeek(input) {
  12115. var week = weekOfYear(this, 1, 4).week;
  12116. return input == null ? week : this.add((input - week) * 7, 'd');
  12117. }
  12118. // FORMATTING
  12119. addFormatToken('d', 0, 'do', 'day');
  12120. addFormatToken('dd', 0, 0, function (format) {
  12121. return this.localeData().weekdaysMin(this, format);
  12122. });
  12123. addFormatToken('ddd', 0, 0, function (format) {
  12124. return this.localeData().weekdaysShort(this, format);
  12125. });
  12126. addFormatToken('dddd', 0, 0, function (format) {
  12127. return this.localeData().weekdays(this, format);
  12128. });
  12129. addFormatToken('e', 0, 0, 'weekday');
  12130. addFormatToken('E', 0, 0, 'isoWeekday');
  12131. // ALIASES
  12132. addUnitAlias('day', 'd');
  12133. addUnitAlias('weekday', 'e');
  12134. addUnitAlias('isoWeekday', 'E');
  12135. // PRIORITY
  12136. addUnitPriority('day', 11);
  12137. addUnitPriority('weekday', 11);
  12138. addUnitPriority('isoWeekday', 11);
  12139. // PARSING
  12140. addRegexToken('d', match1to2);
  12141. addRegexToken('e', match1to2);
  12142. addRegexToken('E', match1to2);
  12143. addRegexToken('dd', function (isStrict, locale) {
  12144. return locale.weekdaysMinRegex(isStrict);
  12145. });
  12146. addRegexToken('ddd', function (isStrict, locale) {
  12147. return locale.weekdaysShortRegex(isStrict);
  12148. });
  12149. addRegexToken('dddd', function (isStrict, locale) {
  12150. return locale.weekdaysRegex(isStrict);
  12151. });
  12152. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  12153. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  12154. // if we didn't get a weekday name, mark the date as invalid
  12155. if (weekday != null) {
  12156. week.d = weekday;
  12157. } else {
  12158. getParsingFlags(config).invalidWeekday = input;
  12159. }
  12160. });
  12161. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  12162. week[token] = toInt(input);
  12163. });
  12164. // HELPERS
  12165. function parseWeekday(input, locale) {
  12166. if (typeof input !== 'string') {
  12167. return input;
  12168. }
  12169. if (!isNaN(input)) {
  12170. return parseInt(input, 10);
  12171. }
  12172. input = locale.weekdaysParse(input);
  12173. if (typeof input === 'number') {
  12174. return input;
  12175. }
  12176. return null;
  12177. }
  12178. function parseIsoWeekday(input, locale) {
  12179. if (typeof input === 'string') {
  12180. return locale.weekdaysParse(input) % 7 || 7;
  12181. }
  12182. return isNaN(input) ? null : input;
  12183. }
  12184. // LOCALES
  12185. function shiftWeekdays(ws, n) {
  12186. return ws.slice(n, 7).concat(ws.slice(0, n));
  12187. }
  12188. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  12189. defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  12190. defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  12191. defaultWeekdaysRegex = matchWord,
  12192. defaultWeekdaysShortRegex = matchWord,
  12193. defaultWeekdaysMinRegex = matchWord;
  12194. function localeWeekdays(m, format) {
  12195. var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format) ? 'format' : 'standalone'];
  12196. return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
  12197. }
  12198. function localeWeekdaysShort(m) {
  12199. return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort;
  12200. }
  12201. function localeWeekdaysMin(m) {
  12202. return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;
  12203. }
  12204. function handleStrictParse$1(weekdayName, format, strict) {
  12205. var i,
  12206. ii,
  12207. mom,
  12208. llc = weekdayName.toLocaleLowerCase();
  12209. if (!this._weekdaysParse) {
  12210. this._weekdaysParse = [];
  12211. this._shortWeekdaysParse = [];
  12212. this._minWeekdaysParse = [];
  12213. for (i = 0; i < 7; ++i) {
  12214. mom = createUTC([2000, 1]).day(i);
  12215. this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
  12216. this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
  12217. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  12218. }
  12219. }
  12220. if (strict) {
  12221. if (format === 'dddd') {
  12222. ii = indexOf.call(this._weekdaysParse, llc);
  12223. return ii !== -1 ? ii : null;
  12224. } else if (format === 'ddd') {
  12225. ii = indexOf.call(this._shortWeekdaysParse, llc);
  12226. return ii !== -1 ? ii : null;
  12227. } else {
  12228. ii = indexOf.call(this._minWeekdaysParse, llc);
  12229. return ii !== -1 ? ii : null;
  12230. }
  12231. } else {
  12232. if (format === 'dddd') {
  12233. ii = indexOf.call(this._weekdaysParse, llc);
  12234. if (ii !== -1) {
  12235. return ii;
  12236. }
  12237. ii = indexOf.call(this._shortWeekdaysParse, llc);
  12238. if (ii !== -1) {
  12239. return ii;
  12240. }
  12241. ii = indexOf.call(this._minWeekdaysParse, llc);
  12242. return ii !== -1 ? ii : null;
  12243. } else if (format === 'ddd') {
  12244. ii = indexOf.call(this._shortWeekdaysParse, llc);
  12245. if (ii !== -1) {
  12246. return ii;
  12247. }
  12248. ii = indexOf.call(this._weekdaysParse, llc);
  12249. if (ii !== -1) {
  12250. return ii;
  12251. }
  12252. ii = indexOf.call(this._minWeekdaysParse, llc);
  12253. return ii !== -1 ? ii : null;
  12254. } else {
  12255. ii = indexOf.call(this._minWeekdaysParse, llc);
  12256. if (ii !== -1) {
  12257. return ii;
  12258. }
  12259. ii = indexOf.call(this._weekdaysParse, llc);
  12260. if (ii !== -1) {
  12261. return ii;
  12262. }
  12263. ii = indexOf.call(this._shortWeekdaysParse, llc);
  12264. return ii !== -1 ? ii : null;
  12265. }
  12266. }
  12267. }
  12268. function localeWeekdaysParse(weekdayName, format, strict) {
  12269. var i, mom, regex;
  12270. if (this._weekdaysParseExact) {
  12271. return handleStrictParse$1.call(this, weekdayName, format, strict);
  12272. }
  12273. if (!this._weekdaysParse) {
  12274. this._weekdaysParse = [];
  12275. this._minWeekdaysParse = [];
  12276. this._shortWeekdaysParse = [];
  12277. this._fullWeekdaysParse = [];
  12278. }
  12279. for (i = 0; i < 7; i++) {
  12280. // make the regex if we don't have it already
  12281. mom = createUTC([2000, 1]).day(i);
  12282. if (strict && !this._fullWeekdaysParse[i]) {
  12283. this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i');
  12284. this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i');
  12285. this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i');
  12286. }
  12287. if (!this._weekdaysParse[i]) {
  12288. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  12289. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  12290. }
  12291. // test the regex
  12292. if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
  12293. return i;
  12294. } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
  12295. return i;
  12296. } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
  12297. return i;
  12298. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  12299. return i;
  12300. }
  12301. }
  12302. }
  12303. // MOMENTS
  12304. function getSetDayOfWeek(input) {
  12305. if (!this.isValid()) {
  12306. return input != null ? this : NaN;
  12307. }
  12308. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  12309. if (input != null) {
  12310. input = parseWeekday(input, this.localeData());
  12311. return this.add(input - day, 'd');
  12312. } else {
  12313. return day;
  12314. }
  12315. }
  12316. function getSetLocaleDayOfWeek(input) {
  12317. if (!this.isValid()) {
  12318. return input != null ? this : NaN;
  12319. }
  12320. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  12321. return input == null ? weekday : this.add(input - weekday, 'd');
  12322. }
  12323. function getSetISODayOfWeek(input) {
  12324. if (!this.isValid()) {
  12325. return input != null ? this : NaN;
  12326. }
  12327. // behaves the same as moment#day except
  12328. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  12329. // as a setter, sunday should belong to the previous week.
  12330. if (input != null) {
  12331. var weekday = parseIsoWeekday(input, this.localeData());
  12332. return this.day(this.day() % 7 ? weekday : weekday - 7);
  12333. } else {
  12334. return this.day() || 7;
  12335. }
  12336. }
  12337. function weekdaysRegex(isStrict) {
  12338. if (this._weekdaysParseExact) {
  12339. if (!hasOwnProp(this, '_weekdaysRegex')) {
  12340. computeWeekdaysParse.call(this);
  12341. }
  12342. if (isStrict) {
  12343. return this._weekdaysStrictRegex;
  12344. } else {
  12345. return this._weekdaysRegex;
  12346. }
  12347. } else {
  12348. if (!hasOwnProp(this, '_weekdaysRegex')) {
  12349. this._weekdaysRegex = defaultWeekdaysRegex;
  12350. }
  12351. return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
  12352. }
  12353. }
  12354. function weekdaysShortRegex(isStrict) {
  12355. if (this._weekdaysParseExact) {
  12356. if (!hasOwnProp(this, '_weekdaysRegex')) {
  12357. computeWeekdaysParse.call(this);
  12358. }
  12359. if (isStrict) {
  12360. return this._weekdaysShortStrictRegex;
  12361. } else {
  12362. return this._weekdaysShortRegex;
  12363. }
  12364. } else {
  12365. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  12366. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  12367. }
  12368. return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
  12369. }
  12370. }
  12371. function weekdaysMinRegex(isStrict) {
  12372. if (this._weekdaysParseExact) {
  12373. if (!hasOwnProp(this, '_weekdaysRegex')) {
  12374. computeWeekdaysParse.call(this);
  12375. }
  12376. if (isStrict) {
  12377. return this._weekdaysMinStrictRegex;
  12378. } else {
  12379. return this._weekdaysMinRegex;
  12380. }
  12381. } else {
  12382. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  12383. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  12384. }
  12385. return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
  12386. }
  12387. }
  12388. function computeWeekdaysParse() {
  12389. function cmpLenRev(a, b) {
  12390. return b.length - a.length;
  12391. }
  12392. var minPieces = [],
  12393. shortPieces = [],
  12394. longPieces = [],
  12395. mixedPieces = [],
  12396. i,
  12397. mom,
  12398. minp,
  12399. shortp,
  12400. longp;
  12401. for (i = 0; i < 7; i++) {
  12402. // make the regex if we don't have it already
  12403. mom = createUTC([2000, 1]).day(i);
  12404. minp = regexEscape(this.weekdaysMin(mom, ''));
  12405. shortp = regexEscape(this.weekdaysShort(mom, ''));
  12406. longp = regexEscape(this.weekdays(mom, ''));
  12407. minPieces.push(minp);
  12408. shortPieces.push(shortp);
  12409. longPieces.push(longp);
  12410. mixedPieces.push(minp);
  12411. mixedPieces.push(shortp);
  12412. mixedPieces.push(longp);
  12413. }
  12414. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  12415. // will match the longer piece.
  12416. minPieces.sort(cmpLenRev);
  12417. shortPieces.sort(cmpLenRev);
  12418. longPieces.sort(cmpLenRev);
  12419. mixedPieces.sort(cmpLenRev);
  12420. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  12421. this._weekdaysShortRegex = this._weekdaysRegex;
  12422. this._weekdaysMinRegex = this._weekdaysRegex;
  12423. this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  12424. this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  12425. this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
  12426. }
  12427. // FORMATTING
  12428. function hFormat() {
  12429. return this.hours() % 12 || 12;
  12430. }
  12431. function kFormat() {
  12432. return this.hours() || 24;
  12433. }
  12434. addFormatToken('H', ['HH', 2], 0, 'hour');
  12435. addFormatToken('h', ['hh', 2], 0, hFormat);
  12436. addFormatToken('k', ['kk', 2], 0, kFormat);
  12437. addFormatToken('hmm', 0, 0, function () {
  12438. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  12439. });
  12440. addFormatToken('hmmss', 0, 0, function () {
  12441. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
  12442. });
  12443. addFormatToken('Hmm', 0, 0, function () {
  12444. return '' + this.hours() + zeroFill(this.minutes(), 2);
  12445. });
  12446. addFormatToken('Hmmss', 0, 0, function () {
  12447. return '' + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
  12448. });
  12449. function meridiem(token, lowercase) {
  12450. addFormatToken(token, 0, 0, function () {
  12451. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  12452. });
  12453. }
  12454. meridiem('a', true);
  12455. meridiem('A', false);
  12456. // ALIASES
  12457. addUnitAlias('hour', 'h');
  12458. // PRIORITY
  12459. addUnitPriority('hour', 13);
  12460. // PARSING
  12461. function matchMeridiem(isStrict, locale) {
  12462. return locale._meridiemParse;
  12463. }
  12464. addRegexToken('a', matchMeridiem);
  12465. addRegexToken('A', matchMeridiem);
  12466. addRegexToken('H', match1to2);
  12467. addRegexToken('h', match1to2);
  12468. addRegexToken('k', match1to2);
  12469. addRegexToken('HH', match1to2, match2);
  12470. addRegexToken('hh', match1to2, match2);
  12471. addRegexToken('kk', match1to2, match2);
  12472. addRegexToken('hmm', match3to4);
  12473. addRegexToken('hmmss', match5to6);
  12474. addRegexToken('Hmm', match3to4);
  12475. addRegexToken('Hmmss', match5to6);
  12476. addParseToken(['H', 'HH'], HOUR);
  12477. addParseToken(['k', 'kk'], function (input, array, config) {
  12478. var kInput = toInt(input);
  12479. array[HOUR] = kInput === 24 ? 0 : kInput;
  12480. });
  12481. addParseToken(['a', 'A'], function (input, array, config) {
  12482. config._isPm = config._locale.isPM(input);
  12483. config._meridiem = input;
  12484. });
  12485. addParseToken(['h', 'hh'], function (input, array, config) {
  12486. array[HOUR] = toInt(input);
  12487. getParsingFlags(config).bigHour = true;
  12488. });
  12489. addParseToken('hmm', function (input, array, config) {
  12490. var pos = input.length - 2;
  12491. array[HOUR] = toInt(input.substr(0, pos));
  12492. array[MINUTE] = toInt(input.substr(pos));
  12493. getParsingFlags(config).bigHour = true;
  12494. });
  12495. addParseToken('hmmss', function (input, array, config) {
  12496. var pos1 = input.length - 4,
  12497. pos2 = input.length - 2;
  12498. array[HOUR] = toInt(input.substr(0, pos1));
  12499. array[MINUTE] = toInt(input.substr(pos1, 2));
  12500. array[SECOND] = toInt(input.substr(pos2));
  12501. getParsingFlags(config).bigHour = true;
  12502. });
  12503. addParseToken('Hmm', function (input, array, config) {
  12504. var pos = input.length - 2;
  12505. array[HOUR] = toInt(input.substr(0, pos));
  12506. array[MINUTE] = toInt(input.substr(pos));
  12507. });
  12508. addParseToken('Hmmss', function (input, array, config) {
  12509. var pos1 = input.length - 4,
  12510. pos2 = input.length - 2;
  12511. array[HOUR] = toInt(input.substr(0, pos1));
  12512. array[MINUTE] = toInt(input.substr(pos1, 2));
  12513. array[SECOND] = toInt(input.substr(pos2));
  12514. });
  12515. // LOCALES
  12516. function localeIsPM(input) {
  12517. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  12518. // Using charAt should be more compatible.
  12519. return (input + '').toLowerCase().charAt(0) === 'p';
  12520. }
  12521. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
  12522. // Setting the hour should keep the time, because the user explicitly
  12523. // specified which hour they want. So trying to maintain the same hour (in
  12524. // a new timezone) makes sense. Adding/subtracting hours does not follow
  12525. // this rule.
  12526. getSetHour = makeGetSet('Hours', true);
  12527. function localeMeridiem(hours, minutes, isLower) {
  12528. if (hours > 11) {
  12529. return isLower ? 'pm' : 'PM';
  12530. } else {
  12531. return isLower ? 'am' : 'AM';
  12532. }
  12533. }
  12534. var baseConfig = {
  12535. calendar: defaultCalendar,
  12536. longDateFormat: defaultLongDateFormat,
  12537. invalidDate: defaultInvalidDate,
  12538. ordinal: defaultOrdinal,
  12539. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  12540. relativeTime: defaultRelativeTime,
  12541. months: defaultLocaleMonths,
  12542. monthsShort: defaultLocaleMonthsShort,
  12543. week: defaultLocaleWeek,
  12544. weekdays: defaultLocaleWeekdays,
  12545. weekdaysMin: defaultLocaleWeekdaysMin,
  12546. weekdaysShort: defaultLocaleWeekdaysShort,
  12547. meridiemParse: defaultLocaleMeridiemParse
  12548. };
  12549. // internal storage for locale config files
  12550. var locales = {},
  12551. localeFamilies = {},
  12552. globalLocale;
  12553. function commonPrefix(arr1, arr2) {
  12554. var i,
  12555. minl = Math.min(arr1.length, arr2.length);
  12556. for (i = 0; i < minl; i += 1) {
  12557. if (arr1[i] !== arr2[i]) {
  12558. return i;
  12559. }
  12560. }
  12561. return minl;
  12562. }
  12563. function normalizeLocale(key) {
  12564. return key ? key.toLowerCase().replace('_', '-') : key;
  12565. }
  12566. // pick the locale from the array
  12567. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  12568. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  12569. function chooseLocale(names) {
  12570. var i = 0,
  12571. j,
  12572. next,
  12573. locale,
  12574. split;
  12575. while (i < names.length) {
  12576. split = normalizeLocale(names[i]).split('-');
  12577. j = split.length;
  12578. next = normalizeLocale(names[i + 1]);
  12579. next = next ? next.split('-') : null;
  12580. while (j > 0) {
  12581. locale = loadLocale(split.slice(0, j).join('-'));
  12582. if (locale) {
  12583. return locale;
  12584. }
  12585. if (next && next.length >= j && commonPrefix(split, next) >= j - 1) {
  12586. //the next array item is better than a shallower substring of this one
  12587. break;
  12588. }
  12589. j--;
  12590. }
  12591. i++;
  12592. }
  12593. return globalLocale;
  12594. }
  12595. function loadLocale(name) {
  12596. var oldLocale = null,
  12597. aliasedRequire;
  12598. // TODO: Find a better way to register and load all the locales in Node
  12599. if (locales[name] === undefined && typeof module !== 'undefined' && module && module.exports) {
  12600. try {
  12601. oldLocale = globalLocale._abbr;
  12602. aliasedRequire = require;
  12603. __webpack_require__(113)("./" + name);
  12604. getSetGlobalLocale(oldLocale);
  12605. } catch (e) {
  12606. // mark as not found to avoid repeating expensive file require call causing high CPU
  12607. // when trying to find en-US, en_US, en-us for every format call
  12608. locales[name] = null; // null means not found
  12609. }
  12610. }
  12611. return locales[name];
  12612. }
  12613. // This function will load locale and then set the global locale. If
  12614. // no arguments are passed in, it will simply return the current global
  12615. // locale key.
  12616. function getSetGlobalLocale(key, values) {
  12617. var data;
  12618. if (key) {
  12619. if (isUndefined(values)) {
  12620. data = getLocale(key);
  12621. } else {
  12622. data = defineLocale(key, values);
  12623. }
  12624. if (data) {
  12625. // moment.duration._locale = moment._locale = data;
  12626. globalLocale = data;
  12627. } else {
  12628. if (typeof console !== 'undefined' && console.warn) {
  12629. //warn user if arguments are passed but the locale could not be set
  12630. console.warn('Locale ' + key + ' not found. Did you forget to load it?');
  12631. }
  12632. }
  12633. }
  12634. return globalLocale._abbr;
  12635. }
  12636. function defineLocale(name, config) {
  12637. if (config !== null) {
  12638. var locale,
  12639. parentConfig = baseConfig;
  12640. config.abbr = name;
  12641. if (locales[name] != null) {
  12642. deprecateSimple('defineLocaleOverride', 'use moment.updateLocale(localeName, config) to change ' + 'an existing locale. moment.defineLocale(localeName, ' + 'config) should only be used for creating a new locale ' + 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
  12643. parentConfig = locales[name]._config;
  12644. } else if (config.parentLocale != null) {
  12645. if (locales[config.parentLocale] != null) {
  12646. parentConfig = locales[config.parentLocale]._config;
  12647. } else {
  12648. locale = loadLocale(config.parentLocale);
  12649. if (locale != null) {
  12650. parentConfig = locale._config;
  12651. } else {
  12652. if (!localeFamilies[config.parentLocale]) {
  12653. localeFamilies[config.parentLocale] = [];
  12654. }
  12655. localeFamilies[config.parentLocale].push({
  12656. name: name,
  12657. config: config
  12658. });
  12659. return null;
  12660. }
  12661. }
  12662. }
  12663. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  12664. if (localeFamilies[name]) {
  12665. localeFamilies[name].forEach(function (x) {
  12666. defineLocale(x.name, x.config);
  12667. });
  12668. }
  12669. // backwards compat for now: also set the locale
  12670. // make sure we set the locale AFTER all child locales have been
  12671. // created, so we won't end up with the child locale set.
  12672. getSetGlobalLocale(name);
  12673. return locales[name];
  12674. } else {
  12675. // useful for testing
  12676. delete locales[name];
  12677. return null;
  12678. }
  12679. }
  12680. function updateLocale(name, config) {
  12681. if (config != null) {
  12682. var locale,
  12683. tmpLocale,
  12684. parentConfig = baseConfig;
  12685. if (locales[name] != null && locales[name].parentLocale != null) {
  12686. // Update existing child locale in-place to avoid memory-leaks
  12687. locales[name].set(mergeConfigs(locales[name]._config, config));
  12688. } else {
  12689. // MERGE
  12690. tmpLocale = loadLocale(name);
  12691. if (tmpLocale != null) {
  12692. parentConfig = tmpLocale._config;
  12693. }
  12694. config = mergeConfigs(parentConfig, config);
  12695. if (tmpLocale == null) {
  12696. // updateLocale is called for creating a new locale
  12697. // Set abbr so it will have a name (getters return
  12698. // undefined otherwise).
  12699. config.abbr = name;
  12700. }
  12701. locale = new Locale(config);
  12702. locale.parentLocale = locales[name];
  12703. locales[name] = locale;
  12704. }
  12705. // backwards compat for now: also set the locale
  12706. getSetGlobalLocale(name);
  12707. } else {
  12708. // pass null for config to unupdate, useful for tests
  12709. if (locales[name] != null) {
  12710. if (locales[name].parentLocale != null) {
  12711. locales[name] = locales[name].parentLocale;
  12712. if (name === getSetGlobalLocale()) {
  12713. getSetGlobalLocale(name);
  12714. }
  12715. } else if (locales[name] != null) {
  12716. delete locales[name];
  12717. }
  12718. }
  12719. }
  12720. return locales[name];
  12721. }
  12722. // returns locale data
  12723. function getLocale(key) {
  12724. var locale;
  12725. if (key && key._locale && key._locale._abbr) {
  12726. key = key._locale._abbr;
  12727. }
  12728. if (!key) {
  12729. return globalLocale;
  12730. }
  12731. if (!isArray(key)) {
  12732. //short-circuit everything else
  12733. locale = loadLocale(key);
  12734. if (locale) {
  12735. return locale;
  12736. }
  12737. key = [key];
  12738. }
  12739. return chooseLocale(key);
  12740. }
  12741. function listLocales() {
  12742. return keys(locales);
  12743. }
  12744. function checkOverflow(m) {
  12745. var overflow,
  12746. a = m._a;
  12747. if (a && getParsingFlags(m).overflow === -2) {
  12748. overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1;
  12749. if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  12750. overflow = DATE;
  12751. }
  12752. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  12753. overflow = WEEK;
  12754. }
  12755. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  12756. overflow = WEEKDAY;
  12757. }
  12758. getParsingFlags(m).overflow = overflow;
  12759. }
  12760. return m;
  12761. }
  12762. // iso 8601 regex
  12763. // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
  12764. var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
  12765. basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
  12766. tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
  12767. isoDates = [['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], ['GGGG-[W]WW', /\d{4}-W\d\d/, false], ['YYYY-DDD', /\d{4}-\d{3}/], ['YYYY-MM', /\d{4}-\d\d/, false], ['YYYYYYMMDD', /[+-]\d{10}/], ['YYYYMMDD', /\d{8}/], ['GGGG[W]WWE', /\d{4}W\d{3}/], ['GGGG[W]WW', /\d{4}W\d{2}/, false], ['YYYYDDD', /\d{7}/], ['YYYYMM', /\d{6}/, false], ['YYYY', /\d{4}/, false]],
  12768. // iso time formats and regexes
  12769. isoTimes = [['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], ['HH:mm:ss', /\d\d:\d\d:\d\d/], ['HH:mm', /\d\d:\d\d/], ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], ['HHmmss', /\d\d\d\d\d\d/], ['HHmm', /\d\d\d\d/], ['HH', /\d\d/]],
  12770. aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
  12771. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  12772. rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
  12773. obsOffsets = {
  12774. UT: 0,
  12775. GMT: 0,
  12776. EDT: -4 * 60,
  12777. EST: -5 * 60,
  12778. CDT: -5 * 60,
  12779. CST: -6 * 60,
  12780. MDT: -6 * 60,
  12781. MST: -7 * 60,
  12782. PDT: -7 * 60,
  12783. PST: -8 * 60
  12784. };
  12785. // date from iso format
  12786. function configFromISO(config) {
  12787. var i,
  12788. l,
  12789. string = config._i,
  12790. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  12791. allowTime,
  12792. dateFormat,
  12793. timeFormat,
  12794. tzFormat;
  12795. if (match) {
  12796. getParsingFlags(config).iso = true;
  12797. for (i = 0, l = isoDates.length; i < l; i++) {
  12798. if (isoDates[i][1].exec(match[1])) {
  12799. dateFormat = isoDates[i][0];
  12800. allowTime = isoDates[i][2] !== false;
  12801. break;
  12802. }
  12803. }
  12804. if (dateFormat == null) {
  12805. config._isValid = false;
  12806. return;
  12807. }
  12808. if (match[3]) {
  12809. for (i = 0, l = isoTimes.length; i < l; i++) {
  12810. if (isoTimes[i][1].exec(match[3])) {
  12811. // match[2] should be 'T' or space
  12812. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  12813. break;
  12814. }
  12815. }
  12816. if (timeFormat == null) {
  12817. config._isValid = false;
  12818. return;
  12819. }
  12820. }
  12821. if (!allowTime && timeFormat != null) {
  12822. config._isValid = false;
  12823. return;
  12824. }
  12825. if (match[4]) {
  12826. if (tzRegex.exec(match[4])) {
  12827. tzFormat = 'Z';
  12828. } else {
  12829. config._isValid = false;
  12830. return;
  12831. }
  12832. }
  12833. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  12834. configFromStringAndFormat(config);
  12835. } else {
  12836. config._isValid = false;
  12837. }
  12838. }
  12839. function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
  12840. var result = [untruncateYear(yearStr), defaultLocaleMonthsShort.indexOf(monthStr), parseInt(dayStr, 10), parseInt(hourStr, 10), parseInt(minuteStr, 10)];
  12841. if (secondStr) {
  12842. result.push(parseInt(secondStr, 10));
  12843. }
  12844. return result;
  12845. }
  12846. function untruncateYear(yearStr) {
  12847. var year = parseInt(yearStr, 10);
  12848. if (year <= 49) {
  12849. return 2000 + year;
  12850. } else if (year <= 999) {
  12851. return 1900 + year;
  12852. }
  12853. return year;
  12854. }
  12855. function preprocessRFC2822(s) {
  12856. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  12857. return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, '');
  12858. }
  12859. function checkWeekday(weekdayStr, parsedInput, config) {
  12860. if (weekdayStr) {
  12861. // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
  12862. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  12863. weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
  12864. if (weekdayProvided !== weekdayActual) {
  12865. getParsingFlags(config).weekdayMismatch = true;
  12866. config._isValid = false;
  12867. return false;
  12868. }
  12869. }
  12870. return true;
  12871. }
  12872. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  12873. if (obsOffset) {
  12874. return obsOffsets[obsOffset];
  12875. } else if (militaryOffset) {
  12876. // the only allowed military tz is Z
  12877. return 0;
  12878. } else {
  12879. var hm = parseInt(numOffset, 10),
  12880. m = hm % 100,
  12881. h = (hm - m) / 100;
  12882. return h * 60 + m;
  12883. }
  12884. }
  12885. // date and time from ref 2822 format
  12886. function configFromRFC2822(config) {
  12887. var match = rfc2822.exec(preprocessRFC2822(config._i)),
  12888. parsedArray;
  12889. if (match) {
  12890. parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
  12891. if (!checkWeekday(match[1], parsedArray, config)) {
  12892. return;
  12893. }
  12894. config._a = parsedArray;
  12895. config._tzm = calculateOffset(match[8], match[9], match[10]);
  12896. config._d = createUTCDate.apply(null, config._a);
  12897. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  12898. getParsingFlags(config).rfc2822 = true;
  12899. } else {
  12900. config._isValid = false;
  12901. }
  12902. }
  12903. // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
  12904. function configFromString(config) {
  12905. var matched = aspNetJsonRegex.exec(config._i);
  12906. if (matched !== null) {
  12907. config._d = new Date(+matched[1]);
  12908. return;
  12909. }
  12910. configFromISO(config);
  12911. if (config._isValid === false) {
  12912. delete config._isValid;
  12913. } else {
  12914. return;
  12915. }
  12916. configFromRFC2822(config);
  12917. if (config._isValid === false) {
  12918. delete config._isValid;
  12919. } else {
  12920. return;
  12921. }
  12922. if (config._strict) {
  12923. config._isValid = false;
  12924. } else {
  12925. // Final attempt, use Input Fallback
  12926. hooks.createFromInputFallback(config);
  12927. }
  12928. }
  12929. hooks.createFromInputFallback = deprecate('value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', function (config) {
  12930. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  12931. });
  12932. // Pick the first defined of two or three arguments.
  12933. function defaults(a, b, c) {
  12934. if (a != null) {
  12935. return a;
  12936. }
  12937. if (b != null) {
  12938. return b;
  12939. }
  12940. return c;
  12941. }
  12942. function currentDateArray(config) {
  12943. // hooks is actually the exported moment object
  12944. var nowValue = new Date(hooks.now());
  12945. if (config._useUTC) {
  12946. return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
  12947. }
  12948. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  12949. }
  12950. // convert an array to a date.
  12951. // the array should mirror the parameters below
  12952. // note: all values past the year are optional and will default to the lowest possible value.
  12953. // [year, month, day , hour, minute, second, millisecond]
  12954. function configFromArray(config) {
  12955. var i,
  12956. date,
  12957. input = [],
  12958. currentDate,
  12959. expectedWeekday,
  12960. yearToUse;
  12961. if (config._d) {
  12962. return;
  12963. }
  12964. currentDate = currentDateArray(config);
  12965. //compute day of the year from weeks and weekdays
  12966. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  12967. dayOfYearFromWeekInfo(config);
  12968. }
  12969. //if the day of the year is set, figure out what it is
  12970. if (config._dayOfYear != null) {
  12971. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  12972. if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
  12973. getParsingFlags(config)._overflowDayOfYear = true;
  12974. }
  12975. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  12976. config._a[MONTH] = date.getUTCMonth();
  12977. config._a[DATE] = date.getUTCDate();
  12978. }
  12979. // Default to current date.
  12980. // * if no year, month, day of month are given, default to today
  12981. // * if day of month is given, default month and year
  12982. // * if month is given, default only year
  12983. // * if year is given, don't default anything
  12984. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  12985. config._a[i] = input[i] = currentDate[i];
  12986. }
  12987. // Zero out whatever was not defaulted, including time
  12988. for (; i < 7; i++) {
  12989. config._a[i] = input[i] = config._a[i] == null ? i === 2 ? 1 : 0 : config._a[i];
  12990. }
  12991. // Check for 24:00:00.000
  12992. if (config._a[HOUR] === 24 && config._a[MINUTE] === 0 && config._a[SECOND] === 0 && config._a[MILLISECOND] === 0) {
  12993. config._nextDay = true;
  12994. config._a[HOUR] = 0;
  12995. }
  12996. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  12997. expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
  12998. // Apply timezone offset from input. The actual utcOffset can be changed
  12999. // with parseZone.
  13000. if (config._tzm != null) {
  13001. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  13002. }
  13003. if (config._nextDay) {
  13004. config._a[HOUR] = 24;
  13005. }
  13006. // check for mismatching day of week
  13007. if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
  13008. getParsingFlags(config).weekdayMismatch = true;
  13009. }
  13010. }
  13011. function dayOfYearFromWeekInfo(config) {
  13012. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
  13013. w = config._w;
  13014. if (w.GG != null || w.W != null || w.E != null) {
  13015. dow = 1;
  13016. doy = 4;
  13017. // TODO: We need to take the current isoWeekYear, but that depends on
  13018. // how we interpret now (local, utc, fixed offset). So create
  13019. // a now version of current config (take local/utc/offset flags, and
  13020. // create now).
  13021. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
  13022. week = defaults(w.W, 1);
  13023. weekday = defaults(w.E, 1);
  13024. if (weekday < 1 || weekday > 7) {
  13025. weekdayOverflow = true;
  13026. }
  13027. } else {
  13028. dow = config._locale._week.dow;
  13029. doy = config._locale._week.doy;
  13030. curWeek = weekOfYear(createLocal(), dow, doy);
  13031. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  13032. // Default to current week.
  13033. week = defaults(w.w, curWeek.week);
  13034. if (w.d != null) {
  13035. // weekday -- low day numbers are considered next week
  13036. weekday = w.d;
  13037. if (weekday < 0 || weekday > 6) {
  13038. weekdayOverflow = true;
  13039. }
  13040. } else if (w.e != null) {
  13041. // local weekday -- counting starts from beginning of week
  13042. weekday = w.e + dow;
  13043. if (w.e < 0 || w.e > 6) {
  13044. weekdayOverflow = true;
  13045. }
  13046. } else {
  13047. // default to beginning of week
  13048. weekday = dow;
  13049. }
  13050. }
  13051. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  13052. getParsingFlags(config)._overflowWeeks = true;
  13053. } else if (weekdayOverflow != null) {
  13054. getParsingFlags(config)._overflowWeekday = true;
  13055. } else {
  13056. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  13057. config._a[YEAR] = temp.year;
  13058. config._dayOfYear = temp.dayOfYear;
  13059. }
  13060. }
  13061. // constant that refers to the ISO standard
  13062. hooks.ISO_8601 = function () {};
  13063. // constant that refers to the RFC 2822 form
  13064. hooks.RFC_2822 = function () {};
  13065. // date from string and format string
  13066. function configFromStringAndFormat(config) {
  13067. // TODO: Move this to another part of the creation flow to prevent circular deps
  13068. if (config._f === hooks.ISO_8601) {
  13069. configFromISO(config);
  13070. return;
  13071. }
  13072. if (config._f === hooks.RFC_2822) {
  13073. configFromRFC2822(config);
  13074. return;
  13075. }
  13076. config._a = [];
  13077. getParsingFlags(config).empty = true;
  13078. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  13079. var string = '' + config._i,
  13080. i,
  13081. parsedInput,
  13082. tokens,
  13083. token,
  13084. skipped,
  13085. stringLength = string.length,
  13086. totalParsedInputLength = 0,
  13087. era;
  13088. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  13089. for (i = 0; i < tokens.length; i++) {
  13090. token = tokens[i];
  13091. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  13092. if (parsedInput) {
  13093. skipped = string.substr(0, string.indexOf(parsedInput));
  13094. if (skipped.length > 0) {
  13095. getParsingFlags(config).unusedInput.push(skipped);
  13096. }
  13097. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  13098. totalParsedInputLength += parsedInput.length;
  13099. }
  13100. // don't parse if it's not a known token
  13101. if (formatTokenFunctions[token]) {
  13102. if (parsedInput) {
  13103. getParsingFlags(config).empty = false;
  13104. } else {
  13105. getParsingFlags(config).unusedTokens.push(token);
  13106. }
  13107. addTimeToArrayFromToken(token, parsedInput, config);
  13108. } else if (config._strict && !parsedInput) {
  13109. getParsingFlags(config).unusedTokens.push(token);
  13110. }
  13111. }
  13112. // add remaining unparsed input length to the string
  13113. getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
  13114. if (string.length > 0) {
  13115. getParsingFlags(config).unusedInput.push(string);
  13116. }
  13117. // clear _12h flag if hour is <= 12
  13118. if (config._a[HOUR] <= 12 && getParsingFlags(config).bigHour === true && config._a[HOUR] > 0) {
  13119. getParsingFlags(config).bigHour = undefined;
  13120. }
  13121. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  13122. getParsingFlags(config).meridiem = config._meridiem;
  13123. // handle meridiem
  13124. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  13125. // handle era
  13126. era = getParsingFlags(config).era;
  13127. if (era !== null) {
  13128. config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
  13129. }
  13130. configFromArray(config);
  13131. checkOverflow(config);
  13132. }
  13133. function meridiemFixWrap(locale, hour, meridiem) {
  13134. var isPm;
  13135. if (meridiem == null) {
  13136. // nothing to do
  13137. return hour;
  13138. }
  13139. if (locale.meridiemHour != null) {
  13140. return locale.meridiemHour(hour, meridiem);
  13141. } else if (locale.isPM != null) {
  13142. // Fallback
  13143. isPm = locale.isPM(meridiem);
  13144. if (isPm && hour < 12) {
  13145. hour += 12;
  13146. }
  13147. if (!isPm && hour === 12) {
  13148. hour = 0;
  13149. }
  13150. return hour;
  13151. } else {
  13152. // this is not supposed to happen
  13153. return hour;
  13154. }
  13155. }
  13156. // date from string and array of format strings
  13157. function configFromStringAndArray(config) {
  13158. var tempConfig,
  13159. bestMoment,
  13160. scoreToBeat,
  13161. i,
  13162. currentScore,
  13163. validFormatFound,
  13164. bestFormatIsValid = false;
  13165. if (config._f.length === 0) {
  13166. getParsingFlags(config).invalidFormat = true;
  13167. config._d = new Date(NaN);
  13168. return;
  13169. }
  13170. for (i = 0; i < config._f.length; i++) {
  13171. currentScore = 0;
  13172. validFormatFound = false;
  13173. tempConfig = copyConfig({}, config);
  13174. if (config._useUTC != null) {
  13175. tempConfig._useUTC = config._useUTC;
  13176. }
  13177. tempConfig._f = config._f[i];
  13178. configFromStringAndFormat(tempConfig);
  13179. if (isValid(tempConfig)) {
  13180. validFormatFound = true;
  13181. }
  13182. // if there is any input that was not parsed add a penalty for that format
  13183. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  13184. //or tokens
  13185. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  13186. getParsingFlags(tempConfig).score = currentScore;
  13187. if (!bestFormatIsValid) {
  13188. if (scoreToBeat == null || currentScore < scoreToBeat || validFormatFound) {
  13189. scoreToBeat = currentScore;
  13190. bestMoment = tempConfig;
  13191. if (validFormatFound) {
  13192. bestFormatIsValid = true;
  13193. }
  13194. }
  13195. } else {
  13196. if (currentScore < scoreToBeat) {
  13197. scoreToBeat = currentScore;
  13198. bestMoment = tempConfig;
  13199. }
  13200. }
  13201. }
  13202. extend(config, bestMoment || tempConfig);
  13203. }
  13204. function configFromObject(config) {
  13205. if (config._d) {
  13206. return;
  13207. }
  13208. var i = normalizeObjectUnits(config._i),
  13209. dayOrDate = i.day === undefined ? i.date : i.day;
  13210. config._a = map([i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], function (obj) {
  13211. return obj && parseInt(obj, 10);
  13212. });
  13213. configFromArray(config);
  13214. }
  13215. function createFromConfig(config) {
  13216. var res = new Moment(checkOverflow(prepareConfig(config)));
  13217. if (res._nextDay) {
  13218. // Adding is smart enough around DST
  13219. res.add(1, 'd');
  13220. res._nextDay = undefined;
  13221. }
  13222. return res;
  13223. }
  13224. function prepareConfig(config) {
  13225. var input = config._i,
  13226. format = config._f;
  13227. config._locale = config._locale || getLocale(config._l);
  13228. if (input === null || format === undefined && input === '') {
  13229. return createInvalid({
  13230. nullInput: true
  13231. });
  13232. }
  13233. if (typeof input === 'string') {
  13234. config._i = input = config._locale.preparse(input);
  13235. }
  13236. if (isMoment(input)) {
  13237. return new Moment(checkOverflow(input));
  13238. } else if (isDate(input)) {
  13239. config._d = input;
  13240. } else if (isArray(format)) {
  13241. configFromStringAndArray(config);
  13242. } else if (format) {
  13243. configFromStringAndFormat(config);
  13244. } else {
  13245. configFromInput(config);
  13246. }
  13247. if (!isValid(config)) {
  13248. config._d = null;
  13249. }
  13250. return config;
  13251. }
  13252. function configFromInput(config) {
  13253. var input = config._i;
  13254. if (isUndefined(input)) {
  13255. config._d = new Date(hooks.now());
  13256. } else if (isDate(input)) {
  13257. config._d = new Date(input.valueOf());
  13258. } else if (typeof input === 'string') {
  13259. configFromString(config);
  13260. } else if (isArray(input)) {
  13261. config._a = map(input.slice(0), function (obj) {
  13262. return parseInt(obj, 10);
  13263. });
  13264. configFromArray(config);
  13265. } else if (isObject(input)) {
  13266. configFromObject(config);
  13267. } else if (isNumber(input)) {
  13268. // from milliseconds
  13269. config._d = new Date(input);
  13270. } else {
  13271. hooks.createFromInputFallback(config);
  13272. }
  13273. }
  13274. function createLocalOrUTC(input, format, locale, strict, isUTC) {
  13275. var c = {};
  13276. if (format === true || format === false) {
  13277. strict = format;
  13278. format = undefined;
  13279. }
  13280. if (locale === true || locale === false) {
  13281. strict = locale;
  13282. locale = undefined;
  13283. }
  13284. if (isObject(input) && isObjectEmpty(input) || isArray(input) && input.length === 0) {
  13285. input = undefined;
  13286. }
  13287. // object construction must be done this way.
  13288. // https://github.com/moment/moment/issues/1423
  13289. c._isAMomentObject = true;
  13290. c._useUTC = c._isUTC = isUTC;
  13291. c._l = locale;
  13292. c._i = input;
  13293. c._f = format;
  13294. c._strict = strict;
  13295. return createFromConfig(c);
  13296. }
  13297. function createLocal(input, format, locale, strict) {
  13298. return createLocalOrUTC(input, format, locale, strict, false);
  13299. }
  13300. var prototypeMin = deprecate('moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', function () {
  13301. var other = createLocal.apply(null, arguments);
  13302. if (this.isValid() && other.isValid()) {
  13303. return other < this ? this : other;
  13304. } else {
  13305. return createInvalid();
  13306. }
  13307. }),
  13308. prototypeMax = deprecate('moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', function () {
  13309. var other = createLocal.apply(null, arguments);
  13310. if (this.isValid() && other.isValid()) {
  13311. return other > this ? this : other;
  13312. } else {
  13313. return createInvalid();
  13314. }
  13315. });
  13316. // Pick a moment m from moments so that m[fn](other) is true for all
  13317. // other. This relies on the function fn to be transitive.
  13318. //
  13319. // moments should either be an array of moment objects or an array, whose
  13320. // first element is an array of moment objects.
  13321. function pickBy(fn, moments) {
  13322. var res, i;
  13323. if (moments.length === 1 && isArray(moments[0])) {
  13324. moments = moments[0];
  13325. }
  13326. if (!moments.length) {
  13327. return createLocal();
  13328. }
  13329. res = moments[0];
  13330. for (i = 1; i < moments.length; ++i) {
  13331. if (!moments[i].isValid() || moments[i][fn](res)) {
  13332. res = moments[i];
  13333. }
  13334. }
  13335. return res;
  13336. }
  13337. // TODO: Use [].sort instead?
  13338. function min() {
  13339. var args = [].slice.call(arguments, 0);
  13340. return pickBy('isBefore', args);
  13341. }
  13342. function max() {
  13343. var args = [].slice.call(arguments, 0);
  13344. return pickBy('isAfter', args);
  13345. }
  13346. var now = function now() {
  13347. return Date.now ? Date.now() : +new Date();
  13348. };
  13349. var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
  13350. function isDurationValid(m) {
  13351. var key,
  13352. unitHasDecimal = false,
  13353. i;
  13354. for (key in m) {
  13355. if (hasOwnProp(m, key) && !(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
  13356. return false;
  13357. }
  13358. }
  13359. for (i = 0; i < ordering.length; ++i) {
  13360. if (m[ordering[i]]) {
  13361. if (unitHasDecimal) {
  13362. return false; // only allow non-integers for smallest unit
  13363. }
  13364. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  13365. unitHasDecimal = true;
  13366. }
  13367. }
  13368. }
  13369. return true;
  13370. }
  13371. function isValid$1() {
  13372. return this._isValid;
  13373. }
  13374. function createInvalid$1() {
  13375. return createDuration(NaN);
  13376. }
  13377. function Duration(duration) {
  13378. var normalizedInput = normalizeObjectUnits(duration),
  13379. years = normalizedInput.year || 0,
  13380. quarters = normalizedInput.quarter || 0,
  13381. months = normalizedInput.month || 0,
  13382. weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
  13383. days = normalizedInput.day || 0,
  13384. hours = normalizedInput.hour || 0,
  13385. minutes = normalizedInput.minute || 0,
  13386. seconds = normalizedInput.second || 0,
  13387. milliseconds = normalizedInput.millisecond || 0;
  13388. this._isValid = isDurationValid(normalizedInput);
  13389. // representation for dateAddRemove
  13390. this._milliseconds = +milliseconds + seconds * 1e3 +
  13391. // 1000
  13392. minutes * 6e4 +
  13393. // 1000 * 60
  13394. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  13395. // Because of dateAddRemove treats 24 hours as different from a
  13396. // day when working around DST, we need to store them separately
  13397. this._days = +days + weeks * 7;
  13398. // It is impossible to translate months into days without knowing
  13399. // which months you are are talking about, so we have to store
  13400. // it separately.
  13401. this._months = +months + quarters * 3 + years * 12;
  13402. this._data = {};
  13403. this._locale = getLocale();
  13404. this._bubble();
  13405. }
  13406. function isDuration(obj) {
  13407. return obj instanceof Duration;
  13408. }
  13409. function absRound(number) {
  13410. if (number < 0) {
  13411. return Math.round(-1 * number) * -1;
  13412. } else {
  13413. return Math.round(number);
  13414. }
  13415. }
  13416. // compare two arrays, return the number of differences
  13417. function compareArrays(array1, array2, dontConvert) {
  13418. var len = Math.min(array1.length, array2.length),
  13419. lengthDiff = Math.abs(array1.length - array2.length),
  13420. diffs = 0,
  13421. i;
  13422. for (i = 0; i < len; i++) {
  13423. if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {
  13424. diffs++;
  13425. }
  13426. }
  13427. return diffs + lengthDiff;
  13428. }
  13429. // FORMATTING
  13430. function offset(token, separator) {
  13431. addFormatToken(token, 0, 0, function () {
  13432. var offset = this.utcOffset(),
  13433. sign = '+';
  13434. if (offset < 0) {
  13435. offset = -offset;
  13436. sign = '-';
  13437. }
  13438. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~offset % 60, 2);
  13439. });
  13440. }
  13441. offset('Z', ':');
  13442. offset('ZZ', '');
  13443. // PARSING
  13444. addRegexToken('Z', matchShortOffset);
  13445. addRegexToken('ZZ', matchShortOffset);
  13446. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  13447. config._useUTC = true;
  13448. config._tzm = offsetFromString(matchShortOffset, input);
  13449. });
  13450. // HELPERS
  13451. // timezone chunker
  13452. // '+10:00' > ['10', '00']
  13453. // '-1530' > ['-15', '30']
  13454. var chunkOffset = /([\+\-]|\d\d)/gi;
  13455. function offsetFromString(matcher, string) {
  13456. var matches = (string || '').match(matcher),
  13457. chunk,
  13458. parts,
  13459. minutes;
  13460. if (matches === null) {
  13461. return null;
  13462. }
  13463. chunk = matches[matches.length - 1] || [];
  13464. parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  13465. minutes = +(parts[1] * 60) + toInt(parts[2]);
  13466. return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
  13467. }
  13468. // Return a moment from input, that is local/utc/zone equivalent to model.
  13469. function cloneWithOffset(input, model) {
  13470. var res, diff;
  13471. if (model._isUTC) {
  13472. res = model.clone();
  13473. diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
  13474. // Use low-level api, because this fn is low-level api.
  13475. res._d.setTime(res._d.valueOf() + diff);
  13476. hooks.updateOffset(res, false);
  13477. return res;
  13478. } else {
  13479. return createLocal(input).local();
  13480. }
  13481. }
  13482. function getDateOffset(m) {
  13483. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  13484. // https://github.com/moment/moment/pull/1871
  13485. return -Math.round(m._d.getTimezoneOffset());
  13486. }
  13487. // HOOKS
  13488. // This function will be called whenever a moment is mutated.
  13489. // It is intended to keep the offset in sync with the timezone.
  13490. hooks.updateOffset = function () {};
  13491. // MOMENTS
  13492. // keepLocalTime = true means only change the timezone, without
  13493. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  13494. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  13495. // +0200, so we adjust the time as needed, to be valid.
  13496. //
  13497. // Keeping the time actually adds/subtracts (one hour)
  13498. // from the actual represented time. That is why we call updateOffset
  13499. // a second time. In case it wants us to change the offset again
  13500. // _changeInProgress == true case, then we have to adjust, because
  13501. // there is no such time in the given timezone.
  13502. function getSetOffset(input, keepLocalTime, keepMinutes) {
  13503. var offset = this._offset || 0,
  13504. localAdjust;
  13505. if (!this.isValid()) {
  13506. return input != null ? this : NaN;
  13507. }
  13508. if (input != null) {
  13509. if (typeof input === 'string') {
  13510. input = offsetFromString(matchShortOffset, input);
  13511. if (input === null) {
  13512. return this;
  13513. }
  13514. } else if (Math.abs(input) < 16 && !keepMinutes) {
  13515. input = input * 60;
  13516. }
  13517. if (!this._isUTC && keepLocalTime) {
  13518. localAdjust = getDateOffset(this);
  13519. }
  13520. this._offset = input;
  13521. this._isUTC = true;
  13522. if (localAdjust != null) {
  13523. this.add(localAdjust, 'm');
  13524. }
  13525. if (offset !== input) {
  13526. if (!keepLocalTime || this._changeInProgress) {
  13527. addSubtract(this, createDuration(input - offset, 'm'), 1, false);
  13528. } else if (!this._changeInProgress) {
  13529. this._changeInProgress = true;
  13530. hooks.updateOffset(this, true);
  13531. this._changeInProgress = null;
  13532. }
  13533. }
  13534. return this;
  13535. } else {
  13536. return this._isUTC ? offset : getDateOffset(this);
  13537. }
  13538. }
  13539. function getSetZone(input, keepLocalTime) {
  13540. if (input != null) {
  13541. if (typeof input !== 'string') {
  13542. input = -input;
  13543. }
  13544. this.utcOffset(input, keepLocalTime);
  13545. return this;
  13546. } else {
  13547. return -this.utcOffset();
  13548. }
  13549. }
  13550. function setOffsetToUTC(keepLocalTime) {
  13551. return this.utcOffset(0, keepLocalTime);
  13552. }
  13553. function setOffsetToLocal(keepLocalTime) {
  13554. if (this._isUTC) {
  13555. this.utcOffset(0, keepLocalTime);
  13556. this._isUTC = false;
  13557. if (keepLocalTime) {
  13558. this.subtract(getDateOffset(this), 'm');
  13559. }
  13560. }
  13561. return this;
  13562. }
  13563. function setOffsetToParsedOffset() {
  13564. if (this._tzm != null) {
  13565. this.utcOffset(this._tzm, false, true);
  13566. } else if (typeof this._i === 'string') {
  13567. var tZone = offsetFromString(matchOffset, this._i);
  13568. if (tZone != null) {
  13569. this.utcOffset(tZone);
  13570. } else {
  13571. this.utcOffset(0, true);
  13572. }
  13573. }
  13574. return this;
  13575. }
  13576. function hasAlignedHourOffset(input) {
  13577. if (!this.isValid()) {
  13578. return false;
  13579. }
  13580. input = input ? createLocal(input).utcOffset() : 0;
  13581. return (this.utcOffset() - input) % 60 === 0;
  13582. }
  13583. function isDaylightSavingTime() {
  13584. return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
  13585. }
  13586. function isDaylightSavingTimeShifted() {
  13587. if (!isUndefined(this._isDSTShifted)) {
  13588. return this._isDSTShifted;
  13589. }
  13590. var c = {},
  13591. other;
  13592. copyConfig(c, this);
  13593. c = prepareConfig(c);
  13594. if (c._a) {
  13595. other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  13596. this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0;
  13597. } else {
  13598. this._isDSTShifted = false;
  13599. }
  13600. return this._isDSTShifted;
  13601. }
  13602. function isLocal() {
  13603. return this.isValid() ? !this._isUTC : false;
  13604. }
  13605. function isUtcOffset() {
  13606. return this.isValid() ? this._isUTC : false;
  13607. }
  13608. function isUtc() {
  13609. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  13610. }
  13611. // ASP.NET json date format regex
  13612. var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  13613. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  13614. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  13615. // and further modified to allow for strings containing both week and day
  13616. isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  13617. function createDuration(input, key) {
  13618. var duration = input,
  13619. // matching against regexp is expensive, do it on demand
  13620. match = null,
  13621. sign,
  13622. ret,
  13623. diffRes;
  13624. if (isDuration(input)) {
  13625. duration = {
  13626. ms: input._milliseconds,
  13627. d: input._days,
  13628. M: input._months
  13629. };
  13630. } else if (isNumber(input) || !isNaN(+input)) {
  13631. duration = {};
  13632. if (key) {
  13633. duration[key] = +input;
  13634. } else {
  13635. duration.milliseconds = +input;
  13636. }
  13637. } else if (match = aspNetRegex.exec(input)) {
  13638. sign = match[1] === '-' ? -1 : 1;
  13639. duration = {
  13640. y: 0,
  13641. d: toInt(match[DATE]) * sign,
  13642. h: toInt(match[HOUR]) * sign,
  13643. m: toInt(match[MINUTE]) * sign,
  13644. s: toInt(match[SECOND]) * sign,
  13645. ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
  13646. };
  13647. } else if (match = isoRegex.exec(input)) {
  13648. sign = match[1] === '-' ? -1 : 1;
  13649. duration = {
  13650. y: parseIso(match[2], sign),
  13651. M: parseIso(match[3], sign),
  13652. w: parseIso(match[4], sign),
  13653. d: parseIso(match[5], sign),
  13654. h: parseIso(match[6], sign),
  13655. m: parseIso(match[7], sign),
  13656. s: parseIso(match[8], sign)
  13657. };
  13658. } else if (duration == null) {
  13659. // checks for null or undefined
  13660. duration = {};
  13661. } else if (_typeof(duration) === 'object' && ('from' in duration || 'to' in duration)) {
  13662. diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
  13663. duration = {};
  13664. duration.ms = diffRes.milliseconds;
  13665. duration.M = diffRes.months;
  13666. }
  13667. ret = new Duration(duration);
  13668. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  13669. ret._locale = input._locale;
  13670. }
  13671. if (isDuration(input) && hasOwnProp(input, '_isValid')) {
  13672. ret._isValid = input._isValid;
  13673. }
  13674. return ret;
  13675. }
  13676. createDuration.fn = Duration.prototype;
  13677. createDuration.invalid = createInvalid$1;
  13678. function parseIso(inp, sign) {
  13679. // We'd normally use ~~inp for this, but unfortunately it also
  13680. // converts floats to ints.
  13681. // inp may be undefined, so careful calling replace on it.
  13682. var res = inp && parseFloat(inp.replace(',', '.'));
  13683. // apply sign while we're at it
  13684. return (isNaN(res) ? 0 : res) * sign;
  13685. }
  13686. function positiveMomentsDifference(base, other) {
  13687. var res = {};
  13688. res.months = other.month() - base.month() + (other.year() - base.year()) * 12;
  13689. if (base.clone().add(res.months, 'M').isAfter(other)) {
  13690. --res.months;
  13691. }
  13692. res.milliseconds = +other - +base.clone().add(res.months, 'M');
  13693. return res;
  13694. }
  13695. function momentsDifference(base, other) {
  13696. var res;
  13697. if (!(base.isValid() && other.isValid())) {
  13698. return {
  13699. milliseconds: 0,
  13700. months: 0
  13701. };
  13702. }
  13703. other = cloneWithOffset(other, base);
  13704. if (base.isBefore(other)) {
  13705. res = positiveMomentsDifference(base, other);
  13706. } else {
  13707. res = positiveMomentsDifference(other, base);
  13708. res.milliseconds = -res.milliseconds;
  13709. res.months = -res.months;
  13710. }
  13711. return res;
  13712. }
  13713. // TODO: remove 'name' arg after deprecation is removed
  13714. function createAdder(direction, name) {
  13715. return function (val, period) {
  13716. var dur, tmp;
  13717. //invert the arguments, but complain about it
  13718. if (period !== null && !isNaN(+period)) {
  13719. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
  13720. tmp = val;
  13721. val = period;
  13722. period = tmp;
  13723. }
  13724. dur = createDuration(val, period);
  13725. addSubtract(this, dur, direction);
  13726. return this;
  13727. };
  13728. }
  13729. function addSubtract(mom, duration, isAdding, updateOffset) {
  13730. var milliseconds = duration._milliseconds,
  13731. days = absRound(duration._days),
  13732. months = absRound(duration._months);
  13733. if (!mom.isValid()) {
  13734. // No op
  13735. return;
  13736. }
  13737. updateOffset = updateOffset == null ? true : updateOffset;
  13738. if (months) {
  13739. setMonth(mom, get(mom, 'Month') + months * isAdding);
  13740. }
  13741. if (days) {
  13742. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  13743. }
  13744. if (milliseconds) {
  13745. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  13746. }
  13747. if (updateOffset) {
  13748. hooks.updateOffset(mom, days || months);
  13749. }
  13750. }
  13751. var add = createAdder(1, 'add'),
  13752. subtract = createAdder(-1, 'subtract');
  13753. function isString(input) {
  13754. return typeof input === 'string' || input instanceof String;
  13755. }
  13756. // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
  13757. function isMomentInput(input) {
  13758. return isMoment(input) || isDate(input) || isString(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === undefined;
  13759. }
  13760. function isMomentInputObject(input) {
  13761. var objectTest = isObject(input) && !isObjectEmpty(input),
  13762. propertyTest = false,
  13763. properties = ['years', 'year', 'y', 'months', 'month', 'M', 'days', 'day', 'd', 'dates', 'date', 'D', 'hours', 'hour', 'h', 'minutes', 'minute', 'm', 'seconds', 'second', 's', 'milliseconds', 'millisecond', 'ms'],
  13764. i,
  13765. property;
  13766. for (i = 0; i < properties.length; i += 1) {
  13767. property = properties[i];
  13768. propertyTest = propertyTest || hasOwnProp(input, property);
  13769. }
  13770. return objectTest && propertyTest;
  13771. }
  13772. function isNumberOrStringArray(input) {
  13773. var arrayTest = isArray(input),
  13774. dataTypeTest = false;
  13775. if (arrayTest) {
  13776. dataTypeTest = input.filter(function (item) {
  13777. return !isNumber(item) && isString(input);
  13778. }).length === 0;
  13779. }
  13780. return arrayTest && dataTypeTest;
  13781. }
  13782. function isCalendarSpec(input) {
  13783. var objectTest = isObject(input) && !isObjectEmpty(input),
  13784. propertyTest = false,
  13785. properties = ['sameDay', 'nextDay', 'lastDay', 'nextWeek', 'lastWeek', 'sameElse'],
  13786. i,
  13787. property;
  13788. for (i = 0; i < properties.length; i += 1) {
  13789. property = properties[i];
  13790. propertyTest = propertyTest || hasOwnProp(input, property);
  13791. }
  13792. return objectTest && propertyTest;
  13793. }
  13794. function getCalendarFormat(myMoment, now) {
  13795. var diff = myMoment.diff(now, 'days', true);
  13796. return diff < -6 ? 'sameElse' : diff < -1 ? 'lastWeek' : diff < 0 ? 'lastDay' : diff < 1 ? 'sameDay' : diff < 2 ? 'nextDay' : diff < 7 ? 'nextWeek' : 'sameElse';
  13797. }
  13798. function calendar$1(time, formats) {
  13799. // Support for single parameter, formats only overload to the calendar function
  13800. if (arguments.length === 1) {
  13801. if (!arguments[0]) {
  13802. time = undefined;
  13803. formats = undefined;
  13804. } else if (isMomentInput(arguments[0])) {
  13805. time = arguments[0];
  13806. formats = undefined;
  13807. } else if (isCalendarSpec(arguments[0])) {
  13808. formats = arguments[0];
  13809. time = undefined;
  13810. }
  13811. }
  13812. // We want to compare the start of today, vs this.
  13813. // Getting start-of-today depends on whether we're local/utc/offset or not.
  13814. var now = time || createLocal(),
  13815. sod = cloneWithOffset(now, this).startOf('day'),
  13816. format = hooks.calendarFormat(this, sod) || 'sameElse',
  13817. output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
  13818. return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
  13819. }
  13820. function clone() {
  13821. return new Moment(this);
  13822. }
  13823. function isAfter(input, units) {
  13824. var localInput = isMoment(input) ? input : createLocal(input);
  13825. if (!(this.isValid() && localInput.isValid())) {
  13826. return false;
  13827. }
  13828. units = normalizeUnits(units) || 'millisecond';
  13829. if (units === 'millisecond') {
  13830. return this.valueOf() > localInput.valueOf();
  13831. } else {
  13832. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  13833. }
  13834. }
  13835. function isBefore(input, units) {
  13836. var localInput = isMoment(input) ? input : createLocal(input);
  13837. if (!(this.isValid() && localInput.isValid())) {
  13838. return false;
  13839. }
  13840. units = normalizeUnits(units) || 'millisecond';
  13841. if (units === 'millisecond') {
  13842. return this.valueOf() < localInput.valueOf();
  13843. } else {
  13844. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  13845. }
  13846. }
  13847. function isBetween(from, to, units, inclusivity) {
  13848. var localFrom = isMoment(from) ? from : createLocal(from),
  13849. localTo = isMoment(to) ? to : createLocal(to);
  13850. if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
  13851. return false;
  13852. }
  13853. inclusivity = inclusivity || '()';
  13854. return (inclusivity[0] === '(' ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === ')' ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));
  13855. }
  13856. function isSame(input, units) {
  13857. var localInput = isMoment(input) ? input : createLocal(input),
  13858. inputMs;
  13859. if (!(this.isValid() && localInput.isValid())) {
  13860. return false;
  13861. }
  13862. units = normalizeUnits(units) || 'millisecond';
  13863. if (units === 'millisecond') {
  13864. return this.valueOf() === localInput.valueOf();
  13865. } else {
  13866. inputMs = localInput.valueOf();
  13867. return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
  13868. }
  13869. }
  13870. function isSameOrAfter(input, units) {
  13871. return this.isSame(input, units) || this.isAfter(input, units);
  13872. }
  13873. function isSameOrBefore(input, units) {
  13874. return this.isSame(input, units) || this.isBefore(input, units);
  13875. }
  13876. function diff(input, units, asFloat) {
  13877. var that, zoneDelta, output;
  13878. if (!this.isValid()) {
  13879. return NaN;
  13880. }
  13881. that = cloneWithOffset(input, this);
  13882. if (!that.isValid()) {
  13883. return NaN;
  13884. }
  13885. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  13886. units = normalizeUnits(units);
  13887. switch (units) {
  13888. case 'year':
  13889. output = monthDiff(this, that) / 12;
  13890. break;
  13891. case 'month':
  13892. output = monthDiff(this, that);
  13893. break;
  13894. case 'quarter':
  13895. output = monthDiff(this, that) / 3;
  13896. break;
  13897. case 'second':
  13898. output = (this - that) / 1e3;
  13899. break;
  13900. // 1000
  13901. case 'minute':
  13902. output = (this - that) / 6e4;
  13903. break;
  13904. // 1000 * 60
  13905. case 'hour':
  13906. output = (this - that) / 36e5;
  13907. break;
  13908. // 1000 * 60 * 60
  13909. case 'day':
  13910. output = (this - that - zoneDelta) / 864e5;
  13911. break;
  13912. // 1000 * 60 * 60 * 24, negate dst
  13913. case 'week':
  13914. output = (this - that - zoneDelta) / 6048e5;
  13915. break;
  13916. // 1000 * 60 * 60 * 24 * 7, negate dst
  13917. default:
  13918. output = this - that;
  13919. }
  13920. return asFloat ? output : absFloor(output);
  13921. }
  13922. function monthDiff(a, b) {
  13923. if (a.date() < b.date()) {
  13924. // end-of-month calculations work correct when the start month has more
  13925. // days than the end month.
  13926. return -monthDiff(b, a);
  13927. }
  13928. // difference in months
  13929. var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
  13930. // b is in (anchor - 1 month, anchor + 1 month)
  13931. anchor = a.clone().add(wholeMonthDiff, 'months'),
  13932. anchor2,
  13933. adjust;
  13934. if (b - anchor < 0) {
  13935. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  13936. // linear across the month
  13937. adjust = (b - anchor) / (anchor - anchor2);
  13938. } else {
  13939. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  13940. // linear across the month
  13941. adjust = (b - anchor) / (anchor2 - anchor);
  13942. }
  13943. //check for negative zero, return zero if negative zero
  13944. return -(wholeMonthDiff + adjust) || 0;
  13945. }
  13946. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  13947. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  13948. function toString() {
  13949. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  13950. }
  13951. function toISOString(keepOffset) {
  13952. if (!this.isValid()) {
  13953. return null;
  13954. }
  13955. var utc = keepOffset !== true,
  13956. m = utc ? this.clone().utc() : this;
  13957. if (m.year() < 0 || m.year() > 9999) {
  13958. return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');
  13959. }
  13960. if (isFunction(Date.prototype.toISOString)) {
  13961. // native implementation is ~50x faster, use it when we can
  13962. if (utc) {
  13963. return this.toDate().toISOString();
  13964. } else {
  13965. return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z'));
  13966. }
  13967. }
  13968. return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');
  13969. }
  13970. /**
  13971. * Return a human readable representation of a moment that can
  13972. * also be evaluated to get a new moment which is the same
  13973. *
  13974. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  13975. */
  13976. function inspect() {
  13977. if (!this.isValid()) {
  13978. return 'moment.invalid(/* ' + this._i + ' */)';
  13979. }
  13980. var func = 'moment',
  13981. zone = '',
  13982. prefix,
  13983. year,
  13984. datetime,
  13985. suffix;
  13986. if (!this.isLocal()) {
  13987. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  13988. zone = 'Z';
  13989. }
  13990. prefix = '[' + func + '("]';
  13991. year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
  13992. datetime = '-MM-DD[T]HH:mm:ss.SSS';
  13993. suffix = zone + '[")]';
  13994. return this.format(prefix + year + datetime + suffix);
  13995. }
  13996. function format(inputString) {
  13997. if (!inputString) {
  13998. inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
  13999. }
  14000. var output = formatMoment(this, inputString);
  14001. return this.localeData().postformat(output);
  14002. }
  14003. function from(time, withoutSuffix) {
  14004. if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
  14005. return createDuration({
  14006. to: this,
  14007. from: time
  14008. }).locale(this.locale()).humanize(!withoutSuffix);
  14009. } else {
  14010. return this.localeData().invalidDate();
  14011. }
  14012. }
  14013. function fromNow(withoutSuffix) {
  14014. return this.from(createLocal(), withoutSuffix);
  14015. }
  14016. function to(time, withoutSuffix) {
  14017. if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
  14018. return createDuration({
  14019. from: this,
  14020. to: time
  14021. }).locale(this.locale()).humanize(!withoutSuffix);
  14022. } else {
  14023. return this.localeData().invalidDate();
  14024. }
  14025. }
  14026. function toNow(withoutSuffix) {
  14027. return this.to(createLocal(), withoutSuffix);
  14028. }
  14029. // If passed a locale key, it will set the locale for this
  14030. // instance. Otherwise, it will return the locale configuration
  14031. // variables for this instance.
  14032. function locale(key) {
  14033. var newLocaleData;
  14034. if (key === undefined) {
  14035. return this._locale._abbr;
  14036. } else {
  14037. newLocaleData = getLocale(key);
  14038. if (newLocaleData != null) {
  14039. this._locale = newLocaleData;
  14040. }
  14041. return this;
  14042. }
  14043. }
  14044. var lang = deprecate('moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', function (key) {
  14045. if (key === undefined) {
  14046. return this.localeData();
  14047. } else {
  14048. return this.locale(key);
  14049. }
  14050. });
  14051. function localeData() {
  14052. return this._locale;
  14053. }
  14054. var MS_PER_SECOND = 1000,
  14055. MS_PER_MINUTE = 60 * MS_PER_SECOND,
  14056. MS_PER_HOUR = 60 * MS_PER_MINUTE,
  14057. MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
  14058. // actual modulo - handles negative numbers (for dates before 1970):
  14059. function mod$1(dividend, divisor) {
  14060. return (dividend % divisor + divisor) % divisor;
  14061. }
  14062. function localStartOfDate(y, m, d) {
  14063. // the date constructor remaps years 0-99 to 1900-1999
  14064. if (y < 100 && y >= 0) {
  14065. // preserve leap years using a full 400 year cycle, then reset
  14066. return new Date(y + 400, m, d) - MS_PER_400_YEARS;
  14067. } else {
  14068. return new Date(y, m, d).valueOf();
  14069. }
  14070. }
  14071. function utcStartOfDate(y, m, d) {
  14072. // Date.UTC remaps years 0-99 to 1900-1999
  14073. if (y < 100 && y >= 0) {
  14074. // preserve leap years using a full 400 year cycle, then reset
  14075. return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
  14076. } else {
  14077. return Date.UTC(y, m, d);
  14078. }
  14079. }
  14080. function startOf(units) {
  14081. var time, startOfDate;
  14082. units = normalizeUnits(units);
  14083. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  14084. return this;
  14085. }
  14086. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  14087. switch (units) {
  14088. case 'year':
  14089. time = startOfDate(this.year(), 0, 1);
  14090. break;
  14091. case 'quarter':
  14092. time = startOfDate(this.year(), this.month() - this.month() % 3, 1);
  14093. break;
  14094. case 'month':
  14095. time = startOfDate(this.year(), this.month(), 1);
  14096. break;
  14097. case 'week':
  14098. time = startOfDate(this.year(), this.month(), this.date() - this.weekday());
  14099. break;
  14100. case 'isoWeek':
  14101. time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
  14102. break;
  14103. case 'day':
  14104. case 'date':
  14105. time = startOfDate(this.year(), this.month(), this.date());
  14106. break;
  14107. case 'hour':
  14108. time = this._d.valueOf();
  14109. time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);
  14110. break;
  14111. case 'minute':
  14112. time = this._d.valueOf();
  14113. time -= mod$1(time, MS_PER_MINUTE);
  14114. break;
  14115. case 'second':
  14116. time = this._d.valueOf();
  14117. time -= mod$1(time, MS_PER_SECOND);
  14118. break;
  14119. }
  14120. this._d.setTime(time);
  14121. hooks.updateOffset(this, true);
  14122. return this;
  14123. }
  14124. function endOf(units) {
  14125. var time, startOfDate;
  14126. units = normalizeUnits(units);
  14127. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  14128. return this;
  14129. }
  14130. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  14131. switch (units) {
  14132. case 'year':
  14133. time = startOfDate(this.year() + 1, 0, 1) - 1;
  14134. break;
  14135. case 'quarter':
  14136. time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
  14137. break;
  14138. case 'month':
  14139. time = startOfDate(this.year(), this.month() + 1, 1) - 1;
  14140. break;
  14141. case 'week':
  14142. time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
  14143. break;
  14144. case 'isoWeek':
  14145. time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
  14146. break;
  14147. case 'day':
  14148. case 'date':
  14149. time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
  14150. break;
  14151. case 'hour':
  14152. time = this._d.valueOf();
  14153. time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;
  14154. break;
  14155. case 'minute':
  14156. time = this._d.valueOf();
  14157. time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
  14158. break;
  14159. case 'second':
  14160. time = this._d.valueOf();
  14161. time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
  14162. break;
  14163. }
  14164. this._d.setTime(time);
  14165. hooks.updateOffset(this, true);
  14166. return this;
  14167. }
  14168. function valueOf() {
  14169. return this._d.valueOf() - (this._offset || 0) * 60000;
  14170. }
  14171. function unix() {
  14172. return Math.floor(this.valueOf() / 1000);
  14173. }
  14174. function toDate() {
  14175. return new Date(this.valueOf());
  14176. }
  14177. function toArray() {
  14178. var m = this;
  14179. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  14180. }
  14181. function toObject() {
  14182. var m = this;
  14183. return {
  14184. years: m.year(),
  14185. months: m.month(),
  14186. date: m.date(),
  14187. hours: m.hours(),
  14188. minutes: m.minutes(),
  14189. seconds: m.seconds(),
  14190. milliseconds: m.milliseconds()
  14191. };
  14192. }
  14193. function toJSON() {
  14194. // new Date(NaN).toJSON() === null
  14195. return this.isValid() ? this.toISOString() : null;
  14196. }
  14197. function isValid$2() {
  14198. return isValid(this);
  14199. }
  14200. function parsingFlags() {
  14201. return extend({}, getParsingFlags(this));
  14202. }
  14203. function invalidAt() {
  14204. return getParsingFlags(this).overflow;
  14205. }
  14206. function creationData() {
  14207. return {
  14208. input: this._i,
  14209. format: this._f,
  14210. locale: this._locale,
  14211. isUTC: this._isUTC,
  14212. strict: this._strict
  14213. };
  14214. }
  14215. addFormatToken('N', 0, 0, 'eraAbbr');
  14216. addFormatToken('NN', 0, 0, 'eraAbbr');
  14217. addFormatToken('NNN', 0, 0, 'eraAbbr');
  14218. addFormatToken('NNNN', 0, 0, 'eraName');
  14219. addFormatToken('NNNNN', 0, 0, 'eraNarrow');
  14220. addFormatToken('y', ['y', 1], 'yo', 'eraYear');
  14221. addFormatToken('y', ['yy', 2], 0, 'eraYear');
  14222. addFormatToken('y', ['yyy', 3], 0, 'eraYear');
  14223. addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
  14224. addRegexToken('N', matchEraAbbr);
  14225. addRegexToken('NN', matchEraAbbr);
  14226. addRegexToken('NNN', matchEraAbbr);
  14227. addRegexToken('NNNN', matchEraName);
  14228. addRegexToken('NNNNN', matchEraNarrow);
  14229. addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (input, array, config, token) {
  14230. var era = config._locale.erasParse(input, token, config._strict);
  14231. if (era) {
  14232. getParsingFlags(config).era = era;
  14233. } else {
  14234. getParsingFlags(config).invalidEra = input;
  14235. }
  14236. });
  14237. addRegexToken('y', matchUnsigned);
  14238. addRegexToken('yy', matchUnsigned);
  14239. addRegexToken('yyy', matchUnsigned);
  14240. addRegexToken('yyyy', matchUnsigned);
  14241. addRegexToken('yo', matchEraYearOrdinal);
  14242. addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
  14243. addParseToken(['yo'], function (input, array, config, token) {
  14244. var match;
  14245. if (config._locale._eraYearOrdinalRegex) {
  14246. match = input.match(config._locale._eraYearOrdinalRegex);
  14247. }
  14248. if (config._locale.eraYearOrdinalParse) {
  14249. array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
  14250. } else {
  14251. array[YEAR] = parseInt(input, 10);
  14252. }
  14253. });
  14254. function localeEras(m, format) {
  14255. var i,
  14256. l,
  14257. date,
  14258. eras = this._eras || getLocale('en')._eras;
  14259. for (i = 0, l = eras.length; i < l; ++i) {
  14260. switch (_typeof(eras[i].since)) {
  14261. case 'string':
  14262. // truncate time
  14263. date = hooks(eras[i].since).startOf('day');
  14264. eras[i].since = date.valueOf();
  14265. break;
  14266. }
  14267. switch (_typeof(eras[i].until)) {
  14268. case 'undefined':
  14269. eras[i].until = +Infinity;
  14270. break;
  14271. case 'string':
  14272. // truncate time
  14273. date = hooks(eras[i].until).startOf('day').valueOf();
  14274. eras[i].until = date.valueOf();
  14275. break;
  14276. }
  14277. }
  14278. return eras;
  14279. }
  14280. function localeErasParse(eraName, format, strict) {
  14281. var i,
  14282. l,
  14283. eras = this.eras(),
  14284. name,
  14285. abbr,
  14286. narrow;
  14287. eraName = eraName.toUpperCase();
  14288. for (i = 0, l = eras.length; i < l; ++i) {
  14289. name = eras[i].name.toUpperCase();
  14290. abbr = eras[i].abbr.toUpperCase();
  14291. narrow = eras[i].narrow.toUpperCase();
  14292. if (strict) {
  14293. switch (format) {
  14294. case 'N':
  14295. case 'NN':
  14296. case 'NNN':
  14297. if (abbr === eraName) {
  14298. return eras[i];
  14299. }
  14300. break;
  14301. case 'NNNN':
  14302. if (name === eraName) {
  14303. return eras[i];
  14304. }
  14305. break;
  14306. case 'NNNNN':
  14307. if (narrow === eraName) {
  14308. return eras[i];
  14309. }
  14310. break;
  14311. }
  14312. } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
  14313. return eras[i];
  14314. }
  14315. }
  14316. }
  14317. function localeErasConvertYear(era, year) {
  14318. var dir = era.since <= era.until ? +1 : -1;
  14319. if (year === undefined) {
  14320. return hooks(era.since).year();
  14321. } else {
  14322. return hooks(era.since).year() + (year - era.offset) * dir;
  14323. }
  14324. }
  14325. function getEraName() {
  14326. var i,
  14327. l,
  14328. val,
  14329. eras = this.localeData().eras();
  14330. for (i = 0, l = eras.length; i < l; ++i) {
  14331. // truncate time
  14332. val = this.clone().startOf('day').valueOf();
  14333. if (eras[i].since <= val && val <= eras[i].until) {
  14334. return eras[i].name;
  14335. }
  14336. if (eras[i].until <= val && val <= eras[i].since) {
  14337. return eras[i].name;
  14338. }
  14339. }
  14340. return '';
  14341. }
  14342. function getEraNarrow() {
  14343. var i,
  14344. l,
  14345. val,
  14346. eras = this.localeData().eras();
  14347. for (i = 0, l = eras.length; i < l; ++i) {
  14348. // truncate time
  14349. val = this.clone().startOf('day').valueOf();
  14350. if (eras[i].since <= val && val <= eras[i].until) {
  14351. return eras[i].narrow;
  14352. }
  14353. if (eras[i].until <= val && val <= eras[i].since) {
  14354. return eras[i].narrow;
  14355. }
  14356. }
  14357. return '';
  14358. }
  14359. function getEraAbbr() {
  14360. var i,
  14361. l,
  14362. val,
  14363. eras = this.localeData().eras();
  14364. for (i = 0, l = eras.length; i < l; ++i) {
  14365. // truncate time
  14366. val = this.clone().startOf('day').valueOf();
  14367. if (eras[i].since <= val && val <= eras[i].until) {
  14368. return eras[i].abbr;
  14369. }
  14370. if (eras[i].until <= val && val <= eras[i].since) {
  14371. return eras[i].abbr;
  14372. }
  14373. }
  14374. return '';
  14375. }
  14376. function getEraYear() {
  14377. var i,
  14378. l,
  14379. dir,
  14380. val,
  14381. eras = this.localeData().eras();
  14382. for (i = 0, l = eras.length; i < l; ++i) {
  14383. dir = eras[i].since <= eras[i].until ? +1 : -1;
  14384. // truncate time
  14385. val = this.clone().startOf('day').valueOf();
  14386. if (eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) {
  14387. return (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset;
  14388. }
  14389. }
  14390. return this.year();
  14391. }
  14392. function erasNameRegex(isStrict) {
  14393. if (!hasOwnProp(this, '_erasNameRegex')) {
  14394. computeErasParse.call(this);
  14395. }
  14396. return isStrict ? this._erasNameRegex : this._erasRegex;
  14397. }
  14398. function erasAbbrRegex(isStrict) {
  14399. if (!hasOwnProp(this, '_erasAbbrRegex')) {
  14400. computeErasParse.call(this);
  14401. }
  14402. return isStrict ? this._erasAbbrRegex : this._erasRegex;
  14403. }
  14404. function erasNarrowRegex(isStrict) {
  14405. if (!hasOwnProp(this, '_erasNarrowRegex')) {
  14406. computeErasParse.call(this);
  14407. }
  14408. return isStrict ? this._erasNarrowRegex : this._erasRegex;
  14409. }
  14410. function matchEraAbbr(isStrict, locale) {
  14411. return locale.erasAbbrRegex(isStrict);
  14412. }
  14413. function matchEraName(isStrict, locale) {
  14414. return locale.erasNameRegex(isStrict);
  14415. }
  14416. function matchEraNarrow(isStrict, locale) {
  14417. return locale.erasNarrowRegex(isStrict);
  14418. }
  14419. function matchEraYearOrdinal(isStrict, locale) {
  14420. return locale._eraYearOrdinalRegex || matchUnsigned;
  14421. }
  14422. function computeErasParse() {
  14423. var abbrPieces = [],
  14424. namePieces = [],
  14425. narrowPieces = [],
  14426. mixedPieces = [],
  14427. i,
  14428. l,
  14429. eras = this.eras();
  14430. for (i = 0, l = eras.length; i < l; ++i) {
  14431. namePieces.push(regexEscape(eras[i].name));
  14432. abbrPieces.push(regexEscape(eras[i].abbr));
  14433. narrowPieces.push(regexEscape(eras[i].narrow));
  14434. mixedPieces.push(regexEscape(eras[i].name));
  14435. mixedPieces.push(regexEscape(eras[i].abbr));
  14436. mixedPieces.push(regexEscape(eras[i].narrow));
  14437. }
  14438. this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  14439. this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
  14440. this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
  14441. this._erasNarrowRegex = new RegExp('^(' + narrowPieces.join('|') + ')', 'i');
  14442. }
  14443. // FORMATTING
  14444. addFormatToken(0, ['gg', 2], 0, function () {
  14445. return this.weekYear() % 100;
  14446. });
  14447. addFormatToken(0, ['GG', 2], 0, function () {
  14448. return this.isoWeekYear() % 100;
  14449. });
  14450. function addWeekYearFormatToken(token, getter) {
  14451. addFormatToken(0, [token, token.length], 0, getter);
  14452. }
  14453. addWeekYearFormatToken('gggg', 'weekYear');
  14454. addWeekYearFormatToken('ggggg', 'weekYear');
  14455. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  14456. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  14457. // ALIASES
  14458. addUnitAlias('weekYear', 'gg');
  14459. addUnitAlias('isoWeekYear', 'GG');
  14460. // PRIORITY
  14461. addUnitPriority('weekYear', 1);
  14462. addUnitPriority('isoWeekYear', 1);
  14463. // PARSING
  14464. addRegexToken('G', matchSigned);
  14465. addRegexToken('g', matchSigned);
  14466. addRegexToken('GG', match1to2, match2);
  14467. addRegexToken('gg', match1to2, match2);
  14468. addRegexToken('GGGG', match1to4, match4);
  14469. addRegexToken('gggg', match1to4, match4);
  14470. addRegexToken('GGGGG', match1to6, match6);
  14471. addRegexToken('ggggg', match1to6, match6);
  14472. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  14473. week[token.substr(0, 2)] = toInt(input);
  14474. });
  14475. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  14476. week[token] = hooks.parseTwoDigitYear(input);
  14477. });
  14478. // MOMENTS
  14479. function getSetWeekYear(input) {
  14480. return getSetWeekYearHelper.call(this, input, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy);
  14481. }
  14482. function getSetISOWeekYear(input) {
  14483. return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4);
  14484. }
  14485. function getISOWeeksInYear() {
  14486. return weeksInYear(this.year(), 1, 4);
  14487. }
  14488. function getISOWeeksInISOWeekYear() {
  14489. return weeksInYear(this.isoWeekYear(), 1, 4);
  14490. }
  14491. function getWeeksInYear() {
  14492. var weekInfo = this.localeData()._week;
  14493. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  14494. }
  14495. function getWeeksInWeekYear() {
  14496. var weekInfo = this.localeData()._week;
  14497. return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
  14498. }
  14499. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  14500. var weeksTarget;
  14501. if (input == null) {
  14502. return weekOfYear(this, dow, doy).year;
  14503. } else {
  14504. weeksTarget = weeksInYear(input, dow, doy);
  14505. if (week > weeksTarget) {
  14506. week = weeksTarget;
  14507. }
  14508. return setWeekAll.call(this, input, week, weekday, dow, doy);
  14509. }
  14510. }
  14511. function setWeekAll(weekYear, week, weekday, dow, doy) {
  14512. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  14513. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  14514. this.year(date.getUTCFullYear());
  14515. this.month(date.getUTCMonth());
  14516. this.date(date.getUTCDate());
  14517. return this;
  14518. }
  14519. // FORMATTING
  14520. addFormatToken('Q', 0, 'Qo', 'quarter');
  14521. // ALIASES
  14522. addUnitAlias('quarter', 'Q');
  14523. // PRIORITY
  14524. addUnitPriority('quarter', 7);
  14525. // PARSING
  14526. addRegexToken('Q', match1);
  14527. addParseToken('Q', function (input, array) {
  14528. array[MONTH] = (toInt(input) - 1) * 3;
  14529. });
  14530. // MOMENTS
  14531. function getSetQuarter(input) {
  14532. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  14533. }
  14534. // FORMATTING
  14535. addFormatToken('D', ['DD', 2], 'Do', 'date');
  14536. // ALIASES
  14537. addUnitAlias('date', 'D');
  14538. // PRIORITY
  14539. addUnitPriority('date', 9);
  14540. // PARSING
  14541. addRegexToken('D', match1to2);
  14542. addRegexToken('DD', match1to2, match2);
  14543. addRegexToken('Do', function (isStrict, locale) {
  14544. // TODO: Remove "ordinalParse" fallback in next major release.
  14545. return isStrict ? locale._dayOfMonthOrdinalParse || locale._ordinalParse : locale._dayOfMonthOrdinalParseLenient;
  14546. });
  14547. addParseToken(['D', 'DD'], DATE);
  14548. addParseToken('Do', function (input, array) {
  14549. array[DATE] = toInt(input.match(match1to2)[0]);
  14550. });
  14551. // MOMENTS
  14552. var getSetDayOfMonth = makeGetSet('Date', true);
  14553. // FORMATTING
  14554. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  14555. // ALIASES
  14556. addUnitAlias('dayOfYear', 'DDD');
  14557. // PRIORITY
  14558. addUnitPriority('dayOfYear', 4);
  14559. // PARSING
  14560. addRegexToken('DDD', match1to3);
  14561. addRegexToken('DDDD', match3);
  14562. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  14563. config._dayOfYear = toInt(input);
  14564. });
  14565. // HELPERS
  14566. // MOMENTS
  14567. function getSetDayOfYear(input) {
  14568. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  14569. return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
  14570. }
  14571. // FORMATTING
  14572. addFormatToken('m', ['mm', 2], 0, 'minute');
  14573. // ALIASES
  14574. addUnitAlias('minute', 'm');
  14575. // PRIORITY
  14576. addUnitPriority('minute', 14);
  14577. // PARSING
  14578. addRegexToken('m', match1to2);
  14579. addRegexToken('mm', match1to2, match2);
  14580. addParseToken(['m', 'mm'], MINUTE);
  14581. // MOMENTS
  14582. var getSetMinute = makeGetSet('Minutes', false);
  14583. // FORMATTING
  14584. addFormatToken('s', ['ss', 2], 0, 'second');
  14585. // ALIASES
  14586. addUnitAlias('second', 's');
  14587. // PRIORITY
  14588. addUnitPriority('second', 15);
  14589. // PARSING
  14590. addRegexToken('s', match1to2);
  14591. addRegexToken('ss', match1to2, match2);
  14592. addParseToken(['s', 'ss'], SECOND);
  14593. // MOMENTS
  14594. var getSetSecond = makeGetSet('Seconds', false);
  14595. // FORMATTING
  14596. addFormatToken('S', 0, 0, function () {
  14597. return ~~(this.millisecond() / 100);
  14598. });
  14599. addFormatToken(0, ['SS', 2], 0, function () {
  14600. return ~~(this.millisecond() / 10);
  14601. });
  14602. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  14603. addFormatToken(0, ['SSSS', 4], 0, function () {
  14604. return this.millisecond() * 10;
  14605. });
  14606. addFormatToken(0, ['SSSSS', 5], 0, function () {
  14607. return this.millisecond() * 100;
  14608. });
  14609. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  14610. return this.millisecond() * 1000;
  14611. });
  14612. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  14613. return this.millisecond() * 10000;
  14614. });
  14615. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  14616. return this.millisecond() * 100000;
  14617. });
  14618. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  14619. return this.millisecond() * 1000000;
  14620. });
  14621. // ALIASES
  14622. addUnitAlias('millisecond', 'ms');
  14623. // PRIORITY
  14624. addUnitPriority('millisecond', 16);
  14625. // PARSING
  14626. addRegexToken('S', match1to3, match1);
  14627. addRegexToken('SS', match1to3, match2);
  14628. addRegexToken('SSS', match1to3, match3);
  14629. var token, getSetMillisecond;
  14630. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  14631. addRegexToken(token, matchUnsigned);
  14632. }
  14633. function parseMs(input, array) {
  14634. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  14635. }
  14636. for (token = 'S'; token.length <= 9; token += 'S') {
  14637. addParseToken(token, parseMs);
  14638. }
  14639. getSetMillisecond = makeGetSet('Milliseconds', false);
  14640. // FORMATTING
  14641. addFormatToken('z', 0, 0, 'zoneAbbr');
  14642. addFormatToken('zz', 0, 0, 'zoneName');
  14643. // MOMENTS
  14644. function getZoneAbbr() {
  14645. return this._isUTC ? 'UTC' : '';
  14646. }
  14647. function getZoneName() {
  14648. return this._isUTC ? 'Coordinated Universal Time' : '';
  14649. }
  14650. var proto = Moment.prototype;
  14651. proto.add = add;
  14652. proto.calendar = calendar$1;
  14653. proto.clone = clone;
  14654. proto.diff = diff;
  14655. proto.endOf = endOf;
  14656. proto.format = format;
  14657. proto.from = from;
  14658. proto.fromNow = fromNow;
  14659. proto.to = to;
  14660. proto.toNow = toNow;
  14661. proto.get = stringGet;
  14662. proto.invalidAt = invalidAt;
  14663. proto.isAfter = isAfter;
  14664. proto.isBefore = isBefore;
  14665. proto.isBetween = isBetween;
  14666. proto.isSame = isSame;
  14667. proto.isSameOrAfter = isSameOrAfter;
  14668. proto.isSameOrBefore = isSameOrBefore;
  14669. proto.isValid = isValid$2;
  14670. proto.lang = lang;
  14671. proto.locale = locale;
  14672. proto.localeData = localeData;
  14673. proto.max = prototypeMax;
  14674. proto.min = prototypeMin;
  14675. proto.parsingFlags = parsingFlags;
  14676. proto.set = stringSet;
  14677. proto.startOf = startOf;
  14678. proto.subtract = subtract;
  14679. proto.toArray = toArray;
  14680. proto.toObject = toObject;
  14681. proto.toDate = toDate;
  14682. proto.toISOString = toISOString;
  14683. proto.inspect = inspect;
  14684. if (typeof Symbol !== 'undefined' && Symbol.for != null) {
  14685. proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
  14686. return 'Moment<' + this.format() + '>';
  14687. };
  14688. }
  14689. proto.toJSON = toJSON;
  14690. proto.toString = toString;
  14691. proto.unix = unix;
  14692. proto.valueOf = valueOf;
  14693. proto.creationData = creationData;
  14694. proto.eraName = getEraName;
  14695. proto.eraNarrow = getEraNarrow;
  14696. proto.eraAbbr = getEraAbbr;
  14697. proto.eraYear = getEraYear;
  14698. proto.year = getSetYear;
  14699. proto.isLeapYear = getIsLeapYear;
  14700. proto.weekYear = getSetWeekYear;
  14701. proto.isoWeekYear = getSetISOWeekYear;
  14702. proto.quarter = proto.quarters = getSetQuarter;
  14703. proto.month = getSetMonth;
  14704. proto.daysInMonth = getDaysInMonth;
  14705. proto.week = proto.weeks = getSetWeek;
  14706. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  14707. proto.weeksInYear = getWeeksInYear;
  14708. proto.weeksInWeekYear = getWeeksInWeekYear;
  14709. proto.isoWeeksInYear = getISOWeeksInYear;
  14710. proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
  14711. proto.date = getSetDayOfMonth;
  14712. proto.day = proto.days = getSetDayOfWeek;
  14713. proto.weekday = getSetLocaleDayOfWeek;
  14714. proto.isoWeekday = getSetISODayOfWeek;
  14715. proto.dayOfYear = getSetDayOfYear;
  14716. proto.hour = proto.hours = getSetHour;
  14717. proto.minute = proto.minutes = getSetMinute;
  14718. proto.second = proto.seconds = getSetSecond;
  14719. proto.millisecond = proto.milliseconds = getSetMillisecond;
  14720. proto.utcOffset = getSetOffset;
  14721. proto.utc = setOffsetToUTC;
  14722. proto.local = setOffsetToLocal;
  14723. proto.parseZone = setOffsetToParsedOffset;
  14724. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  14725. proto.isDST = isDaylightSavingTime;
  14726. proto.isLocal = isLocal;
  14727. proto.isUtcOffset = isUtcOffset;
  14728. proto.isUtc = isUtc;
  14729. proto.isUTC = isUtc;
  14730. proto.zoneAbbr = getZoneAbbr;
  14731. proto.zoneName = getZoneName;
  14732. proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  14733. proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  14734. proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  14735. proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
  14736. proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
  14737. function createUnix(input) {
  14738. return createLocal(input * 1000);
  14739. }
  14740. function createInZone() {
  14741. return createLocal.apply(null, arguments).parseZone();
  14742. }
  14743. function preParsePostFormat(string) {
  14744. return string;
  14745. }
  14746. var proto$1 = Locale.prototype;
  14747. proto$1.calendar = calendar;
  14748. proto$1.longDateFormat = longDateFormat;
  14749. proto$1.invalidDate = invalidDate;
  14750. proto$1.ordinal = ordinal;
  14751. proto$1.preparse = preParsePostFormat;
  14752. proto$1.postformat = preParsePostFormat;
  14753. proto$1.relativeTime = relativeTime;
  14754. proto$1.pastFuture = pastFuture;
  14755. proto$1.set = set;
  14756. proto$1.eras = localeEras;
  14757. proto$1.erasParse = localeErasParse;
  14758. proto$1.erasConvertYear = localeErasConvertYear;
  14759. proto$1.erasAbbrRegex = erasAbbrRegex;
  14760. proto$1.erasNameRegex = erasNameRegex;
  14761. proto$1.erasNarrowRegex = erasNarrowRegex;
  14762. proto$1.months = localeMonths;
  14763. proto$1.monthsShort = localeMonthsShort;
  14764. proto$1.monthsParse = localeMonthsParse;
  14765. proto$1.monthsRegex = monthsRegex;
  14766. proto$1.monthsShortRegex = monthsShortRegex;
  14767. proto$1.week = localeWeek;
  14768. proto$1.firstDayOfYear = localeFirstDayOfYear;
  14769. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  14770. proto$1.weekdays = localeWeekdays;
  14771. proto$1.weekdaysMin = localeWeekdaysMin;
  14772. proto$1.weekdaysShort = localeWeekdaysShort;
  14773. proto$1.weekdaysParse = localeWeekdaysParse;
  14774. proto$1.weekdaysRegex = weekdaysRegex;
  14775. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  14776. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  14777. proto$1.isPM = localeIsPM;
  14778. proto$1.meridiem = localeMeridiem;
  14779. function get$1(format, index, field, setter) {
  14780. var locale = getLocale(),
  14781. utc = createUTC().set(setter, index);
  14782. return locale[field](utc, format);
  14783. }
  14784. function listMonthsImpl(format, index, field) {
  14785. if (isNumber(format)) {
  14786. index = format;
  14787. format = undefined;
  14788. }
  14789. format = format || '';
  14790. if (index != null) {
  14791. return get$1(format, index, field, 'month');
  14792. }
  14793. var i,
  14794. out = [];
  14795. for (i = 0; i < 12; i++) {
  14796. out[i] = get$1(format, i, field, 'month');
  14797. }
  14798. return out;
  14799. }
  14800. // ()
  14801. // (5)
  14802. // (fmt, 5)
  14803. // (fmt)
  14804. // (true)
  14805. // (true, 5)
  14806. // (true, fmt, 5)
  14807. // (true, fmt)
  14808. function listWeekdaysImpl(localeSorted, format, index, field) {
  14809. if (typeof localeSorted === 'boolean') {
  14810. if (isNumber(format)) {
  14811. index = format;
  14812. format = undefined;
  14813. }
  14814. format = format || '';
  14815. } else {
  14816. format = localeSorted;
  14817. index = format;
  14818. localeSorted = false;
  14819. if (isNumber(format)) {
  14820. index = format;
  14821. format = undefined;
  14822. }
  14823. format = format || '';
  14824. }
  14825. var locale = getLocale(),
  14826. shift = localeSorted ? locale._week.dow : 0,
  14827. i,
  14828. out = [];
  14829. if (index != null) {
  14830. return get$1(format, (index + shift) % 7, field, 'day');
  14831. }
  14832. for (i = 0; i < 7; i++) {
  14833. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  14834. }
  14835. return out;
  14836. }
  14837. function listMonths(format, index) {
  14838. return listMonthsImpl(format, index, 'months');
  14839. }
  14840. function listMonthsShort(format, index) {
  14841. return listMonthsImpl(format, index, 'monthsShort');
  14842. }
  14843. function listWeekdays(localeSorted, format, index) {
  14844. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  14845. }
  14846. function listWeekdaysShort(localeSorted, format, index) {
  14847. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  14848. }
  14849. function listWeekdaysMin(localeSorted, format, index) {
  14850. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  14851. }
  14852. getSetGlobalLocale('en', {
  14853. eras: [{
  14854. since: '0001-01-01',
  14855. until: +Infinity,
  14856. offset: 1,
  14857. name: 'Anno Domini',
  14858. narrow: 'AD',
  14859. abbr: 'AD'
  14860. }, {
  14861. since: '0000-12-31',
  14862. until: -Infinity,
  14863. offset: 1,
  14864. name: 'Before Christ',
  14865. narrow: 'BC',
  14866. abbr: 'BC'
  14867. }],
  14868. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  14869. ordinal: function ordinal(number) {
  14870. var b = number % 10,
  14871. output = toInt(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  14872. return number + output;
  14873. }
  14874. });
  14875. // Side effect imports
  14876. hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
  14877. hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
  14878. var mathAbs = Math.abs;
  14879. function abs() {
  14880. var data = this._data;
  14881. this._milliseconds = mathAbs(this._milliseconds);
  14882. this._days = mathAbs(this._days);
  14883. this._months = mathAbs(this._months);
  14884. data.milliseconds = mathAbs(data.milliseconds);
  14885. data.seconds = mathAbs(data.seconds);
  14886. data.minutes = mathAbs(data.minutes);
  14887. data.hours = mathAbs(data.hours);
  14888. data.months = mathAbs(data.months);
  14889. data.years = mathAbs(data.years);
  14890. return this;
  14891. }
  14892. function addSubtract$1(duration, input, value, direction) {
  14893. var other = createDuration(input, value);
  14894. duration._milliseconds += direction * other._milliseconds;
  14895. duration._days += direction * other._days;
  14896. duration._months += direction * other._months;
  14897. return duration._bubble();
  14898. }
  14899. // supports only 2.0-style add(1, 's') or add(duration)
  14900. function add$1(input, value) {
  14901. return addSubtract$1(this, input, value, 1);
  14902. }
  14903. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  14904. function subtract$1(input, value) {
  14905. return addSubtract$1(this, input, value, -1);
  14906. }
  14907. function absCeil(number) {
  14908. if (number < 0) {
  14909. return Math.floor(number);
  14910. } else {
  14911. return Math.ceil(number);
  14912. }
  14913. }
  14914. function bubble() {
  14915. var milliseconds = this._milliseconds,
  14916. days = this._days,
  14917. months = this._months,
  14918. data = this._data,
  14919. seconds,
  14920. minutes,
  14921. hours,
  14922. years,
  14923. monthsFromDays;
  14924. // if we have a mix of positive and negative values, bubble down first
  14925. // check: https://github.com/moment/moment/issues/2166
  14926. if (!(milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0)) {
  14927. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  14928. days = 0;
  14929. months = 0;
  14930. }
  14931. // The following code bubbles up values, see the tests for
  14932. // examples of what that means.
  14933. data.milliseconds = milliseconds % 1000;
  14934. seconds = absFloor(milliseconds / 1000);
  14935. data.seconds = seconds % 60;
  14936. minutes = absFloor(seconds / 60);
  14937. data.minutes = minutes % 60;
  14938. hours = absFloor(minutes / 60);
  14939. data.hours = hours % 24;
  14940. days += absFloor(hours / 24);
  14941. // convert days to months
  14942. monthsFromDays = absFloor(daysToMonths(days));
  14943. months += monthsFromDays;
  14944. days -= absCeil(monthsToDays(monthsFromDays));
  14945. // 12 months -> 1 year
  14946. years = absFloor(months / 12);
  14947. months %= 12;
  14948. data.days = days;
  14949. data.months = months;
  14950. data.years = years;
  14951. return this;
  14952. }
  14953. function daysToMonths(days) {
  14954. // 400 years have 146097 days (taking into account leap year rules)
  14955. // 400 years have 12 months === 4800
  14956. return days * 4800 / 146097;
  14957. }
  14958. function monthsToDays(months) {
  14959. // the reverse of daysToMonths
  14960. return months * 146097 / 4800;
  14961. }
  14962. function as(units) {
  14963. if (!this.isValid()) {
  14964. return NaN;
  14965. }
  14966. var days,
  14967. months,
  14968. milliseconds = this._milliseconds;
  14969. units = normalizeUnits(units);
  14970. if (units === 'month' || units === 'quarter' || units === 'year') {
  14971. days = this._days + milliseconds / 864e5;
  14972. months = this._months + daysToMonths(days);
  14973. switch (units) {
  14974. case 'month':
  14975. return months;
  14976. case 'quarter':
  14977. return months / 3;
  14978. case 'year':
  14979. return months / 12;
  14980. }
  14981. } else {
  14982. // handle milliseconds separately because of floating point math errors (issue #1867)
  14983. days = this._days + Math.round(monthsToDays(this._months));
  14984. switch (units) {
  14985. case 'week':
  14986. return days / 7 + milliseconds / 6048e5;
  14987. case 'day':
  14988. return days + milliseconds / 864e5;
  14989. case 'hour':
  14990. return days * 24 + milliseconds / 36e5;
  14991. case 'minute':
  14992. return days * 1440 + milliseconds / 6e4;
  14993. case 'second':
  14994. return days * 86400 + milliseconds / 1000;
  14995. // Math.floor prevents floating point math errors here
  14996. case 'millisecond':
  14997. return Math.floor(days * 864e5) + milliseconds;
  14998. default:
  14999. throw new Error('Unknown unit ' + units);
  15000. }
  15001. }
  15002. }
  15003. // TODO: Use this.as('ms')?
  15004. function valueOf$1() {
  15005. if (!this.isValid()) {
  15006. return NaN;
  15007. }
  15008. return this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + toInt(this._months / 12) * 31536e6;
  15009. }
  15010. function makeAs(alias) {
  15011. return function () {
  15012. return this.as(alias);
  15013. };
  15014. }
  15015. var asMilliseconds = makeAs('ms'),
  15016. asSeconds = makeAs('s'),
  15017. asMinutes = makeAs('m'),
  15018. asHours = makeAs('h'),
  15019. asDays = makeAs('d'),
  15020. asWeeks = makeAs('w'),
  15021. asMonths = makeAs('M'),
  15022. asQuarters = makeAs('Q'),
  15023. asYears = makeAs('y');
  15024. function clone$1() {
  15025. return createDuration(this);
  15026. }
  15027. function get$2(units) {
  15028. units = normalizeUnits(units);
  15029. return this.isValid() ? this[units + 's']() : NaN;
  15030. }
  15031. function makeGetter(name) {
  15032. return function () {
  15033. return this.isValid() ? this._data[name] : NaN;
  15034. };
  15035. }
  15036. var milliseconds = makeGetter('milliseconds'),
  15037. seconds = makeGetter('seconds'),
  15038. minutes = makeGetter('minutes'),
  15039. hours = makeGetter('hours'),
  15040. days = makeGetter('days'),
  15041. months = makeGetter('months'),
  15042. years = makeGetter('years');
  15043. function weeks() {
  15044. return absFloor(this.days() / 7);
  15045. }
  15046. var round = Math.round,
  15047. thresholds = {
  15048. ss: 44,
  15049. // a few seconds to seconds
  15050. s: 45,
  15051. // seconds to minute
  15052. m: 45,
  15053. // minutes to hour
  15054. h: 22,
  15055. // hours to day
  15056. d: 26,
  15057. // days to month/week
  15058. w: null,
  15059. // weeks to month
  15060. M: 11 // months to year
  15061. };
  15062. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  15063. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  15064. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  15065. }
  15066. function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
  15067. var duration = createDuration(posNegDuration).abs(),
  15068. seconds = round(duration.as('s')),
  15069. minutes = round(duration.as('m')),
  15070. hours = round(duration.as('h')),
  15071. days = round(duration.as('d')),
  15072. months = round(duration.as('M')),
  15073. weeks = round(duration.as('w')),
  15074. years = round(duration.as('y')),
  15075. a = seconds <= thresholds.ss && ['s', seconds] || seconds < thresholds.s && ['ss', seconds] || minutes <= 1 && ['m'] || minutes < thresholds.m && ['mm', minutes] || hours <= 1 && ['h'] || hours < thresholds.h && ['hh', hours] || days <= 1 && ['d'] || days < thresholds.d && ['dd', days];
  15076. if (thresholds.w != null) {
  15077. a = a || weeks <= 1 && ['w'] || weeks < thresholds.w && ['ww', weeks];
  15078. }
  15079. a = a || months <= 1 && ['M'] || months < thresholds.M && ['MM', months] || years <= 1 && ['y'] || ['yy', years];
  15080. a[2] = withoutSuffix;
  15081. a[3] = +posNegDuration > 0;
  15082. a[4] = locale;
  15083. return substituteTimeAgo.apply(null, a);
  15084. }
  15085. // This function allows you to set the rounding function for relative time strings
  15086. function getSetRelativeTimeRounding(roundingFunction) {
  15087. if (roundingFunction === undefined) {
  15088. return round;
  15089. }
  15090. if (typeof roundingFunction === 'function') {
  15091. round = roundingFunction;
  15092. return true;
  15093. }
  15094. return false;
  15095. }
  15096. // This function allows you to set a threshold for relative time strings
  15097. function getSetRelativeTimeThreshold(threshold, limit) {
  15098. if (thresholds[threshold] === undefined) {
  15099. return false;
  15100. }
  15101. if (limit === undefined) {
  15102. return thresholds[threshold];
  15103. }
  15104. thresholds[threshold] = limit;
  15105. if (threshold === 's') {
  15106. thresholds.ss = limit - 1;
  15107. }
  15108. return true;
  15109. }
  15110. function humanize(argWithSuffix, argThresholds) {
  15111. if (!this.isValid()) {
  15112. return this.localeData().invalidDate();
  15113. }
  15114. var withSuffix = false,
  15115. th = thresholds,
  15116. locale,
  15117. output;
  15118. if (_typeof(argWithSuffix) === 'object') {
  15119. argThresholds = argWithSuffix;
  15120. argWithSuffix = false;
  15121. }
  15122. if (typeof argWithSuffix === 'boolean') {
  15123. withSuffix = argWithSuffix;
  15124. }
  15125. if (_typeof(argThresholds) === 'object') {
  15126. th = Object.assign({}, thresholds, argThresholds);
  15127. if (argThresholds.s != null && argThresholds.ss == null) {
  15128. th.ss = argThresholds.s - 1;
  15129. }
  15130. }
  15131. locale = this.localeData();
  15132. output = relativeTime$1(this, !withSuffix, th, locale);
  15133. if (withSuffix) {
  15134. output = locale.pastFuture(+this, output);
  15135. }
  15136. return locale.postformat(output);
  15137. }
  15138. var abs$1 = Math.abs;
  15139. function sign(x) {
  15140. return (x > 0) - (x < 0) || +x;
  15141. }
  15142. function toISOString$1() {
  15143. // for ISO strings we do not use the normal bubbling rules:
  15144. // * milliseconds bubble up until they become hours
  15145. // * days do not bubble at all
  15146. // * months bubble up until they become years
  15147. // This is because there is no context-free conversion between hours and days
  15148. // (think of clock changes)
  15149. // and also not between days and months (28-31 days per month)
  15150. if (!this.isValid()) {
  15151. return this.localeData().invalidDate();
  15152. }
  15153. var seconds = abs$1(this._milliseconds) / 1000,
  15154. days = abs$1(this._days),
  15155. months = abs$1(this._months),
  15156. minutes,
  15157. hours,
  15158. years,
  15159. s,
  15160. total = this.asSeconds(),
  15161. totalSign,
  15162. ymSign,
  15163. daysSign,
  15164. hmsSign;
  15165. if (!total) {
  15166. // this is the same as C#'s (Noda) and python (isodate)...
  15167. // but not other JS (goog.date)
  15168. return 'P0D';
  15169. }
  15170. // 3600 seconds -> 60 minutes -> 1 hour
  15171. minutes = absFloor(seconds / 60);
  15172. hours = absFloor(minutes / 60);
  15173. seconds %= 60;
  15174. minutes %= 60;
  15175. // 12 months -> 1 year
  15176. years = absFloor(months / 12);
  15177. months %= 12;
  15178. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  15179. s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  15180. totalSign = total < 0 ? '-' : '';
  15181. ymSign = sign(this._months) !== sign(total) ? '-' : '';
  15182. daysSign = sign(this._days) !== sign(total) ? '-' : '';
  15183. hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  15184. return totalSign + 'P' + (years ? ymSign + years + 'Y' : '') + (months ? ymSign + months + 'M' : '') + (days ? daysSign + days + 'D' : '') + (hours || minutes || seconds ? 'T' : '') + (hours ? hmsSign + hours + 'H' : '') + (minutes ? hmsSign + minutes + 'M' : '') + (seconds ? hmsSign + s + 'S' : '');
  15185. }
  15186. var proto$2 = Duration.prototype;
  15187. proto$2.isValid = isValid$1;
  15188. proto$2.abs = abs;
  15189. proto$2.add = add$1;
  15190. proto$2.subtract = subtract$1;
  15191. proto$2.as = as;
  15192. proto$2.asMilliseconds = asMilliseconds;
  15193. proto$2.asSeconds = asSeconds;
  15194. proto$2.asMinutes = asMinutes;
  15195. proto$2.asHours = asHours;
  15196. proto$2.asDays = asDays;
  15197. proto$2.asWeeks = asWeeks;
  15198. proto$2.asMonths = asMonths;
  15199. proto$2.asQuarters = asQuarters;
  15200. proto$2.asYears = asYears;
  15201. proto$2.valueOf = valueOf$1;
  15202. proto$2._bubble = bubble;
  15203. proto$2.clone = clone$1;
  15204. proto$2.get = get$2;
  15205. proto$2.milliseconds = milliseconds;
  15206. proto$2.seconds = seconds;
  15207. proto$2.minutes = minutes;
  15208. proto$2.hours = hours;
  15209. proto$2.days = days;
  15210. proto$2.weeks = weeks;
  15211. proto$2.months = months;
  15212. proto$2.years = years;
  15213. proto$2.humanize = humanize;
  15214. proto$2.toISOString = toISOString$1;
  15215. proto$2.toString = toISOString$1;
  15216. proto$2.toJSON = toISOString$1;
  15217. proto$2.locale = locale;
  15218. proto$2.localeData = localeData;
  15219. proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
  15220. proto$2.lang = lang;
  15221. // FORMATTING
  15222. addFormatToken('X', 0, 0, 'unix');
  15223. addFormatToken('x', 0, 0, 'valueOf');
  15224. // PARSING
  15225. addRegexToken('x', matchSigned);
  15226. addRegexToken('X', matchTimestamp);
  15227. addParseToken('X', function (input, array, config) {
  15228. config._d = new Date(parseFloat(input) * 1000);
  15229. });
  15230. addParseToken('x', function (input, array, config) {
  15231. config._d = new Date(toInt(input));
  15232. });
  15233. //! moment.js
  15234. hooks.version = '2.29.1';
  15235. setHookCallback(createLocal);
  15236. hooks.fn = proto;
  15237. hooks.min = min;
  15238. hooks.max = max;
  15239. hooks.now = now;
  15240. hooks.utc = createUTC;
  15241. hooks.unix = createUnix;
  15242. hooks.months = listMonths;
  15243. hooks.isDate = isDate;
  15244. hooks.locale = getSetGlobalLocale;
  15245. hooks.invalid = createInvalid;
  15246. hooks.duration = createDuration;
  15247. hooks.isMoment = isMoment;
  15248. hooks.weekdays = listWeekdays;
  15249. hooks.parseZone = createInZone;
  15250. hooks.localeData = getLocale;
  15251. hooks.isDuration = isDuration;
  15252. hooks.monthsShort = listMonthsShort;
  15253. hooks.weekdaysMin = listWeekdaysMin;
  15254. hooks.defineLocale = defineLocale;
  15255. hooks.updateLocale = updateLocale;
  15256. hooks.locales = listLocales;
  15257. hooks.weekdaysShort = listWeekdaysShort;
  15258. hooks.normalizeUnits = normalizeUnits;
  15259. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  15260. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  15261. hooks.calendarFormat = getCalendarFormat;
  15262. hooks.prototype = proto;
  15263. // currently HTML5 input type only supports 24-hour formats
  15264. hooks.HTML5_FMT = {
  15265. DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm',
  15266. // <input type="datetime-local" />
  15267. DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss',
  15268. // <input type="datetime-local" step="1" />
  15269. DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS',
  15270. // <input type="datetime-local" step="0.001" />
  15271. DATE: 'YYYY-MM-DD',
  15272. // <input type="date" />
  15273. TIME: 'HH:mm',
  15274. // <input type="time" />
  15275. TIME_SECONDS: 'HH:mm:ss',
  15276. // <input type="time" step="1" />
  15277. TIME_MS: 'HH:mm:ss.SSS',
  15278. // <input type="time" step="0.001" />
  15279. WEEK: 'GGGG-[W]WW',
  15280. // <input type="week" />
  15281. MONTH: 'YYYY-MM' // <input type="month" />
  15282. };
  15283. return hooks;
  15284. });
  15285. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../hbuild/HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/module.js */ 112)(module)))
  15286. /***/ }),
  15287. /* 112 */
  15288. /*!***********************************!*\
  15289. !*** (webpack)/buildin/module.js ***!
  15290. \***********************************/
  15291. /*! no static exports found */
  15292. /***/ (function(module, exports) {
  15293. module.exports = function(module) {
  15294. if (!module.webpackPolyfill) {
  15295. module.deprecate = function() {};
  15296. module.paths = [];
  15297. // module.parent = undefined by default
  15298. if (!module.children) module.children = [];
  15299. Object.defineProperty(module, "loaded", {
  15300. enumerable: true,
  15301. get: function() {
  15302. return module.l;
  15303. }
  15304. });
  15305. Object.defineProperty(module, "id", {
  15306. enumerable: true,
  15307. get: function() {
  15308. return module.i;
  15309. }
  15310. });
  15311. module.webpackPolyfill = 1;
  15312. }
  15313. return module;
  15314. };
  15315. /***/ }),
  15316. /* 113 */
  15317. /*!*******************************************************************!*\
  15318. !*** D:/SWS_New/sws_new/node_modules/moment/locale sync ^\.\/.*$ ***!
  15319. \*******************************************************************/
  15320. /*! no static exports found */
  15321. /***/ (function(module, exports, __webpack_require__) {
  15322. var map = {
  15323. "./af": 114,
  15324. "./af.js": 114,
  15325. "./ar": 115,
  15326. "./ar-dz": 116,
  15327. "./ar-dz.js": 116,
  15328. "./ar-kw": 117,
  15329. "./ar-kw.js": 117,
  15330. "./ar-ly": 118,
  15331. "./ar-ly.js": 118,
  15332. "./ar-ma": 119,
  15333. "./ar-ma.js": 119,
  15334. "./ar-sa": 120,
  15335. "./ar-sa.js": 120,
  15336. "./ar-tn": 121,
  15337. "./ar-tn.js": 121,
  15338. "./ar.js": 115,
  15339. "./az": 122,
  15340. "./az.js": 122,
  15341. "./be": 123,
  15342. "./be.js": 123,
  15343. "./bg": 124,
  15344. "./bg.js": 124,
  15345. "./bm": 125,
  15346. "./bm.js": 125,
  15347. "./bn": 126,
  15348. "./bn-bd": 127,
  15349. "./bn-bd.js": 127,
  15350. "./bn.js": 126,
  15351. "./bo": 128,
  15352. "./bo.js": 128,
  15353. "./br": 129,
  15354. "./br.js": 129,
  15355. "./bs": 130,
  15356. "./bs.js": 130,
  15357. "./ca": 131,
  15358. "./ca.js": 131,
  15359. "./cs": 132,
  15360. "./cs.js": 132,
  15361. "./cv": 133,
  15362. "./cv.js": 133,
  15363. "./cy": 134,
  15364. "./cy.js": 134,
  15365. "./da": 135,
  15366. "./da.js": 135,
  15367. "./de": 136,
  15368. "./de-at": 137,
  15369. "./de-at.js": 137,
  15370. "./de-ch": 138,
  15371. "./de-ch.js": 138,
  15372. "./de.js": 136,
  15373. "./dv": 139,
  15374. "./dv.js": 139,
  15375. "./el": 140,
  15376. "./el.js": 140,
  15377. "./en-au": 141,
  15378. "./en-au.js": 141,
  15379. "./en-ca": 142,
  15380. "./en-ca.js": 142,
  15381. "./en-gb": 143,
  15382. "./en-gb.js": 143,
  15383. "./en-ie": 144,
  15384. "./en-ie.js": 144,
  15385. "./en-il": 145,
  15386. "./en-il.js": 145,
  15387. "./en-in": 146,
  15388. "./en-in.js": 146,
  15389. "./en-nz": 147,
  15390. "./en-nz.js": 147,
  15391. "./en-sg": 148,
  15392. "./en-sg.js": 148,
  15393. "./eo": 149,
  15394. "./eo.js": 149,
  15395. "./es": 150,
  15396. "./es-do": 151,
  15397. "./es-do.js": 151,
  15398. "./es-mx": 152,
  15399. "./es-mx.js": 152,
  15400. "./es-us": 153,
  15401. "./es-us.js": 153,
  15402. "./es.js": 150,
  15403. "./et": 154,
  15404. "./et.js": 154,
  15405. "./eu": 155,
  15406. "./eu.js": 155,
  15407. "./fa": 156,
  15408. "./fa.js": 156,
  15409. "./fi": 157,
  15410. "./fi.js": 157,
  15411. "./fil": 158,
  15412. "./fil.js": 158,
  15413. "./fo": 159,
  15414. "./fo.js": 159,
  15415. "./fr": 160,
  15416. "./fr-ca": 161,
  15417. "./fr-ca.js": 161,
  15418. "./fr-ch": 162,
  15419. "./fr-ch.js": 162,
  15420. "./fr.js": 160,
  15421. "./fy": 163,
  15422. "./fy.js": 163,
  15423. "./ga": 164,
  15424. "./ga.js": 164,
  15425. "./gd": 165,
  15426. "./gd.js": 165,
  15427. "./gl": 166,
  15428. "./gl.js": 166,
  15429. "./gom-deva": 167,
  15430. "./gom-deva.js": 167,
  15431. "./gom-latn": 168,
  15432. "./gom-latn.js": 168,
  15433. "./gu": 169,
  15434. "./gu.js": 169,
  15435. "./he": 170,
  15436. "./he.js": 170,
  15437. "./hi": 171,
  15438. "./hi.js": 171,
  15439. "./hr": 172,
  15440. "./hr.js": 172,
  15441. "./hu": 173,
  15442. "./hu.js": 173,
  15443. "./hy-am": 174,
  15444. "./hy-am.js": 174,
  15445. "./id": 175,
  15446. "./id.js": 175,
  15447. "./is": 176,
  15448. "./is.js": 176,
  15449. "./it": 177,
  15450. "./it-ch": 178,
  15451. "./it-ch.js": 178,
  15452. "./it.js": 177,
  15453. "./ja": 179,
  15454. "./ja.js": 179,
  15455. "./jv": 180,
  15456. "./jv.js": 180,
  15457. "./ka": 181,
  15458. "./ka.js": 181,
  15459. "./kk": 182,
  15460. "./kk.js": 182,
  15461. "./km": 183,
  15462. "./km.js": 183,
  15463. "./kn": 184,
  15464. "./kn.js": 184,
  15465. "./ko": 185,
  15466. "./ko.js": 185,
  15467. "./ku": 186,
  15468. "./ku.js": 186,
  15469. "./ky": 187,
  15470. "./ky.js": 187,
  15471. "./lb": 188,
  15472. "./lb.js": 188,
  15473. "./lo": 189,
  15474. "./lo.js": 189,
  15475. "./lt": 190,
  15476. "./lt.js": 190,
  15477. "./lv": 191,
  15478. "./lv.js": 191,
  15479. "./me": 192,
  15480. "./me.js": 192,
  15481. "./mi": 193,
  15482. "./mi.js": 193,
  15483. "./mk": 194,
  15484. "./mk.js": 194,
  15485. "./ml": 195,
  15486. "./ml.js": 195,
  15487. "./mn": 196,
  15488. "./mn.js": 196,
  15489. "./mr": 197,
  15490. "./mr.js": 197,
  15491. "./ms": 198,
  15492. "./ms-my": 199,
  15493. "./ms-my.js": 199,
  15494. "./ms.js": 198,
  15495. "./mt": 200,
  15496. "./mt.js": 200,
  15497. "./my": 201,
  15498. "./my.js": 201,
  15499. "./nb": 202,
  15500. "./nb.js": 202,
  15501. "./ne": 203,
  15502. "./ne.js": 203,
  15503. "./nl": 204,
  15504. "./nl-be": 205,
  15505. "./nl-be.js": 205,
  15506. "./nl.js": 204,
  15507. "./nn": 206,
  15508. "./nn.js": 206,
  15509. "./oc-lnc": 207,
  15510. "./oc-lnc.js": 207,
  15511. "./pa-in": 208,
  15512. "./pa-in.js": 208,
  15513. "./pl": 209,
  15514. "./pl.js": 209,
  15515. "./pt": 210,
  15516. "./pt-br": 211,
  15517. "./pt-br.js": 211,
  15518. "./pt.js": 210,
  15519. "./ro": 212,
  15520. "./ro.js": 212,
  15521. "./ru": 213,
  15522. "./ru.js": 213,
  15523. "./sd": 214,
  15524. "./sd.js": 214,
  15525. "./se": 215,
  15526. "./se.js": 215,
  15527. "./si": 216,
  15528. "./si.js": 216,
  15529. "./sk": 217,
  15530. "./sk.js": 217,
  15531. "./sl": 218,
  15532. "./sl.js": 218,
  15533. "./sq": 219,
  15534. "./sq.js": 219,
  15535. "./sr": 220,
  15536. "./sr-cyrl": 221,
  15537. "./sr-cyrl.js": 221,
  15538. "./sr.js": 220,
  15539. "./ss": 222,
  15540. "./ss.js": 222,
  15541. "./sv": 223,
  15542. "./sv.js": 223,
  15543. "./sw": 224,
  15544. "./sw.js": 224,
  15545. "./ta": 225,
  15546. "./ta.js": 225,
  15547. "./te": 226,
  15548. "./te.js": 226,
  15549. "./tet": 227,
  15550. "./tet.js": 227,
  15551. "./tg": 228,
  15552. "./tg.js": 228,
  15553. "./th": 229,
  15554. "./th.js": 229,
  15555. "./tk": 230,
  15556. "./tk.js": 230,
  15557. "./tl-ph": 231,
  15558. "./tl-ph.js": 231,
  15559. "./tlh": 232,
  15560. "./tlh.js": 232,
  15561. "./tr": 233,
  15562. "./tr.js": 233,
  15563. "./tzl": 234,
  15564. "./tzl.js": 234,
  15565. "./tzm": 235,
  15566. "./tzm-latn": 236,
  15567. "./tzm-latn.js": 236,
  15568. "./tzm.js": 235,
  15569. "./ug-cn": 237,
  15570. "./ug-cn.js": 237,
  15571. "./uk": 238,
  15572. "./uk.js": 238,
  15573. "./ur": 239,
  15574. "./ur.js": 239,
  15575. "./uz": 240,
  15576. "./uz-latn": 241,
  15577. "./uz-latn.js": 241,
  15578. "./uz.js": 240,
  15579. "./vi": 242,
  15580. "./vi.js": 242,
  15581. "./x-pseudo": 243,
  15582. "./x-pseudo.js": 243,
  15583. "./yo": 244,
  15584. "./yo.js": 244,
  15585. "./zh-cn": 245,
  15586. "./zh-cn.js": 245,
  15587. "./zh-hk": 246,
  15588. "./zh-hk.js": 246,
  15589. "./zh-mo": 247,
  15590. "./zh-mo.js": 247,
  15591. "./zh-tw": 248,
  15592. "./zh-tw.js": 248
  15593. };
  15594. function webpackContext(req) {
  15595. var id = webpackContextResolve(req);
  15596. return __webpack_require__(id);
  15597. }
  15598. function webpackContextResolve(req) {
  15599. if(!__webpack_require__.o(map, req)) {
  15600. var e = new Error("Cannot find module '" + req + "'");
  15601. e.code = 'MODULE_NOT_FOUND';
  15602. throw e;
  15603. }
  15604. return map[req];
  15605. }
  15606. webpackContext.keys = function webpackContextKeys() {
  15607. return Object.keys(map);
  15608. };
  15609. webpackContext.resolve = webpackContextResolve;
  15610. module.exports = webpackContext;
  15611. webpackContext.id = 113;
  15612. /***/ }),
  15613. /* 114 */
  15614. /*!***********************************************************!*\
  15615. !*** D:/SWS_New/sws_new/node_modules/moment/locale/af.js ***!
  15616. \***********************************************************/
  15617. /*! no static exports found */
  15618. /***/ (function(module, exports, __webpack_require__) {
  15619. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15620. //! moment.js locale configuration
  15621. //! locale : Afrikaans [af]
  15622. //! author : Werner Mollentze : https://github.com/wernerm
  15623. ;
  15624. (function (global, factory) {
  15625. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15626. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15627. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15628. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15629. })(this, function (moment) {
  15630. 'use strict';
  15631. //! moment.js locale configuration
  15632. var af = moment.defineLocale('af', {
  15633. months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  15634. monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  15635. weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  15636. weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  15637. weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  15638. meridiemParse: /vm|nm/i,
  15639. isPM: function isPM(input) {
  15640. return /^nm$/i.test(input);
  15641. },
  15642. meridiem: function meridiem(hours, minutes, isLower) {
  15643. if (hours < 12) {
  15644. return isLower ? 'vm' : 'VM';
  15645. } else {
  15646. return isLower ? 'nm' : 'NM';
  15647. }
  15648. },
  15649. longDateFormat: {
  15650. LT: 'HH:mm',
  15651. LTS: 'HH:mm:ss',
  15652. L: 'DD/MM/YYYY',
  15653. LL: 'D MMMM YYYY',
  15654. LLL: 'D MMMM YYYY HH:mm',
  15655. LLLL: 'dddd, D MMMM YYYY HH:mm'
  15656. },
  15657. calendar: {
  15658. sameDay: '[Vandag om] LT',
  15659. nextDay: '[Môre om] LT',
  15660. nextWeek: 'dddd [om] LT',
  15661. lastDay: '[Gister om] LT',
  15662. lastWeek: '[Laas] dddd [om] LT',
  15663. sameElse: 'L'
  15664. },
  15665. relativeTime: {
  15666. future: 'oor %s',
  15667. past: '%s gelede',
  15668. s: "'n paar sekondes",
  15669. ss: '%d sekondes',
  15670. m: "'n minuut",
  15671. mm: '%d minute',
  15672. h: "'n uur",
  15673. hh: '%d ure',
  15674. d: "'n dag",
  15675. dd: '%d dae',
  15676. M: "'n maand",
  15677. MM: '%d maande',
  15678. y: "'n jaar",
  15679. yy: '%d jaar'
  15680. },
  15681. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  15682. ordinal: function ordinal(number) {
  15683. return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  15684. },
  15685. week: {
  15686. dow: 1,
  15687. // Maandag is die eerste dag van die week.
  15688. doy: 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  15689. }
  15690. });
  15691. return af;
  15692. });
  15693. /***/ }),
  15694. /* 115 */
  15695. /*!***********************************************************!*\
  15696. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ar.js ***!
  15697. \***********************************************************/
  15698. /*! no static exports found */
  15699. /***/ (function(module, exports, __webpack_require__) {
  15700. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15701. //! moment.js locale configuration
  15702. //! locale : Arabic [ar]
  15703. //! author : Abdel Said: https://github.com/abdelsaid
  15704. //! author : Ahmed Elkhatib
  15705. //! author : forabi https://github.com/forabi
  15706. ;
  15707. (function (global, factory) {
  15708. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15709. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15710. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15711. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15712. })(this, function (moment) {
  15713. 'use strict';
  15714. //! moment.js locale configuration
  15715. var symbolMap = {
  15716. 1: '١',
  15717. 2: '٢',
  15718. 3: '٣',
  15719. 4: '٤',
  15720. 5: '٥',
  15721. 6: '٦',
  15722. 7: '٧',
  15723. 8: '٨',
  15724. 9: '٩',
  15725. 0: '٠'
  15726. },
  15727. numberMap = {
  15728. '١': '1',
  15729. '٢': '2',
  15730. '٣': '3',
  15731. '٤': '4',
  15732. '٥': '5',
  15733. '٦': '6',
  15734. '٧': '7',
  15735. '٨': '8',
  15736. '٩': '9',
  15737. '٠': '0'
  15738. },
  15739. pluralForm = function pluralForm(n) {
  15740. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  15741. },
  15742. plurals = {
  15743. s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  15744. m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  15745. h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  15746. d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  15747. M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  15748. y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  15749. },
  15750. pluralize = function pluralize(u) {
  15751. return function (number, withoutSuffix, string, isFuture) {
  15752. var f = pluralForm(number),
  15753. str = plurals[u][pluralForm(number)];
  15754. if (f === 2) {
  15755. str = str[withoutSuffix ? 0 : 1];
  15756. }
  15757. return str.replace(/%d/i, number);
  15758. };
  15759. },
  15760. months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];
  15761. var ar = moment.defineLocale('ar', {
  15762. months: months,
  15763. monthsShort: months,
  15764. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  15765. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  15766. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  15767. weekdaysParseExact: true,
  15768. longDateFormat: {
  15769. LT: 'HH:mm',
  15770. LTS: 'HH:mm:ss',
  15771. L: "D/\u200FM/\u200FYYYY",
  15772. LL: 'D MMMM YYYY',
  15773. LLL: 'D MMMM YYYY HH:mm',
  15774. LLLL: 'dddd D MMMM YYYY HH:mm'
  15775. },
  15776. meridiemParse: /ص|م/,
  15777. isPM: function isPM(input) {
  15778. return 'م' === input;
  15779. },
  15780. meridiem: function meridiem(hour, minute, isLower) {
  15781. if (hour < 12) {
  15782. return 'ص';
  15783. } else {
  15784. return 'م';
  15785. }
  15786. },
  15787. calendar: {
  15788. sameDay: '[اليوم عند الساعة] LT',
  15789. nextDay: '[غدًا عند الساعة] LT',
  15790. nextWeek: 'dddd [عند الساعة] LT',
  15791. lastDay: '[أمس عند الساعة] LT',
  15792. lastWeek: 'dddd [عند الساعة] LT',
  15793. sameElse: 'L'
  15794. },
  15795. relativeTime: {
  15796. future: 'بعد %s',
  15797. past: 'منذ %s',
  15798. s: pluralize('s'),
  15799. ss: pluralize('s'),
  15800. m: pluralize('m'),
  15801. mm: pluralize('m'),
  15802. h: pluralize('h'),
  15803. hh: pluralize('h'),
  15804. d: pluralize('d'),
  15805. dd: pluralize('d'),
  15806. M: pluralize('M'),
  15807. MM: pluralize('M'),
  15808. y: pluralize('y'),
  15809. yy: pluralize('y')
  15810. },
  15811. preparse: function preparse(string) {
  15812. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  15813. return numberMap[match];
  15814. }).replace(/،/g, ',');
  15815. },
  15816. postformat: function postformat(string) {
  15817. return string.replace(/\d/g, function (match) {
  15818. return symbolMap[match];
  15819. }).replace(/,/g, '،');
  15820. },
  15821. week: {
  15822. dow: 6,
  15823. // Saturday is the first day of the week.
  15824. doy: 12 // The week that contains Jan 12th is the first week of the year.
  15825. }
  15826. });
  15827. return ar;
  15828. });
  15829. /***/ }),
  15830. /* 116 */
  15831. /*!**************************************************************!*\
  15832. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ar-dz.js ***!
  15833. \**************************************************************/
  15834. /*! no static exports found */
  15835. /***/ (function(module, exports, __webpack_require__) {
  15836. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15837. //! moment.js locale configuration
  15838. //! locale : Arabic (Algeria) [ar-dz]
  15839. //! author : Amine Roukh: https://github.com/Amine27
  15840. //! author : Abdel Said: https://github.com/abdelsaid
  15841. //! author : Ahmed Elkhatib
  15842. //! author : forabi https://github.com/forabi
  15843. //! author : Noureddine LOUAHEDJ : https://github.com/noureddinem
  15844. ;
  15845. (function (global, factory) {
  15846. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15847. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15848. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15849. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15850. })(this, function (moment) {
  15851. 'use strict';
  15852. //! moment.js locale configuration
  15853. var pluralForm = function pluralForm(n) {
  15854. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  15855. },
  15856. plurals = {
  15857. s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  15858. m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  15859. h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  15860. d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  15861. M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  15862. y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  15863. },
  15864. pluralize = function pluralize(u) {
  15865. return function (number, withoutSuffix, string, isFuture) {
  15866. var f = pluralForm(number),
  15867. str = plurals[u][pluralForm(number)];
  15868. if (f === 2) {
  15869. str = str[withoutSuffix ? 0 : 1];
  15870. }
  15871. return str.replace(/%d/i, number);
  15872. };
  15873. },
  15874. months = ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];
  15875. var arDz = moment.defineLocale('ar-dz', {
  15876. months: months,
  15877. monthsShort: months,
  15878. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  15879. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  15880. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  15881. weekdaysParseExact: true,
  15882. longDateFormat: {
  15883. LT: 'HH:mm',
  15884. LTS: 'HH:mm:ss',
  15885. L: "D/\u200FM/\u200FYYYY",
  15886. LL: 'D MMMM YYYY',
  15887. LLL: 'D MMMM YYYY HH:mm',
  15888. LLLL: 'dddd D MMMM YYYY HH:mm'
  15889. },
  15890. meridiemParse: /ص|م/,
  15891. isPM: function isPM(input) {
  15892. return 'م' === input;
  15893. },
  15894. meridiem: function meridiem(hour, minute, isLower) {
  15895. if (hour < 12) {
  15896. return 'ص';
  15897. } else {
  15898. return 'م';
  15899. }
  15900. },
  15901. calendar: {
  15902. sameDay: '[اليوم عند الساعة] LT',
  15903. nextDay: '[غدًا عند الساعة] LT',
  15904. nextWeek: 'dddd [عند الساعة] LT',
  15905. lastDay: '[أمس عند الساعة] LT',
  15906. lastWeek: 'dddd [عند الساعة] LT',
  15907. sameElse: 'L'
  15908. },
  15909. relativeTime: {
  15910. future: 'بعد %s',
  15911. past: 'منذ %s',
  15912. s: pluralize('s'),
  15913. ss: pluralize('s'),
  15914. m: pluralize('m'),
  15915. mm: pluralize('m'),
  15916. h: pluralize('h'),
  15917. hh: pluralize('h'),
  15918. d: pluralize('d'),
  15919. dd: pluralize('d'),
  15920. M: pluralize('M'),
  15921. MM: pluralize('M'),
  15922. y: pluralize('y'),
  15923. yy: pluralize('y')
  15924. },
  15925. postformat: function postformat(string) {
  15926. return string.replace(/,/g, '،');
  15927. },
  15928. week: {
  15929. dow: 0,
  15930. // Sunday is the first day of the week.
  15931. doy: 4 // The week that contains Jan 4th is the first week of the year.
  15932. }
  15933. });
  15934. return arDz;
  15935. });
  15936. /***/ }),
  15937. /* 117 */
  15938. /*!**************************************************************!*\
  15939. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ar-kw.js ***!
  15940. \**************************************************************/
  15941. /*! no static exports found */
  15942. /***/ (function(module, exports, __webpack_require__) {
  15943. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15944. //! moment.js locale configuration
  15945. //! locale : Arabic (Kuwait) [ar-kw]
  15946. //! author : Nusret Parlak: https://github.com/nusretparlak
  15947. ;
  15948. (function (global, factory) {
  15949. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15950. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15951. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15952. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15953. })(this, function (moment) {
  15954. 'use strict';
  15955. //! moment.js locale configuration
  15956. var arKw = moment.defineLocale('ar-kw', {
  15957. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  15958. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  15959. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  15960. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  15961. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  15962. weekdaysParseExact: true,
  15963. longDateFormat: {
  15964. LT: 'HH:mm',
  15965. LTS: 'HH:mm:ss',
  15966. L: 'DD/MM/YYYY',
  15967. LL: 'D MMMM YYYY',
  15968. LLL: 'D MMMM YYYY HH:mm',
  15969. LLLL: 'dddd D MMMM YYYY HH:mm'
  15970. },
  15971. calendar: {
  15972. sameDay: '[اليوم على الساعة] LT',
  15973. nextDay: '[غدا على الساعة] LT',
  15974. nextWeek: 'dddd [على الساعة] LT',
  15975. lastDay: '[أمس على الساعة] LT',
  15976. lastWeek: 'dddd [على الساعة] LT',
  15977. sameElse: 'L'
  15978. },
  15979. relativeTime: {
  15980. future: 'في %s',
  15981. past: 'منذ %s',
  15982. s: 'ثوان',
  15983. ss: '%d ثانية',
  15984. m: 'دقيقة',
  15985. mm: '%d دقائق',
  15986. h: 'ساعة',
  15987. hh: '%d ساعات',
  15988. d: 'يوم',
  15989. dd: '%d أيام',
  15990. M: 'شهر',
  15991. MM: '%d أشهر',
  15992. y: 'سنة',
  15993. yy: '%d سنوات'
  15994. },
  15995. week: {
  15996. dow: 0,
  15997. // Sunday is the first day of the week.
  15998. doy: 12 // The week that contains Jan 12th is the first week of the year.
  15999. }
  16000. });
  16001. return arKw;
  16002. });
  16003. /***/ }),
  16004. /* 118 */
  16005. /*!**************************************************************!*\
  16006. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ar-ly.js ***!
  16007. \**************************************************************/
  16008. /*! no static exports found */
  16009. /***/ (function(module, exports, __webpack_require__) {
  16010. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16011. //! moment.js locale configuration
  16012. //! locale : Arabic (Lybia) [ar-ly]
  16013. //! author : Ali Hmer: https://github.com/kikoanis
  16014. ;
  16015. (function (global, factory) {
  16016. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16017. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16018. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16019. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16020. })(this, function (moment) {
  16021. 'use strict';
  16022. //! moment.js locale configuration
  16023. var symbolMap = {
  16024. 1: '1',
  16025. 2: '2',
  16026. 3: '3',
  16027. 4: '4',
  16028. 5: '5',
  16029. 6: '6',
  16030. 7: '7',
  16031. 8: '8',
  16032. 9: '9',
  16033. 0: '0'
  16034. },
  16035. pluralForm = function pluralForm(n) {
  16036. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  16037. },
  16038. plurals = {
  16039. s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  16040. m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  16041. h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  16042. d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  16043. M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  16044. y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  16045. },
  16046. pluralize = function pluralize(u) {
  16047. return function (number, withoutSuffix, string, isFuture) {
  16048. var f = pluralForm(number),
  16049. str = plurals[u][pluralForm(number)];
  16050. if (f === 2) {
  16051. str = str[withoutSuffix ? 0 : 1];
  16052. }
  16053. return str.replace(/%d/i, number);
  16054. };
  16055. },
  16056. months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];
  16057. var arLy = moment.defineLocale('ar-ly', {
  16058. months: months,
  16059. monthsShort: months,
  16060. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  16061. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  16062. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  16063. weekdaysParseExact: true,
  16064. longDateFormat: {
  16065. LT: 'HH:mm',
  16066. LTS: 'HH:mm:ss',
  16067. L: "D/\u200FM/\u200FYYYY",
  16068. LL: 'D MMMM YYYY',
  16069. LLL: 'D MMMM YYYY HH:mm',
  16070. LLLL: 'dddd D MMMM YYYY HH:mm'
  16071. },
  16072. meridiemParse: /ص|م/,
  16073. isPM: function isPM(input) {
  16074. return 'م' === input;
  16075. },
  16076. meridiem: function meridiem(hour, minute, isLower) {
  16077. if (hour < 12) {
  16078. return 'ص';
  16079. } else {
  16080. return 'م';
  16081. }
  16082. },
  16083. calendar: {
  16084. sameDay: '[اليوم عند الساعة] LT',
  16085. nextDay: '[غدًا عند الساعة] LT',
  16086. nextWeek: 'dddd [عند الساعة] LT',
  16087. lastDay: '[أمس عند الساعة] LT',
  16088. lastWeek: 'dddd [عند الساعة] LT',
  16089. sameElse: 'L'
  16090. },
  16091. relativeTime: {
  16092. future: 'بعد %s',
  16093. past: 'منذ %s',
  16094. s: pluralize('s'),
  16095. ss: pluralize('s'),
  16096. m: pluralize('m'),
  16097. mm: pluralize('m'),
  16098. h: pluralize('h'),
  16099. hh: pluralize('h'),
  16100. d: pluralize('d'),
  16101. dd: pluralize('d'),
  16102. M: pluralize('M'),
  16103. MM: pluralize('M'),
  16104. y: pluralize('y'),
  16105. yy: pluralize('y')
  16106. },
  16107. preparse: function preparse(string) {
  16108. return string.replace(/،/g, ',');
  16109. },
  16110. postformat: function postformat(string) {
  16111. return string.replace(/\d/g, function (match) {
  16112. return symbolMap[match];
  16113. }).replace(/,/g, '،');
  16114. },
  16115. week: {
  16116. dow: 6,
  16117. // Saturday is the first day of the week.
  16118. doy: 12 // The week that contains Jan 12th is the first week of the year.
  16119. }
  16120. });
  16121. return arLy;
  16122. });
  16123. /***/ }),
  16124. /* 119 */
  16125. /*!**************************************************************!*\
  16126. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ar-ma.js ***!
  16127. \**************************************************************/
  16128. /*! no static exports found */
  16129. /***/ (function(module, exports, __webpack_require__) {
  16130. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16131. //! moment.js locale configuration
  16132. //! locale : Arabic (Morocco) [ar-ma]
  16133. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  16134. //! author : Abdel Said : https://github.com/abdelsaid
  16135. ;
  16136. (function (global, factory) {
  16137. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16138. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16139. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16140. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16141. })(this, function (moment) {
  16142. 'use strict';
  16143. //! moment.js locale configuration
  16144. var arMa = moment.defineLocale('ar-ma', {
  16145. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  16146. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  16147. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  16148. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  16149. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  16150. weekdaysParseExact: true,
  16151. longDateFormat: {
  16152. LT: 'HH:mm',
  16153. LTS: 'HH:mm:ss',
  16154. L: 'DD/MM/YYYY',
  16155. LL: 'D MMMM YYYY',
  16156. LLL: 'D MMMM YYYY HH:mm',
  16157. LLLL: 'dddd D MMMM YYYY HH:mm'
  16158. },
  16159. calendar: {
  16160. sameDay: '[اليوم على الساعة] LT',
  16161. nextDay: '[غدا على الساعة] LT',
  16162. nextWeek: 'dddd [على الساعة] LT',
  16163. lastDay: '[أمس على الساعة] LT',
  16164. lastWeek: 'dddd [على الساعة] LT',
  16165. sameElse: 'L'
  16166. },
  16167. relativeTime: {
  16168. future: 'في %s',
  16169. past: 'منذ %s',
  16170. s: 'ثوان',
  16171. ss: '%d ثانية',
  16172. m: 'دقيقة',
  16173. mm: '%d دقائق',
  16174. h: 'ساعة',
  16175. hh: '%d ساعات',
  16176. d: 'يوم',
  16177. dd: '%d أيام',
  16178. M: 'شهر',
  16179. MM: '%d أشهر',
  16180. y: 'سنة',
  16181. yy: '%d سنوات'
  16182. },
  16183. week: {
  16184. dow: 1,
  16185. // Monday is the first day of the week.
  16186. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16187. }
  16188. });
  16189. return arMa;
  16190. });
  16191. /***/ }),
  16192. /* 120 */
  16193. /*!**************************************************************!*\
  16194. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ar-sa.js ***!
  16195. \**************************************************************/
  16196. /*! no static exports found */
  16197. /***/ (function(module, exports, __webpack_require__) {
  16198. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16199. //! moment.js locale configuration
  16200. //! locale : Arabic (Saudi Arabia) [ar-sa]
  16201. //! author : Suhail Alkowaileet : https://github.com/xsoh
  16202. ;
  16203. (function (global, factory) {
  16204. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16205. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16206. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16207. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16208. })(this, function (moment) {
  16209. 'use strict';
  16210. //! moment.js locale configuration
  16211. var symbolMap = {
  16212. 1: '١',
  16213. 2: '٢',
  16214. 3: '٣',
  16215. 4: '٤',
  16216. 5: '٥',
  16217. 6: '٦',
  16218. 7: '٧',
  16219. 8: '٨',
  16220. 9: '٩',
  16221. 0: '٠'
  16222. },
  16223. numberMap = {
  16224. '١': '1',
  16225. '٢': '2',
  16226. '٣': '3',
  16227. '٤': '4',
  16228. '٥': '5',
  16229. '٦': '6',
  16230. '٧': '7',
  16231. '٨': '8',
  16232. '٩': '9',
  16233. '٠': '0'
  16234. };
  16235. var arSa = moment.defineLocale('ar-sa', {
  16236. months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  16237. monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  16238. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  16239. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  16240. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  16241. weekdaysParseExact: true,
  16242. longDateFormat: {
  16243. LT: 'HH:mm',
  16244. LTS: 'HH:mm:ss',
  16245. L: 'DD/MM/YYYY',
  16246. LL: 'D MMMM YYYY',
  16247. LLL: 'D MMMM YYYY HH:mm',
  16248. LLLL: 'dddd D MMMM YYYY HH:mm'
  16249. },
  16250. meridiemParse: /ص|م/,
  16251. isPM: function isPM(input) {
  16252. return 'م' === input;
  16253. },
  16254. meridiem: function meridiem(hour, minute, isLower) {
  16255. if (hour < 12) {
  16256. return 'ص';
  16257. } else {
  16258. return 'م';
  16259. }
  16260. },
  16261. calendar: {
  16262. sameDay: '[اليوم على الساعة] LT',
  16263. nextDay: '[غدا على الساعة] LT',
  16264. nextWeek: 'dddd [على الساعة] LT',
  16265. lastDay: '[أمس على الساعة] LT',
  16266. lastWeek: 'dddd [على الساعة] LT',
  16267. sameElse: 'L'
  16268. },
  16269. relativeTime: {
  16270. future: 'في %s',
  16271. past: 'منذ %s',
  16272. s: 'ثوان',
  16273. ss: '%d ثانية',
  16274. m: 'دقيقة',
  16275. mm: '%d دقائق',
  16276. h: 'ساعة',
  16277. hh: '%d ساعات',
  16278. d: 'يوم',
  16279. dd: '%d أيام',
  16280. M: 'شهر',
  16281. MM: '%d أشهر',
  16282. y: 'سنة',
  16283. yy: '%d سنوات'
  16284. },
  16285. preparse: function preparse(string) {
  16286. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  16287. return numberMap[match];
  16288. }).replace(/،/g, ',');
  16289. },
  16290. postformat: function postformat(string) {
  16291. return string.replace(/\d/g, function (match) {
  16292. return symbolMap[match];
  16293. }).replace(/,/g, '،');
  16294. },
  16295. week: {
  16296. dow: 0,
  16297. // Sunday is the first day of the week.
  16298. doy: 6 // The week that contains Jan 6th is the first week of the year.
  16299. }
  16300. });
  16301. return arSa;
  16302. });
  16303. /***/ }),
  16304. /* 121 */
  16305. /*!**************************************************************!*\
  16306. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ar-tn.js ***!
  16307. \**************************************************************/
  16308. /*! no static exports found */
  16309. /***/ (function(module, exports, __webpack_require__) {
  16310. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16311. //! moment.js locale configuration
  16312. //! locale : Arabic (Tunisia) [ar-tn]
  16313. //! author : Nader Toukabri : https://github.com/naderio
  16314. ;
  16315. (function (global, factory) {
  16316. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16317. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16318. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16319. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16320. })(this, function (moment) {
  16321. 'use strict';
  16322. //! moment.js locale configuration
  16323. var arTn = moment.defineLocale('ar-tn', {
  16324. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  16325. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  16326. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  16327. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  16328. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  16329. weekdaysParseExact: true,
  16330. longDateFormat: {
  16331. LT: 'HH:mm',
  16332. LTS: 'HH:mm:ss',
  16333. L: 'DD/MM/YYYY',
  16334. LL: 'D MMMM YYYY',
  16335. LLL: 'D MMMM YYYY HH:mm',
  16336. LLLL: 'dddd D MMMM YYYY HH:mm'
  16337. },
  16338. calendar: {
  16339. sameDay: '[اليوم على الساعة] LT',
  16340. nextDay: '[غدا على الساعة] LT',
  16341. nextWeek: 'dddd [على الساعة] LT',
  16342. lastDay: '[أمس على الساعة] LT',
  16343. lastWeek: 'dddd [على الساعة] LT',
  16344. sameElse: 'L'
  16345. },
  16346. relativeTime: {
  16347. future: 'في %s',
  16348. past: 'منذ %s',
  16349. s: 'ثوان',
  16350. ss: '%d ثانية',
  16351. m: 'دقيقة',
  16352. mm: '%d دقائق',
  16353. h: 'ساعة',
  16354. hh: '%d ساعات',
  16355. d: 'يوم',
  16356. dd: '%d أيام',
  16357. M: 'شهر',
  16358. MM: '%d أشهر',
  16359. y: 'سنة',
  16360. yy: '%d سنوات'
  16361. },
  16362. week: {
  16363. dow: 1,
  16364. // Monday is the first day of the week.
  16365. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16366. }
  16367. });
  16368. return arTn;
  16369. });
  16370. /***/ }),
  16371. /* 122 */
  16372. /*!***********************************************************!*\
  16373. !*** D:/SWS_New/sws_new/node_modules/moment/locale/az.js ***!
  16374. \***********************************************************/
  16375. /*! no static exports found */
  16376. /***/ (function(module, exports, __webpack_require__) {
  16377. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16378. //! moment.js locale configuration
  16379. //! locale : Azerbaijani [az]
  16380. //! author : topchiyev : https://github.com/topchiyev
  16381. ;
  16382. (function (global, factory) {
  16383. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16384. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16385. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16386. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16387. })(this, function (moment) {
  16388. 'use strict';
  16389. //! moment.js locale configuration
  16390. var suffixes = {
  16391. 1: '-inci',
  16392. 5: '-inci',
  16393. 8: '-inci',
  16394. 70: '-inci',
  16395. 80: '-inci',
  16396. 2: '-nci',
  16397. 7: '-nci',
  16398. 20: '-nci',
  16399. 50: '-nci',
  16400. 3: '-üncü',
  16401. 4: '-üncü',
  16402. 100: '-üncü',
  16403. 6: '-ncı',
  16404. 9: '-uncu',
  16405. 10: '-uncu',
  16406. 30: '-uncu',
  16407. 60: '-ıncı',
  16408. 90: '-ıncı'
  16409. };
  16410. var az = moment.defineLocale('az', {
  16411. months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  16412. monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  16413. weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  16414. weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  16415. weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  16416. weekdaysParseExact: true,
  16417. longDateFormat: {
  16418. LT: 'HH:mm',
  16419. LTS: 'HH:mm:ss',
  16420. L: 'DD.MM.YYYY',
  16421. LL: 'D MMMM YYYY',
  16422. LLL: 'D MMMM YYYY HH:mm',
  16423. LLLL: 'dddd, D MMMM YYYY HH:mm'
  16424. },
  16425. calendar: {
  16426. sameDay: '[bugün saat] LT',
  16427. nextDay: '[sabah saat] LT',
  16428. nextWeek: '[gələn həftə] dddd [saat] LT',
  16429. lastDay: '[dünən] LT',
  16430. lastWeek: '[keçən həftə] dddd [saat] LT',
  16431. sameElse: 'L'
  16432. },
  16433. relativeTime: {
  16434. future: '%s sonra',
  16435. past: '%s əvvəl',
  16436. s: 'bir neçə saniyə',
  16437. ss: '%d saniyə',
  16438. m: 'bir dəqiqə',
  16439. mm: '%d dəqiqə',
  16440. h: 'bir saat',
  16441. hh: '%d saat',
  16442. d: 'bir gün',
  16443. dd: '%d gün',
  16444. M: 'bir ay',
  16445. MM: '%d ay',
  16446. y: 'bir il',
  16447. yy: '%d il'
  16448. },
  16449. meridiemParse: /gecə|səhər|gündüz|axşam/,
  16450. isPM: function isPM(input) {
  16451. return /^(gündüz|axşam)$/.test(input);
  16452. },
  16453. meridiem: function meridiem(hour, minute, isLower) {
  16454. if (hour < 4) {
  16455. return 'gecə';
  16456. } else if (hour < 12) {
  16457. return 'səhər';
  16458. } else if (hour < 17) {
  16459. return 'gündüz';
  16460. } else {
  16461. return 'axşam';
  16462. }
  16463. },
  16464. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  16465. ordinal: function ordinal(number) {
  16466. if (number === 0) {
  16467. // special case for zero
  16468. return number + '-ıncı';
  16469. }
  16470. var a = number % 10,
  16471. b = number % 100 - a,
  16472. c = number >= 100 ? 100 : null;
  16473. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  16474. },
  16475. week: {
  16476. dow: 1,
  16477. // Monday is the first day of the week.
  16478. doy: 7 // The week that contains Jan 7th is the first week of the year.
  16479. }
  16480. });
  16481. return az;
  16482. });
  16483. /***/ }),
  16484. /* 123 */
  16485. /*!***********************************************************!*\
  16486. !*** D:/SWS_New/sws_new/node_modules/moment/locale/be.js ***!
  16487. \***********************************************************/
  16488. /*! no static exports found */
  16489. /***/ (function(module, exports, __webpack_require__) {
  16490. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16491. //! moment.js locale configuration
  16492. //! locale : Belarusian [be]
  16493. //! author : Dmitry Demidov : https://github.com/demidov91
  16494. //! author: Praleska: http://praleska.pro/
  16495. //! Author : Menelion Elensúle : https://github.com/Oire
  16496. ;
  16497. (function (global, factory) {
  16498. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16499. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16500. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16501. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16502. })(this, function (moment) {
  16503. 'use strict';
  16504. //! moment.js locale configuration
  16505. function plural(word, num) {
  16506. var forms = word.split('_');
  16507. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
  16508. }
  16509. function relativeTimeWithPlural(number, withoutSuffix, key) {
  16510. var format = {
  16511. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  16512. mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  16513. hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  16514. dd: 'дзень_дні_дзён',
  16515. MM: 'месяц_месяцы_месяцаў',
  16516. yy: 'год_гады_гадоў'
  16517. };
  16518. if (key === 'm') {
  16519. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  16520. } else if (key === 'h') {
  16521. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  16522. } else {
  16523. return number + ' ' + plural(format[key], +number);
  16524. }
  16525. }
  16526. var be = moment.defineLocale('be', {
  16527. months: {
  16528. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
  16529. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
  16530. },
  16531. monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  16532. weekdays: {
  16533. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
  16534. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  16535. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/
  16536. },
  16537. weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  16538. weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  16539. longDateFormat: {
  16540. LT: 'HH:mm',
  16541. LTS: 'HH:mm:ss',
  16542. L: 'DD.MM.YYYY',
  16543. LL: 'D MMMM YYYY г.',
  16544. LLL: 'D MMMM YYYY г., HH:mm',
  16545. LLLL: 'dddd, D MMMM YYYY г., HH:mm'
  16546. },
  16547. calendar: {
  16548. sameDay: '[Сёння ў] LT',
  16549. nextDay: '[Заўтра ў] LT',
  16550. lastDay: '[Учора ў] LT',
  16551. nextWeek: function nextWeek() {
  16552. return '[У] dddd [ў] LT';
  16553. },
  16554. lastWeek: function lastWeek() {
  16555. switch (this.day()) {
  16556. case 0:
  16557. case 3:
  16558. case 5:
  16559. case 6:
  16560. return '[У мінулую] dddd [ў] LT';
  16561. case 1:
  16562. case 2:
  16563. case 4:
  16564. return '[У мінулы] dddd [ў] LT';
  16565. }
  16566. },
  16567. sameElse: 'L'
  16568. },
  16569. relativeTime: {
  16570. future: 'праз %s',
  16571. past: '%s таму',
  16572. s: 'некалькі секунд',
  16573. m: relativeTimeWithPlural,
  16574. mm: relativeTimeWithPlural,
  16575. h: relativeTimeWithPlural,
  16576. hh: relativeTimeWithPlural,
  16577. d: 'дзень',
  16578. dd: relativeTimeWithPlural,
  16579. M: 'месяц',
  16580. MM: relativeTimeWithPlural,
  16581. y: 'год',
  16582. yy: relativeTimeWithPlural
  16583. },
  16584. meridiemParse: /ночы|раніцы|дня|вечара/,
  16585. isPM: function isPM(input) {
  16586. return /^(дня|вечара)$/.test(input);
  16587. },
  16588. meridiem: function meridiem(hour, minute, isLower) {
  16589. if (hour < 4) {
  16590. return 'ночы';
  16591. } else if (hour < 12) {
  16592. return 'раніцы';
  16593. } else if (hour < 17) {
  16594. return 'дня';
  16595. } else {
  16596. return 'вечара';
  16597. }
  16598. },
  16599. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  16600. ordinal: function ordinal(number, period) {
  16601. switch (period) {
  16602. case 'M':
  16603. case 'd':
  16604. case 'DDD':
  16605. case 'w':
  16606. case 'W':
  16607. return (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? number + '-і' : number + '-ы';
  16608. case 'D':
  16609. return number + '-га';
  16610. default:
  16611. return number;
  16612. }
  16613. },
  16614. week: {
  16615. dow: 1,
  16616. // Monday is the first day of the week.
  16617. doy: 7 // The week that contains Jan 7th is the first week of the year.
  16618. }
  16619. });
  16620. return be;
  16621. });
  16622. /***/ }),
  16623. /* 124 */
  16624. /*!***********************************************************!*\
  16625. !*** D:/SWS_New/sws_new/node_modules/moment/locale/bg.js ***!
  16626. \***********************************************************/
  16627. /*! no static exports found */
  16628. /***/ (function(module, exports, __webpack_require__) {
  16629. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16630. //! moment.js locale configuration
  16631. //! locale : Bulgarian [bg]
  16632. //! author : Krasen Borisov : https://github.com/kraz
  16633. ;
  16634. (function (global, factory) {
  16635. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16636. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16637. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16638. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16639. })(this, function (moment) {
  16640. 'use strict';
  16641. //! moment.js locale configuration
  16642. var bg = moment.defineLocale('bg', {
  16643. months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  16644. monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  16645. weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  16646. weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  16647. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  16648. longDateFormat: {
  16649. LT: 'H:mm',
  16650. LTS: 'H:mm:ss',
  16651. L: 'D.MM.YYYY',
  16652. LL: 'D MMMM YYYY',
  16653. LLL: 'D MMMM YYYY H:mm',
  16654. LLLL: 'dddd, D MMMM YYYY H:mm'
  16655. },
  16656. calendar: {
  16657. sameDay: '[Днес в] LT',
  16658. nextDay: '[Утре в] LT',
  16659. nextWeek: 'dddd [в] LT',
  16660. lastDay: '[Вчера в] LT',
  16661. lastWeek: function lastWeek() {
  16662. switch (this.day()) {
  16663. case 0:
  16664. case 3:
  16665. case 6:
  16666. return '[Миналата] dddd [в] LT';
  16667. case 1:
  16668. case 2:
  16669. case 4:
  16670. case 5:
  16671. return '[Миналия] dddd [в] LT';
  16672. }
  16673. },
  16674. sameElse: 'L'
  16675. },
  16676. relativeTime: {
  16677. future: 'след %s',
  16678. past: 'преди %s',
  16679. s: 'няколко секунди',
  16680. ss: '%d секунди',
  16681. m: 'минута',
  16682. mm: '%d минути',
  16683. h: 'час',
  16684. hh: '%d часа',
  16685. d: 'ден',
  16686. dd: '%d дена',
  16687. w: 'седмица',
  16688. ww: '%d седмици',
  16689. M: 'месец',
  16690. MM: '%d месеца',
  16691. y: 'година',
  16692. yy: '%d години'
  16693. },
  16694. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  16695. ordinal: function ordinal(number) {
  16696. var lastDigit = number % 10,
  16697. last2Digits = number % 100;
  16698. if (number === 0) {
  16699. return number + '-ев';
  16700. } else if (last2Digits === 0) {
  16701. return number + '-ен';
  16702. } else if (last2Digits > 10 && last2Digits < 20) {
  16703. return number + '-ти';
  16704. } else if (lastDigit === 1) {
  16705. return number + '-ви';
  16706. } else if (lastDigit === 2) {
  16707. return number + '-ри';
  16708. } else if (lastDigit === 7 || lastDigit === 8) {
  16709. return number + '-ми';
  16710. } else {
  16711. return number + '-ти';
  16712. }
  16713. },
  16714. week: {
  16715. dow: 1,
  16716. // Monday is the first day of the week.
  16717. doy: 7 // The week that contains Jan 7th is the first week of the year.
  16718. }
  16719. });
  16720. return bg;
  16721. });
  16722. /***/ }),
  16723. /* 125 */
  16724. /*!***********************************************************!*\
  16725. !*** D:/SWS_New/sws_new/node_modules/moment/locale/bm.js ***!
  16726. \***********************************************************/
  16727. /*! no static exports found */
  16728. /***/ (function(module, exports, __webpack_require__) {
  16729. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16730. //! moment.js locale configuration
  16731. //! locale : Bambara [bm]
  16732. //! author : Estelle Comment : https://github.com/estellecomment
  16733. ;
  16734. (function (global, factory) {
  16735. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16736. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16737. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16738. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16739. })(this, function (moment) {
  16740. 'use strict';
  16741. //! moment.js locale configuration
  16742. var bm = moment.defineLocale('bm', {
  16743. months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
  16744. monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  16745. weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  16746. weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  16747. weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  16748. longDateFormat: {
  16749. LT: 'HH:mm',
  16750. LTS: 'HH:mm:ss',
  16751. L: 'DD/MM/YYYY',
  16752. LL: 'MMMM [tile] D [san] YYYY',
  16753. LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  16754. LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
  16755. },
  16756. calendar: {
  16757. sameDay: '[Bi lɛrɛ] LT',
  16758. nextDay: '[Sini lɛrɛ] LT',
  16759. nextWeek: 'dddd [don lɛrɛ] LT',
  16760. lastDay: '[Kunu lɛrɛ] LT',
  16761. lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
  16762. sameElse: 'L'
  16763. },
  16764. relativeTime: {
  16765. future: '%s kɔnɔ',
  16766. past: 'a bɛ %s bɔ',
  16767. s: 'sanga dama dama',
  16768. ss: 'sekondi %d',
  16769. m: 'miniti kelen',
  16770. mm: 'miniti %d',
  16771. h: 'lɛrɛ kelen',
  16772. hh: 'lɛrɛ %d',
  16773. d: 'tile kelen',
  16774. dd: 'tile %d',
  16775. M: 'kalo kelen',
  16776. MM: 'kalo %d',
  16777. y: 'san kelen',
  16778. yy: 'san %d'
  16779. },
  16780. week: {
  16781. dow: 1,
  16782. // Monday is the first day of the week.
  16783. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16784. }
  16785. });
  16786. return bm;
  16787. });
  16788. /***/ }),
  16789. /* 126 */
  16790. /*!***********************************************************!*\
  16791. !*** D:/SWS_New/sws_new/node_modules/moment/locale/bn.js ***!
  16792. \***********************************************************/
  16793. /*! no static exports found */
  16794. /***/ (function(module, exports, __webpack_require__) {
  16795. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16796. //! moment.js locale configuration
  16797. //! locale : Bengali [bn]
  16798. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  16799. ;
  16800. (function (global, factory) {
  16801. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16802. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16803. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16804. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16805. })(this, function (moment) {
  16806. 'use strict';
  16807. //! moment.js locale configuration
  16808. var symbolMap = {
  16809. 1: '১',
  16810. 2: '২',
  16811. 3: '৩',
  16812. 4: '৪',
  16813. 5: '৫',
  16814. 6: '৬',
  16815. 7: '৭',
  16816. 8: '৮',
  16817. 9: '৯',
  16818. 0: '০'
  16819. },
  16820. numberMap = {
  16821. '১': '1',
  16822. '২': '2',
  16823. '৩': '3',
  16824. '৪': '4',
  16825. '৫': '5',
  16826. '৬': '6',
  16827. '৭': '7',
  16828. '৮': '8',
  16829. '৯': '9',
  16830. '০': '0'
  16831. };
  16832. var bn = moment.defineLocale('bn', {
  16833. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  16834. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  16835. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  16836. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  16837. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  16838. longDateFormat: {
  16839. LT: 'A h:mm সময়',
  16840. LTS: 'A h:mm:ss সময়',
  16841. L: 'DD/MM/YYYY',
  16842. LL: 'D MMMM YYYY',
  16843. LLL: 'D MMMM YYYY, A h:mm সময়',
  16844. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
  16845. },
  16846. calendar: {
  16847. sameDay: '[আজ] LT',
  16848. nextDay: '[আগামীকাল] LT',
  16849. nextWeek: 'dddd, LT',
  16850. lastDay: '[গতকাল] LT',
  16851. lastWeek: '[গত] dddd, LT',
  16852. sameElse: 'L'
  16853. },
  16854. relativeTime: {
  16855. future: '%s পরে',
  16856. past: '%s আগে',
  16857. s: 'কয়েক সেকেন্ড',
  16858. ss: '%d সেকেন্ড',
  16859. m: 'এক মিনিট',
  16860. mm: '%d মিনিট',
  16861. h: 'এক ঘন্টা',
  16862. hh: '%d ঘন্টা',
  16863. d: 'এক দিন',
  16864. dd: '%d দিন',
  16865. M: 'এক মাস',
  16866. MM: '%d মাস',
  16867. y: 'এক বছর',
  16868. yy: '%d বছর'
  16869. },
  16870. preparse: function preparse(string) {
  16871. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  16872. return numberMap[match];
  16873. });
  16874. },
  16875. postformat: function postformat(string) {
  16876. return string.replace(/\d/g, function (match) {
  16877. return symbolMap[match];
  16878. });
  16879. },
  16880. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  16881. meridiemHour: function meridiemHour(hour, meridiem) {
  16882. if (hour === 12) {
  16883. hour = 0;
  16884. }
  16885. if (meridiem === 'রাত' && hour >= 4 || meridiem === 'দুপুর' && hour < 5 || meridiem === 'বিকাল') {
  16886. return hour + 12;
  16887. } else {
  16888. return hour;
  16889. }
  16890. },
  16891. meridiem: function meridiem(hour, minute, isLower) {
  16892. if (hour < 4) {
  16893. return 'রাত';
  16894. } else if (hour < 10) {
  16895. return 'সকাল';
  16896. } else if (hour < 17) {
  16897. return 'দুপুর';
  16898. } else if (hour < 20) {
  16899. return 'বিকাল';
  16900. } else {
  16901. return 'রাত';
  16902. }
  16903. },
  16904. week: {
  16905. dow: 0,
  16906. // Sunday is the first day of the week.
  16907. doy: 6 // The week that contains Jan 6th is the first week of the year.
  16908. }
  16909. });
  16910. return bn;
  16911. });
  16912. /***/ }),
  16913. /* 127 */
  16914. /*!**************************************************************!*\
  16915. !*** D:/SWS_New/sws_new/node_modules/moment/locale/bn-bd.js ***!
  16916. \**************************************************************/
  16917. /*! no static exports found */
  16918. /***/ (function(module, exports, __webpack_require__) {
  16919. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16920. //! moment.js locale configuration
  16921. //! locale : Bengali (Bangladesh) [bn-bd]
  16922. //! author : Asraf Hossain Patoary : https://github.com/ashwoolford
  16923. ;
  16924. (function (global, factory) {
  16925. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16926. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16927. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16928. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16929. })(this, function (moment) {
  16930. 'use strict';
  16931. //! moment.js locale configuration
  16932. var symbolMap = {
  16933. 1: '১',
  16934. 2: '২',
  16935. 3: '৩',
  16936. 4: '৪',
  16937. 5: '৫',
  16938. 6: '৬',
  16939. 7: '৭',
  16940. 8: '৮',
  16941. 9: '৯',
  16942. 0: '০'
  16943. },
  16944. numberMap = {
  16945. '১': '1',
  16946. '২': '2',
  16947. '৩': '3',
  16948. '৪': '4',
  16949. '৫': '5',
  16950. '৬': '6',
  16951. '৭': '7',
  16952. '৮': '8',
  16953. '৯': '9',
  16954. '০': '0'
  16955. };
  16956. var bnBd = moment.defineLocale('bn-bd', {
  16957. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  16958. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  16959. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  16960. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  16961. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  16962. longDateFormat: {
  16963. LT: 'A h:mm সময়',
  16964. LTS: 'A h:mm:ss সময়',
  16965. L: 'DD/MM/YYYY',
  16966. LL: 'D MMMM YYYY',
  16967. LLL: 'D MMMM YYYY, A h:mm সময়',
  16968. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
  16969. },
  16970. calendar: {
  16971. sameDay: '[আজ] LT',
  16972. nextDay: '[আগামীকাল] LT',
  16973. nextWeek: 'dddd, LT',
  16974. lastDay: '[গতকাল] LT',
  16975. lastWeek: '[গত] dddd, LT',
  16976. sameElse: 'L'
  16977. },
  16978. relativeTime: {
  16979. future: '%s পরে',
  16980. past: '%s আগে',
  16981. s: 'কয়েক সেকেন্ড',
  16982. ss: '%d সেকেন্ড',
  16983. m: 'এক মিনিট',
  16984. mm: '%d মিনিট',
  16985. h: 'এক ঘন্টা',
  16986. hh: '%d ঘন্টা',
  16987. d: 'এক দিন',
  16988. dd: '%d দিন',
  16989. M: 'এক মাস',
  16990. MM: '%d মাস',
  16991. y: 'এক বছর',
  16992. yy: '%d বছর'
  16993. },
  16994. preparse: function preparse(string) {
  16995. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  16996. return numberMap[match];
  16997. });
  16998. },
  16999. postformat: function postformat(string) {
  17000. return string.replace(/\d/g, function (match) {
  17001. return symbolMap[match];
  17002. });
  17003. },
  17004. meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
  17005. meridiemHour: function meridiemHour(hour, meridiem) {
  17006. if (hour === 12) {
  17007. hour = 0;
  17008. }
  17009. if (meridiem === 'রাত') {
  17010. return hour < 4 ? hour : hour + 12;
  17011. } else if (meridiem === 'ভোর') {
  17012. return hour;
  17013. } else if (meridiem === 'সকাল') {
  17014. return hour;
  17015. } else if (meridiem === 'দুপুর') {
  17016. return hour >= 3 ? hour : hour + 12;
  17017. } else if (meridiem === 'বিকাল') {
  17018. return hour + 12;
  17019. } else if (meridiem === 'সন্ধ্যা') {
  17020. return hour + 12;
  17021. }
  17022. },
  17023. meridiem: function meridiem(hour, minute, isLower) {
  17024. if (hour < 4) {
  17025. return 'রাত';
  17026. } else if (hour < 6) {
  17027. return 'ভোর';
  17028. } else if (hour < 12) {
  17029. return 'সকাল';
  17030. } else if (hour < 15) {
  17031. return 'দুপুর';
  17032. } else if (hour < 18) {
  17033. return 'বিকাল';
  17034. } else if (hour < 20) {
  17035. return 'সন্ধ্যা';
  17036. } else {
  17037. return 'রাত';
  17038. }
  17039. },
  17040. week: {
  17041. dow: 0,
  17042. // Sunday is the first day of the week.
  17043. doy: 6 // The week that contains Jan 6th is the first week of the year.
  17044. }
  17045. });
  17046. return bnBd;
  17047. });
  17048. /***/ }),
  17049. /* 128 */
  17050. /*!***********************************************************!*\
  17051. !*** D:/SWS_New/sws_new/node_modules/moment/locale/bo.js ***!
  17052. \***********************************************************/
  17053. /*! no static exports found */
  17054. /***/ (function(module, exports, __webpack_require__) {
  17055. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17056. //! moment.js locale configuration
  17057. //! locale : Tibetan [bo]
  17058. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  17059. ;
  17060. (function (global, factory) {
  17061. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17062. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17063. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17064. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17065. })(this, function (moment) {
  17066. 'use strict';
  17067. //! moment.js locale configuration
  17068. var symbolMap = {
  17069. 1: '༡',
  17070. 2: '༢',
  17071. 3: '༣',
  17072. 4: '༤',
  17073. 5: '༥',
  17074. 6: '༦',
  17075. 7: '༧',
  17076. 8: '༨',
  17077. 9: '༩',
  17078. 0: '༠'
  17079. },
  17080. numberMap = {
  17081. '༡': '1',
  17082. '༢': '2',
  17083. '༣': '3',
  17084. '༤': '4',
  17085. '༥': '5',
  17086. '༦': '6',
  17087. '༧': '7',
  17088. '༨': '8',
  17089. '༩': '9',
  17090. '༠': '0'
  17091. };
  17092. var bo = moment.defineLocale('bo', {
  17093. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  17094. monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split('_'),
  17095. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  17096. monthsParseExact: true,
  17097. weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  17098. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  17099. weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
  17100. longDateFormat: {
  17101. LT: 'A h:mm',
  17102. LTS: 'A h:mm:ss',
  17103. L: 'DD/MM/YYYY',
  17104. LL: 'D MMMM YYYY',
  17105. LLL: 'D MMMM YYYY, A h:mm',
  17106. LLLL: 'dddd, D MMMM YYYY, A h:mm'
  17107. },
  17108. calendar: {
  17109. sameDay: '[དི་རིང] LT',
  17110. nextDay: '[སང་ཉིན] LT',
  17111. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  17112. lastDay: '[ཁ་སང] LT',
  17113. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  17114. sameElse: 'L'
  17115. },
  17116. relativeTime: {
  17117. future: '%s ལ་',
  17118. past: '%s སྔན་ལ',
  17119. s: 'ལམ་སང',
  17120. ss: '%d སྐར་ཆ།',
  17121. m: 'སྐར་མ་གཅིག',
  17122. mm: '%d སྐར་མ',
  17123. h: 'ཆུ་ཚོད་གཅིག',
  17124. hh: '%d ཆུ་ཚོད',
  17125. d: 'ཉིན་གཅིག',
  17126. dd: '%d ཉིན་',
  17127. M: 'ཟླ་བ་གཅིག',
  17128. MM: '%d ཟླ་བ',
  17129. y: 'ལོ་གཅིག',
  17130. yy: '%d ལོ'
  17131. },
  17132. preparse: function preparse(string) {
  17133. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  17134. return numberMap[match];
  17135. });
  17136. },
  17137. postformat: function postformat(string) {
  17138. return string.replace(/\d/g, function (match) {
  17139. return symbolMap[match];
  17140. });
  17141. },
  17142. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  17143. meridiemHour: function meridiemHour(hour, meridiem) {
  17144. if (hour === 12) {
  17145. hour = 0;
  17146. }
  17147. if (meridiem === 'མཚན་མོ' && hour >= 4 || meridiem === 'ཉིན་གུང' && hour < 5 || meridiem === 'དགོང་དག') {
  17148. return hour + 12;
  17149. } else {
  17150. return hour;
  17151. }
  17152. },
  17153. meridiem: function meridiem(hour, minute, isLower) {
  17154. if (hour < 4) {
  17155. return 'མཚན་མོ';
  17156. } else if (hour < 10) {
  17157. return 'ཞོགས་ཀས';
  17158. } else if (hour < 17) {
  17159. return 'ཉིན་གུང';
  17160. } else if (hour < 20) {
  17161. return 'དགོང་དག';
  17162. } else {
  17163. return 'མཚན་མོ';
  17164. }
  17165. },
  17166. week: {
  17167. dow: 0,
  17168. // Sunday is the first day of the week.
  17169. doy: 6 // The week that contains Jan 6th is the first week of the year.
  17170. }
  17171. });
  17172. return bo;
  17173. });
  17174. /***/ }),
  17175. /* 129 */
  17176. /*!***********************************************************!*\
  17177. !*** D:/SWS_New/sws_new/node_modules/moment/locale/br.js ***!
  17178. \***********************************************************/
  17179. /*! no static exports found */
  17180. /***/ (function(module, exports, __webpack_require__) {
  17181. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17182. //! moment.js locale configuration
  17183. //! locale : Breton [br]
  17184. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  17185. ;
  17186. (function (global, factory) {
  17187. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17188. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17189. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17190. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17191. })(this, function (moment) {
  17192. 'use strict';
  17193. //! moment.js locale configuration
  17194. function relativeTimeWithMutation(number, withoutSuffix, key) {
  17195. var format = {
  17196. mm: 'munutenn',
  17197. MM: 'miz',
  17198. dd: 'devezh'
  17199. };
  17200. return number + ' ' + mutation(format[key], number);
  17201. }
  17202. function specialMutationForYears(number) {
  17203. switch (lastNumber(number)) {
  17204. case 1:
  17205. case 3:
  17206. case 4:
  17207. case 5:
  17208. case 9:
  17209. return number + ' bloaz';
  17210. default:
  17211. return number + ' vloaz';
  17212. }
  17213. }
  17214. function lastNumber(number) {
  17215. if (number > 9) {
  17216. return lastNumber(number % 10);
  17217. }
  17218. return number;
  17219. }
  17220. function mutation(text, number) {
  17221. if (number === 2) {
  17222. return softMutation(text);
  17223. }
  17224. return text;
  17225. }
  17226. function softMutation(text) {
  17227. var mutationTable = {
  17228. m: 'v',
  17229. b: 'v',
  17230. d: 'z'
  17231. };
  17232. if (mutationTable[text.charAt(0)] === undefined) {
  17233. return text;
  17234. }
  17235. return mutationTable[text.charAt(0)] + text.substring(1);
  17236. }
  17237. var monthsParse = [/^gen/i, /^c[ʼ\']hwe/i, /^meu/i, /^ebr/i, /^mae/i, /^(mez|eve)/i, /^gou/i, /^eos/i, /^gwe/i, /^her/i, /^du/i, /^ker/i],
  17238. monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  17239. monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
  17240. monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  17241. fullWeekdaysParse = [/^sul/i, /^lun/i, /^meurzh/i, /^merc[ʼ\']her/i, /^yaou/i, /^gwener/i, /^sadorn/i],
  17242. shortWeekdaysParse = [/^Sul/i, /^Lun/i, /^Meu/i, /^Mer/i, /^Yao/i, /^Gwe/i, /^Sad/i],
  17243. minWeekdaysParse = [/^Su/i, /^Lu/i, /^Me([^r]|$)/i, /^Mer/i, /^Ya/i, /^Gw/i, /^Sa/i];
  17244. var br = moment.defineLocale('br', {
  17245. months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  17246. monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  17247. weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
  17248. weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  17249. weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  17250. weekdaysParse: minWeekdaysParse,
  17251. fullWeekdaysParse: fullWeekdaysParse,
  17252. shortWeekdaysParse: shortWeekdaysParse,
  17253. minWeekdaysParse: minWeekdaysParse,
  17254. monthsRegex: monthsRegex,
  17255. monthsShortRegex: monthsRegex,
  17256. monthsStrictRegex: monthsStrictRegex,
  17257. monthsShortStrictRegex: monthsShortStrictRegex,
  17258. monthsParse: monthsParse,
  17259. longMonthsParse: monthsParse,
  17260. shortMonthsParse: monthsParse,
  17261. longDateFormat: {
  17262. LT: 'HH:mm',
  17263. LTS: 'HH:mm:ss',
  17264. L: 'DD/MM/YYYY',
  17265. LL: 'D [a viz] MMMM YYYY',
  17266. LLL: 'D [a viz] MMMM YYYY HH:mm',
  17267. LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm'
  17268. },
  17269. calendar: {
  17270. sameDay: '[Hiziv da] LT',
  17271. nextDay: '[Warcʼhoazh da] LT',
  17272. nextWeek: 'dddd [da] LT',
  17273. lastDay: '[Decʼh da] LT',
  17274. lastWeek: 'dddd [paset da] LT',
  17275. sameElse: 'L'
  17276. },
  17277. relativeTime: {
  17278. future: 'a-benn %s',
  17279. past: '%s ʼzo',
  17280. s: 'un nebeud segondennoù',
  17281. ss: '%d eilenn',
  17282. m: 'ur vunutenn',
  17283. mm: relativeTimeWithMutation,
  17284. h: 'un eur',
  17285. hh: '%d eur',
  17286. d: 'un devezh',
  17287. dd: relativeTimeWithMutation,
  17288. M: 'ur miz',
  17289. MM: relativeTimeWithMutation,
  17290. y: 'ur bloaz',
  17291. yy: specialMutationForYears
  17292. },
  17293. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  17294. ordinal: function ordinal(number) {
  17295. var output = number === 1 ? 'añ' : 'vet';
  17296. return number + output;
  17297. },
  17298. week: {
  17299. dow: 1,
  17300. // Monday is the first day of the week.
  17301. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17302. },
  17303. meridiemParse: /a.m.|g.m./,
  17304. // goude merenn | a-raok merenn
  17305. isPM: function isPM(token) {
  17306. return token === 'g.m.';
  17307. },
  17308. meridiem: function meridiem(hour, minute, isLower) {
  17309. return hour < 12 ? 'a.m.' : 'g.m.';
  17310. }
  17311. });
  17312. return br;
  17313. });
  17314. /***/ }),
  17315. /* 130 */
  17316. /*!***********************************************************!*\
  17317. !*** D:/SWS_New/sws_new/node_modules/moment/locale/bs.js ***!
  17318. \***********************************************************/
  17319. /*! no static exports found */
  17320. /***/ (function(module, exports, __webpack_require__) {
  17321. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17322. //! moment.js locale configuration
  17323. //! locale : Bosnian [bs]
  17324. //! author : Nedim Cholich : https://github.com/frontyard
  17325. //! based on (hr) translation by Bojan Marković
  17326. ;
  17327. (function (global, factory) {
  17328. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17329. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17330. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17331. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17332. })(this, function (moment) {
  17333. 'use strict';
  17334. //! moment.js locale configuration
  17335. function translate(number, withoutSuffix, key) {
  17336. var result = number + ' ';
  17337. switch (key) {
  17338. case 'ss':
  17339. if (number === 1) {
  17340. result += 'sekunda';
  17341. } else if (number === 2 || number === 3 || number === 4) {
  17342. result += 'sekunde';
  17343. } else {
  17344. result += 'sekundi';
  17345. }
  17346. return result;
  17347. case 'm':
  17348. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  17349. case 'mm':
  17350. if (number === 1) {
  17351. result += 'minuta';
  17352. } else if (number === 2 || number === 3 || number === 4) {
  17353. result += 'minute';
  17354. } else {
  17355. result += 'minuta';
  17356. }
  17357. return result;
  17358. case 'h':
  17359. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  17360. case 'hh':
  17361. if (number === 1) {
  17362. result += 'sat';
  17363. } else if (number === 2 || number === 3 || number === 4) {
  17364. result += 'sata';
  17365. } else {
  17366. result += 'sati';
  17367. }
  17368. return result;
  17369. case 'dd':
  17370. if (number === 1) {
  17371. result += 'dan';
  17372. } else {
  17373. result += 'dana';
  17374. }
  17375. return result;
  17376. case 'MM':
  17377. if (number === 1) {
  17378. result += 'mjesec';
  17379. } else if (number === 2 || number === 3 || number === 4) {
  17380. result += 'mjeseca';
  17381. } else {
  17382. result += 'mjeseci';
  17383. }
  17384. return result;
  17385. case 'yy':
  17386. if (number === 1) {
  17387. result += 'godina';
  17388. } else if (number === 2 || number === 3 || number === 4) {
  17389. result += 'godine';
  17390. } else {
  17391. result += 'godina';
  17392. }
  17393. return result;
  17394. }
  17395. }
  17396. var bs = moment.defineLocale('bs', {
  17397. months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  17398. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  17399. monthsParseExact: true,
  17400. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  17401. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  17402. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  17403. weekdaysParseExact: true,
  17404. longDateFormat: {
  17405. LT: 'H:mm',
  17406. LTS: 'H:mm:ss',
  17407. L: 'DD.MM.YYYY',
  17408. LL: 'D. MMMM YYYY',
  17409. LLL: 'D. MMMM YYYY H:mm',
  17410. LLLL: 'dddd, D. MMMM YYYY H:mm'
  17411. },
  17412. calendar: {
  17413. sameDay: '[danas u] LT',
  17414. nextDay: '[sutra u] LT',
  17415. nextWeek: function nextWeek() {
  17416. switch (this.day()) {
  17417. case 0:
  17418. return '[u] [nedjelju] [u] LT';
  17419. case 3:
  17420. return '[u] [srijedu] [u] LT';
  17421. case 6:
  17422. return '[u] [subotu] [u] LT';
  17423. case 1:
  17424. case 2:
  17425. case 4:
  17426. case 5:
  17427. return '[u] dddd [u] LT';
  17428. }
  17429. },
  17430. lastDay: '[jučer u] LT',
  17431. lastWeek: function lastWeek() {
  17432. switch (this.day()) {
  17433. case 0:
  17434. case 3:
  17435. return '[prošlu] dddd [u] LT';
  17436. case 6:
  17437. return '[prošle] [subote] [u] LT';
  17438. case 1:
  17439. case 2:
  17440. case 4:
  17441. case 5:
  17442. return '[prošli] dddd [u] LT';
  17443. }
  17444. },
  17445. sameElse: 'L'
  17446. },
  17447. relativeTime: {
  17448. future: 'za %s',
  17449. past: 'prije %s',
  17450. s: 'par sekundi',
  17451. ss: translate,
  17452. m: translate,
  17453. mm: translate,
  17454. h: translate,
  17455. hh: translate,
  17456. d: 'dan',
  17457. dd: translate,
  17458. M: 'mjesec',
  17459. MM: translate,
  17460. y: 'godinu',
  17461. yy: translate
  17462. },
  17463. dayOfMonthOrdinalParse: /\d{1,2}\./,
  17464. ordinal: '%d.',
  17465. week: {
  17466. dow: 1,
  17467. // Monday is the first day of the week.
  17468. doy: 7 // The week that contains Jan 7th is the first week of the year.
  17469. }
  17470. });
  17471. return bs;
  17472. });
  17473. /***/ }),
  17474. /* 131 */
  17475. /*!***********************************************************!*\
  17476. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ca.js ***!
  17477. \***********************************************************/
  17478. /*! no static exports found */
  17479. /***/ (function(module, exports, __webpack_require__) {
  17480. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17481. //! moment.js locale configuration
  17482. //! locale : Catalan [ca]
  17483. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  17484. ;
  17485. (function (global, factory) {
  17486. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17487. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17488. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17489. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17490. })(this, function (moment) {
  17491. 'use strict';
  17492. //! moment.js locale configuration
  17493. var ca = moment.defineLocale('ca', {
  17494. months: {
  17495. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  17496. format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split('_'),
  17497. isFormat: /D[oD]?(\s)+MMMM/
  17498. },
  17499. monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
  17500. monthsParseExact: true,
  17501. weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  17502. weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  17503. weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  17504. weekdaysParseExact: true,
  17505. longDateFormat: {
  17506. LT: 'H:mm',
  17507. LTS: 'H:mm:ss',
  17508. L: 'DD/MM/YYYY',
  17509. LL: 'D MMMM [de] YYYY',
  17510. ll: 'D MMM YYYY',
  17511. LLL: 'D MMMM [de] YYYY [a les] H:mm',
  17512. lll: 'D MMM YYYY, H:mm',
  17513. LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
  17514. llll: 'ddd D MMM YYYY, H:mm'
  17515. },
  17516. calendar: {
  17517. sameDay: function sameDay() {
  17518. return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  17519. },
  17520. nextDay: function nextDay() {
  17521. return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  17522. },
  17523. nextWeek: function nextWeek() {
  17524. return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  17525. },
  17526. lastDay: function lastDay() {
  17527. return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  17528. },
  17529. lastWeek: function lastWeek() {
  17530. return '[el] dddd [passat a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  17531. },
  17532. sameElse: 'L'
  17533. },
  17534. relativeTime: {
  17535. future: "d'aquí %s",
  17536. past: 'fa %s',
  17537. s: 'uns segons',
  17538. ss: '%d segons',
  17539. m: 'un minut',
  17540. mm: '%d minuts',
  17541. h: 'una hora',
  17542. hh: '%d hores',
  17543. d: 'un dia',
  17544. dd: '%d dies',
  17545. M: 'un mes',
  17546. MM: '%d mesos',
  17547. y: 'un any',
  17548. yy: '%d anys'
  17549. },
  17550. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  17551. ordinal: function ordinal(number, period) {
  17552. var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';
  17553. if (period === 'w' || period === 'W') {
  17554. output = 'a';
  17555. }
  17556. return number + output;
  17557. },
  17558. week: {
  17559. dow: 1,
  17560. // Monday is the first day of the week.
  17561. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17562. }
  17563. });
  17564. return ca;
  17565. });
  17566. /***/ }),
  17567. /* 132 */
  17568. /*!***********************************************************!*\
  17569. !*** D:/SWS_New/sws_new/node_modules/moment/locale/cs.js ***!
  17570. \***********************************************************/
  17571. /*! no static exports found */
  17572. /***/ (function(module, exports, __webpack_require__) {
  17573. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17574. //! moment.js locale configuration
  17575. //! locale : Czech [cs]
  17576. //! author : petrbela : https://github.com/petrbela
  17577. ;
  17578. (function (global, factory) {
  17579. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17580. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17581. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17582. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17583. })(this, function (moment) {
  17584. 'use strict';
  17585. //! moment.js locale configuration
  17586. var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
  17587. monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
  17588. monthsParse = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i],
  17589. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  17590. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  17591. monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
  17592. function plural(n) {
  17593. return n > 1 && n < 5 && ~~(n / 10) !== 1;
  17594. }
  17595. function translate(number, withoutSuffix, key, isFuture) {
  17596. var result = number + ' ';
  17597. switch (key) {
  17598. case 's':
  17599. // a few seconds / in a few seconds / a few seconds ago
  17600. return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
  17601. case 'ss':
  17602. // 9 seconds / in 9 seconds / 9 seconds ago
  17603. if (withoutSuffix || isFuture) {
  17604. return result + (plural(number) ? 'sekundy' : 'sekund');
  17605. } else {
  17606. return result + 'sekundami';
  17607. }
  17608. case 'm':
  17609. // a minute / in a minute / a minute ago
  17610. return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
  17611. case 'mm':
  17612. // 9 minutes / in 9 minutes / 9 minutes ago
  17613. if (withoutSuffix || isFuture) {
  17614. return result + (plural(number) ? 'minuty' : 'minut');
  17615. } else {
  17616. return result + 'minutami';
  17617. }
  17618. case 'h':
  17619. // an hour / in an hour / an hour ago
  17620. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  17621. case 'hh':
  17622. // 9 hours / in 9 hours / 9 hours ago
  17623. if (withoutSuffix || isFuture) {
  17624. return result + (plural(number) ? 'hodiny' : 'hodin');
  17625. } else {
  17626. return result + 'hodinami';
  17627. }
  17628. case 'd':
  17629. // a day / in a day / a day ago
  17630. return withoutSuffix || isFuture ? 'den' : 'dnem';
  17631. case 'dd':
  17632. // 9 days / in 9 days / 9 days ago
  17633. if (withoutSuffix || isFuture) {
  17634. return result + (plural(number) ? 'dny' : 'dní');
  17635. } else {
  17636. return result + 'dny';
  17637. }
  17638. case 'M':
  17639. // a month / in a month / a month ago
  17640. return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
  17641. case 'MM':
  17642. // 9 months / in 9 months / 9 months ago
  17643. if (withoutSuffix || isFuture) {
  17644. return result + (plural(number) ? 'měsíce' : 'měsíců');
  17645. } else {
  17646. return result + 'měsíci';
  17647. }
  17648. case 'y':
  17649. // a year / in a year / a year ago
  17650. return withoutSuffix || isFuture ? 'rok' : 'rokem';
  17651. case 'yy':
  17652. // 9 years / in 9 years / 9 years ago
  17653. if (withoutSuffix || isFuture) {
  17654. return result + (plural(number) ? 'roky' : 'let');
  17655. } else {
  17656. return result + 'lety';
  17657. }
  17658. }
  17659. }
  17660. var cs = moment.defineLocale('cs', {
  17661. months: months,
  17662. monthsShort: monthsShort,
  17663. monthsRegex: monthsRegex,
  17664. monthsShortRegex: monthsRegex,
  17665. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  17666. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  17667. monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
  17668. monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  17669. monthsParse: monthsParse,
  17670. longMonthsParse: monthsParse,
  17671. shortMonthsParse: monthsParse,
  17672. weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  17673. weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
  17674. weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
  17675. longDateFormat: {
  17676. LT: 'H:mm',
  17677. LTS: 'H:mm:ss',
  17678. L: 'DD.MM.YYYY',
  17679. LL: 'D. MMMM YYYY',
  17680. LLL: 'D. MMMM YYYY H:mm',
  17681. LLLL: 'dddd D. MMMM YYYY H:mm',
  17682. l: 'D. M. YYYY'
  17683. },
  17684. calendar: {
  17685. sameDay: '[dnes v] LT',
  17686. nextDay: '[zítra v] LT',
  17687. nextWeek: function nextWeek() {
  17688. switch (this.day()) {
  17689. case 0:
  17690. return '[v neděli v] LT';
  17691. case 1:
  17692. case 2:
  17693. return '[v] dddd [v] LT';
  17694. case 3:
  17695. return '[ve středu v] LT';
  17696. case 4:
  17697. return '[ve čtvrtek v] LT';
  17698. case 5:
  17699. return '[v pátek v] LT';
  17700. case 6:
  17701. return '[v sobotu v] LT';
  17702. }
  17703. },
  17704. lastDay: '[včera v] LT',
  17705. lastWeek: function lastWeek() {
  17706. switch (this.day()) {
  17707. case 0:
  17708. return '[minulou neděli v] LT';
  17709. case 1:
  17710. case 2:
  17711. return '[minulé] dddd [v] LT';
  17712. case 3:
  17713. return '[minulou středu v] LT';
  17714. case 4:
  17715. case 5:
  17716. return '[minulý] dddd [v] LT';
  17717. case 6:
  17718. return '[minulou sobotu v] LT';
  17719. }
  17720. },
  17721. sameElse: 'L'
  17722. },
  17723. relativeTime: {
  17724. future: 'za %s',
  17725. past: 'před %s',
  17726. s: translate,
  17727. ss: translate,
  17728. m: translate,
  17729. mm: translate,
  17730. h: translate,
  17731. hh: translate,
  17732. d: translate,
  17733. dd: translate,
  17734. M: translate,
  17735. MM: translate,
  17736. y: translate,
  17737. yy: translate
  17738. },
  17739. dayOfMonthOrdinalParse: /\d{1,2}\./,
  17740. ordinal: '%d.',
  17741. week: {
  17742. dow: 1,
  17743. // Monday is the first day of the week.
  17744. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17745. }
  17746. });
  17747. return cs;
  17748. });
  17749. /***/ }),
  17750. /* 133 */
  17751. /*!***********************************************************!*\
  17752. !*** D:/SWS_New/sws_new/node_modules/moment/locale/cv.js ***!
  17753. \***********************************************************/
  17754. /*! no static exports found */
  17755. /***/ (function(module, exports, __webpack_require__) {
  17756. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17757. //! moment.js locale configuration
  17758. //! locale : Chuvash [cv]
  17759. //! author : Anatoly Mironov : https://github.com/mirontoli
  17760. ;
  17761. (function (global, factory) {
  17762. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17763. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17764. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17765. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17766. })(this, function (moment) {
  17767. 'use strict';
  17768. //! moment.js locale configuration
  17769. var cv = moment.defineLocale('cv', {
  17770. months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
  17771. monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  17772. weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
  17773. weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  17774. weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  17775. longDateFormat: {
  17776. LT: 'HH:mm',
  17777. LTS: 'HH:mm:ss',
  17778. L: 'DD-MM-YYYY',
  17779. LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  17780. LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  17781. LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
  17782. },
  17783. calendar: {
  17784. sameDay: '[Паян] LT [сехетре]',
  17785. nextDay: '[Ыран] LT [сехетре]',
  17786. lastDay: '[Ӗнер] LT [сехетре]',
  17787. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  17788. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  17789. sameElse: 'L'
  17790. },
  17791. relativeTime: {
  17792. future: function future(output) {
  17793. var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
  17794. return output + affix;
  17795. },
  17796. past: '%s каялла',
  17797. s: 'пӗр-ик ҫеккунт',
  17798. ss: '%d ҫеккунт',
  17799. m: 'пӗр минут',
  17800. mm: '%d минут',
  17801. h: 'пӗр сехет',
  17802. hh: '%d сехет',
  17803. d: 'пӗр кун',
  17804. dd: '%d кун',
  17805. M: 'пӗр уйӑх',
  17806. MM: '%d уйӑх',
  17807. y: 'пӗр ҫул',
  17808. yy: '%d ҫул'
  17809. },
  17810. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  17811. ordinal: '%d-мӗш',
  17812. week: {
  17813. dow: 1,
  17814. // Monday is the first day of the week.
  17815. doy: 7 // The week that contains Jan 7th is the first week of the year.
  17816. }
  17817. });
  17818. return cv;
  17819. });
  17820. /***/ }),
  17821. /* 134 */
  17822. /*!***********************************************************!*\
  17823. !*** D:/SWS_New/sws_new/node_modules/moment/locale/cy.js ***!
  17824. \***********************************************************/
  17825. /*! no static exports found */
  17826. /***/ (function(module, exports, __webpack_require__) {
  17827. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17828. //! moment.js locale configuration
  17829. //! locale : Welsh [cy]
  17830. //! author : Robert Allen : https://github.com/robgallen
  17831. //! author : https://github.com/ryangreaves
  17832. ;
  17833. (function (global, factory) {
  17834. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17835. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17836. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17837. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17838. })(this, function (moment) {
  17839. 'use strict';
  17840. //! moment.js locale configuration
  17841. var cy = moment.defineLocale('cy', {
  17842. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  17843. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  17844. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  17845. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  17846. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  17847. weekdaysParseExact: true,
  17848. // time formats are the same as en-gb
  17849. longDateFormat: {
  17850. LT: 'HH:mm',
  17851. LTS: 'HH:mm:ss',
  17852. L: 'DD/MM/YYYY',
  17853. LL: 'D MMMM YYYY',
  17854. LLL: 'D MMMM YYYY HH:mm',
  17855. LLLL: 'dddd, D MMMM YYYY HH:mm'
  17856. },
  17857. calendar: {
  17858. sameDay: '[Heddiw am] LT',
  17859. nextDay: '[Yfory am] LT',
  17860. nextWeek: 'dddd [am] LT',
  17861. lastDay: '[Ddoe am] LT',
  17862. lastWeek: 'dddd [diwethaf am] LT',
  17863. sameElse: 'L'
  17864. },
  17865. relativeTime: {
  17866. future: 'mewn %s',
  17867. past: '%s yn ôl',
  17868. s: 'ychydig eiliadau',
  17869. ss: '%d eiliad',
  17870. m: 'munud',
  17871. mm: '%d munud',
  17872. h: 'awr',
  17873. hh: '%d awr',
  17874. d: 'diwrnod',
  17875. dd: '%d diwrnod',
  17876. M: 'mis',
  17877. MM: '%d mis',
  17878. y: 'blwyddyn',
  17879. yy: '%d flynedd'
  17880. },
  17881. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  17882. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  17883. ordinal: function ordinal(number) {
  17884. var b = number,
  17885. output = '',
  17886. lookup = ['', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed',
  17887. // 1af to 10fed
  17888. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  17889. ];
  17890. if (b > 20) {
  17891. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  17892. output = 'fed'; // not 30ain, 70ain or 90ain
  17893. } else {
  17894. output = 'ain';
  17895. }
  17896. } else if (b > 0) {
  17897. output = lookup[b];
  17898. }
  17899. return number + output;
  17900. },
  17901. week: {
  17902. dow: 1,
  17903. // Monday is the first day of the week.
  17904. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17905. }
  17906. });
  17907. return cy;
  17908. });
  17909. /***/ }),
  17910. /* 135 */
  17911. /*!***********************************************************!*\
  17912. !*** D:/SWS_New/sws_new/node_modules/moment/locale/da.js ***!
  17913. \***********************************************************/
  17914. /*! no static exports found */
  17915. /***/ (function(module, exports, __webpack_require__) {
  17916. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17917. //! moment.js locale configuration
  17918. //! locale : Danish [da]
  17919. //! author : Ulrik Nielsen : https://github.com/mrbase
  17920. ;
  17921. (function (global, factory) {
  17922. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17923. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17924. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17925. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17926. })(this, function (moment) {
  17927. 'use strict';
  17928. //! moment.js locale configuration
  17929. var da = moment.defineLocale('da', {
  17930. months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  17931. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  17932. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  17933. weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  17934. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  17935. longDateFormat: {
  17936. LT: 'HH:mm',
  17937. LTS: 'HH:mm:ss',
  17938. L: 'DD.MM.YYYY',
  17939. LL: 'D. MMMM YYYY',
  17940. LLL: 'D. MMMM YYYY HH:mm',
  17941. LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
  17942. },
  17943. calendar: {
  17944. sameDay: '[i dag kl.] LT',
  17945. nextDay: '[i morgen kl.] LT',
  17946. nextWeek: 'på dddd [kl.] LT',
  17947. lastDay: '[i går kl.] LT',
  17948. lastWeek: '[i] dddd[s kl.] LT',
  17949. sameElse: 'L'
  17950. },
  17951. relativeTime: {
  17952. future: 'om %s',
  17953. past: '%s siden',
  17954. s: 'få sekunder',
  17955. ss: '%d sekunder',
  17956. m: 'et minut',
  17957. mm: '%d minutter',
  17958. h: 'en time',
  17959. hh: '%d timer',
  17960. d: 'en dag',
  17961. dd: '%d dage',
  17962. M: 'en måned',
  17963. MM: '%d måneder',
  17964. y: 'et år',
  17965. yy: '%d år'
  17966. },
  17967. dayOfMonthOrdinalParse: /\d{1,2}\./,
  17968. ordinal: '%d.',
  17969. week: {
  17970. dow: 1,
  17971. // Monday is the first day of the week.
  17972. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17973. }
  17974. });
  17975. return da;
  17976. });
  17977. /***/ }),
  17978. /* 136 */
  17979. /*!***********************************************************!*\
  17980. !*** D:/SWS_New/sws_new/node_modules/moment/locale/de.js ***!
  17981. \***********************************************************/
  17982. /*! no static exports found */
  17983. /***/ (function(module, exports, __webpack_require__) {
  17984. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17985. //! moment.js locale configuration
  17986. //! locale : German [de]
  17987. //! author : lluchs : https://github.com/lluchs
  17988. //! author: Menelion Elensúle: https://github.com/Oire
  17989. //! author : Mikolaj Dadela : https://github.com/mik01aj
  17990. ;
  17991. (function (global, factory) {
  17992. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17993. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17994. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17995. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17996. })(this, function (moment) {
  17997. 'use strict';
  17998. //! moment.js locale configuration
  17999. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  18000. var format = {
  18001. m: ['eine Minute', 'einer Minute'],
  18002. h: ['eine Stunde', 'einer Stunde'],
  18003. d: ['ein Tag', 'einem Tag'],
  18004. dd: [number + ' Tage', number + ' Tagen'],
  18005. w: ['eine Woche', 'einer Woche'],
  18006. M: ['ein Monat', 'einem Monat'],
  18007. MM: [number + ' Monate', number + ' Monaten'],
  18008. y: ['ein Jahr', 'einem Jahr'],
  18009. yy: [number + ' Jahre', number + ' Jahren']
  18010. };
  18011. return withoutSuffix ? format[key][0] : format[key][1];
  18012. }
  18013. var de = moment.defineLocale('de', {
  18014. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  18015. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  18016. monthsParseExact: true,
  18017. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  18018. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  18019. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  18020. weekdaysParseExact: true,
  18021. longDateFormat: {
  18022. LT: 'HH:mm',
  18023. LTS: 'HH:mm:ss',
  18024. L: 'DD.MM.YYYY',
  18025. LL: 'D. MMMM YYYY',
  18026. LLL: 'D. MMMM YYYY HH:mm',
  18027. LLLL: 'dddd, D. MMMM YYYY HH:mm'
  18028. },
  18029. calendar: {
  18030. sameDay: '[heute um] LT [Uhr]',
  18031. sameElse: 'L',
  18032. nextDay: '[morgen um] LT [Uhr]',
  18033. nextWeek: 'dddd [um] LT [Uhr]',
  18034. lastDay: '[gestern um] LT [Uhr]',
  18035. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  18036. },
  18037. relativeTime: {
  18038. future: 'in %s',
  18039. past: 'vor %s',
  18040. s: 'ein paar Sekunden',
  18041. ss: '%d Sekunden',
  18042. m: processRelativeTime,
  18043. mm: '%d Minuten',
  18044. h: processRelativeTime,
  18045. hh: '%d Stunden',
  18046. d: processRelativeTime,
  18047. dd: processRelativeTime,
  18048. w: processRelativeTime,
  18049. ww: '%d Wochen',
  18050. M: processRelativeTime,
  18051. MM: processRelativeTime,
  18052. y: processRelativeTime,
  18053. yy: processRelativeTime
  18054. },
  18055. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18056. ordinal: '%d.',
  18057. week: {
  18058. dow: 1,
  18059. // Monday is the first day of the week.
  18060. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18061. }
  18062. });
  18063. return de;
  18064. });
  18065. /***/ }),
  18066. /* 137 */
  18067. /*!**************************************************************!*\
  18068. !*** D:/SWS_New/sws_new/node_modules/moment/locale/de-at.js ***!
  18069. \**************************************************************/
  18070. /*! no static exports found */
  18071. /***/ (function(module, exports, __webpack_require__) {
  18072. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18073. //! moment.js locale configuration
  18074. //! locale : German (Austria) [de-at]
  18075. //! author : lluchs : https://github.com/lluchs
  18076. //! author: Menelion Elensúle: https://github.com/Oire
  18077. //! author : Martin Groller : https://github.com/MadMG
  18078. //! author : Mikolaj Dadela : https://github.com/mik01aj
  18079. ;
  18080. (function (global, factory) {
  18081. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18082. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18083. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18084. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18085. })(this, function (moment) {
  18086. 'use strict';
  18087. //! moment.js locale configuration
  18088. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  18089. var format = {
  18090. m: ['eine Minute', 'einer Minute'],
  18091. h: ['eine Stunde', 'einer Stunde'],
  18092. d: ['ein Tag', 'einem Tag'],
  18093. dd: [number + ' Tage', number + ' Tagen'],
  18094. w: ['eine Woche', 'einer Woche'],
  18095. M: ['ein Monat', 'einem Monat'],
  18096. MM: [number + ' Monate', number + ' Monaten'],
  18097. y: ['ein Jahr', 'einem Jahr'],
  18098. yy: [number + ' Jahre', number + ' Jahren']
  18099. };
  18100. return withoutSuffix ? format[key][0] : format[key][1];
  18101. }
  18102. var deAt = moment.defineLocale('de-at', {
  18103. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  18104. monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  18105. monthsParseExact: true,
  18106. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  18107. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  18108. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  18109. weekdaysParseExact: true,
  18110. longDateFormat: {
  18111. LT: 'HH:mm',
  18112. LTS: 'HH:mm:ss',
  18113. L: 'DD.MM.YYYY',
  18114. LL: 'D. MMMM YYYY',
  18115. LLL: 'D. MMMM YYYY HH:mm',
  18116. LLLL: 'dddd, D. MMMM YYYY HH:mm'
  18117. },
  18118. calendar: {
  18119. sameDay: '[heute um] LT [Uhr]',
  18120. sameElse: 'L',
  18121. nextDay: '[morgen um] LT [Uhr]',
  18122. nextWeek: 'dddd [um] LT [Uhr]',
  18123. lastDay: '[gestern um] LT [Uhr]',
  18124. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  18125. },
  18126. relativeTime: {
  18127. future: 'in %s',
  18128. past: 'vor %s',
  18129. s: 'ein paar Sekunden',
  18130. ss: '%d Sekunden',
  18131. m: processRelativeTime,
  18132. mm: '%d Minuten',
  18133. h: processRelativeTime,
  18134. hh: '%d Stunden',
  18135. d: processRelativeTime,
  18136. dd: processRelativeTime,
  18137. w: processRelativeTime,
  18138. ww: '%d Wochen',
  18139. M: processRelativeTime,
  18140. MM: processRelativeTime,
  18141. y: processRelativeTime,
  18142. yy: processRelativeTime
  18143. },
  18144. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18145. ordinal: '%d.',
  18146. week: {
  18147. dow: 1,
  18148. // Monday is the first day of the week.
  18149. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18150. }
  18151. });
  18152. return deAt;
  18153. });
  18154. /***/ }),
  18155. /* 138 */
  18156. /*!**************************************************************!*\
  18157. !*** D:/SWS_New/sws_new/node_modules/moment/locale/de-ch.js ***!
  18158. \**************************************************************/
  18159. /*! no static exports found */
  18160. /***/ (function(module, exports, __webpack_require__) {
  18161. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18162. //! moment.js locale configuration
  18163. //! locale : German (Switzerland) [de-ch]
  18164. //! author : sschueller : https://github.com/sschueller
  18165. ;
  18166. (function (global, factory) {
  18167. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18168. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18169. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18170. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18171. })(this, function (moment) {
  18172. 'use strict';
  18173. //! moment.js locale configuration
  18174. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  18175. var format = {
  18176. m: ['eine Minute', 'einer Minute'],
  18177. h: ['eine Stunde', 'einer Stunde'],
  18178. d: ['ein Tag', 'einem Tag'],
  18179. dd: [number + ' Tage', number + ' Tagen'],
  18180. w: ['eine Woche', 'einer Woche'],
  18181. M: ['ein Monat', 'einem Monat'],
  18182. MM: [number + ' Monate', number + ' Monaten'],
  18183. y: ['ein Jahr', 'einem Jahr'],
  18184. yy: [number + ' Jahre', number + ' Jahren']
  18185. };
  18186. return withoutSuffix ? format[key][0] : format[key][1];
  18187. }
  18188. var deCh = moment.defineLocale('de-ch', {
  18189. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  18190. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  18191. monthsParseExact: true,
  18192. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  18193. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  18194. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  18195. weekdaysParseExact: true,
  18196. longDateFormat: {
  18197. LT: 'HH:mm',
  18198. LTS: 'HH:mm:ss',
  18199. L: 'DD.MM.YYYY',
  18200. LL: 'D. MMMM YYYY',
  18201. LLL: 'D. MMMM YYYY HH:mm',
  18202. LLLL: 'dddd, D. MMMM YYYY HH:mm'
  18203. },
  18204. calendar: {
  18205. sameDay: '[heute um] LT [Uhr]',
  18206. sameElse: 'L',
  18207. nextDay: '[morgen um] LT [Uhr]',
  18208. nextWeek: 'dddd [um] LT [Uhr]',
  18209. lastDay: '[gestern um] LT [Uhr]',
  18210. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  18211. },
  18212. relativeTime: {
  18213. future: 'in %s',
  18214. past: 'vor %s',
  18215. s: 'ein paar Sekunden',
  18216. ss: '%d Sekunden',
  18217. m: processRelativeTime,
  18218. mm: '%d Minuten',
  18219. h: processRelativeTime,
  18220. hh: '%d Stunden',
  18221. d: processRelativeTime,
  18222. dd: processRelativeTime,
  18223. w: processRelativeTime,
  18224. ww: '%d Wochen',
  18225. M: processRelativeTime,
  18226. MM: processRelativeTime,
  18227. y: processRelativeTime,
  18228. yy: processRelativeTime
  18229. },
  18230. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18231. ordinal: '%d.',
  18232. week: {
  18233. dow: 1,
  18234. // Monday is the first day of the week.
  18235. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18236. }
  18237. });
  18238. return deCh;
  18239. });
  18240. /***/ }),
  18241. /* 139 */
  18242. /*!***********************************************************!*\
  18243. !*** D:/SWS_New/sws_new/node_modules/moment/locale/dv.js ***!
  18244. \***********************************************************/
  18245. /*! no static exports found */
  18246. /***/ (function(module, exports, __webpack_require__) {
  18247. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18248. //! moment.js locale configuration
  18249. //! locale : Maldivian [dv]
  18250. //! author : Jawish Hameed : https://github.com/jawish
  18251. ;
  18252. (function (global, factory) {
  18253. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18254. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18255. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18256. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18257. })(this, function (moment) {
  18258. 'use strict';
  18259. //! moment.js locale configuration
  18260. var months = ['ޖެނުއަރީ', 'ފެބްރުއަރީ', 'މާރިޗު', 'އޭޕްރީލު', 'މޭ', 'ޖޫން', 'ޖުލައި', 'އޯގަސްޓު', 'ސެޕްޓެމްބަރު', 'އޮކްޓޯބަރު', 'ނޮވެމްބަރު', 'ޑިސެމްބަރު'],
  18261. weekdays = ['އާދިއްތަ', 'ހޯމަ', 'އަންގާރަ', 'ބުދަ', 'ބުރާސްފަތި', 'ހުކުރު', 'ހޮނިހިރު'];
  18262. var dv = moment.defineLocale('dv', {
  18263. months: months,
  18264. monthsShort: months,
  18265. weekdays: weekdays,
  18266. weekdaysShort: weekdays,
  18267. weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  18268. longDateFormat: {
  18269. LT: 'HH:mm',
  18270. LTS: 'HH:mm:ss',
  18271. L: 'D/M/YYYY',
  18272. LL: 'D MMMM YYYY',
  18273. LLL: 'D MMMM YYYY HH:mm',
  18274. LLLL: 'dddd D MMMM YYYY HH:mm'
  18275. },
  18276. meridiemParse: /މކ|މފ/,
  18277. isPM: function isPM(input) {
  18278. return 'މފ' === input;
  18279. },
  18280. meridiem: function meridiem(hour, minute, isLower) {
  18281. if (hour < 12) {
  18282. return 'މކ';
  18283. } else {
  18284. return 'މފ';
  18285. }
  18286. },
  18287. calendar: {
  18288. sameDay: '[މިއަދު] LT',
  18289. nextDay: '[މާދަމާ] LT',
  18290. nextWeek: 'dddd LT',
  18291. lastDay: '[އިއްޔެ] LT',
  18292. lastWeek: '[ފާއިތުވި] dddd LT',
  18293. sameElse: 'L'
  18294. },
  18295. relativeTime: {
  18296. future: 'ތެރޭގައި %s',
  18297. past: 'ކުރިން %s',
  18298. s: 'ސިކުންތުކޮޅެއް',
  18299. ss: 'd% ސިކުންތު',
  18300. m: 'މިނިޓެއް',
  18301. mm: 'މިނިޓު %d',
  18302. h: 'ގަޑިއިރެއް',
  18303. hh: 'ގަޑިއިރު %d',
  18304. d: 'ދުވަހެއް',
  18305. dd: 'ދުވަސް %d',
  18306. M: 'މަހެއް',
  18307. MM: 'މަސް %d',
  18308. y: 'އަހަރެއް',
  18309. yy: 'އަހަރު %d'
  18310. },
  18311. preparse: function preparse(string) {
  18312. return string.replace(/،/g, ',');
  18313. },
  18314. postformat: function postformat(string) {
  18315. return string.replace(/,/g, '،');
  18316. },
  18317. week: {
  18318. dow: 7,
  18319. // Sunday is the first day of the week.
  18320. doy: 12 // The week that contains Jan 12th is the first week of the year.
  18321. }
  18322. });
  18323. return dv;
  18324. });
  18325. /***/ }),
  18326. /* 140 */
  18327. /*!***********************************************************!*\
  18328. !*** D:/SWS_New/sws_new/node_modules/moment/locale/el.js ***!
  18329. \***********************************************************/
  18330. /*! no static exports found */
  18331. /***/ (function(module, exports, __webpack_require__) {
  18332. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18333. //! moment.js locale configuration
  18334. //! locale : Greek [el]
  18335. //! author : Aggelos Karalias : https://github.com/mehiel
  18336. ;
  18337. (function (global, factory) {
  18338. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18339. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18340. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18341. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18342. })(this, function (moment) {
  18343. 'use strict';
  18344. //! moment.js locale configuration
  18345. function isFunction(input) {
  18346. return typeof Function !== 'undefined' && input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  18347. }
  18348. var el = moment.defineLocale('el', {
  18349. monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  18350. monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  18351. months: function months(momentToFormat, format) {
  18352. if (!momentToFormat) {
  18353. return this._monthsNominativeEl;
  18354. } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) {
  18355. // if there is a day number before 'MMMM'
  18356. return this._monthsGenitiveEl[momentToFormat.month()];
  18357. } else {
  18358. return this._monthsNominativeEl[momentToFormat.month()];
  18359. }
  18360. },
  18361. monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  18362. weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  18363. weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  18364. weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  18365. meridiem: function meridiem(hours, minutes, isLower) {
  18366. if (hours > 11) {
  18367. return isLower ? 'μμ' : 'ΜΜ';
  18368. } else {
  18369. return isLower ? 'πμ' : 'ΠΜ';
  18370. }
  18371. },
  18372. isPM: function isPM(input) {
  18373. return (input + '').toLowerCase()[0] === 'μ';
  18374. },
  18375. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  18376. longDateFormat: {
  18377. LT: 'h:mm A',
  18378. LTS: 'h:mm:ss A',
  18379. L: 'DD/MM/YYYY',
  18380. LL: 'D MMMM YYYY',
  18381. LLL: 'D MMMM YYYY h:mm A',
  18382. LLLL: 'dddd, D MMMM YYYY h:mm A'
  18383. },
  18384. calendarEl: {
  18385. sameDay: '[Σήμερα {}] LT',
  18386. nextDay: '[Αύριο {}] LT',
  18387. nextWeek: 'dddd [{}] LT',
  18388. lastDay: '[Χθες {}] LT',
  18389. lastWeek: function lastWeek() {
  18390. switch (this.day()) {
  18391. case 6:
  18392. return '[το προηγούμενο] dddd [{}] LT';
  18393. default:
  18394. return '[την προηγούμενη] dddd [{}] LT';
  18395. }
  18396. },
  18397. sameElse: 'L'
  18398. },
  18399. calendar: function calendar(key, mom) {
  18400. var output = this._calendarEl[key],
  18401. hours = mom && mom.hours();
  18402. if (isFunction(output)) {
  18403. output = output.apply(mom);
  18404. }
  18405. return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
  18406. },
  18407. relativeTime: {
  18408. future: 'σε %s',
  18409. past: '%s πριν',
  18410. s: 'λίγα δευτερόλεπτα',
  18411. ss: '%d δευτερόλεπτα',
  18412. m: 'ένα λεπτό',
  18413. mm: '%d λεπτά',
  18414. h: 'μία ώρα',
  18415. hh: '%d ώρες',
  18416. d: 'μία μέρα',
  18417. dd: '%d μέρες',
  18418. M: 'ένας μήνας',
  18419. MM: '%d μήνες',
  18420. y: 'ένας χρόνος',
  18421. yy: '%d χρόνια'
  18422. },
  18423. dayOfMonthOrdinalParse: /\d{1,2}η/,
  18424. ordinal: '%dη',
  18425. week: {
  18426. dow: 1,
  18427. // Monday is the first day of the week.
  18428. doy: 4 // The week that contains Jan 4st is the first week of the year.
  18429. }
  18430. });
  18431. return el;
  18432. });
  18433. /***/ }),
  18434. /* 141 */
  18435. /*!**************************************************************!*\
  18436. !*** D:/SWS_New/sws_new/node_modules/moment/locale/en-au.js ***!
  18437. \**************************************************************/
  18438. /*! no static exports found */
  18439. /***/ (function(module, exports, __webpack_require__) {
  18440. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18441. //! moment.js locale configuration
  18442. //! locale : English (Australia) [en-au]
  18443. //! author : Jared Morse : https://github.com/jarcoal
  18444. ;
  18445. (function (global, factory) {
  18446. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18447. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18448. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18449. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18450. })(this, function (moment) {
  18451. 'use strict';
  18452. //! moment.js locale configuration
  18453. var enAu = moment.defineLocale('en-au', {
  18454. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  18455. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  18456. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  18457. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  18458. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  18459. longDateFormat: {
  18460. LT: 'h:mm A',
  18461. LTS: 'h:mm:ss A',
  18462. L: 'DD/MM/YYYY',
  18463. LL: 'D MMMM YYYY',
  18464. LLL: 'D MMMM YYYY h:mm A',
  18465. LLLL: 'dddd, D MMMM YYYY h:mm A'
  18466. },
  18467. calendar: {
  18468. sameDay: '[Today at] LT',
  18469. nextDay: '[Tomorrow at] LT',
  18470. nextWeek: 'dddd [at] LT',
  18471. lastDay: '[Yesterday at] LT',
  18472. lastWeek: '[Last] dddd [at] LT',
  18473. sameElse: 'L'
  18474. },
  18475. relativeTime: {
  18476. future: 'in %s',
  18477. past: '%s ago',
  18478. s: 'a few seconds',
  18479. ss: '%d seconds',
  18480. m: 'a minute',
  18481. mm: '%d minutes',
  18482. h: 'an hour',
  18483. hh: '%d hours',
  18484. d: 'a day',
  18485. dd: '%d days',
  18486. M: 'a month',
  18487. MM: '%d months',
  18488. y: 'a year',
  18489. yy: '%d years'
  18490. },
  18491. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  18492. ordinal: function ordinal(number) {
  18493. var b = number % 10,
  18494. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  18495. return number + output;
  18496. },
  18497. week: {
  18498. dow: 0,
  18499. // Sunday is the first day of the week.
  18500. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18501. }
  18502. });
  18503. return enAu;
  18504. });
  18505. /***/ }),
  18506. /* 142 */
  18507. /*!**************************************************************!*\
  18508. !*** D:/SWS_New/sws_new/node_modules/moment/locale/en-ca.js ***!
  18509. \**************************************************************/
  18510. /*! no static exports found */
  18511. /***/ (function(module, exports, __webpack_require__) {
  18512. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18513. //! moment.js locale configuration
  18514. //! locale : English (Canada) [en-ca]
  18515. //! author : Jonathan Abourbih : https://github.com/jonbca
  18516. ;
  18517. (function (global, factory) {
  18518. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18519. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18520. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18521. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18522. })(this, function (moment) {
  18523. 'use strict';
  18524. //! moment.js locale configuration
  18525. var enCa = moment.defineLocale('en-ca', {
  18526. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  18527. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  18528. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  18529. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  18530. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  18531. longDateFormat: {
  18532. LT: 'h:mm A',
  18533. LTS: 'h:mm:ss A',
  18534. L: 'YYYY-MM-DD',
  18535. LL: 'MMMM D, YYYY',
  18536. LLL: 'MMMM D, YYYY h:mm A',
  18537. LLLL: 'dddd, MMMM D, YYYY h:mm A'
  18538. },
  18539. calendar: {
  18540. sameDay: '[Today at] LT',
  18541. nextDay: '[Tomorrow at] LT',
  18542. nextWeek: 'dddd [at] LT',
  18543. lastDay: '[Yesterday at] LT',
  18544. lastWeek: '[Last] dddd [at] LT',
  18545. sameElse: 'L'
  18546. },
  18547. relativeTime: {
  18548. future: 'in %s',
  18549. past: '%s ago',
  18550. s: 'a few seconds',
  18551. ss: '%d seconds',
  18552. m: 'a minute',
  18553. mm: '%d minutes',
  18554. h: 'an hour',
  18555. hh: '%d hours',
  18556. d: 'a day',
  18557. dd: '%d days',
  18558. M: 'a month',
  18559. MM: '%d months',
  18560. y: 'a year',
  18561. yy: '%d years'
  18562. },
  18563. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  18564. ordinal: function ordinal(number) {
  18565. var b = number % 10,
  18566. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  18567. return number + output;
  18568. }
  18569. });
  18570. return enCa;
  18571. });
  18572. /***/ }),
  18573. /* 143 */
  18574. /*!**************************************************************!*\
  18575. !*** D:/SWS_New/sws_new/node_modules/moment/locale/en-gb.js ***!
  18576. \**************************************************************/
  18577. /*! no static exports found */
  18578. /***/ (function(module, exports, __webpack_require__) {
  18579. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18580. //! moment.js locale configuration
  18581. //! locale : English (United Kingdom) [en-gb]
  18582. //! author : Chris Gedrim : https://github.com/chrisgedrim
  18583. ;
  18584. (function (global, factory) {
  18585. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18586. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18587. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18588. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18589. })(this, function (moment) {
  18590. 'use strict';
  18591. //! moment.js locale configuration
  18592. var enGb = moment.defineLocale('en-gb', {
  18593. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  18594. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  18595. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  18596. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  18597. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  18598. longDateFormat: {
  18599. LT: 'HH:mm',
  18600. LTS: 'HH:mm:ss',
  18601. L: 'DD/MM/YYYY',
  18602. LL: 'D MMMM YYYY',
  18603. LLL: 'D MMMM YYYY HH:mm',
  18604. LLLL: 'dddd, D MMMM YYYY HH:mm'
  18605. },
  18606. calendar: {
  18607. sameDay: '[Today at] LT',
  18608. nextDay: '[Tomorrow at] LT',
  18609. nextWeek: 'dddd [at] LT',
  18610. lastDay: '[Yesterday at] LT',
  18611. lastWeek: '[Last] dddd [at] LT',
  18612. sameElse: 'L'
  18613. },
  18614. relativeTime: {
  18615. future: 'in %s',
  18616. past: '%s ago',
  18617. s: 'a few seconds',
  18618. ss: '%d seconds',
  18619. m: 'a minute',
  18620. mm: '%d minutes',
  18621. h: 'an hour',
  18622. hh: '%d hours',
  18623. d: 'a day',
  18624. dd: '%d days',
  18625. M: 'a month',
  18626. MM: '%d months',
  18627. y: 'a year',
  18628. yy: '%d years'
  18629. },
  18630. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  18631. ordinal: function ordinal(number) {
  18632. var b = number % 10,
  18633. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  18634. return number + output;
  18635. },
  18636. week: {
  18637. dow: 1,
  18638. // Monday is the first day of the week.
  18639. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18640. }
  18641. });
  18642. return enGb;
  18643. });
  18644. /***/ }),
  18645. /* 144 */
  18646. /*!**************************************************************!*\
  18647. !*** D:/SWS_New/sws_new/node_modules/moment/locale/en-ie.js ***!
  18648. \**************************************************************/
  18649. /*! no static exports found */
  18650. /***/ (function(module, exports, __webpack_require__) {
  18651. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18652. //! moment.js locale configuration
  18653. //! locale : English (Ireland) [en-ie]
  18654. //! author : Chris Cartlidge : https://github.com/chriscartlidge
  18655. ;
  18656. (function (global, factory) {
  18657. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18658. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18659. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18660. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18661. })(this, function (moment) {
  18662. 'use strict';
  18663. //! moment.js locale configuration
  18664. var enIe = moment.defineLocale('en-ie', {
  18665. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  18666. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  18667. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  18668. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  18669. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  18670. longDateFormat: {
  18671. LT: 'HH:mm',
  18672. LTS: 'HH:mm:ss',
  18673. L: 'DD/MM/YYYY',
  18674. LL: 'D MMMM YYYY',
  18675. LLL: 'D MMMM YYYY HH:mm',
  18676. LLLL: 'dddd D MMMM YYYY HH:mm'
  18677. },
  18678. calendar: {
  18679. sameDay: '[Today at] LT',
  18680. nextDay: '[Tomorrow at] LT',
  18681. nextWeek: 'dddd [at] LT',
  18682. lastDay: '[Yesterday at] LT',
  18683. lastWeek: '[Last] dddd [at] LT',
  18684. sameElse: 'L'
  18685. },
  18686. relativeTime: {
  18687. future: 'in %s',
  18688. past: '%s ago',
  18689. s: 'a few seconds',
  18690. ss: '%d seconds',
  18691. m: 'a minute',
  18692. mm: '%d minutes',
  18693. h: 'an hour',
  18694. hh: '%d hours',
  18695. d: 'a day',
  18696. dd: '%d days',
  18697. M: 'a month',
  18698. MM: '%d months',
  18699. y: 'a year',
  18700. yy: '%d years'
  18701. },
  18702. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  18703. ordinal: function ordinal(number) {
  18704. var b = number % 10,
  18705. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  18706. return number + output;
  18707. },
  18708. week: {
  18709. dow: 1,
  18710. // Monday is the first day of the week.
  18711. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18712. }
  18713. });
  18714. return enIe;
  18715. });
  18716. /***/ }),
  18717. /* 145 */
  18718. /*!**************************************************************!*\
  18719. !*** D:/SWS_New/sws_new/node_modules/moment/locale/en-il.js ***!
  18720. \**************************************************************/
  18721. /*! no static exports found */
  18722. /***/ (function(module, exports, __webpack_require__) {
  18723. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18724. //! moment.js locale configuration
  18725. //! locale : English (Israel) [en-il]
  18726. //! author : Chris Gedrim : https://github.com/chrisgedrim
  18727. ;
  18728. (function (global, factory) {
  18729. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18730. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18731. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18732. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18733. })(this, function (moment) {
  18734. 'use strict';
  18735. //! moment.js locale configuration
  18736. var enIl = moment.defineLocale('en-il', {
  18737. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  18738. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  18739. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  18740. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  18741. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  18742. longDateFormat: {
  18743. LT: 'HH:mm',
  18744. LTS: 'HH:mm:ss',
  18745. L: 'DD/MM/YYYY',
  18746. LL: 'D MMMM YYYY',
  18747. LLL: 'D MMMM YYYY HH:mm',
  18748. LLLL: 'dddd, D MMMM YYYY HH:mm'
  18749. },
  18750. calendar: {
  18751. sameDay: '[Today at] LT',
  18752. nextDay: '[Tomorrow at] LT',
  18753. nextWeek: 'dddd [at] LT',
  18754. lastDay: '[Yesterday at] LT',
  18755. lastWeek: '[Last] dddd [at] LT',
  18756. sameElse: 'L'
  18757. },
  18758. relativeTime: {
  18759. future: 'in %s',
  18760. past: '%s ago',
  18761. s: 'a few seconds',
  18762. ss: '%d seconds',
  18763. m: 'a minute',
  18764. mm: '%d minutes',
  18765. h: 'an hour',
  18766. hh: '%d hours',
  18767. d: 'a day',
  18768. dd: '%d days',
  18769. M: 'a month',
  18770. MM: '%d months',
  18771. y: 'a year',
  18772. yy: '%d years'
  18773. },
  18774. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  18775. ordinal: function ordinal(number) {
  18776. var b = number % 10,
  18777. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  18778. return number + output;
  18779. }
  18780. });
  18781. return enIl;
  18782. });
  18783. /***/ }),
  18784. /* 146 */
  18785. /*!**************************************************************!*\
  18786. !*** D:/SWS_New/sws_new/node_modules/moment/locale/en-in.js ***!
  18787. \**************************************************************/
  18788. /*! no static exports found */
  18789. /***/ (function(module, exports, __webpack_require__) {
  18790. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18791. //! moment.js locale configuration
  18792. //! locale : English (India) [en-in]
  18793. //! author : Jatin Agrawal : https://github.com/jatinag22
  18794. ;
  18795. (function (global, factory) {
  18796. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18797. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18798. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18799. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18800. })(this, function (moment) {
  18801. 'use strict';
  18802. //! moment.js locale configuration
  18803. var enIn = moment.defineLocale('en-in', {
  18804. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  18805. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  18806. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  18807. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  18808. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  18809. longDateFormat: {
  18810. LT: 'h:mm A',
  18811. LTS: 'h:mm:ss A',
  18812. L: 'DD/MM/YYYY',
  18813. LL: 'D MMMM YYYY',
  18814. LLL: 'D MMMM YYYY h:mm A',
  18815. LLLL: 'dddd, D MMMM YYYY h:mm A'
  18816. },
  18817. calendar: {
  18818. sameDay: '[Today at] LT',
  18819. nextDay: '[Tomorrow at] LT',
  18820. nextWeek: 'dddd [at] LT',
  18821. lastDay: '[Yesterday at] LT',
  18822. lastWeek: '[Last] dddd [at] LT',
  18823. sameElse: 'L'
  18824. },
  18825. relativeTime: {
  18826. future: 'in %s',
  18827. past: '%s ago',
  18828. s: 'a few seconds',
  18829. ss: '%d seconds',
  18830. m: 'a minute',
  18831. mm: '%d minutes',
  18832. h: 'an hour',
  18833. hh: '%d hours',
  18834. d: 'a day',
  18835. dd: '%d days',
  18836. M: 'a month',
  18837. MM: '%d months',
  18838. y: 'a year',
  18839. yy: '%d years'
  18840. },
  18841. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  18842. ordinal: function ordinal(number) {
  18843. var b = number % 10,
  18844. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  18845. return number + output;
  18846. },
  18847. week: {
  18848. dow: 0,
  18849. // Sunday is the first day of the week.
  18850. doy: 6 // The week that contains Jan 1st is the first week of the year.
  18851. }
  18852. });
  18853. return enIn;
  18854. });
  18855. /***/ }),
  18856. /* 147 */
  18857. /*!**************************************************************!*\
  18858. !*** D:/SWS_New/sws_new/node_modules/moment/locale/en-nz.js ***!
  18859. \**************************************************************/
  18860. /*! no static exports found */
  18861. /***/ (function(module, exports, __webpack_require__) {
  18862. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18863. //! moment.js locale configuration
  18864. //! locale : English (New Zealand) [en-nz]
  18865. //! author : Luke McGregor : https://github.com/lukemcgregor
  18866. ;
  18867. (function (global, factory) {
  18868. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18869. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18870. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18871. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18872. })(this, function (moment) {
  18873. 'use strict';
  18874. //! moment.js locale configuration
  18875. var enNz = moment.defineLocale('en-nz', {
  18876. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  18877. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  18878. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  18879. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  18880. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  18881. longDateFormat: {
  18882. LT: 'h:mm A',
  18883. LTS: 'h:mm:ss A',
  18884. L: 'DD/MM/YYYY',
  18885. LL: 'D MMMM YYYY',
  18886. LLL: 'D MMMM YYYY h:mm A',
  18887. LLLL: 'dddd, D MMMM YYYY h:mm A'
  18888. },
  18889. calendar: {
  18890. sameDay: '[Today at] LT',
  18891. nextDay: '[Tomorrow at] LT',
  18892. nextWeek: 'dddd [at] LT',
  18893. lastDay: '[Yesterday at] LT',
  18894. lastWeek: '[Last] dddd [at] LT',
  18895. sameElse: 'L'
  18896. },
  18897. relativeTime: {
  18898. future: 'in %s',
  18899. past: '%s ago',
  18900. s: 'a few seconds',
  18901. ss: '%d seconds',
  18902. m: 'a minute',
  18903. mm: '%d minutes',
  18904. h: 'an hour',
  18905. hh: '%d hours',
  18906. d: 'a day',
  18907. dd: '%d days',
  18908. M: 'a month',
  18909. MM: '%d months',
  18910. y: 'a year',
  18911. yy: '%d years'
  18912. },
  18913. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  18914. ordinal: function ordinal(number) {
  18915. var b = number % 10,
  18916. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  18917. return number + output;
  18918. },
  18919. week: {
  18920. dow: 1,
  18921. // Monday is the first day of the week.
  18922. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18923. }
  18924. });
  18925. return enNz;
  18926. });
  18927. /***/ }),
  18928. /* 148 */
  18929. /*!**************************************************************!*\
  18930. !*** D:/SWS_New/sws_new/node_modules/moment/locale/en-sg.js ***!
  18931. \**************************************************************/
  18932. /*! no static exports found */
  18933. /***/ (function(module, exports, __webpack_require__) {
  18934. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18935. //! moment.js locale configuration
  18936. //! locale : English (Singapore) [en-sg]
  18937. //! author : Matthew Castrillon-Madrigal : https://github.com/techdimension
  18938. ;
  18939. (function (global, factory) {
  18940. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18941. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18942. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18943. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18944. })(this, function (moment) {
  18945. 'use strict';
  18946. //! moment.js locale configuration
  18947. var enSg = moment.defineLocale('en-sg', {
  18948. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  18949. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  18950. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  18951. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  18952. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  18953. longDateFormat: {
  18954. LT: 'HH:mm',
  18955. LTS: 'HH:mm:ss',
  18956. L: 'DD/MM/YYYY',
  18957. LL: 'D MMMM YYYY',
  18958. LLL: 'D MMMM YYYY HH:mm',
  18959. LLLL: 'dddd, D MMMM YYYY HH:mm'
  18960. },
  18961. calendar: {
  18962. sameDay: '[Today at] LT',
  18963. nextDay: '[Tomorrow at] LT',
  18964. nextWeek: 'dddd [at] LT',
  18965. lastDay: '[Yesterday at] LT',
  18966. lastWeek: '[Last] dddd [at] LT',
  18967. sameElse: 'L'
  18968. },
  18969. relativeTime: {
  18970. future: 'in %s',
  18971. past: '%s ago',
  18972. s: 'a few seconds',
  18973. ss: '%d seconds',
  18974. m: 'a minute',
  18975. mm: '%d minutes',
  18976. h: 'an hour',
  18977. hh: '%d hours',
  18978. d: 'a day',
  18979. dd: '%d days',
  18980. M: 'a month',
  18981. MM: '%d months',
  18982. y: 'a year',
  18983. yy: '%d years'
  18984. },
  18985. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  18986. ordinal: function ordinal(number) {
  18987. var b = number % 10,
  18988. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  18989. return number + output;
  18990. },
  18991. week: {
  18992. dow: 1,
  18993. // Monday is the first day of the week.
  18994. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18995. }
  18996. });
  18997. return enSg;
  18998. });
  18999. /***/ }),
  19000. /* 149 */
  19001. /*!***********************************************************!*\
  19002. !*** D:/SWS_New/sws_new/node_modules/moment/locale/eo.js ***!
  19003. \***********************************************************/
  19004. /*! no static exports found */
  19005. /***/ (function(module, exports, __webpack_require__) {
  19006. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19007. //! moment.js locale configuration
  19008. //! locale : Esperanto [eo]
  19009. //! author : Colin Dean : https://github.com/colindean
  19010. //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
  19011. //! comment : miestasmia corrected the translation by colindean
  19012. //! comment : Vivakvo corrected the translation by colindean and miestasmia
  19013. ;
  19014. (function (global, factory) {
  19015. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19016. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19017. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19018. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19019. })(this, function (moment) {
  19020. 'use strict';
  19021. //! moment.js locale configuration
  19022. var eo = moment.defineLocale('eo', {
  19023. months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  19024. monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
  19025. weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  19026. weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  19027. weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  19028. longDateFormat: {
  19029. LT: 'HH:mm',
  19030. LTS: 'HH:mm:ss',
  19031. L: 'YYYY-MM-DD',
  19032. LL: '[la] D[-an de] MMMM, YYYY',
  19033. LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
  19034. LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
  19035. llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm'
  19036. },
  19037. meridiemParse: /[ap]\.t\.m/i,
  19038. isPM: function isPM(input) {
  19039. return input.charAt(0).toLowerCase() === 'p';
  19040. },
  19041. meridiem: function meridiem(hours, minutes, isLower) {
  19042. if (hours > 11) {
  19043. return isLower ? 'p.t.m.' : 'P.T.M.';
  19044. } else {
  19045. return isLower ? 'a.t.m.' : 'A.T.M.';
  19046. }
  19047. },
  19048. calendar: {
  19049. sameDay: '[Hodiaŭ je] LT',
  19050. nextDay: '[Morgaŭ je] LT',
  19051. nextWeek: 'dddd[n je] LT',
  19052. lastDay: '[Hieraŭ je] LT',
  19053. lastWeek: '[pasintan] dddd[n je] LT',
  19054. sameElse: 'L'
  19055. },
  19056. relativeTime: {
  19057. future: 'post %s',
  19058. past: 'antaŭ %s',
  19059. s: 'kelkaj sekundoj',
  19060. ss: '%d sekundoj',
  19061. m: 'unu minuto',
  19062. mm: '%d minutoj',
  19063. h: 'unu horo',
  19064. hh: '%d horoj',
  19065. d: 'unu tago',
  19066. //ne 'diurno', ĉar estas uzita por proksimumo
  19067. dd: '%d tagoj',
  19068. M: 'unu monato',
  19069. MM: '%d monatoj',
  19070. y: 'unu jaro',
  19071. yy: '%d jaroj'
  19072. },
  19073. dayOfMonthOrdinalParse: /\d{1,2}a/,
  19074. ordinal: '%da',
  19075. week: {
  19076. dow: 1,
  19077. // Monday is the first day of the week.
  19078. doy: 7 // The week that contains Jan 7th is the first week of the year.
  19079. }
  19080. });
  19081. return eo;
  19082. });
  19083. /***/ }),
  19084. /* 150 */
  19085. /*!***********************************************************!*\
  19086. !*** D:/SWS_New/sws_new/node_modules/moment/locale/es.js ***!
  19087. \***********************************************************/
  19088. /*! no static exports found */
  19089. /***/ (function(module, exports, __webpack_require__) {
  19090. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19091. //! moment.js locale configuration
  19092. //! locale : Spanish [es]
  19093. //! author : Julio Napurí : https://github.com/julionc
  19094. ;
  19095. (function (global, factory) {
  19096. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19097. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19098. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19099. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19100. })(this, function (moment) {
  19101. 'use strict';
  19102. //! moment.js locale configuration
  19103. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  19104. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  19105. monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
  19106. monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  19107. var es = moment.defineLocale('es', {
  19108. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  19109. monthsShort: function monthsShort(m, format) {
  19110. if (!m) {
  19111. return monthsShortDot;
  19112. } else if (/-MMM-/.test(format)) {
  19113. return _monthsShort[m.month()];
  19114. } else {
  19115. return monthsShortDot[m.month()];
  19116. }
  19117. },
  19118. monthsRegex: monthsRegex,
  19119. monthsShortRegex: monthsRegex,
  19120. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  19121. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  19122. monthsParse: monthsParse,
  19123. longMonthsParse: monthsParse,
  19124. shortMonthsParse: monthsParse,
  19125. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  19126. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  19127. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  19128. weekdaysParseExact: true,
  19129. longDateFormat: {
  19130. LT: 'H:mm',
  19131. LTS: 'H:mm:ss',
  19132. L: 'DD/MM/YYYY',
  19133. LL: 'D [de] MMMM [de] YYYY',
  19134. LLL: 'D [de] MMMM [de] YYYY H:mm',
  19135. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
  19136. },
  19137. calendar: {
  19138. sameDay: function sameDay() {
  19139. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19140. },
  19141. nextDay: function nextDay() {
  19142. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19143. },
  19144. nextWeek: function nextWeek() {
  19145. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19146. },
  19147. lastDay: function lastDay() {
  19148. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19149. },
  19150. lastWeek: function lastWeek() {
  19151. return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19152. },
  19153. sameElse: 'L'
  19154. },
  19155. relativeTime: {
  19156. future: 'en %s',
  19157. past: 'hace %s',
  19158. s: 'unos segundos',
  19159. ss: '%d segundos',
  19160. m: 'un minuto',
  19161. mm: '%d minutos',
  19162. h: 'una hora',
  19163. hh: '%d horas',
  19164. d: 'un día',
  19165. dd: '%d días',
  19166. w: 'una semana',
  19167. ww: '%d semanas',
  19168. M: 'un mes',
  19169. MM: '%d meses',
  19170. y: 'un año',
  19171. yy: '%d años'
  19172. },
  19173. dayOfMonthOrdinalParse: /\d{1,2}º/,
  19174. ordinal: '%dº',
  19175. week: {
  19176. dow: 1,
  19177. // Monday is the first day of the week.
  19178. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19179. },
  19180. invalidDate: 'Fecha inválida'
  19181. });
  19182. return es;
  19183. });
  19184. /***/ }),
  19185. /* 151 */
  19186. /*!**************************************************************!*\
  19187. !*** D:/SWS_New/sws_new/node_modules/moment/locale/es-do.js ***!
  19188. \**************************************************************/
  19189. /*! no static exports found */
  19190. /***/ (function(module, exports, __webpack_require__) {
  19191. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19192. //! moment.js locale configuration
  19193. //! locale : Spanish (Dominican Republic) [es-do]
  19194. ;
  19195. (function (global, factory) {
  19196. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19197. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19198. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19199. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19200. })(this, function (moment) {
  19201. 'use strict';
  19202. //! moment.js locale configuration
  19203. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  19204. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  19205. monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
  19206. monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  19207. var esDo = moment.defineLocale('es-do', {
  19208. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  19209. monthsShort: function monthsShort(m, format) {
  19210. if (!m) {
  19211. return monthsShortDot;
  19212. } else if (/-MMM-/.test(format)) {
  19213. return _monthsShort[m.month()];
  19214. } else {
  19215. return monthsShortDot[m.month()];
  19216. }
  19217. },
  19218. monthsRegex: monthsRegex,
  19219. monthsShortRegex: monthsRegex,
  19220. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  19221. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  19222. monthsParse: monthsParse,
  19223. longMonthsParse: monthsParse,
  19224. shortMonthsParse: monthsParse,
  19225. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  19226. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  19227. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  19228. weekdaysParseExact: true,
  19229. longDateFormat: {
  19230. LT: 'h:mm A',
  19231. LTS: 'h:mm:ss A',
  19232. L: 'DD/MM/YYYY',
  19233. LL: 'D [de] MMMM [de] YYYY',
  19234. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  19235. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
  19236. },
  19237. calendar: {
  19238. sameDay: function sameDay() {
  19239. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19240. },
  19241. nextDay: function nextDay() {
  19242. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19243. },
  19244. nextWeek: function nextWeek() {
  19245. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19246. },
  19247. lastDay: function lastDay() {
  19248. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19249. },
  19250. lastWeek: function lastWeek() {
  19251. return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19252. },
  19253. sameElse: 'L'
  19254. },
  19255. relativeTime: {
  19256. future: 'en %s',
  19257. past: 'hace %s',
  19258. s: 'unos segundos',
  19259. ss: '%d segundos',
  19260. m: 'un minuto',
  19261. mm: '%d minutos',
  19262. h: 'una hora',
  19263. hh: '%d horas',
  19264. d: 'un día',
  19265. dd: '%d días',
  19266. w: 'una semana',
  19267. ww: '%d semanas',
  19268. M: 'un mes',
  19269. MM: '%d meses',
  19270. y: 'un año',
  19271. yy: '%d años'
  19272. },
  19273. dayOfMonthOrdinalParse: /\d{1,2}º/,
  19274. ordinal: '%dº',
  19275. week: {
  19276. dow: 1,
  19277. // Monday is the first day of the week.
  19278. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19279. }
  19280. });
  19281. return esDo;
  19282. });
  19283. /***/ }),
  19284. /* 152 */
  19285. /*!**************************************************************!*\
  19286. !*** D:/SWS_New/sws_new/node_modules/moment/locale/es-mx.js ***!
  19287. \**************************************************************/
  19288. /*! no static exports found */
  19289. /***/ (function(module, exports, __webpack_require__) {
  19290. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19291. //! moment.js locale configuration
  19292. //! locale : Spanish (Mexico) [es-mx]
  19293. //! author : JC Franco : https://github.com/jcfranco
  19294. ;
  19295. (function (global, factory) {
  19296. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19297. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19298. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19299. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19300. })(this, function (moment) {
  19301. 'use strict';
  19302. //! moment.js locale configuration
  19303. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  19304. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  19305. monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
  19306. monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  19307. var esMx = moment.defineLocale('es-mx', {
  19308. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  19309. monthsShort: function monthsShort(m, format) {
  19310. if (!m) {
  19311. return monthsShortDot;
  19312. } else if (/-MMM-/.test(format)) {
  19313. return _monthsShort[m.month()];
  19314. } else {
  19315. return monthsShortDot[m.month()];
  19316. }
  19317. },
  19318. monthsRegex: monthsRegex,
  19319. monthsShortRegex: monthsRegex,
  19320. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  19321. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  19322. monthsParse: monthsParse,
  19323. longMonthsParse: monthsParse,
  19324. shortMonthsParse: monthsParse,
  19325. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  19326. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  19327. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  19328. weekdaysParseExact: true,
  19329. longDateFormat: {
  19330. LT: 'H:mm',
  19331. LTS: 'H:mm:ss',
  19332. L: 'DD/MM/YYYY',
  19333. LL: 'D [de] MMMM [de] YYYY',
  19334. LLL: 'D [de] MMMM [de] YYYY H:mm',
  19335. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
  19336. },
  19337. calendar: {
  19338. sameDay: function sameDay() {
  19339. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19340. },
  19341. nextDay: function nextDay() {
  19342. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19343. },
  19344. nextWeek: function nextWeek() {
  19345. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19346. },
  19347. lastDay: function lastDay() {
  19348. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19349. },
  19350. lastWeek: function lastWeek() {
  19351. return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19352. },
  19353. sameElse: 'L'
  19354. },
  19355. relativeTime: {
  19356. future: 'en %s',
  19357. past: 'hace %s',
  19358. s: 'unos segundos',
  19359. ss: '%d segundos',
  19360. m: 'un minuto',
  19361. mm: '%d minutos',
  19362. h: 'una hora',
  19363. hh: '%d horas',
  19364. d: 'un día',
  19365. dd: '%d días',
  19366. w: 'una semana',
  19367. ww: '%d semanas',
  19368. M: 'un mes',
  19369. MM: '%d meses',
  19370. y: 'un año',
  19371. yy: '%d años'
  19372. },
  19373. dayOfMonthOrdinalParse: /\d{1,2}º/,
  19374. ordinal: '%dº',
  19375. week: {
  19376. dow: 0,
  19377. // Sunday is the first day of the week.
  19378. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19379. },
  19380. invalidDate: 'Fecha inválida'
  19381. });
  19382. return esMx;
  19383. });
  19384. /***/ }),
  19385. /* 153 */
  19386. /*!**************************************************************!*\
  19387. !*** D:/SWS_New/sws_new/node_modules/moment/locale/es-us.js ***!
  19388. \**************************************************************/
  19389. /*! no static exports found */
  19390. /***/ (function(module, exports, __webpack_require__) {
  19391. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19392. //! moment.js locale configuration
  19393. //! locale : Spanish (United States) [es-us]
  19394. //! author : bustta : https://github.com/bustta
  19395. //! author : chrisrodz : https://github.com/chrisrodz
  19396. ;
  19397. (function (global, factory) {
  19398. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19399. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19400. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19401. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19402. })(this, function (moment) {
  19403. 'use strict';
  19404. //! moment.js locale configuration
  19405. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  19406. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  19407. monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
  19408. monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  19409. var esUs = moment.defineLocale('es-us', {
  19410. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  19411. monthsShort: function monthsShort(m, format) {
  19412. if (!m) {
  19413. return monthsShortDot;
  19414. } else if (/-MMM-/.test(format)) {
  19415. return _monthsShort[m.month()];
  19416. } else {
  19417. return monthsShortDot[m.month()];
  19418. }
  19419. },
  19420. monthsRegex: monthsRegex,
  19421. monthsShortRegex: monthsRegex,
  19422. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  19423. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  19424. monthsParse: monthsParse,
  19425. longMonthsParse: monthsParse,
  19426. shortMonthsParse: monthsParse,
  19427. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  19428. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  19429. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  19430. weekdaysParseExact: true,
  19431. longDateFormat: {
  19432. LT: 'h:mm A',
  19433. LTS: 'h:mm:ss A',
  19434. L: 'MM/DD/YYYY',
  19435. LL: 'D [de] MMMM [de] YYYY',
  19436. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  19437. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
  19438. },
  19439. calendar: {
  19440. sameDay: function sameDay() {
  19441. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19442. },
  19443. nextDay: function nextDay() {
  19444. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19445. },
  19446. nextWeek: function nextWeek() {
  19447. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19448. },
  19449. lastDay: function lastDay() {
  19450. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19451. },
  19452. lastWeek: function lastWeek() {
  19453. return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  19454. },
  19455. sameElse: 'L'
  19456. },
  19457. relativeTime: {
  19458. future: 'en %s',
  19459. past: 'hace %s',
  19460. s: 'unos segundos',
  19461. ss: '%d segundos',
  19462. m: 'un minuto',
  19463. mm: '%d minutos',
  19464. h: 'una hora',
  19465. hh: '%d horas',
  19466. d: 'un día',
  19467. dd: '%d días',
  19468. w: 'una semana',
  19469. ww: '%d semanas',
  19470. M: 'un mes',
  19471. MM: '%d meses',
  19472. y: 'un año',
  19473. yy: '%d años'
  19474. },
  19475. dayOfMonthOrdinalParse: /\d{1,2}º/,
  19476. ordinal: '%dº',
  19477. week: {
  19478. dow: 0,
  19479. // Sunday is the first day of the week.
  19480. doy: 6 // The week that contains Jan 6th is the first week of the year.
  19481. }
  19482. });
  19483. return esUs;
  19484. });
  19485. /***/ }),
  19486. /* 154 */
  19487. /*!***********************************************************!*\
  19488. !*** D:/SWS_New/sws_new/node_modules/moment/locale/et.js ***!
  19489. \***********************************************************/
  19490. /*! no static exports found */
  19491. /***/ (function(module, exports, __webpack_require__) {
  19492. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19493. //! moment.js locale configuration
  19494. //! locale : Estonian [et]
  19495. //! author : Henry Kehlmann : https://github.com/madhenry
  19496. //! improvements : Illimar Tambek : https://github.com/ragulka
  19497. ;
  19498. (function (global, factory) {
  19499. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19500. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19501. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19502. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19503. })(this, function (moment) {
  19504. 'use strict';
  19505. //! moment.js locale configuration
  19506. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  19507. var format = {
  19508. s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  19509. ss: [number + 'sekundi', number + 'sekundit'],
  19510. m: ['ühe minuti', 'üks minut'],
  19511. mm: [number + ' minuti', number + ' minutit'],
  19512. h: ['ühe tunni', 'tund aega', 'üks tund'],
  19513. hh: [number + ' tunni', number + ' tundi'],
  19514. d: ['ühe päeva', 'üks päev'],
  19515. M: ['kuu aja', 'kuu aega', 'üks kuu'],
  19516. MM: [number + ' kuu', number + ' kuud'],
  19517. y: ['ühe aasta', 'aasta', 'üks aasta'],
  19518. yy: [number + ' aasta', number + ' aastat']
  19519. };
  19520. if (withoutSuffix) {
  19521. return format[key][2] ? format[key][2] : format[key][1];
  19522. }
  19523. return isFuture ? format[key][0] : format[key][1];
  19524. }
  19525. var et = moment.defineLocale('et', {
  19526. months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  19527. monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  19528. weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  19529. weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
  19530. weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
  19531. longDateFormat: {
  19532. LT: 'H:mm',
  19533. LTS: 'H:mm:ss',
  19534. L: 'DD.MM.YYYY',
  19535. LL: 'D. MMMM YYYY',
  19536. LLL: 'D. MMMM YYYY H:mm',
  19537. LLLL: 'dddd, D. MMMM YYYY H:mm'
  19538. },
  19539. calendar: {
  19540. sameDay: '[Täna,] LT',
  19541. nextDay: '[Homme,] LT',
  19542. nextWeek: '[Järgmine] dddd LT',
  19543. lastDay: '[Eile,] LT',
  19544. lastWeek: '[Eelmine] dddd LT',
  19545. sameElse: 'L'
  19546. },
  19547. relativeTime: {
  19548. future: '%s pärast',
  19549. past: '%s tagasi',
  19550. s: processRelativeTime,
  19551. ss: processRelativeTime,
  19552. m: processRelativeTime,
  19553. mm: processRelativeTime,
  19554. h: processRelativeTime,
  19555. hh: processRelativeTime,
  19556. d: processRelativeTime,
  19557. dd: '%d päeva',
  19558. M: processRelativeTime,
  19559. MM: processRelativeTime,
  19560. y: processRelativeTime,
  19561. yy: processRelativeTime
  19562. },
  19563. dayOfMonthOrdinalParse: /\d{1,2}\./,
  19564. ordinal: '%d.',
  19565. week: {
  19566. dow: 1,
  19567. // Monday is the first day of the week.
  19568. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19569. }
  19570. });
  19571. return et;
  19572. });
  19573. /***/ }),
  19574. /* 155 */
  19575. /*!***********************************************************!*\
  19576. !*** D:/SWS_New/sws_new/node_modules/moment/locale/eu.js ***!
  19577. \***********************************************************/
  19578. /*! no static exports found */
  19579. /***/ (function(module, exports, __webpack_require__) {
  19580. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19581. //! moment.js locale configuration
  19582. //! locale : Basque [eu]
  19583. //! author : Eneko Illarramendi : https://github.com/eillarra
  19584. ;
  19585. (function (global, factory) {
  19586. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19587. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19588. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19589. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19590. })(this, function (moment) {
  19591. 'use strict';
  19592. //! moment.js locale configuration
  19593. var eu = moment.defineLocale('eu', {
  19594. months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  19595. monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  19596. monthsParseExact: true,
  19597. weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  19598. weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
  19599. weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
  19600. weekdaysParseExact: true,
  19601. longDateFormat: {
  19602. LT: 'HH:mm',
  19603. LTS: 'HH:mm:ss',
  19604. L: 'YYYY-MM-DD',
  19605. LL: 'YYYY[ko] MMMM[ren] D[a]',
  19606. LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  19607. LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  19608. l: 'YYYY-M-D',
  19609. ll: 'YYYY[ko] MMM D[a]',
  19610. lll: 'YYYY[ko] MMM D[a] HH:mm',
  19611. llll: 'ddd, YYYY[ko] MMM D[a] HH:mm'
  19612. },
  19613. calendar: {
  19614. sameDay: '[gaur] LT[etan]',
  19615. nextDay: '[bihar] LT[etan]',
  19616. nextWeek: 'dddd LT[etan]',
  19617. lastDay: '[atzo] LT[etan]',
  19618. lastWeek: '[aurreko] dddd LT[etan]',
  19619. sameElse: 'L'
  19620. },
  19621. relativeTime: {
  19622. future: '%s barru',
  19623. past: 'duela %s',
  19624. s: 'segundo batzuk',
  19625. ss: '%d segundo',
  19626. m: 'minutu bat',
  19627. mm: '%d minutu',
  19628. h: 'ordu bat',
  19629. hh: '%d ordu',
  19630. d: 'egun bat',
  19631. dd: '%d egun',
  19632. M: 'hilabete bat',
  19633. MM: '%d hilabete',
  19634. y: 'urte bat',
  19635. yy: '%d urte'
  19636. },
  19637. dayOfMonthOrdinalParse: /\d{1,2}\./,
  19638. ordinal: '%d.',
  19639. week: {
  19640. dow: 1,
  19641. // Monday is the first day of the week.
  19642. doy: 7 // The week that contains Jan 7th is the first week of the year.
  19643. }
  19644. });
  19645. return eu;
  19646. });
  19647. /***/ }),
  19648. /* 156 */
  19649. /*!***********************************************************!*\
  19650. !*** D:/SWS_New/sws_new/node_modules/moment/locale/fa.js ***!
  19651. \***********************************************************/
  19652. /*! no static exports found */
  19653. /***/ (function(module, exports, __webpack_require__) {
  19654. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19655. //! moment.js locale configuration
  19656. //! locale : Persian [fa]
  19657. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  19658. ;
  19659. (function (global, factory) {
  19660. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19661. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19662. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19663. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19664. })(this, function (moment) {
  19665. 'use strict';
  19666. //! moment.js locale configuration
  19667. var symbolMap = {
  19668. 1: '۱',
  19669. 2: '۲',
  19670. 3: '۳',
  19671. 4: '۴',
  19672. 5: '۵',
  19673. 6: '۶',
  19674. 7: '۷',
  19675. 8: '۸',
  19676. 9: '۹',
  19677. 0: '۰'
  19678. },
  19679. numberMap = {
  19680. '۱': '1',
  19681. '۲': '2',
  19682. '۳': '3',
  19683. '۴': '4',
  19684. '۵': '5',
  19685. '۶': '6',
  19686. '۷': '7',
  19687. '۸': '8',
  19688. '۹': '9',
  19689. '۰': '0'
  19690. };
  19691. var fa = moment.defineLocale('fa', {
  19692. months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  19693. monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  19694. weekdays: "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split('_'),
  19695. weekdaysShort: "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split('_'),
  19696. weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
  19697. weekdaysParseExact: true,
  19698. longDateFormat: {
  19699. LT: 'HH:mm',
  19700. LTS: 'HH:mm:ss',
  19701. L: 'DD/MM/YYYY',
  19702. LL: 'D MMMM YYYY',
  19703. LLL: 'D MMMM YYYY HH:mm',
  19704. LLLL: 'dddd, D MMMM YYYY HH:mm'
  19705. },
  19706. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  19707. isPM: function isPM(input) {
  19708. return /بعد از ظهر/.test(input);
  19709. },
  19710. meridiem: function meridiem(hour, minute, isLower) {
  19711. if (hour < 12) {
  19712. return 'قبل از ظهر';
  19713. } else {
  19714. return 'بعد از ظهر';
  19715. }
  19716. },
  19717. calendar: {
  19718. sameDay: '[امروز ساعت] LT',
  19719. nextDay: '[فردا ساعت] LT',
  19720. nextWeek: 'dddd [ساعت] LT',
  19721. lastDay: '[دیروز ساعت] LT',
  19722. lastWeek: 'dddd [پیش] [ساعت] LT',
  19723. sameElse: 'L'
  19724. },
  19725. relativeTime: {
  19726. future: 'در %s',
  19727. past: '%s پیش',
  19728. s: 'چند ثانیه',
  19729. ss: '%d ثانیه',
  19730. m: 'یک دقیقه',
  19731. mm: '%d دقیقه',
  19732. h: 'یک ساعت',
  19733. hh: '%d ساعت',
  19734. d: 'یک روز',
  19735. dd: '%d روز',
  19736. M: 'یک ماه',
  19737. MM: '%d ماه',
  19738. y: 'یک سال',
  19739. yy: '%d سال'
  19740. },
  19741. preparse: function preparse(string) {
  19742. return string.replace(/[۰-۹]/g, function (match) {
  19743. return numberMap[match];
  19744. }).replace(/،/g, ',');
  19745. },
  19746. postformat: function postformat(string) {
  19747. return string.replace(/\d/g, function (match) {
  19748. return symbolMap[match];
  19749. }).replace(/,/g, '،');
  19750. },
  19751. dayOfMonthOrdinalParse: /\d{1,2}م/,
  19752. ordinal: '%dم',
  19753. week: {
  19754. dow: 6,
  19755. // Saturday is the first day of the week.
  19756. doy: 12 // The week that contains Jan 12th is the first week of the year.
  19757. }
  19758. });
  19759. return fa;
  19760. });
  19761. /***/ }),
  19762. /* 157 */
  19763. /*!***********************************************************!*\
  19764. !*** D:/SWS_New/sws_new/node_modules/moment/locale/fi.js ***!
  19765. \***********************************************************/
  19766. /*! no static exports found */
  19767. /***/ (function(module, exports, __webpack_require__) {
  19768. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19769. //! moment.js locale configuration
  19770. //! locale : Finnish [fi]
  19771. //! author : Tarmo Aidantausta : https://github.com/bleadof
  19772. ;
  19773. (function (global, factory) {
  19774. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19775. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19776. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19777. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19778. })(this, function (moment) {
  19779. 'use strict';
  19780. //! moment.js locale configuration
  19781. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
  19782. numbersFuture = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', numbersPast[7], numbersPast[8], numbersPast[9]];
  19783. function translate(number, withoutSuffix, key, isFuture) {
  19784. var result = '';
  19785. switch (key) {
  19786. case 's':
  19787. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  19788. case 'ss':
  19789. result = isFuture ? 'sekunnin' : 'sekuntia';
  19790. break;
  19791. case 'm':
  19792. return isFuture ? 'minuutin' : 'minuutti';
  19793. case 'mm':
  19794. result = isFuture ? 'minuutin' : 'minuuttia';
  19795. break;
  19796. case 'h':
  19797. return isFuture ? 'tunnin' : 'tunti';
  19798. case 'hh':
  19799. result = isFuture ? 'tunnin' : 'tuntia';
  19800. break;
  19801. case 'd':
  19802. return isFuture ? 'päivän' : 'päivä';
  19803. case 'dd':
  19804. result = isFuture ? 'päivän' : 'päivää';
  19805. break;
  19806. case 'M':
  19807. return isFuture ? 'kuukauden' : 'kuukausi';
  19808. case 'MM':
  19809. result = isFuture ? 'kuukauden' : 'kuukautta';
  19810. break;
  19811. case 'y':
  19812. return isFuture ? 'vuoden' : 'vuosi';
  19813. case 'yy':
  19814. result = isFuture ? 'vuoden' : 'vuotta';
  19815. break;
  19816. }
  19817. result = verbalNumber(number, isFuture) + ' ' + result;
  19818. return result;
  19819. }
  19820. function verbalNumber(number, isFuture) {
  19821. return number < 10 ? isFuture ? numbersFuture[number] : numbersPast[number] : number;
  19822. }
  19823. var fi = moment.defineLocale('fi', {
  19824. months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  19825. monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  19826. weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  19827. weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
  19828. weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
  19829. longDateFormat: {
  19830. LT: 'HH.mm',
  19831. LTS: 'HH.mm.ss',
  19832. L: 'DD.MM.YYYY',
  19833. LL: 'Do MMMM[ta] YYYY',
  19834. LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
  19835. LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  19836. l: 'D.M.YYYY',
  19837. ll: 'Do MMM YYYY',
  19838. lll: 'Do MMM YYYY, [klo] HH.mm',
  19839. llll: 'ddd, Do MMM YYYY, [klo] HH.mm'
  19840. },
  19841. calendar: {
  19842. sameDay: '[tänään] [klo] LT',
  19843. nextDay: '[huomenna] [klo] LT',
  19844. nextWeek: 'dddd [klo] LT',
  19845. lastDay: '[eilen] [klo] LT',
  19846. lastWeek: '[viime] dddd[na] [klo] LT',
  19847. sameElse: 'L'
  19848. },
  19849. relativeTime: {
  19850. future: '%s päästä',
  19851. past: '%s sitten',
  19852. s: translate,
  19853. ss: translate,
  19854. m: translate,
  19855. mm: translate,
  19856. h: translate,
  19857. hh: translate,
  19858. d: translate,
  19859. dd: translate,
  19860. M: translate,
  19861. MM: translate,
  19862. y: translate,
  19863. yy: translate
  19864. },
  19865. dayOfMonthOrdinalParse: /\d{1,2}\./,
  19866. ordinal: '%d.',
  19867. week: {
  19868. dow: 1,
  19869. // Monday is the first day of the week.
  19870. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19871. }
  19872. });
  19873. return fi;
  19874. });
  19875. /***/ }),
  19876. /* 158 */
  19877. /*!************************************************************!*\
  19878. !*** D:/SWS_New/sws_new/node_modules/moment/locale/fil.js ***!
  19879. \************************************************************/
  19880. /*! no static exports found */
  19881. /***/ (function(module, exports, __webpack_require__) {
  19882. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19883. //! moment.js locale configuration
  19884. //! locale : Filipino [fil]
  19885. //! author : Dan Hagman : https://github.com/hagmandan
  19886. //! author : Matthew Co : https://github.com/matthewdeeco
  19887. ;
  19888. (function (global, factory) {
  19889. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19890. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19891. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19892. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19893. })(this, function (moment) {
  19894. 'use strict';
  19895. //! moment.js locale configuration
  19896. var fil = moment.defineLocale('fil', {
  19897. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  19898. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  19899. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  19900. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  19901. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  19902. longDateFormat: {
  19903. LT: 'HH:mm',
  19904. LTS: 'HH:mm:ss',
  19905. L: 'MM/D/YYYY',
  19906. LL: 'MMMM D, YYYY',
  19907. LLL: 'MMMM D, YYYY HH:mm',
  19908. LLLL: 'dddd, MMMM DD, YYYY HH:mm'
  19909. },
  19910. calendar: {
  19911. sameDay: 'LT [ngayong araw]',
  19912. nextDay: '[Bukas ng] LT',
  19913. nextWeek: 'LT [sa susunod na] dddd',
  19914. lastDay: 'LT [kahapon]',
  19915. lastWeek: 'LT [noong nakaraang] dddd',
  19916. sameElse: 'L'
  19917. },
  19918. relativeTime: {
  19919. future: 'sa loob ng %s',
  19920. past: '%s ang nakalipas',
  19921. s: 'ilang segundo',
  19922. ss: '%d segundo',
  19923. m: 'isang minuto',
  19924. mm: '%d minuto',
  19925. h: 'isang oras',
  19926. hh: '%d oras',
  19927. d: 'isang araw',
  19928. dd: '%d araw',
  19929. M: 'isang buwan',
  19930. MM: '%d buwan',
  19931. y: 'isang taon',
  19932. yy: '%d taon'
  19933. },
  19934. dayOfMonthOrdinalParse: /\d{1,2}/,
  19935. ordinal: function ordinal(number) {
  19936. return number;
  19937. },
  19938. week: {
  19939. dow: 1,
  19940. // Monday is the first day of the week.
  19941. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19942. }
  19943. });
  19944. return fil;
  19945. });
  19946. /***/ }),
  19947. /* 159 */
  19948. /*!***********************************************************!*\
  19949. !*** D:/SWS_New/sws_new/node_modules/moment/locale/fo.js ***!
  19950. \***********************************************************/
  19951. /*! no static exports found */
  19952. /***/ (function(module, exports, __webpack_require__) {
  19953. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19954. //! moment.js locale configuration
  19955. //! locale : Faroese [fo]
  19956. //! author : Ragnar Johannesen : https://github.com/ragnar123
  19957. //! author : Kristian Sakarisson : https://github.com/sakarisson
  19958. ;
  19959. (function (global, factory) {
  19960. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19961. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19962. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19963. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19964. })(this, function (moment) {
  19965. 'use strict';
  19966. //! moment.js locale configuration
  19967. var fo = moment.defineLocale('fo', {
  19968. months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  19969. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  19970. weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  19971. weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  19972. weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
  19973. longDateFormat: {
  19974. LT: 'HH:mm',
  19975. LTS: 'HH:mm:ss',
  19976. L: 'DD/MM/YYYY',
  19977. LL: 'D MMMM YYYY',
  19978. LLL: 'D MMMM YYYY HH:mm',
  19979. LLLL: 'dddd D. MMMM, YYYY HH:mm'
  19980. },
  19981. calendar: {
  19982. sameDay: '[Í dag kl.] LT',
  19983. nextDay: '[Í morgin kl.] LT',
  19984. nextWeek: 'dddd [kl.] LT',
  19985. lastDay: '[Í gjár kl.] LT',
  19986. lastWeek: '[síðstu] dddd [kl] LT',
  19987. sameElse: 'L'
  19988. },
  19989. relativeTime: {
  19990. future: 'um %s',
  19991. past: '%s síðani',
  19992. s: 'fá sekund',
  19993. ss: '%d sekundir',
  19994. m: 'ein minuttur',
  19995. mm: '%d minuttir',
  19996. h: 'ein tími',
  19997. hh: '%d tímar',
  19998. d: 'ein dagur',
  19999. dd: '%d dagar',
  20000. M: 'ein mánaður',
  20001. MM: '%d mánaðir',
  20002. y: 'eitt ár',
  20003. yy: '%d ár'
  20004. },
  20005. dayOfMonthOrdinalParse: /\d{1,2}\./,
  20006. ordinal: '%d.',
  20007. week: {
  20008. dow: 1,
  20009. // Monday is the first day of the week.
  20010. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20011. }
  20012. });
  20013. return fo;
  20014. });
  20015. /***/ }),
  20016. /* 160 */
  20017. /*!***********************************************************!*\
  20018. !*** D:/SWS_New/sws_new/node_modules/moment/locale/fr.js ***!
  20019. \***********************************************************/
  20020. /*! no static exports found */
  20021. /***/ (function(module, exports, __webpack_require__) {
  20022. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20023. //! moment.js locale configuration
  20024. //! locale : French [fr]
  20025. //! author : John Fischer : https://github.com/jfroffice
  20026. ;
  20027. (function (global, factory) {
  20028. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20029. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20030. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20031. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20032. })(this, function (moment) {
  20033. 'use strict';
  20034. //! moment.js locale configuration
  20035. var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  20036. monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
  20037. monthsRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  20038. monthsParse = [/^janv/i, /^févr/i, /^mars/i, /^avr/i, /^mai/i, /^juin/i, /^juil/i, /^août/i, /^sept/i, /^oct/i, /^nov/i, /^déc/i];
  20039. var fr = moment.defineLocale('fr', {
  20040. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  20041. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  20042. monthsRegex: monthsRegex,
  20043. monthsShortRegex: monthsRegex,
  20044. monthsStrictRegex: monthsStrictRegex,
  20045. monthsShortStrictRegex: monthsShortStrictRegex,
  20046. monthsParse: monthsParse,
  20047. longMonthsParse: monthsParse,
  20048. shortMonthsParse: monthsParse,
  20049. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  20050. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  20051. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  20052. weekdaysParseExact: true,
  20053. longDateFormat: {
  20054. LT: 'HH:mm',
  20055. LTS: 'HH:mm:ss',
  20056. L: 'DD/MM/YYYY',
  20057. LL: 'D MMMM YYYY',
  20058. LLL: 'D MMMM YYYY HH:mm',
  20059. LLLL: 'dddd D MMMM YYYY HH:mm'
  20060. },
  20061. calendar: {
  20062. sameDay: '[Aujourd’hui à] LT',
  20063. nextDay: '[Demain à] LT',
  20064. nextWeek: 'dddd [à] LT',
  20065. lastDay: '[Hier à] LT',
  20066. lastWeek: 'dddd [dernier à] LT',
  20067. sameElse: 'L'
  20068. },
  20069. relativeTime: {
  20070. future: 'dans %s',
  20071. past: 'il y a %s',
  20072. s: 'quelques secondes',
  20073. ss: '%d secondes',
  20074. m: 'une minute',
  20075. mm: '%d minutes',
  20076. h: 'une heure',
  20077. hh: '%d heures',
  20078. d: 'un jour',
  20079. dd: '%d jours',
  20080. w: 'une semaine',
  20081. ww: '%d semaines',
  20082. M: 'un mois',
  20083. MM: '%d mois',
  20084. y: 'un an',
  20085. yy: '%d ans'
  20086. },
  20087. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  20088. ordinal: function ordinal(number, period) {
  20089. switch (period) {
  20090. // TODO: Return 'e' when day of month > 1. Move this case inside
  20091. // block for masculine words below.
  20092. // See https://github.com/moment/moment/issues/3375
  20093. case 'D':
  20094. return number + (number === 1 ? 'er' : '');
  20095. // Words with masculine grammatical gender: mois, trimestre, jour
  20096. default:
  20097. case 'M':
  20098. case 'Q':
  20099. case 'DDD':
  20100. case 'd':
  20101. return number + (number === 1 ? 'er' : 'e');
  20102. // Words with feminine grammatical gender: semaine
  20103. case 'w':
  20104. case 'W':
  20105. return number + (number === 1 ? 're' : 'e');
  20106. }
  20107. },
  20108. week: {
  20109. dow: 1,
  20110. // Monday is the first day of the week.
  20111. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20112. }
  20113. });
  20114. return fr;
  20115. });
  20116. /***/ }),
  20117. /* 161 */
  20118. /*!**************************************************************!*\
  20119. !*** D:/SWS_New/sws_new/node_modules/moment/locale/fr-ca.js ***!
  20120. \**************************************************************/
  20121. /*! no static exports found */
  20122. /***/ (function(module, exports, __webpack_require__) {
  20123. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20124. //! moment.js locale configuration
  20125. //! locale : French (Canada) [fr-ca]
  20126. //! author : Jonathan Abourbih : https://github.com/jonbca
  20127. ;
  20128. (function (global, factory) {
  20129. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20130. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20131. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20132. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20133. })(this, function (moment) {
  20134. 'use strict';
  20135. //! moment.js locale configuration
  20136. var frCa = moment.defineLocale('fr-ca', {
  20137. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  20138. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  20139. monthsParseExact: true,
  20140. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  20141. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  20142. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  20143. weekdaysParseExact: true,
  20144. longDateFormat: {
  20145. LT: 'HH:mm',
  20146. LTS: 'HH:mm:ss',
  20147. L: 'YYYY-MM-DD',
  20148. LL: 'D MMMM YYYY',
  20149. LLL: 'D MMMM YYYY HH:mm',
  20150. LLLL: 'dddd D MMMM YYYY HH:mm'
  20151. },
  20152. calendar: {
  20153. sameDay: '[Aujourd’hui à] LT',
  20154. nextDay: '[Demain à] LT',
  20155. nextWeek: 'dddd [à] LT',
  20156. lastDay: '[Hier à] LT',
  20157. lastWeek: 'dddd [dernier à] LT',
  20158. sameElse: 'L'
  20159. },
  20160. relativeTime: {
  20161. future: 'dans %s',
  20162. past: 'il y a %s',
  20163. s: 'quelques secondes',
  20164. ss: '%d secondes',
  20165. m: 'une minute',
  20166. mm: '%d minutes',
  20167. h: 'une heure',
  20168. hh: '%d heures',
  20169. d: 'un jour',
  20170. dd: '%d jours',
  20171. M: 'un mois',
  20172. MM: '%d mois',
  20173. y: 'un an',
  20174. yy: '%d ans'
  20175. },
  20176. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  20177. ordinal: function ordinal(number, period) {
  20178. switch (period) {
  20179. // Words with masculine grammatical gender: mois, trimestre, jour
  20180. default:
  20181. case 'M':
  20182. case 'Q':
  20183. case 'D':
  20184. case 'DDD':
  20185. case 'd':
  20186. return number + (number === 1 ? 'er' : 'e');
  20187. // Words with feminine grammatical gender: semaine
  20188. case 'w':
  20189. case 'W':
  20190. return number + (number === 1 ? 're' : 'e');
  20191. }
  20192. }
  20193. });
  20194. return frCa;
  20195. });
  20196. /***/ }),
  20197. /* 162 */
  20198. /*!**************************************************************!*\
  20199. !*** D:/SWS_New/sws_new/node_modules/moment/locale/fr-ch.js ***!
  20200. \**************************************************************/
  20201. /*! no static exports found */
  20202. /***/ (function(module, exports, __webpack_require__) {
  20203. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20204. //! moment.js locale configuration
  20205. //! locale : French (Switzerland) [fr-ch]
  20206. //! author : Gaspard Bucher : https://github.com/gaspard
  20207. ;
  20208. (function (global, factory) {
  20209. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20210. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20211. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20212. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20213. })(this, function (moment) {
  20214. 'use strict';
  20215. //! moment.js locale configuration
  20216. var frCh = moment.defineLocale('fr-ch', {
  20217. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  20218. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  20219. monthsParseExact: true,
  20220. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  20221. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  20222. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  20223. weekdaysParseExact: true,
  20224. longDateFormat: {
  20225. LT: 'HH:mm',
  20226. LTS: 'HH:mm:ss',
  20227. L: 'DD.MM.YYYY',
  20228. LL: 'D MMMM YYYY',
  20229. LLL: 'D MMMM YYYY HH:mm',
  20230. LLLL: 'dddd D MMMM YYYY HH:mm'
  20231. },
  20232. calendar: {
  20233. sameDay: '[Aujourd’hui à] LT',
  20234. nextDay: '[Demain à] LT',
  20235. nextWeek: 'dddd [à] LT',
  20236. lastDay: '[Hier à] LT',
  20237. lastWeek: 'dddd [dernier à] LT',
  20238. sameElse: 'L'
  20239. },
  20240. relativeTime: {
  20241. future: 'dans %s',
  20242. past: 'il y a %s',
  20243. s: 'quelques secondes',
  20244. ss: '%d secondes',
  20245. m: 'une minute',
  20246. mm: '%d minutes',
  20247. h: 'une heure',
  20248. hh: '%d heures',
  20249. d: 'un jour',
  20250. dd: '%d jours',
  20251. M: 'un mois',
  20252. MM: '%d mois',
  20253. y: 'un an',
  20254. yy: '%d ans'
  20255. },
  20256. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  20257. ordinal: function ordinal(number, period) {
  20258. switch (period) {
  20259. // Words with masculine grammatical gender: mois, trimestre, jour
  20260. default:
  20261. case 'M':
  20262. case 'Q':
  20263. case 'D':
  20264. case 'DDD':
  20265. case 'd':
  20266. return number + (number === 1 ? 'er' : 'e');
  20267. // Words with feminine grammatical gender: semaine
  20268. case 'w':
  20269. case 'W':
  20270. return number + (number === 1 ? 're' : 'e');
  20271. }
  20272. },
  20273. week: {
  20274. dow: 1,
  20275. // Monday is the first day of the week.
  20276. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20277. }
  20278. });
  20279. return frCh;
  20280. });
  20281. /***/ }),
  20282. /* 163 */
  20283. /*!***********************************************************!*\
  20284. !*** D:/SWS_New/sws_new/node_modules/moment/locale/fy.js ***!
  20285. \***********************************************************/
  20286. /*! no static exports found */
  20287. /***/ (function(module, exports, __webpack_require__) {
  20288. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20289. //! moment.js locale configuration
  20290. //! locale : Frisian [fy]
  20291. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  20292. ;
  20293. (function (global, factory) {
  20294. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20295. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20296. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20297. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20298. })(this, function (moment) {
  20299. 'use strict';
  20300. //! moment.js locale configuration
  20301. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  20302. monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  20303. var fy = moment.defineLocale('fy', {
  20304. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  20305. monthsShort: function monthsShort(m, format) {
  20306. if (!m) {
  20307. return monthsShortWithDots;
  20308. } else if (/-MMM-/.test(format)) {
  20309. return monthsShortWithoutDots[m.month()];
  20310. } else {
  20311. return monthsShortWithDots[m.month()];
  20312. }
  20313. },
  20314. monthsParseExact: true,
  20315. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  20316. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  20317. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  20318. weekdaysParseExact: true,
  20319. longDateFormat: {
  20320. LT: 'HH:mm',
  20321. LTS: 'HH:mm:ss',
  20322. L: 'DD-MM-YYYY',
  20323. LL: 'D MMMM YYYY',
  20324. LLL: 'D MMMM YYYY HH:mm',
  20325. LLLL: 'dddd D MMMM YYYY HH:mm'
  20326. },
  20327. calendar: {
  20328. sameDay: '[hjoed om] LT',
  20329. nextDay: '[moarn om] LT',
  20330. nextWeek: 'dddd [om] LT',
  20331. lastDay: '[juster om] LT',
  20332. lastWeek: '[ôfrûne] dddd [om] LT',
  20333. sameElse: 'L'
  20334. },
  20335. relativeTime: {
  20336. future: 'oer %s',
  20337. past: '%s lyn',
  20338. s: 'in pear sekonden',
  20339. ss: '%d sekonden',
  20340. m: 'ien minút',
  20341. mm: '%d minuten',
  20342. h: 'ien oere',
  20343. hh: '%d oeren',
  20344. d: 'ien dei',
  20345. dd: '%d dagen',
  20346. M: 'ien moanne',
  20347. MM: '%d moannen',
  20348. y: 'ien jier',
  20349. yy: '%d jierren'
  20350. },
  20351. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  20352. ordinal: function ordinal(number) {
  20353. return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
  20354. },
  20355. week: {
  20356. dow: 1,
  20357. // Monday is the first day of the week.
  20358. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20359. }
  20360. });
  20361. return fy;
  20362. });
  20363. /***/ }),
  20364. /* 164 */
  20365. /*!***********************************************************!*\
  20366. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ga.js ***!
  20367. \***********************************************************/
  20368. /*! no static exports found */
  20369. /***/ (function(module, exports, __webpack_require__) {
  20370. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20371. //! moment.js locale configuration
  20372. //! locale : Irish or Irish Gaelic [ga]
  20373. //! author : André Silva : https://github.com/askpt
  20374. ;
  20375. (function (global, factory) {
  20376. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20377. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20378. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20379. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20380. })(this, function (moment) {
  20381. 'use strict';
  20382. //! moment.js locale configuration
  20383. var months = ['Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Meitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deireadh Fómhair', 'Samhain', 'Nollaig'],
  20384. monthsShort = ['Ean', 'Feabh', 'Márt', 'Aib', 'Beal', 'Meith', 'Iúil', 'Lún', 'M.F.', 'D.F.', 'Samh', 'Noll'],
  20385. weekdays = ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Sathairn'],
  20386. weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
  20387. weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
  20388. var ga = moment.defineLocale('ga', {
  20389. months: months,
  20390. monthsShort: monthsShort,
  20391. monthsParseExact: true,
  20392. weekdays: weekdays,
  20393. weekdaysShort: weekdaysShort,
  20394. weekdaysMin: weekdaysMin,
  20395. longDateFormat: {
  20396. LT: 'HH:mm',
  20397. LTS: 'HH:mm:ss',
  20398. L: 'DD/MM/YYYY',
  20399. LL: 'D MMMM YYYY',
  20400. LLL: 'D MMMM YYYY HH:mm',
  20401. LLLL: 'dddd, D MMMM YYYY HH:mm'
  20402. },
  20403. calendar: {
  20404. sameDay: '[Inniu ag] LT',
  20405. nextDay: '[Amárach ag] LT',
  20406. nextWeek: 'dddd [ag] LT',
  20407. lastDay: '[Inné ag] LT',
  20408. lastWeek: 'dddd [seo caite] [ag] LT',
  20409. sameElse: 'L'
  20410. },
  20411. relativeTime: {
  20412. future: 'i %s',
  20413. past: '%s ó shin',
  20414. s: 'cúpla soicind',
  20415. ss: '%d soicind',
  20416. m: 'nóiméad',
  20417. mm: '%d nóiméad',
  20418. h: 'uair an chloig',
  20419. hh: '%d uair an chloig',
  20420. d: 'lá',
  20421. dd: '%d lá',
  20422. M: 'mí',
  20423. MM: '%d míonna',
  20424. y: 'bliain',
  20425. yy: '%d bliain'
  20426. },
  20427. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  20428. ordinal: function ordinal(number) {
  20429. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  20430. return number + output;
  20431. },
  20432. week: {
  20433. dow: 1,
  20434. // Monday is the first day of the week.
  20435. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20436. }
  20437. });
  20438. return ga;
  20439. });
  20440. /***/ }),
  20441. /* 165 */
  20442. /*!***********************************************************!*\
  20443. !*** D:/SWS_New/sws_new/node_modules/moment/locale/gd.js ***!
  20444. \***********************************************************/
  20445. /*! no static exports found */
  20446. /***/ (function(module, exports, __webpack_require__) {
  20447. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20448. //! moment.js locale configuration
  20449. //! locale : Scottish Gaelic [gd]
  20450. //! author : Jon Ashdown : https://github.com/jonashdown
  20451. ;
  20452. (function (global, factory) {
  20453. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20454. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20455. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20456. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20457. })(this, function (moment) {
  20458. 'use strict';
  20459. //! moment.js locale configuration
  20460. var months = ['Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'],
  20461. monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'],
  20462. weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'],
  20463. weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
  20464. weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  20465. var gd = moment.defineLocale('gd', {
  20466. months: months,
  20467. monthsShort: monthsShort,
  20468. monthsParseExact: true,
  20469. weekdays: weekdays,
  20470. weekdaysShort: weekdaysShort,
  20471. weekdaysMin: weekdaysMin,
  20472. longDateFormat: {
  20473. LT: 'HH:mm',
  20474. LTS: 'HH:mm:ss',
  20475. L: 'DD/MM/YYYY',
  20476. LL: 'D MMMM YYYY',
  20477. LLL: 'D MMMM YYYY HH:mm',
  20478. LLLL: 'dddd, D MMMM YYYY HH:mm'
  20479. },
  20480. calendar: {
  20481. sameDay: '[An-diugh aig] LT',
  20482. nextDay: '[A-màireach aig] LT',
  20483. nextWeek: 'dddd [aig] LT',
  20484. lastDay: '[An-dè aig] LT',
  20485. lastWeek: 'dddd [seo chaidh] [aig] LT',
  20486. sameElse: 'L'
  20487. },
  20488. relativeTime: {
  20489. future: 'ann an %s',
  20490. past: 'bho chionn %s',
  20491. s: 'beagan diogan',
  20492. ss: '%d diogan',
  20493. m: 'mionaid',
  20494. mm: '%d mionaidean',
  20495. h: 'uair',
  20496. hh: '%d uairean',
  20497. d: 'latha',
  20498. dd: '%d latha',
  20499. M: 'mìos',
  20500. MM: '%d mìosan',
  20501. y: 'bliadhna',
  20502. yy: '%d bliadhna'
  20503. },
  20504. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  20505. ordinal: function ordinal(number) {
  20506. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  20507. return number + output;
  20508. },
  20509. week: {
  20510. dow: 1,
  20511. // Monday is the first day of the week.
  20512. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20513. }
  20514. });
  20515. return gd;
  20516. });
  20517. /***/ }),
  20518. /* 166 */
  20519. /*!***********************************************************!*\
  20520. !*** D:/SWS_New/sws_new/node_modules/moment/locale/gl.js ***!
  20521. \***********************************************************/
  20522. /*! no static exports found */
  20523. /***/ (function(module, exports, __webpack_require__) {
  20524. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20525. //! moment.js locale configuration
  20526. //! locale : Galician [gl]
  20527. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  20528. ;
  20529. (function (global, factory) {
  20530. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20531. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20532. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20533. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20534. })(this, function (moment) {
  20535. 'use strict';
  20536. //! moment.js locale configuration
  20537. var gl = moment.defineLocale('gl', {
  20538. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
  20539. monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
  20540. monthsParseExact: true,
  20541. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  20542. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  20543. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  20544. weekdaysParseExact: true,
  20545. longDateFormat: {
  20546. LT: 'H:mm',
  20547. LTS: 'H:mm:ss',
  20548. L: 'DD/MM/YYYY',
  20549. LL: 'D [de] MMMM [de] YYYY',
  20550. LLL: 'D [de] MMMM [de] YYYY H:mm',
  20551. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
  20552. },
  20553. calendar: {
  20554. sameDay: function sameDay() {
  20555. return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  20556. },
  20557. nextDay: function nextDay() {
  20558. return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  20559. },
  20560. nextWeek: function nextWeek() {
  20561. return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  20562. },
  20563. lastDay: function lastDay() {
  20564. return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
  20565. },
  20566. lastWeek: function lastWeek() {
  20567. return '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  20568. },
  20569. sameElse: 'L'
  20570. },
  20571. relativeTime: {
  20572. future: function future(str) {
  20573. if (str.indexOf('un') === 0) {
  20574. return 'n' + str;
  20575. }
  20576. return 'en ' + str;
  20577. },
  20578. past: 'hai %s',
  20579. s: 'uns segundos',
  20580. ss: '%d segundos',
  20581. m: 'un minuto',
  20582. mm: '%d minutos',
  20583. h: 'unha hora',
  20584. hh: '%d horas',
  20585. d: 'un día',
  20586. dd: '%d días',
  20587. M: 'un mes',
  20588. MM: '%d meses',
  20589. y: 'un ano',
  20590. yy: '%d anos'
  20591. },
  20592. dayOfMonthOrdinalParse: /\d{1,2}º/,
  20593. ordinal: '%dº',
  20594. week: {
  20595. dow: 1,
  20596. // Monday is the first day of the week.
  20597. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20598. }
  20599. });
  20600. return gl;
  20601. });
  20602. /***/ }),
  20603. /* 167 */
  20604. /*!*****************************************************************!*\
  20605. !*** D:/SWS_New/sws_new/node_modules/moment/locale/gom-deva.js ***!
  20606. \*****************************************************************/
  20607. /*! no static exports found */
  20608. /***/ (function(module, exports, __webpack_require__) {
  20609. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20610. //! moment.js locale configuration
  20611. //! locale : Konkani Devanagari script [gom-deva]
  20612. //! author : The Discoverer : https://github.com/WikiDiscoverer
  20613. ;
  20614. (function (global, factory) {
  20615. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20616. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20617. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20618. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20619. })(this, function (moment) {
  20620. 'use strict';
  20621. //! moment.js locale configuration
  20622. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  20623. var format = {
  20624. s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
  20625. ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
  20626. m: ['एका मिणटान', 'एक मिनूट'],
  20627. mm: [number + ' मिणटांनी', number + ' मिणटां'],
  20628. h: ['एका वरान', 'एक वर'],
  20629. hh: [number + ' वरांनी', number + ' वरां'],
  20630. d: ['एका दिसान', 'एक दीस'],
  20631. dd: [number + ' दिसांनी', number + ' दीस'],
  20632. M: ['एका म्हयन्यान', 'एक म्हयनो'],
  20633. MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
  20634. y: ['एका वर्सान', 'एक वर्स'],
  20635. yy: [number + ' वर्सांनी', number + ' वर्सां']
  20636. };
  20637. return isFuture ? format[key][0] : format[key][1];
  20638. }
  20639. var gomDeva = moment.defineLocale('gom-deva', {
  20640. months: {
  20641. standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  20642. format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split('_'),
  20643. isFormat: /MMMM(\s)+D[oD]?/
  20644. },
  20645. monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  20646. monthsParseExact: true,
  20647. weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
  20648. weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
  20649. weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
  20650. weekdaysParseExact: true,
  20651. longDateFormat: {
  20652. LT: 'A h:mm [वाजतां]',
  20653. LTS: 'A h:mm:ss [वाजतां]',
  20654. L: 'DD-MM-YYYY',
  20655. LL: 'D MMMM YYYY',
  20656. LLL: 'D MMMM YYYY A h:mm [वाजतां]',
  20657. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
  20658. llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]'
  20659. },
  20660. calendar: {
  20661. sameDay: '[आयज] LT',
  20662. nextDay: '[फाल्यां] LT',
  20663. nextWeek: '[फुडलो] dddd[,] LT',
  20664. lastDay: '[काल] LT',
  20665. lastWeek: '[फाटलो] dddd[,] LT',
  20666. sameElse: 'L'
  20667. },
  20668. relativeTime: {
  20669. future: '%s',
  20670. past: '%s आदीं',
  20671. s: processRelativeTime,
  20672. ss: processRelativeTime,
  20673. m: processRelativeTime,
  20674. mm: processRelativeTime,
  20675. h: processRelativeTime,
  20676. hh: processRelativeTime,
  20677. d: processRelativeTime,
  20678. dd: processRelativeTime,
  20679. M: processRelativeTime,
  20680. MM: processRelativeTime,
  20681. y: processRelativeTime,
  20682. yy: processRelativeTime
  20683. },
  20684. dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
  20685. ordinal: function ordinal(number, period) {
  20686. switch (period) {
  20687. // the ordinal 'वेर' only applies to day of the month
  20688. case 'D':
  20689. return number + 'वेर';
  20690. default:
  20691. case 'M':
  20692. case 'Q':
  20693. case 'DDD':
  20694. case 'd':
  20695. case 'w':
  20696. case 'W':
  20697. return number;
  20698. }
  20699. },
  20700. week: {
  20701. dow: 0,
  20702. // Sunday is the first day of the week
  20703. doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  20704. },
  20705. meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
  20706. meridiemHour: function meridiemHour(hour, meridiem) {
  20707. if (hour === 12) {
  20708. hour = 0;
  20709. }
  20710. if (meridiem === 'राती') {
  20711. return hour < 4 ? hour : hour + 12;
  20712. } else if (meridiem === 'सकाळीं') {
  20713. return hour;
  20714. } else if (meridiem === 'दनपारां') {
  20715. return hour > 12 ? hour : hour + 12;
  20716. } else if (meridiem === 'सांजे') {
  20717. return hour + 12;
  20718. }
  20719. },
  20720. meridiem: function meridiem(hour, minute, isLower) {
  20721. if (hour < 4) {
  20722. return 'राती';
  20723. } else if (hour < 12) {
  20724. return 'सकाळीं';
  20725. } else if (hour < 16) {
  20726. return 'दनपारां';
  20727. } else if (hour < 20) {
  20728. return 'सांजे';
  20729. } else {
  20730. return 'राती';
  20731. }
  20732. }
  20733. });
  20734. return gomDeva;
  20735. });
  20736. /***/ }),
  20737. /* 168 */
  20738. /*!*****************************************************************!*\
  20739. !*** D:/SWS_New/sws_new/node_modules/moment/locale/gom-latn.js ***!
  20740. \*****************************************************************/
  20741. /*! no static exports found */
  20742. /***/ (function(module, exports, __webpack_require__) {
  20743. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20744. //! moment.js locale configuration
  20745. //! locale : Konkani Latin script [gom-latn]
  20746. //! author : The Discoverer : https://github.com/WikiDiscoverer
  20747. ;
  20748. (function (global, factory) {
  20749. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20750. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20751. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20752. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20753. })(this, function (moment) {
  20754. 'use strict';
  20755. //! moment.js locale configuration
  20756. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  20757. var format = {
  20758. s: ['thoddea sekondamni', 'thodde sekond'],
  20759. ss: [number + ' sekondamni', number + ' sekond'],
  20760. m: ['eka mintan', 'ek minut'],
  20761. mm: [number + ' mintamni', number + ' mintam'],
  20762. h: ['eka voran', 'ek vor'],
  20763. hh: [number + ' voramni', number + ' voram'],
  20764. d: ['eka disan', 'ek dis'],
  20765. dd: [number + ' disamni', number + ' dis'],
  20766. M: ['eka mhoinean', 'ek mhoino'],
  20767. MM: [number + ' mhoineamni', number + ' mhoine'],
  20768. y: ['eka vorsan', 'ek voros'],
  20769. yy: [number + ' vorsamni', number + ' vorsam']
  20770. };
  20771. return isFuture ? format[key][0] : format[key][1];
  20772. }
  20773. var gomLatn = moment.defineLocale('gom-latn', {
  20774. months: {
  20775. standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
  20776. format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split('_'),
  20777. isFormat: /MMMM(\s)+D[oD]?/
  20778. },
  20779. monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
  20780. monthsParseExact: true,
  20781. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
  20782. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  20783. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  20784. weekdaysParseExact: true,
  20785. longDateFormat: {
  20786. LT: 'A h:mm [vazta]',
  20787. LTS: 'A h:mm:ss [vazta]',
  20788. L: 'DD-MM-YYYY',
  20789. LL: 'D MMMM YYYY',
  20790. LLL: 'D MMMM YYYY A h:mm [vazta]',
  20791. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
  20792. llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
  20793. },
  20794. calendar: {
  20795. sameDay: '[Aiz] LT',
  20796. nextDay: '[Faleam] LT',
  20797. nextWeek: '[Fuddlo] dddd[,] LT',
  20798. lastDay: '[Kal] LT',
  20799. lastWeek: '[Fattlo] dddd[,] LT',
  20800. sameElse: 'L'
  20801. },
  20802. relativeTime: {
  20803. future: '%s',
  20804. past: '%s adim',
  20805. s: processRelativeTime,
  20806. ss: processRelativeTime,
  20807. m: processRelativeTime,
  20808. mm: processRelativeTime,
  20809. h: processRelativeTime,
  20810. hh: processRelativeTime,
  20811. d: processRelativeTime,
  20812. dd: processRelativeTime,
  20813. M: processRelativeTime,
  20814. MM: processRelativeTime,
  20815. y: processRelativeTime,
  20816. yy: processRelativeTime
  20817. },
  20818. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  20819. ordinal: function ordinal(number, period) {
  20820. switch (period) {
  20821. // the ordinal 'er' only applies to day of the month
  20822. case 'D':
  20823. return number + 'er';
  20824. default:
  20825. case 'M':
  20826. case 'Q':
  20827. case 'DDD':
  20828. case 'd':
  20829. case 'w':
  20830. case 'W':
  20831. return number;
  20832. }
  20833. },
  20834. week: {
  20835. dow: 0,
  20836. // Sunday is the first day of the week
  20837. doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  20838. },
  20839. meridiemParse: /rati|sokallim|donparam|sanje/,
  20840. meridiemHour: function meridiemHour(hour, meridiem) {
  20841. if (hour === 12) {
  20842. hour = 0;
  20843. }
  20844. if (meridiem === 'rati') {
  20845. return hour < 4 ? hour : hour + 12;
  20846. } else if (meridiem === 'sokallim') {
  20847. return hour;
  20848. } else if (meridiem === 'donparam') {
  20849. return hour > 12 ? hour : hour + 12;
  20850. } else if (meridiem === 'sanje') {
  20851. return hour + 12;
  20852. }
  20853. },
  20854. meridiem: function meridiem(hour, minute, isLower) {
  20855. if (hour < 4) {
  20856. return 'rati';
  20857. } else if (hour < 12) {
  20858. return 'sokallim';
  20859. } else if (hour < 16) {
  20860. return 'donparam';
  20861. } else if (hour < 20) {
  20862. return 'sanje';
  20863. } else {
  20864. return 'rati';
  20865. }
  20866. }
  20867. });
  20868. return gomLatn;
  20869. });
  20870. /***/ }),
  20871. /* 169 */
  20872. /*!***********************************************************!*\
  20873. !*** D:/SWS_New/sws_new/node_modules/moment/locale/gu.js ***!
  20874. \***********************************************************/
  20875. /*! no static exports found */
  20876. /***/ (function(module, exports, __webpack_require__) {
  20877. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20878. //! moment.js locale configuration
  20879. //! locale : Gujarati [gu]
  20880. //! author : Kaushik Thanki : https://github.com/Kaushik1987
  20881. ;
  20882. (function (global, factory) {
  20883. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20884. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20885. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20886. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20887. })(this, function (moment) {
  20888. 'use strict';
  20889. //! moment.js locale configuration
  20890. var symbolMap = {
  20891. 1: '૧',
  20892. 2: '૨',
  20893. 3: '૩',
  20894. 4: '૪',
  20895. 5: '૫',
  20896. 6: '૬',
  20897. 7: '૭',
  20898. 8: '૮',
  20899. 9: '૯',
  20900. 0: '૦'
  20901. },
  20902. numberMap = {
  20903. '૧': '1',
  20904. '૨': '2',
  20905. '૩': '3',
  20906. '૪': '4',
  20907. '૫': '5',
  20908. '૬': '6',
  20909. '૭': '7',
  20910. '૮': '8',
  20911. '૯': '9',
  20912. '૦': '0'
  20913. };
  20914. var gu = moment.defineLocale('gu', {
  20915. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
  20916. monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
  20917. monthsParseExact: true,
  20918. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
  20919. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  20920. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  20921. longDateFormat: {
  20922. LT: 'A h:mm વાગ્યે',
  20923. LTS: 'A h:mm:ss વાગ્યે',
  20924. L: 'DD/MM/YYYY',
  20925. LL: 'D MMMM YYYY',
  20926. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  20927. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
  20928. },
  20929. calendar: {
  20930. sameDay: '[આજ] LT',
  20931. nextDay: '[કાલે] LT',
  20932. nextWeek: 'dddd, LT',
  20933. lastDay: '[ગઇકાલે] LT',
  20934. lastWeek: '[પાછલા] dddd, LT',
  20935. sameElse: 'L'
  20936. },
  20937. relativeTime: {
  20938. future: '%s મા',
  20939. past: '%s પહેલા',
  20940. s: 'અમુક પળો',
  20941. ss: '%d સેકંડ',
  20942. m: 'એક મિનિટ',
  20943. mm: '%d મિનિટ',
  20944. h: 'એક કલાક',
  20945. hh: '%d કલાક',
  20946. d: 'એક દિવસ',
  20947. dd: '%d દિવસ',
  20948. M: 'એક મહિનો',
  20949. MM: '%d મહિનો',
  20950. y: 'એક વર્ષ',
  20951. yy: '%d વર્ષ'
  20952. },
  20953. preparse: function preparse(string) {
  20954. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  20955. return numberMap[match];
  20956. });
  20957. },
  20958. postformat: function postformat(string) {
  20959. return string.replace(/\d/g, function (match) {
  20960. return symbolMap[match];
  20961. });
  20962. },
  20963. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  20964. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  20965. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  20966. meridiemHour: function meridiemHour(hour, meridiem) {
  20967. if (hour === 12) {
  20968. hour = 0;
  20969. }
  20970. if (meridiem === 'રાત') {
  20971. return hour < 4 ? hour : hour + 12;
  20972. } else if (meridiem === 'સવાર') {
  20973. return hour;
  20974. } else if (meridiem === 'બપોર') {
  20975. return hour >= 10 ? hour : hour + 12;
  20976. } else if (meridiem === 'સાંજ') {
  20977. return hour + 12;
  20978. }
  20979. },
  20980. meridiem: function meridiem(hour, minute, isLower) {
  20981. if (hour < 4) {
  20982. return 'રાત';
  20983. } else if (hour < 10) {
  20984. return 'સવાર';
  20985. } else if (hour < 17) {
  20986. return 'બપોર';
  20987. } else if (hour < 20) {
  20988. return 'સાંજ';
  20989. } else {
  20990. return 'રાત';
  20991. }
  20992. },
  20993. week: {
  20994. dow: 0,
  20995. // Sunday is the first day of the week.
  20996. doy: 6 // The week that contains Jan 6th is the first week of the year.
  20997. }
  20998. });
  20999. return gu;
  21000. });
  21001. /***/ }),
  21002. /* 170 */
  21003. /*!***********************************************************!*\
  21004. !*** D:/SWS_New/sws_new/node_modules/moment/locale/he.js ***!
  21005. \***********************************************************/
  21006. /*! no static exports found */
  21007. /***/ (function(module, exports, __webpack_require__) {
  21008. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21009. //! moment.js locale configuration
  21010. //! locale : Hebrew [he]
  21011. //! author : Tomer Cohen : https://github.com/tomer
  21012. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  21013. //! author : Tal Ater : https://github.com/TalAter
  21014. ;
  21015. (function (global, factory) {
  21016. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21017. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21018. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21019. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21020. })(this, function (moment) {
  21021. 'use strict';
  21022. //! moment.js locale configuration
  21023. var he = moment.defineLocale('he', {
  21024. months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  21025. monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  21026. weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  21027. weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  21028. weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  21029. longDateFormat: {
  21030. LT: 'HH:mm',
  21031. LTS: 'HH:mm:ss',
  21032. L: 'DD/MM/YYYY',
  21033. LL: 'D [ב]MMMM YYYY',
  21034. LLL: 'D [ב]MMMM YYYY HH:mm',
  21035. LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
  21036. l: 'D/M/YYYY',
  21037. ll: 'D MMM YYYY',
  21038. lll: 'D MMM YYYY HH:mm',
  21039. llll: 'ddd, D MMM YYYY HH:mm'
  21040. },
  21041. calendar: {
  21042. sameDay: '[היום ב־]LT',
  21043. nextDay: '[מחר ב־]LT',
  21044. nextWeek: 'dddd [בשעה] LT',
  21045. lastDay: '[אתמול ב־]LT',
  21046. lastWeek: '[ביום] dddd [האחרון בשעה] LT',
  21047. sameElse: 'L'
  21048. },
  21049. relativeTime: {
  21050. future: 'בעוד %s',
  21051. past: 'לפני %s',
  21052. s: 'מספר שניות',
  21053. ss: '%d שניות',
  21054. m: 'דקה',
  21055. mm: '%d דקות',
  21056. h: 'שעה',
  21057. hh: function hh(number) {
  21058. if (number === 2) {
  21059. return 'שעתיים';
  21060. }
  21061. return number + ' שעות';
  21062. },
  21063. d: 'יום',
  21064. dd: function dd(number) {
  21065. if (number === 2) {
  21066. return 'יומיים';
  21067. }
  21068. return number + ' ימים';
  21069. },
  21070. M: 'חודש',
  21071. MM: function MM(number) {
  21072. if (number === 2) {
  21073. return 'חודשיים';
  21074. }
  21075. return number + ' חודשים';
  21076. },
  21077. y: 'שנה',
  21078. yy: function yy(number) {
  21079. if (number === 2) {
  21080. return 'שנתיים';
  21081. } else if (number % 10 === 0 && number !== 10) {
  21082. return number + ' שנה';
  21083. }
  21084. return number + ' שנים';
  21085. }
  21086. },
  21087. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  21088. isPM: function isPM(input) {
  21089. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  21090. },
  21091. meridiem: function meridiem(hour, minute, isLower) {
  21092. if (hour < 5) {
  21093. return 'לפנות בוקר';
  21094. } else if (hour < 10) {
  21095. return 'בבוקר';
  21096. } else if (hour < 12) {
  21097. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  21098. } else if (hour < 18) {
  21099. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  21100. } else {
  21101. return 'בערב';
  21102. }
  21103. }
  21104. });
  21105. return he;
  21106. });
  21107. /***/ }),
  21108. /* 171 */
  21109. /*!***********************************************************!*\
  21110. !*** D:/SWS_New/sws_new/node_modules/moment/locale/hi.js ***!
  21111. \***********************************************************/
  21112. /*! no static exports found */
  21113. /***/ (function(module, exports, __webpack_require__) {
  21114. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21115. //! moment.js locale configuration
  21116. //! locale : Hindi [hi]
  21117. //! author : Mayank Singhal : https://github.com/mayanksinghal
  21118. ;
  21119. (function (global, factory) {
  21120. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21121. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21122. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21123. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21124. })(this, function (moment) {
  21125. 'use strict';
  21126. //! moment.js locale configuration
  21127. var symbolMap = {
  21128. 1: '१',
  21129. 2: '२',
  21130. 3: '३',
  21131. 4: '४',
  21132. 5: '५',
  21133. 6: '६',
  21134. 7: '७',
  21135. 8: '८',
  21136. 9: '९',
  21137. 0: '०'
  21138. },
  21139. numberMap = {
  21140. '१': '1',
  21141. '२': '2',
  21142. '३': '3',
  21143. '४': '4',
  21144. '५': '5',
  21145. '६': '6',
  21146. '७': '7',
  21147. '८': '8',
  21148. '९': '9',
  21149. '०': '0'
  21150. },
  21151. monthsParse = [/^जन/i, /^फ़र|फर/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सितं|सित/i, /^अक्टू/i, /^नव|नवं/i, /^दिसं|दिस/i],
  21152. shortMonthsParse = [/^जन/i, /^फ़र/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सित/i, /^अक्टू/i, /^नव/i, /^दिस/i];
  21153. var hi = moment.defineLocale('hi', {
  21154. months: {
  21155. format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  21156. standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split('_')
  21157. },
  21158. monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  21159. weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  21160. weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  21161. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  21162. longDateFormat: {
  21163. LT: 'A h:mm बजे',
  21164. LTS: 'A h:mm:ss बजे',
  21165. L: 'DD/MM/YYYY',
  21166. LL: 'D MMMM YYYY',
  21167. LLL: 'D MMMM YYYY, A h:mm बजे',
  21168. LLLL: 'dddd, D MMMM YYYY, A h:mm बजे'
  21169. },
  21170. monthsParse: monthsParse,
  21171. longMonthsParse: monthsParse,
  21172. shortMonthsParse: shortMonthsParse,
  21173. monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  21174. monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  21175. monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
  21176. monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
  21177. calendar: {
  21178. sameDay: '[आज] LT',
  21179. nextDay: '[कल] LT',
  21180. nextWeek: 'dddd, LT',
  21181. lastDay: '[कल] LT',
  21182. lastWeek: '[पिछले] dddd, LT',
  21183. sameElse: 'L'
  21184. },
  21185. relativeTime: {
  21186. future: '%s में',
  21187. past: '%s पहले',
  21188. s: 'कुछ ही क्षण',
  21189. ss: '%d सेकंड',
  21190. m: 'एक मिनट',
  21191. mm: '%d मिनट',
  21192. h: 'एक घंटा',
  21193. hh: '%d घंटे',
  21194. d: 'एक दिन',
  21195. dd: '%d दिन',
  21196. M: 'एक महीने',
  21197. MM: '%d महीने',
  21198. y: 'एक वर्ष',
  21199. yy: '%d वर्ष'
  21200. },
  21201. preparse: function preparse(string) {
  21202. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  21203. return numberMap[match];
  21204. });
  21205. },
  21206. postformat: function postformat(string) {
  21207. return string.replace(/\d/g, function (match) {
  21208. return symbolMap[match];
  21209. });
  21210. },
  21211. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  21212. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  21213. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  21214. meridiemHour: function meridiemHour(hour, meridiem) {
  21215. if (hour === 12) {
  21216. hour = 0;
  21217. }
  21218. if (meridiem === 'रात') {
  21219. return hour < 4 ? hour : hour + 12;
  21220. } else if (meridiem === 'सुबह') {
  21221. return hour;
  21222. } else if (meridiem === 'दोपहर') {
  21223. return hour >= 10 ? hour : hour + 12;
  21224. } else if (meridiem === 'शाम') {
  21225. return hour + 12;
  21226. }
  21227. },
  21228. meridiem: function meridiem(hour, minute, isLower) {
  21229. if (hour < 4) {
  21230. return 'रात';
  21231. } else if (hour < 10) {
  21232. return 'सुबह';
  21233. } else if (hour < 17) {
  21234. return 'दोपहर';
  21235. } else if (hour < 20) {
  21236. return 'शाम';
  21237. } else {
  21238. return 'रात';
  21239. }
  21240. },
  21241. week: {
  21242. dow: 0,
  21243. // Sunday is the first day of the week.
  21244. doy: 6 // The week that contains Jan 6th is the first week of the year.
  21245. }
  21246. });
  21247. return hi;
  21248. });
  21249. /***/ }),
  21250. /* 172 */
  21251. /*!***********************************************************!*\
  21252. !*** D:/SWS_New/sws_new/node_modules/moment/locale/hr.js ***!
  21253. \***********************************************************/
  21254. /*! no static exports found */
  21255. /***/ (function(module, exports, __webpack_require__) {
  21256. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21257. //! moment.js locale configuration
  21258. //! locale : Croatian [hr]
  21259. //! author : Bojan Marković : https://github.com/bmarkovic
  21260. ;
  21261. (function (global, factory) {
  21262. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21263. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21264. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21265. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21266. })(this, function (moment) {
  21267. 'use strict';
  21268. //! moment.js locale configuration
  21269. function translate(number, withoutSuffix, key) {
  21270. var result = number + ' ';
  21271. switch (key) {
  21272. case 'ss':
  21273. if (number === 1) {
  21274. result += 'sekunda';
  21275. } else if (number === 2 || number === 3 || number === 4) {
  21276. result += 'sekunde';
  21277. } else {
  21278. result += 'sekundi';
  21279. }
  21280. return result;
  21281. case 'm':
  21282. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  21283. case 'mm':
  21284. if (number === 1) {
  21285. result += 'minuta';
  21286. } else if (number === 2 || number === 3 || number === 4) {
  21287. result += 'minute';
  21288. } else {
  21289. result += 'minuta';
  21290. }
  21291. return result;
  21292. case 'h':
  21293. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  21294. case 'hh':
  21295. if (number === 1) {
  21296. result += 'sat';
  21297. } else if (number === 2 || number === 3 || number === 4) {
  21298. result += 'sata';
  21299. } else {
  21300. result += 'sati';
  21301. }
  21302. return result;
  21303. case 'dd':
  21304. if (number === 1) {
  21305. result += 'dan';
  21306. } else {
  21307. result += 'dana';
  21308. }
  21309. return result;
  21310. case 'MM':
  21311. if (number === 1) {
  21312. result += 'mjesec';
  21313. } else if (number === 2 || number === 3 || number === 4) {
  21314. result += 'mjeseca';
  21315. } else {
  21316. result += 'mjeseci';
  21317. }
  21318. return result;
  21319. case 'yy':
  21320. if (number === 1) {
  21321. result += 'godina';
  21322. } else if (number === 2 || number === 3 || number === 4) {
  21323. result += 'godine';
  21324. } else {
  21325. result += 'godina';
  21326. }
  21327. return result;
  21328. }
  21329. }
  21330. var hr = moment.defineLocale('hr', {
  21331. months: {
  21332. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
  21333. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
  21334. },
  21335. monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  21336. monthsParseExact: true,
  21337. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  21338. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  21339. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  21340. weekdaysParseExact: true,
  21341. longDateFormat: {
  21342. LT: 'H:mm',
  21343. LTS: 'H:mm:ss',
  21344. L: 'DD.MM.YYYY',
  21345. LL: 'Do MMMM YYYY',
  21346. LLL: 'Do MMMM YYYY H:mm',
  21347. LLLL: 'dddd, Do MMMM YYYY H:mm'
  21348. },
  21349. calendar: {
  21350. sameDay: '[danas u] LT',
  21351. nextDay: '[sutra u] LT',
  21352. nextWeek: function nextWeek() {
  21353. switch (this.day()) {
  21354. case 0:
  21355. return '[u] [nedjelju] [u] LT';
  21356. case 3:
  21357. return '[u] [srijedu] [u] LT';
  21358. case 6:
  21359. return '[u] [subotu] [u] LT';
  21360. case 1:
  21361. case 2:
  21362. case 4:
  21363. case 5:
  21364. return '[u] dddd [u] LT';
  21365. }
  21366. },
  21367. lastDay: '[jučer u] LT',
  21368. lastWeek: function lastWeek() {
  21369. switch (this.day()) {
  21370. case 0:
  21371. return '[prošlu] [nedjelju] [u] LT';
  21372. case 3:
  21373. return '[prošlu] [srijedu] [u] LT';
  21374. case 6:
  21375. return '[prošle] [subote] [u] LT';
  21376. case 1:
  21377. case 2:
  21378. case 4:
  21379. case 5:
  21380. return '[prošli] dddd [u] LT';
  21381. }
  21382. },
  21383. sameElse: 'L'
  21384. },
  21385. relativeTime: {
  21386. future: 'za %s',
  21387. past: 'prije %s',
  21388. s: 'par sekundi',
  21389. ss: translate,
  21390. m: translate,
  21391. mm: translate,
  21392. h: translate,
  21393. hh: translate,
  21394. d: 'dan',
  21395. dd: translate,
  21396. M: 'mjesec',
  21397. MM: translate,
  21398. y: 'godinu',
  21399. yy: translate
  21400. },
  21401. dayOfMonthOrdinalParse: /\d{1,2}\./,
  21402. ordinal: '%d.',
  21403. week: {
  21404. dow: 1,
  21405. // Monday is the first day of the week.
  21406. doy: 7 // The week that contains Jan 7th is the first week of the year.
  21407. }
  21408. });
  21409. return hr;
  21410. });
  21411. /***/ }),
  21412. /* 173 */
  21413. /*!***********************************************************!*\
  21414. !*** D:/SWS_New/sws_new/node_modules/moment/locale/hu.js ***!
  21415. \***********************************************************/
  21416. /*! no static exports found */
  21417. /***/ (function(module, exports, __webpack_require__) {
  21418. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21419. //! moment.js locale configuration
  21420. //! locale : Hungarian [hu]
  21421. //! author : Adam Brunner : https://github.com/adambrunner
  21422. //! author : Peter Viszt : https://github.com/passatgt
  21423. ;
  21424. (function (global, factory) {
  21425. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21426. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21427. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21428. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21429. })(this, function (moment) {
  21430. 'use strict';
  21431. //! moment.js locale configuration
  21432. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  21433. function translate(number, withoutSuffix, key, isFuture) {
  21434. var num = number;
  21435. switch (key) {
  21436. case 's':
  21437. return isFuture || withoutSuffix ? 'néhány másodperc' : 'néhány másodperce';
  21438. case 'ss':
  21439. return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';
  21440. case 'm':
  21441. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  21442. case 'mm':
  21443. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  21444. case 'h':
  21445. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  21446. case 'hh':
  21447. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  21448. case 'd':
  21449. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  21450. case 'dd':
  21451. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  21452. case 'M':
  21453. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  21454. case 'MM':
  21455. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  21456. case 'y':
  21457. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  21458. case 'yy':
  21459. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  21460. }
  21461. return '';
  21462. }
  21463. function week(isFuture) {
  21464. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  21465. }
  21466. var hu = moment.defineLocale('hu', {
  21467. months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  21468. monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split('_'),
  21469. monthsParseExact: true,
  21470. weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  21471. weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  21472. weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
  21473. longDateFormat: {
  21474. LT: 'H:mm',
  21475. LTS: 'H:mm:ss',
  21476. L: 'YYYY.MM.DD.',
  21477. LL: 'YYYY. MMMM D.',
  21478. LLL: 'YYYY. MMMM D. H:mm',
  21479. LLLL: 'YYYY. MMMM D., dddd H:mm'
  21480. },
  21481. meridiemParse: /de|du/i,
  21482. isPM: function isPM(input) {
  21483. return input.charAt(1).toLowerCase() === 'u';
  21484. },
  21485. meridiem: function meridiem(hours, minutes, isLower) {
  21486. if (hours < 12) {
  21487. return isLower === true ? 'de' : 'DE';
  21488. } else {
  21489. return isLower === true ? 'du' : 'DU';
  21490. }
  21491. },
  21492. calendar: {
  21493. sameDay: '[ma] LT[-kor]',
  21494. nextDay: '[holnap] LT[-kor]',
  21495. nextWeek: function nextWeek() {
  21496. return week.call(this, true);
  21497. },
  21498. lastDay: '[tegnap] LT[-kor]',
  21499. lastWeek: function lastWeek() {
  21500. return week.call(this, false);
  21501. },
  21502. sameElse: 'L'
  21503. },
  21504. relativeTime: {
  21505. future: '%s múlva',
  21506. past: '%s',
  21507. s: translate,
  21508. ss: translate,
  21509. m: translate,
  21510. mm: translate,
  21511. h: translate,
  21512. hh: translate,
  21513. d: translate,
  21514. dd: translate,
  21515. M: translate,
  21516. MM: translate,
  21517. y: translate,
  21518. yy: translate
  21519. },
  21520. dayOfMonthOrdinalParse: /\d{1,2}\./,
  21521. ordinal: '%d.',
  21522. week: {
  21523. dow: 1,
  21524. // Monday is the first day of the week.
  21525. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21526. }
  21527. });
  21528. return hu;
  21529. });
  21530. /***/ }),
  21531. /* 174 */
  21532. /*!**************************************************************!*\
  21533. !*** D:/SWS_New/sws_new/node_modules/moment/locale/hy-am.js ***!
  21534. \**************************************************************/
  21535. /*! no static exports found */
  21536. /***/ (function(module, exports, __webpack_require__) {
  21537. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21538. //! moment.js locale configuration
  21539. //! locale : Armenian [hy-am]
  21540. //! author : Armendarabyan : https://github.com/armendarabyan
  21541. ;
  21542. (function (global, factory) {
  21543. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21544. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21545. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21546. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21547. })(this, function (moment) {
  21548. 'use strict';
  21549. //! moment.js locale configuration
  21550. var hyAm = moment.defineLocale('hy-am', {
  21551. months: {
  21552. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
  21553. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
  21554. },
  21555. monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  21556. weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
  21557. weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  21558. weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  21559. longDateFormat: {
  21560. LT: 'HH:mm',
  21561. LTS: 'HH:mm:ss',
  21562. L: 'DD.MM.YYYY',
  21563. LL: 'D MMMM YYYY թ.',
  21564. LLL: 'D MMMM YYYY թ., HH:mm',
  21565. LLLL: 'dddd, D MMMM YYYY թ., HH:mm'
  21566. },
  21567. calendar: {
  21568. sameDay: '[այսօր] LT',
  21569. nextDay: '[վաղը] LT',
  21570. lastDay: '[երեկ] LT',
  21571. nextWeek: function nextWeek() {
  21572. return 'dddd [օրը ժամը] LT';
  21573. },
  21574. lastWeek: function lastWeek() {
  21575. return '[անցած] dddd [օրը ժամը] LT';
  21576. },
  21577. sameElse: 'L'
  21578. },
  21579. relativeTime: {
  21580. future: '%s հետո',
  21581. past: '%s առաջ',
  21582. s: 'մի քանի վայրկյան',
  21583. ss: '%d վայրկյան',
  21584. m: 'րոպե',
  21585. mm: '%d րոպե',
  21586. h: 'ժամ',
  21587. hh: '%d ժամ',
  21588. d: 'օր',
  21589. dd: '%d օր',
  21590. M: 'ամիս',
  21591. MM: '%d ամիս',
  21592. y: 'տարի',
  21593. yy: '%d տարի'
  21594. },
  21595. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  21596. isPM: function isPM(input) {
  21597. return /^(ցերեկվա|երեկոյան)$/.test(input);
  21598. },
  21599. meridiem: function meridiem(hour) {
  21600. if (hour < 4) {
  21601. return 'գիշերվա';
  21602. } else if (hour < 12) {
  21603. return 'առավոտվա';
  21604. } else if (hour < 17) {
  21605. return 'ցերեկվա';
  21606. } else {
  21607. return 'երեկոյան';
  21608. }
  21609. },
  21610. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  21611. ordinal: function ordinal(number, period) {
  21612. switch (period) {
  21613. case 'DDD':
  21614. case 'w':
  21615. case 'W':
  21616. case 'DDDo':
  21617. if (number === 1) {
  21618. return number + '-ին';
  21619. }
  21620. return number + '-րդ';
  21621. default:
  21622. return number;
  21623. }
  21624. },
  21625. week: {
  21626. dow: 1,
  21627. // Monday is the first day of the week.
  21628. doy: 7 // The week that contains Jan 7th is the first week of the year.
  21629. }
  21630. });
  21631. return hyAm;
  21632. });
  21633. /***/ }),
  21634. /* 175 */
  21635. /*!***********************************************************!*\
  21636. !*** D:/SWS_New/sws_new/node_modules/moment/locale/id.js ***!
  21637. \***********************************************************/
  21638. /*! no static exports found */
  21639. /***/ (function(module, exports, __webpack_require__) {
  21640. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21641. //! moment.js locale configuration
  21642. //! locale : Indonesian [id]
  21643. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  21644. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  21645. ;
  21646. (function (global, factory) {
  21647. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21648. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21649. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21650. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21651. })(this, function (moment) {
  21652. 'use strict';
  21653. //! moment.js locale configuration
  21654. var id = moment.defineLocale('id', {
  21655. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  21656. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
  21657. weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  21658. weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  21659. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  21660. longDateFormat: {
  21661. LT: 'HH.mm',
  21662. LTS: 'HH.mm.ss',
  21663. L: 'DD/MM/YYYY',
  21664. LL: 'D MMMM YYYY',
  21665. LLL: 'D MMMM YYYY [pukul] HH.mm',
  21666. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  21667. },
  21668. meridiemParse: /pagi|siang|sore|malam/,
  21669. meridiemHour: function meridiemHour(hour, meridiem) {
  21670. if (hour === 12) {
  21671. hour = 0;
  21672. }
  21673. if (meridiem === 'pagi') {
  21674. return hour;
  21675. } else if (meridiem === 'siang') {
  21676. return hour >= 11 ? hour : hour + 12;
  21677. } else if (meridiem === 'sore' || meridiem === 'malam') {
  21678. return hour + 12;
  21679. }
  21680. },
  21681. meridiem: function meridiem(hours, minutes, isLower) {
  21682. if (hours < 11) {
  21683. return 'pagi';
  21684. } else if (hours < 15) {
  21685. return 'siang';
  21686. } else if (hours < 19) {
  21687. return 'sore';
  21688. } else {
  21689. return 'malam';
  21690. }
  21691. },
  21692. calendar: {
  21693. sameDay: '[Hari ini pukul] LT',
  21694. nextDay: '[Besok pukul] LT',
  21695. nextWeek: 'dddd [pukul] LT',
  21696. lastDay: '[Kemarin pukul] LT',
  21697. lastWeek: 'dddd [lalu pukul] LT',
  21698. sameElse: 'L'
  21699. },
  21700. relativeTime: {
  21701. future: 'dalam %s',
  21702. past: '%s yang lalu',
  21703. s: 'beberapa detik',
  21704. ss: '%d detik',
  21705. m: 'semenit',
  21706. mm: '%d menit',
  21707. h: 'sejam',
  21708. hh: '%d jam',
  21709. d: 'sehari',
  21710. dd: '%d hari',
  21711. M: 'sebulan',
  21712. MM: '%d bulan',
  21713. y: 'setahun',
  21714. yy: '%d tahun'
  21715. },
  21716. week: {
  21717. dow: 0,
  21718. // Sunday is the first day of the week.
  21719. doy: 6 // The week that contains Jan 6th is the first week of the year.
  21720. }
  21721. });
  21722. return id;
  21723. });
  21724. /***/ }),
  21725. /* 176 */
  21726. /*!***********************************************************!*\
  21727. !*** D:/SWS_New/sws_new/node_modules/moment/locale/is.js ***!
  21728. \***********************************************************/
  21729. /*! no static exports found */
  21730. /***/ (function(module, exports, __webpack_require__) {
  21731. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21732. //! moment.js locale configuration
  21733. //! locale : Icelandic [is]
  21734. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  21735. ;
  21736. (function (global, factory) {
  21737. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21738. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21739. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21740. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21741. })(this, function (moment) {
  21742. 'use strict';
  21743. //! moment.js locale configuration
  21744. function plural(n) {
  21745. if (n % 100 === 11) {
  21746. return true;
  21747. } else if (n % 10 === 1) {
  21748. return false;
  21749. }
  21750. return true;
  21751. }
  21752. function translate(number, withoutSuffix, key, isFuture) {
  21753. var result = number + ' ';
  21754. switch (key) {
  21755. case 's':
  21756. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  21757. case 'ss':
  21758. if (plural(number)) {
  21759. return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');
  21760. }
  21761. return result + 'sekúnda';
  21762. case 'm':
  21763. return withoutSuffix ? 'mínúta' : 'mínútu';
  21764. case 'mm':
  21765. if (plural(number)) {
  21766. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  21767. } else if (withoutSuffix) {
  21768. return result + 'mínúta';
  21769. }
  21770. return result + 'mínútu';
  21771. case 'hh':
  21772. if (plural(number)) {
  21773. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  21774. }
  21775. return result + 'klukkustund';
  21776. case 'd':
  21777. if (withoutSuffix) {
  21778. return 'dagur';
  21779. }
  21780. return isFuture ? 'dag' : 'degi';
  21781. case 'dd':
  21782. if (plural(number)) {
  21783. if (withoutSuffix) {
  21784. return result + 'dagar';
  21785. }
  21786. return result + (isFuture ? 'daga' : 'dögum');
  21787. } else if (withoutSuffix) {
  21788. return result + 'dagur';
  21789. }
  21790. return result + (isFuture ? 'dag' : 'degi');
  21791. case 'M':
  21792. if (withoutSuffix) {
  21793. return 'mánuður';
  21794. }
  21795. return isFuture ? 'mánuð' : 'mánuði';
  21796. case 'MM':
  21797. if (plural(number)) {
  21798. if (withoutSuffix) {
  21799. return result + 'mánuðir';
  21800. }
  21801. return result + (isFuture ? 'mánuði' : 'mánuðum');
  21802. } else if (withoutSuffix) {
  21803. return result + 'mánuður';
  21804. }
  21805. return result + (isFuture ? 'mánuð' : 'mánuði');
  21806. case 'y':
  21807. return withoutSuffix || isFuture ? 'ár' : 'ári';
  21808. case 'yy':
  21809. if (plural(number)) {
  21810. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  21811. }
  21812. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  21813. }
  21814. }
  21815. var is = moment.defineLocale('is', {
  21816. months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  21817. monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  21818. weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  21819. weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  21820. weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  21821. longDateFormat: {
  21822. LT: 'H:mm',
  21823. LTS: 'H:mm:ss',
  21824. L: 'DD.MM.YYYY',
  21825. LL: 'D. MMMM YYYY',
  21826. LLL: 'D. MMMM YYYY [kl.] H:mm',
  21827. LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm'
  21828. },
  21829. calendar: {
  21830. sameDay: '[í dag kl.] LT',
  21831. nextDay: '[á morgun kl.] LT',
  21832. nextWeek: 'dddd [kl.] LT',
  21833. lastDay: '[í gær kl.] LT',
  21834. lastWeek: '[síðasta] dddd [kl.] LT',
  21835. sameElse: 'L'
  21836. },
  21837. relativeTime: {
  21838. future: 'eftir %s',
  21839. past: 'fyrir %s síðan',
  21840. s: translate,
  21841. ss: translate,
  21842. m: translate,
  21843. mm: translate,
  21844. h: 'klukkustund',
  21845. hh: translate,
  21846. d: translate,
  21847. dd: translate,
  21848. M: translate,
  21849. MM: translate,
  21850. y: translate,
  21851. yy: translate
  21852. },
  21853. dayOfMonthOrdinalParse: /\d{1,2}\./,
  21854. ordinal: '%d.',
  21855. week: {
  21856. dow: 1,
  21857. // Monday is the first day of the week.
  21858. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21859. }
  21860. });
  21861. return is;
  21862. });
  21863. /***/ }),
  21864. /* 177 */
  21865. /*!***********************************************************!*\
  21866. !*** D:/SWS_New/sws_new/node_modules/moment/locale/it.js ***!
  21867. \***********************************************************/
  21868. /*! no static exports found */
  21869. /***/ (function(module, exports, __webpack_require__) {
  21870. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21871. //! moment.js locale configuration
  21872. //! locale : Italian [it]
  21873. //! author : Lorenzo : https://github.com/aliem
  21874. //! author: Mattia Larentis: https://github.com/nostalgiaz
  21875. //! author: Marco : https://github.com/Manfre98
  21876. ;
  21877. (function (global, factory) {
  21878. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21879. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21880. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21881. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21882. })(this, function (moment) {
  21883. 'use strict';
  21884. //! moment.js locale configuration
  21885. var it = moment.defineLocale('it', {
  21886. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  21887. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  21888. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  21889. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  21890. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  21891. longDateFormat: {
  21892. LT: 'HH:mm',
  21893. LTS: 'HH:mm:ss',
  21894. L: 'DD/MM/YYYY',
  21895. LL: 'D MMMM YYYY',
  21896. LLL: 'D MMMM YYYY HH:mm',
  21897. LLLL: 'dddd D MMMM YYYY HH:mm'
  21898. },
  21899. calendar: {
  21900. sameDay: function sameDay() {
  21901. return '[Oggi a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  21902. },
  21903. nextDay: function nextDay() {
  21904. return '[Domani a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  21905. },
  21906. nextWeek: function nextWeek() {
  21907. return 'dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  21908. },
  21909. lastDay: function lastDay() {
  21910. return '[Ieri a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  21911. },
  21912. lastWeek: function lastWeek() {
  21913. switch (this.day()) {
  21914. case 0:
  21915. return '[La scorsa] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  21916. default:
  21917. return '[Lo scorso] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  21918. }
  21919. },
  21920. sameElse: 'L'
  21921. },
  21922. relativeTime: {
  21923. future: 'tra %s',
  21924. past: '%s fa',
  21925. s: 'alcuni secondi',
  21926. ss: '%d secondi',
  21927. m: 'un minuto',
  21928. mm: '%d minuti',
  21929. h: "un'ora",
  21930. hh: '%d ore',
  21931. d: 'un giorno',
  21932. dd: '%d giorni',
  21933. w: 'una settimana',
  21934. ww: '%d settimane',
  21935. M: 'un mese',
  21936. MM: '%d mesi',
  21937. y: 'un anno',
  21938. yy: '%d anni'
  21939. },
  21940. dayOfMonthOrdinalParse: /\d{1,2}º/,
  21941. ordinal: '%dº',
  21942. week: {
  21943. dow: 1,
  21944. // Monday is the first day of the week.
  21945. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21946. }
  21947. });
  21948. return it;
  21949. });
  21950. /***/ }),
  21951. /* 178 */
  21952. /*!**************************************************************!*\
  21953. !*** D:/SWS_New/sws_new/node_modules/moment/locale/it-ch.js ***!
  21954. \**************************************************************/
  21955. /*! no static exports found */
  21956. /***/ (function(module, exports, __webpack_require__) {
  21957. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21958. //! moment.js locale configuration
  21959. //! locale : Italian (Switzerland) [it-ch]
  21960. //! author : xfh : https://github.com/xfh
  21961. ;
  21962. (function (global, factory) {
  21963. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21964. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21965. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21966. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21967. })(this, function (moment) {
  21968. 'use strict';
  21969. //! moment.js locale configuration
  21970. var itCh = moment.defineLocale('it-ch', {
  21971. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  21972. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  21973. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  21974. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  21975. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  21976. longDateFormat: {
  21977. LT: 'HH:mm',
  21978. LTS: 'HH:mm:ss',
  21979. L: 'DD.MM.YYYY',
  21980. LL: 'D MMMM YYYY',
  21981. LLL: 'D MMMM YYYY HH:mm',
  21982. LLLL: 'dddd D MMMM YYYY HH:mm'
  21983. },
  21984. calendar: {
  21985. sameDay: '[Oggi alle] LT',
  21986. nextDay: '[Domani alle] LT',
  21987. nextWeek: 'dddd [alle] LT',
  21988. lastDay: '[Ieri alle] LT',
  21989. lastWeek: function lastWeek() {
  21990. switch (this.day()) {
  21991. case 0:
  21992. return '[la scorsa] dddd [alle] LT';
  21993. default:
  21994. return '[lo scorso] dddd [alle] LT';
  21995. }
  21996. },
  21997. sameElse: 'L'
  21998. },
  21999. relativeTime: {
  22000. future: function future(s) {
  22001. return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
  22002. },
  22003. past: '%s fa',
  22004. s: 'alcuni secondi',
  22005. ss: '%d secondi',
  22006. m: 'un minuto',
  22007. mm: '%d minuti',
  22008. h: "un'ora",
  22009. hh: '%d ore',
  22010. d: 'un giorno',
  22011. dd: '%d giorni',
  22012. M: 'un mese',
  22013. MM: '%d mesi',
  22014. y: 'un anno',
  22015. yy: '%d anni'
  22016. },
  22017. dayOfMonthOrdinalParse: /\d{1,2}º/,
  22018. ordinal: '%dº',
  22019. week: {
  22020. dow: 1,
  22021. // Monday is the first day of the week.
  22022. doy: 4 // The week that contains Jan 4th is the first week of the year.
  22023. }
  22024. });
  22025. return itCh;
  22026. });
  22027. /***/ }),
  22028. /* 179 */
  22029. /*!***********************************************************!*\
  22030. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ja.js ***!
  22031. \***********************************************************/
  22032. /*! no static exports found */
  22033. /***/ (function(module, exports, __webpack_require__) {
  22034. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22035. //! moment.js locale configuration
  22036. //! locale : Japanese [ja]
  22037. //! author : LI Long : https://github.com/baryon
  22038. ;
  22039. (function (global, factory) {
  22040. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22041. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22042. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22043. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22044. })(this, function (moment) {
  22045. 'use strict';
  22046. //! moment.js locale configuration
  22047. var ja = moment.defineLocale('ja', {
  22048. eras: [{
  22049. since: '2019-05-01',
  22050. offset: 1,
  22051. name: '令和',
  22052. narrow: '㋿',
  22053. abbr: 'R'
  22054. }, {
  22055. since: '1989-01-08',
  22056. until: '2019-04-30',
  22057. offset: 1,
  22058. name: '平成',
  22059. narrow: '㍻',
  22060. abbr: 'H'
  22061. }, {
  22062. since: '1926-12-25',
  22063. until: '1989-01-07',
  22064. offset: 1,
  22065. name: '昭和',
  22066. narrow: '㍼',
  22067. abbr: 'S'
  22068. }, {
  22069. since: '1912-07-30',
  22070. until: '1926-12-24',
  22071. offset: 1,
  22072. name: '大正',
  22073. narrow: '㍽',
  22074. abbr: 'T'
  22075. }, {
  22076. since: '1873-01-01',
  22077. until: '1912-07-29',
  22078. offset: 6,
  22079. name: '明治',
  22080. narrow: '㍾',
  22081. abbr: 'M'
  22082. }, {
  22083. since: '0001-01-01',
  22084. until: '1873-12-31',
  22085. offset: 1,
  22086. name: '西暦',
  22087. narrow: 'AD',
  22088. abbr: 'AD'
  22089. }, {
  22090. since: '0000-12-31',
  22091. until: -Infinity,
  22092. offset: 1,
  22093. name: '紀元前',
  22094. narrow: 'BC',
  22095. abbr: 'BC'
  22096. }],
  22097. eraYearOrdinalRegex: /(元|\d+)年/,
  22098. eraYearOrdinalParse: function eraYearOrdinalParse(input, match) {
  22099. return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
  22100. },
  22101. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  22102. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  22103. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  22104. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  22105. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  22106. longDateFormat: {
  22107. LT: 'HH:mm',
  22108. LTS: 'HH:mm:ss',
  22109. L: 'YYYY/MM/DD',
  22110. LL: 'YYYY年M月D日',
  22111. LLL: 'YYYY年M月D日 HH:mm',
  22112. LLLL: 'YYYY年M月D日 dddd HH:mm',
  22113. l: 'YYYY/MM/DD',
  22114. ll: 'YYYY年M月D日',
  22115. lll: 'YYYY年M月D日 HH:mm',
  22116. llll: 'YYYY年M月D日(ddd) HH:mm'
  22117. },
  22118. meridiemParse: /午前|午後/i,
  22119. isPM: function isPM(input) {
  22120. return input === '午後';
  22121. },
  22122. meridiem: function meridiem(hour, minute, isLower) {
  22123. if (hour < 12) {
  22124. return '午前';
  22125. } else {
  22126. return '午後';
  22127. }
  22128. },
  22129. calendar: {
  22130. sameDay: '[今日] LT',
  22131. nextDay: '[明日] LT',
  22132. nextWeek: function nextWeek(now) {
  22133. if (now.week() !== this.week()) {
  22134. return '[来週]dddd LT';
  22135. } else {
  22136. return 'dddd LT';
  22137. }
  22138. },
  22139. lastDay: '[昨日] LT',
  22140. lastWeek: function lastWeek(now) {
  22141. if (this.week() !== now.week()) {
  22142. return '[先週]dddd LT';
  22143. } else {
  22144. return 'dddd LT';
  22145. }
  22146. },
  22147. sameElse: 'L'
  22148. },
  22149. dayOfMonthOrdinalParse: /\d{1,2}日/,
  22150. ordinal: function ordinal(number, period) {
  22151. switch (period) {
  22152. case 'y':
  22153. return number === 1 ? '元年' : number + '年';
  22154. case 'd':
  22155. case 'D':
  22156. case 'DDD':
  22157. return number + '日';
  22158. default:
  22159. return number;
  22160. }
  22161. },
  22162. relativeTime: {
  22163. future: '%s後',
  22164. past: '%s前',
  22165. s: '数秒',
  22166. ss: '%d秒',
  22167. m: '1分',
  22168. mm: '%d分',
  22169. h: '1時間',
  22170. hh: '%d時間',
  22171. d: '1日',
  22172. dd: '%d日',
  22173. M: '1ヶ月',
  22174. MM: '%dヶ月',
  22175. y: '1年',
  22176. yy: '%d年'
  22177. }
  22178. });
  22179. return ja;
  22180. });
  22181. /***/ }),
  22182. /* 180 */
  22183. /*!***********************************************************!*\
  22184. !*** D:/SWS_New/sws_new/node_modules/moment/locale/jv.js ***!
  22185. \***********************************************************/
  22186. /*! no static exports found */
  22187. /***/ (function(module, exports, __webpack_require__) {
  22188. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22189. //! moment.js locale configuration
  22190. //! locale : Javanese [jv]
  22191. //! author : Rony Lantip : https://github.com/lantip
  22192. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  22193. ;
  22194. (function (global, factory) {
  22195. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22196. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22197. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22198. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22199. })(this, function (moment) {
  22200. 'use strict';
  22201. //! moment.js locale configuration
  22202. var jv = moment.defineLocale('jv', {
  22203. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  22204. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  22205. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  22206. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  22207. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  22208. longDateFormat: {
  22209. LT: 'HH.mm',
  22210. LTS: 'HH.mm.ss',
  22211. L: 'DD/MM/YYYY',
  22212. LL: 'D MMMM YYYY',
  22213. LLL: 'D MMMM YYYY [pukul] HH.mm',
  22214. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  22215. },
  22216. meridiemParse: /enjing|siyang|sonten|ndalu/,
  22217. meridiemHour: function meridiemHour(hour, meridiem) {
  22218. if (hour === 12) {
  22219. hour = 0;
  22220. }
  22221. if (meridiem === 'enjing') {
  22222. return hour;
  22223. } else if (meridiem === 'siyang') {
  22224. return hour >= 11 ? hour : hour + 12;
  22225. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  22226. return hour + 12;
  22227. }
  22228. },
  22229. meridiem: function meridiem(hours, minutes, isLower) {
  22230. if (hours < 11) {
  22231. return 'enjing';
  22232. } else if (hours < 15) {
  22233. return 'siyang';
  22234. } else if (hours < 19) {
  22235. return 'sonten';
  22236. } else {
  22237. return 'ndalu';
  22238. }
  22239. },
  22240. calendar: {
  22241. sameDay: '[Dinten puniko pukul] LT',
  22242. nextDay: '[Mbenjang pukul] LT',
  22243. nextWeek: 'dddd [pukul] LT',
  22244. lastDay: '[Kala wingi pukul] LT',
  22245. lastWeek: 'dddd [kepengker pukul] LT',
  22246. sameElse: 'L'
  22247. },
  22248. relativeTime: {
  22249. future: 'wonten ing %s',
  22250. past: '%s ingkang kepengker',
  22251. s: 'sawetawis detik',
  22252. ss: '%d detik',
  22253. m: 'setunggal menit',
  22254. mm: '%d menit',
  22255. h: 'setunggal jam',
  22256. hh: '%d jam',
  22257. d: 'sedinten',
  22258. dd: '%d dinten',
  22259. M: 'sewulan',
  22260. MM: '%d wulan',
  22261. y: 'setaun',
  22262. yy: '%d taun'
  22263. },
  22264. week: {
  22265. dow: 1,
  22266. // Monday is the first day of the week.
  22267. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22268. }
  22269. });
  22270. return jv;
  22271. });
  22272. /***/ }),
  22273. /* 181 */
  22274. /*!***********************************************************!*\
  22275. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ka.js ***!
  22276. \***********************************************************/
  22277. /*! no static exports found */
  22278. /***/ (function(module, exports, __webpack_require__) {
  22279. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22280. //! moment.js locale configuration
  22281. //! locale : Georgian [ka]
  22282. //! author : Irakli Janiashvili : https://github.com/IrakliJani
  22283. ;
  22284. (function (global, factory) {
  22285. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22286. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22287. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22288. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22289. })(this, function (moment) {
  22290. 'use strict';
  22291. //! moment.js locale configuration
  22292. var ka = moment.defineLocale('ka', {
  22293. months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  22294. monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  22295. weekdays: {
  22296. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  22297. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
  22298. isFormat: /(წინა|შემდეგ)/
  22299. },
  22300. weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  22301. weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  22302. longDateFormat: {
  22303. LT: 'HH:mm',
  22304. LTS: 'HH:mm:ss',
  22305. L: 'DD/MM/YYYY',
  22306. LL: 'D MMMM YYYY',
  22307. LLL: 'D MMMM YYYY HH:mm',
  22308. LLLL: 'dddd, D MMMM YYYY HH:mm'
  22309. },
  22310. calendar: {
  22311. sameDay: '[დღეს] LT[-ზე]',
  22312. nextDay: '[ხვალ] LT[-ზე]',
  22313. lastDay: '[გუშინ] LT[-ზე]',
  22314. nextWeek: '[შემდეგ] dddd LT[-ზე]',
  22315. lastWeek: '[წინა] dddd LT-ზე',
  22316. sameElse: 'L'
  22317. },
  22318. relativeTime: {
  22319. future: function future(s) {
  22320. return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function ($0, $1, $2) {
  22321. return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
  22322. });
  22323. },
  22324. past: function past(s) {
  22325. if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
  22326. return s.replace(/(ი|ე)$/, 'ის წინ');
  22327. }
  22328. if (/წელი/.test(s)) {
  22329. return s.replace(/წელი$/, 'წლის წინ');
  22330. }
  22331. return s;
  22332. },
  22333. s: 'რამდენიმე წამი',
  22334. ss: '%d წამი',
  22335. m: 'წუთი',
  22336. mm: '%d წუთი',
  22337. h: 'საათი',
  22338. hh: '%d საათი',
  22339. d: 'დღე',
  22340. dd: '%d დღე',
  22341. M: 'თვე',
  22342. MM: '%d თვე',
  22343. y: 'წელი',
  22344. yy: '%d წელი'
  22345. },
  22346. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  22347. ordinal: function ordinal(number) {
  22348. if (number === 0) {
  22349. return number;
  22350. }
  22351. if (number === 1) {
  22352. return number + '-ლი';
  22353. }
  22354. if (number < 20 || number <= 100 && number % 20 === 0 || number % 100 === 0) {
  22355. return 'მე-' + number;
  22356. }
  22357. return number + '-ე';
  22358. },
  22359. week: {
  22360. dow: 1,
  22361. doy: 7
  22362. }
  22363. });
  22364. return ka;
  22365. });
  22366. /***/ }),
  22367. /* 182 */
  22368. /*!***********************************************************!*\
  22369. !*** D:/SWS_New/sws_new/node_modules/moment/locale/kk.js ***!
  22370. \***********************************************************/
  22371. /*! no static exports found */
  22372. /***/ (function(module, exports, __webpack_require__) {
  22373. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22374. //! moment.js locale configuration
  22375. //! locale : Kazakh [kk]
  22376. //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
  22377. ;
  22378. (function (global, factory) {
  22379. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22380. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22381. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22382. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22383. })(this, function (moment) {
  22384. 'use strict';
  22385. //! moment.js locale configuration
  22386. var suffixes = {
  22387. 0: '-ші',
  22388. 1: '-ші',
  22389. 2: '-ші',
  22390. 3: '-ші',
  22391. 4: '-ші',
  22392. 5: '-ші',
  22393. 6: '-шы',
  22394. 7: '-ші',
  22395. 8: '-ші',
  22396. 9: '-шы',
  22397. 10: '-шы',
  22398. 20: '-шы',
  22399. 30: '-шы',
  22400. 40: '-шы',
  22401. 50: '-ші',
  22402. 60: '-шы',
  22403. 70: '-ші',
  22404. 80: '-ші',
  22405. 90: '-шы',
  22406. 100: '-ші'
  22407. };
  22408. var kk = moment.defineLocale('kk', {
  22409. months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
  22410. monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  22411. weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
  22412. weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  22413. weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  22414. longDateFormat: {
  22415. LT: 'HH:mm',
  22416. LTS: 'HH:mm:ss',
  22417. L: 'DD.MM.YYYY',
  22418. LL: 'D MMMM YYYY',
  22419. LLL: 'D MMMM YYYY HH:mm',
  22420. LLLL: 'dddd, D MMMM YYYY HH:mm'
  22421. },
  22422. calendar: {
  22423. sameDay: '[Бүгін сағат] LT',
  22424. nextDay: '[Ертең сағат] LT',
  22425. nextWeek: 'dddd [сағат] LT',
  22426. lastDay: '[Кеше сағат] LT',
  22427. lastWeek: '[Өткен аптаның] dddd [сағат] LT',
  22428. sameElse: 'L'
  22429. },
  22430. relativeTime: {
  22431. future: '%s ішінде',
  22432. past: '%s бұрын',
  22433. s: 'бірнеше секунд',
  22434. ss: '%d секунд',
  22435. m: 'бір минут',
  22436. mm: '%d минут',
  22437. h: 'бір сағат',
  22438. hh: '%d сағат',
  22439. d: 'бір күн',
  22440. dd: '%d күн',
  22441. M: 'бір ай',
  22442. MM: '%d ай',
  22443. y: 'бір жыл',
  22444. yy: '%d жыл'
  22445. },
  22446. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  22447. ordinal: function ordinal(number) {
  22448. var a = number % 10,
  22449. b = number >= 100 ? 100 : null;
  22450. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  22451. },
  22452. week: {
  22453. dow: 1,
  22454. // Monday is the first day of the week.
  22455. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22456. }
  22457. });
  22458. return kk;
  22459. });
  22460. /***/ }),
  22461. /* 183 */
  22462. /*!***********************************************************!*\
  22463. !*** D:/SWS_New/sws_new/node_modules/moment/locale/km.js ***!
  22464. \***********************************************************/
  22465. /*! no static exports found */
  22466. /***/ (function(module, exports, __webpack_require__) {
  22467. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22468. //! moment.js locale configuration
  22469. //! locale : Cambodian [km]
  22470. //! author : Kruy Vanna : https://github.com/kruyvanna
  22471. ;
  22472. (function (global, factory) {
  22473. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22474. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22475. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22476. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22477. })(this, function (moment) {
  22478. 'use strict';
  22479. //! moment.js locale configuration
  22480. var symbolMap = {
  22481. 1: '១',
  22482. 2: '២',
  22483. 3: '៣',
  22484. 4: '៤',
  22485. 5: '៥',
  22486. 6: '៦',
  22487. 7: '៧',
  22488. 8: '៨',
  22489. 9: '៩',
  22490. 0: '០'
  22491. },
  22492. numberMap = {
  22493. '១': '1',
  22494. '២': '2',
  22495. '៣': '3',
  22496. '៤': '4',
  22497. '៥': '5',
  22498. '៦': '6',
  22499. '៧': '7',
  22500. '៨': '8',
  22501. '៩': '9',
  22502. '០': '0'
  22503. };
  22504. var km = moment.defineLocale('km', {
  22505. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  22506. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  22507. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  22508. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  22509. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  22510. weekdaysParseExact: true,
  22511. longDateFormat: {
  22512. LT: 'HH:mm',
  22513. LTS: 'HH:mm:ss',
  22514. L: 'DD/MM/YYYY',
  22515. LL: 'D MMMM YYYY',
  22516. LLL: 'D MMMM YYYY HH:mm',
  22517. LLLL: 'dddd, D MMMM YYYY HH:mm'
  22518. },
  22519. meridiemParse: /ព្រឹក|ល្ងាច/,
  22520. isPM: function isPM(input) {
  22521. return input === 'ល្ងាច';
  22522. },
  22523. meridiem: function meridiem(hour, minute, isLower) {
  22524. if (hour < 12) {
  22525. return 'ព្រឹក';
  22526. } else {
  22527. return 'ល្ងាច';
  22528. }
  22529. },
  22530. calendar: {
  22531. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  22532. nextDay: '[ស្អែក ម៉ោង] LT',
  22533. nextWeek: 'dddd [ម៉ោង] LT',
  22534. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  22535. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  22536. sameElse: 'L'
  22537. },
  22538. relativeTime: {
  22539. future: '%sទៀត',
  22540. past: '%sមុន',
  22541. s: 'ប៉ុន្មានវិនាទី',
  22542. ss: '%d វិនាទី',
  22543. m: 'មួយនាទី',
  22544. mm: '%d នាទី',
  22545. h: 'មួយម៉ោង',
  22546. hh: '%d ម៉ោង',
  22547. d: 'មួយថ្ងៃ',
  22548. dd: '%d ថ្ងៃ',
  22549. M: 'មួយខែ',
  22550. MM: '%d ខែ',
  22551. y: 'មួយឆ្នាំ',
  22552. yy: '%d ឆ្នាំ'
  22553. },
  22554. dayOfMonthOrdinalParse: /ទី\d{1,2}/,
  22555. ordinal: 'ទី%d',
  22556. preparse: function preparse(string) {
  22557. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  22558. return numberMap[match];
  22559. });
  22560. },
  22561. postformat: function postformat(string) {
  22562. return string.replace(/\d/g, function (match) {
  22563. return symbolMap[match];
  22564. });
  22565. },
  22566. week: {
  22567. dow: 1,
  22568. // Monday is the first day of the week.
  22569. doy: 4 // The week that contains Jan 4th is the first week of the year.
  22570. }
  22571. });
  22572. return km;
  22573. });
  22574. /***/ }),
  22575. /* 184 */
  22576. /*!***********************************************************!*\
  22577. !*** D:/SWS_New/sws_new/node_modules/moment/locale/kn.js ***!
  22578. \***********************************************************/
  22579. /*! no static exports found */
  22580. /***/ (function(module, exports, __webpack_require__) {
  22581. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22582. //! moment.js locale configuration
  22583. //! locale : Kannada [kn]
  22584. //! author : Rajeev Naik : https://github.com/rajeevnaikte
  22585. ;
  22586. (function (global, factory) {
  22587. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22588. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22589. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22590. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22591. })(this, function (moment) {
  22592. 'use strict';
  22593. //! moment.js locale configuration
  22594. var symbolMap = {
  22595. 1: '೧',
  22596. 2: '೨',
  22597. 3: '೩',
  22598. 4: '೪',
  22599. 5: '೫',
  22600. 6: '೬',
  22601. 7: '೭',
  22602. 8: '೮',
  22603. 9: '೯',
  22604. 0: '೦'
  22605. },
  22606. numberMap = {
  22607. '೧': '1',
  22608. '೨': '2',
  22609. '೩': '3',
  22610. '೪': '4',
  22611. '೫': '5',
  22612. '೬': '6',
  22613. '೭': '7',
  22614. '೮': '8',
  22615. '೯': '9',
  22616. '೦': '0'
  22617. };
  22618. var kn = moment.defineLocale('kn', {
  22619. months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
  22620. monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),
  22621. monthsParseExact: true,
  22622. weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
  22623. weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  22624. weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  22625. longDateFormat: {
  22626. LT: 'A h:mm',
  22627. LTS: 'A h:mm:ss',
  22628. L: 'DD/MM/YYYY',
  22629. LL: 'D MMMM YYYY',
  22630. LLL: 'D MMMM YYYY, A h:mm',
  22631. LLLL: 'dddd, D MMMM YYYY, A h:mm'
  22632. },
  22633. calendar: {
  22634. sameDay: '[ಇಂದು] LT',
  22635. nextDay: '[ನಾಳೆ] LT',
  22636. nextWeek: 'dddd, LT',
  22637. lastDay: '[ನಿನ್ನೆ] LT',
  22638. lastWeek: '[ಕೊನೆಯ] dddd, LT',
  22639. sameElse: 'L'
  22640. },
  22641. relativeTime: {
  22642. future: '%s ನಂತರ',
  22643. past: '%s ಹಿಂದೆ',
  22644. s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
  22645. ss: '%d ಸೆಕೆಂಡುಗಳು',
  22646. m: 'ಒಂದು ನಿಮಿಷ',
  22647. mm: '%d ನಿಮಿಷ',
  22648. h: 'ಒಂದು ಗಂಟೆ',
  22649. hh: '%d ಗಂಟೆ',
  22650. d: 'ಒಂದು ದಿನ',
  22651. dd: '%d ದಿನ',
  22652. M: 'ಒಂದು ತಿಂಗಳು',
  22653. MM: '%d ತಿಂಗಳು',
  22654. y: 'ಒಂದು ವರ್ಷ',
  22655. yy: '%d ವರ್ಷ'
  22656. },
  22657. preparse: function preparse(string) {
  22658. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  22659. return numberMap[match];
  22660. });
  22661. },
  22662. postformat: function postformat(string) {
  22663. return string.replace(/\d/g, function (match) {
  22664. return symbolMap[match];
  22665. });
  22666. },
  22667. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  22668. meridiemHour: function meridiemHour(hour, meridiem) {
  22669. if (hour === 12) {
  22670. hour = 0;
  22671. }
  22672. if (meridiem === 'ರಾತ್ರಿ') {
  22673. return hour < 4 ? hour : hour + 12;
  22674. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  22675. return hour;
  22676. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  22677. return hour >= 10 ? hour : hour + 12;
  22678. } else if (meridiem === 'ಸಂಜೆ') {
  22679. return hour + 12;
  22680. }
  22681. },
  22682. meridiem: function meridiem(hour, minute, isLower) {
  22683. if (hour < 4) {
  22684. return 'ರಾತ್ರಿ';
  22685. } else if (hour < 10) {
  22686. return 'ಬೆಳಿಗ್ಗೆ';
  22687. } else if (hour < 17) {
  22688. return 'ಮಧ್ಯಾಹ್ನ';
  22689. } else if (hour < 20) {
  22690. return 'ಸಂಜೆ';
  22691. } else {
  22692. return 'ರಾತ್ರಿ';
  22693. }
  22694. },
  22695. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  22696. ordinal: function ordinal(number) {
  22697. return number + 'ನೇ';
  22698. },
  22699. week: {
  22700. dow: 0,
  22701. // Sunday is the first day of the week.
  22702. doy: 6 // The week that contains Jan 6th is the first week of the year.
  22703. }
  22704. });
  22705. return kn;
  22706. });
  22707. /***/ }),
  22708. /* 185 */
  22709. /*!***********************************************************!*\
  22710. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ko.js ***!
  22711. \***********************************************************/
  22712. /*! no static exports found */
  22713. /***/ (function(module, exports, __webpack_require__) {
  22714. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22715. //! moment.js locale configuration
  22716. //! locale : Korean [ko]
  22717. //! author : Kyungwook, Park : https://github.com/kyungw00k
  22718. //! author : Jeeeyul Lee <jeeeyul@gmail.com>
  22719. ;
  22720. (function (global, factory) {
  22721. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22722. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22723. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22724. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22725. })(this, function (moment) {
  22726. 'use strict';
  22727. //! moment.js locale configuration
  22728. var ko = moment.defineLocale('ko', {
  22729. months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  22730. monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  22731. weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  22732. weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
  22733. weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
  22734. longDateFormat: {
  22735. LT: 'A h:mm',
  22736. LTS: 'A h:mm:ss',
  22737. L: 'YYYY.MM.DD.',
  22738. LL: 'YYYY년 MMMM D일',
  22739. LLL: 'YYYY년 MMMM D일 A h:mm',
  22740. LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
  22741. l: 'YYYY.MM.DD.',
  22742. ll: 'YYYY년 MMMM D일',
  22743. lll: 'YYYY년 MMMM D일 A h:mm',
  22744. llll: 'YYYY년 MMMM D일 dddd A h:mm'
  22745. },
  22746. calendar: {
  22747. sameDay: '오늘 LT',
  22748. nextDay: '내일 LT',
  22749. nextWeek: 'dddd LT',
  22750. lastDay: '어제 LT',
  22751. lastWeek: '지난주 dddd LT',
  22752. sameElse: 'L'
  22753. },
  22754. relativeTime: {
  22755. future: '%s 후',
  22756. past: '%s 전',
  22757. s: '몇 초',
  22758. ss: '%d초',
  22759. m: '1분',
  22760. mm: '%d분',
  22761. h: '한 시간',
  22762. hh: '%d시간',
  22763. d: '하루',
  22764. dd: '%d일',
  22765. M: '한 달',
  22766. MM: '%d달',
  22767. y: '일 년',
  22768. yy: '%d년'
  22769. },
  22770. dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
  22771. ordinal: function ordinal(number, period) {
  22772. switch (period) {
  22773. case 'd':
  22774. case 'D':
  22775. case 'DDD':
  22776. return number + '일';
  22777. case 'M':
  22778. return number + '월';
  22779. case 'w':
  22780. case 'W':
  22781. return number + '주';
  22782. default:
  22783. return number;
  22784. }
  22785. },
  22786. meridiemParse: /오전|오후/,
  22787. isPM: function isPM(token) {
  22788. return token === '오후';
  22789. },
  22790. meridiem: function meridiem(hour, minute, isUpper) {
  22791. return hour < 12 ? '오전' : '오후';
  22792. }
  22793. });
  22794. return ko;
  22795. });
  22796. /***/ }),
  22797. /* 186 */
  22798. /*!***********************************************************!*\
  22799. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ku.js ***!
  22800. \***********************************************************/
  22801. /*! no static exports found */
  22802. /***/ (function(module, exports, __webpack_require__) {
  22803. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22804. //! moment.js locale configuration
  22805. //! locale : Kurdish [ku]
  22806. //! author : Shahram Mebashar : https://github.com/ShahramMebashar
  22807. ;
  22808. (function (global, factory) {
  22809. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22810. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22811. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22812. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22813. })(this, function (moment) {
  22814. 'use strict';
  22815. //! moment.js locale configuration
  22816. var symbolMap = {
  22817. 1: '١',
  22818. 2: '٢',
  22819. 3: '٣',
  22820. 4: '٤',
  22821. 5: '٥',
  22822. 6: '٦',
  22823. 7: '٧',
  22824. 8: '٨',
  22825. 9: '٩',
  22826. 0: '٠'
  22827. },
  22828. numberMap = {
  22829. '١': '1',
  22830. '٢': '2',
  22831. '٣': '3',
  22832. '٤': '4',
  22833. '٥': '5',
  22834. '٦': '6',
  22835. '٧': '7',
  22836. '٨': '8',
  22837. '٩': '9',
  22838. '٠': '0'
  22839. },
  22840. months = ['کانونی دووەم', 'شوبات', 'ئازار', 'نیسان', 'ئایار', 'حوزەیران', 'تەمموز', 'ئاب', 'ئەیلوول', 'تشرینی یەكەم', 'تشرینی دووەم', 'كانونی یەکەم'];
  22841. var ku = moment.defineLocale('ku', {
  22842. months: months,
  22843. monthsShort: months,
  22844. weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split('_'),
  22845. weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
  22846. weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
  22847. weekdaysParseExact: true,
  22848. longDateFormat: {
  22849. LT: 'HH:mm',
  22850. LTS: 'HH:mm:ss',
  22851. L: 'DD/MM/YYYY',
  22852. LL: 'D MMMM YYYY',
  22853. LLL: 'D MMMM YYYY HH:mm',
  22854. LLLL: 'dddd, D MMMM YYYY HH:mm'
  22855. },
  22856. meridiemParse: /ئێواره‌|به‌یانی/,
  22857. isPM: function isPM(input) {
  22858. return /ئێواره‌/.test(input);
  22859. },
  22860. meridiem: function meridiem(hour, minute, isLower) {
  22861. if (hour < 12) {
  22862. return 'به‌یانی';
  22863. } else {
  22864. return 'ئێواره‌';
  22865. }
  22866. },
  22867. calendar: {
  22868. sameDay: '[ئه‌مرۆ كاتژمێر] LT',
  22869. nextDay: '[به‌یانی كاتژمێر] LT',
  22870. nextWeek: 'dddd [كاتژمێر] LT',
  22871. lastDay: '[دوێنێ كاتژمێر] LT',
  22872. lastWeek: 'dddd [كاتژمێر] LT',
  22873. sameElse: 'L'
  22874. },
  22875. relativeTime: {
  22876. future: 'له‌ %s',
  22877. past: '%s',
  22878. s: 'چه‌ند چركه‌یه‌ك',
  22879. ss: 'چركه‌ %d',
  22880. m: 'یه‌ك خوله‌ك',
  22881. mm: '%d خوله‌ك',
  22882. h: 'یه‌ك كاتژمێر',
  22883. hh: '%d كاتژمێر',
  22884. d: 'یه‌ك ڕۆژ',
  22885. dd: '%d ڕۆژ',
  22886. M: 'یه‌ك مانگ',
  22887. MM: '%d مانگ',
  22888. y: 'یه‌ك ساڵ',
  22889. yy: '%d ساڵ'
  22890. },
  22891. preparse: function preparse(string) {
  22892. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  22893. return numberMap[match];
  22894. }).replace(/،/g, ',');
  22895. },
  22896. postformat: function postformat(string) {
  22897. return string.replace(/\d/g, function (match) {
  22898. return symbolMap[match];
  22899. }).replace(/,/g, '،');
  22900. },
  22901. week: {
  22902. dow: 6,
  22903. // Saturday is the first day of the week.
  22904. doy: 12 // The week that contains Jan 12th is the first week of the year.
  22905. }
  22906. });
  22907. return ku;
  22908. });
  22909. /***/ }),
  22910. /* 187 */
  22911. /*!***********************************************************!*\
  22912. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ky.js ***!
  22913. \***********************************************************/
  22914. /*! no static exports found */
  22915. /***/ (function(module, exports, __webpack_require__) {
  22916. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22917. //! moment.js locale configuration
  22918. //! locale : Kyrgyz [ky]
  22919. //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
  22920. ;
  22921. (function (global, factory) {
  22922. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22923. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22924. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22925. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22926. })(this, function (moment) {
  22927. 'use strict';
  22928. //! moment.js locale configuration
  22929. var suffixes = {
  22930. 0: '-чү',
  22931. 1: '-чи',
  22932. 2: '-чи',
  22933. 3: '-чү',
  22934. 4: '-чү',
  22935. 5: '-чи',
  22936. 6: '-чы',
  22937. 7: '-чи',
  22938. 8: '-чи',
  22939. 9: '-чу',
  22940. 10: '-чу',
  22941. 20: '-чы',
  22942. 30: '-чу',
  22943. 40: '-чы',
  22944. 50: '-чү',
  22945. 60: '-чы',
  22946. 70: '-чи',
  22947. 80: '-чи',
  22948. 90: '-чу',
  22949. 100: '-чү'
  22950. };
  22951. var ky = moment.defineLocale('ky', {
  22952. months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  22953. monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  22954. weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
  22955. weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  22956. weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  22957. longDateFormat: {
  22958. LT: 'HH:mm',
  22959. LTS: 'HH:mm:ss',
  22960. L: 'DD.MM.YYYY',
  22961. LL: 'D MMMM YYYY',
  22962. LLL: 'D MMMM YYYY HH:mm',
  22963. LLLL: 'dddd, D MMMM YYYY HH:mm'
  22964. },
  22965. calendar: {
  22966. sameDay: '[Бүгүн саат] LT',
  22967. nextDay: '[Эртең саат] LT',
  22968. nextWeek: 'dddd [саат] LT',
  22969. lastDay: '[Кечээ саат] LT',
  22970. lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
  22971. sameElse: 'L'
  22972. },
  22973. relativeTime: {
  22974. future: '%s ичинде',
  22975. past: '%s мурун',
  22976. s: 'бирнече секунд',
  22977. ss: '%d секунд',
  22978. m: 'бир мүнөт',
  22979. mm: '%d мүнөт',
  22980. h: 'бир саат',
  22981. hh: '%d саат',
  22982. d: 'бир күн',
  22983. dd: '%d күн',
  22984. M: 'бир ай',
  22985. MM: '%d ай',
  22986. y: 'бир жыл',
  22987. yy: '%d жыл'
  22988. },
  22989. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  22990. ordinal: function ordinal(number) {
  22991. var a = number % 10,
  22992. b = number >= 100 ? 100 : null;
  22993. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  22994. },
  22995. week: {
  22996. dow: 1,
  22997. // Monday is the first day of the week.
  22998. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22999. }
  23000. });
  23001. return ky;
  23002. });
  23003. /***/ }),
  23004. /* 188 */
  23005. /*!***********************************************************!*\
  23006. !*** D:/SWS_New/sws_new/node_modules/moment/locale/lb.js ***!
  23007. \***********************************************************/
  23008. /*! no static exports found */
  23009. /***/ (function(module, exports, __webpack_require__) {
  23010. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23011. //! moment.js locale configuration
  23012. //! locale : Luxembourgish [lb]
  23013. //! author : mweimerskirch : https://github.com/mweimerskirch
  23014. //! author : David Raison : https://github.com/kwisatz
  23015. ;
  23016. (function (global, factory) {
  23017. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23018. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23019. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23020. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23021. })(this, function (moment) {
  23022. 'use strict';
  23023. //! moment.js locale configuration
  23024. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  23025. var format = {
  23026. m: ['eng Minutt', 'enger Minutt'],
  23027. h: ['eng Stonn', 'enger Stonn'],
  23028. d: ['een Dag', 'engem Dag'],
  23029. M: ['ee Mount', 'engem Mount'],
  23030. y: ['ee Joer', 'engem Joer']
  23031. };
  23032. return withoutSuffix ? format[key][0] : format[key][1];
  23033. }
  23034. function processFutureTime(string) {
  23035. var number = string.substr(0, string.indexOf(' '));
  23036. if (eifelerRegelAppliesToNumber(number)) {
  23037. return 'a ' + string;
  23038. }
  23039. return 'an ' + string;
  23040. }
  23041. function processPastTime(string) {
  23042. var number = string.substr(0, string.indexOf(' '));
  23043. if (eifelerRegelAppliesToNumber(number)) {
  23044. return 'viru ' + string;
  23045. }
  23046. return 'virun ' + string;
  23047. }
  23048. /**
  23049. * Returns true if the word before the given number loses the '-n' ending.
  23050. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  23051. *
  23052. * @param number {integer}
  23053. * @returns {boolean}
  23054. */
  23055. function eifelerRegelAppliesToNumber(number) {
  23056. number = parseInt(number, 10);
  23057. if (isNaN(number)) {
  23058. return false;
  23059. }
  23060. if (number < 0) {
  23061. // Negative Number --> always true
  23062. return true;
  23063. } else if (number < 10) {
  23064. // Only 1 digit
  23065. if (4 <= number && number <= 7) {
  23066. return true;
  23067. }
  23068. return false;
  23069. } else if (number < 100) {
  23070. // 2 digits
  23071. var lastDigit = number % 10,
  23072. firstDigit = number / 10;
  23073. if (lastDigit === 0) {
  23074. return eifelerRegelAppliesToNumber(firstDigit);
  23075. }
  23076. return eifelerRegelAppliesToNumber(lastDigit);
  23077. } else if (number < 10000) {
  23078. // 3 or 4 digits --> recursively check first digit
  23079. while (number >= 10) {
  23080. number = number / 10;
  23081. }
  23082. return eifelerRegelAppliesToNumber(number);
  23083. } else {
  23084. // Anything larger than 4 digits: recursively check first n-3 digits
  23085. number = number / 1000;
  23086. return eifelerRegelAppliesToNumber(number);
  23087. }
  23088. }
  23089. var lb = moment.defineLocale('lb', {
  23090. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  23091. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  23092. monthsParseExact: true,
  23093. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  23094. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  23095. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  23096. weekdaysParseExact: true,
  23097. longDateFormat: {
  23098. LT: 'H:mm [Auer]',
  23099. LTS: 'H:mm:ss [Auer]',
  23100. L: 'DD.MM.YYYY',
  23101. LL: 'D. MMMM YYYY',
  23102. LLL: 'D. MMMM YYYY H:mm [Auer]',
  23103. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
  23104. },
  23105. calendar: {
  23106. sameDay: '[Haut um] LT',
  23107. sameElse: 'L',
  23108. nextDay: '[Muer um] LT',
  23109. nextWeek: 'dddd [um] LT',
  23110. lastDay: '[Gëschter um] LT',
  23111. lastWeek: function lastWeek() {
  23112. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  23113. switch (this.day()) {
  23114. case 2:
  23115. case 4:
  23116. return '[Leschten] dddd [um] LT';
  23117. default:
  23118. return '[Leschte] dddd [um] LT';
  23119. }
  23120. }
  23121. },
  23122. relativeTime: {
  23123. future: processFutureTime,
  23124. past: processPastTime,
  23125. s: 'e puer Sekonnen',
  23126. ss: '%d Sekonnen',
  23127. m: processRelativeTime,
  23128. mm: '%d Minutten',
  23129. h: processRelativeTime,
  23130. hh: '%d Stonnen',
  23131. d: processRelativeTime,
  23132. dd: '%d Deeg',
  23133. M: processRelativeTime,
  23134. MM: '%d Méint',
  23135. y: processRelativeTime,
  23136. yy: '%d Joer'
  23137. },
  23138. dayOfMonthOrdinalParse: /\d{1,2}\./,
  23139. ordinal: '%d.',
  23140. week: {
  23141. dow: 1,
  23142. // Monday is the first day of the week.
  23143. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23144. }
  23145. });
  23146. return lb;
  23147. });
  23148. /***/ }),
  23149. /* 189 */
  23150. /*!***********************************************************!*\
  23151. !*** D:/SWS_New/sws_new/node_modules/moment/locale/lo.js ***!
  23152. \***********************************************************/
  23153. /*! no static exports found */
  23154. /***/ (function(module, exports, __webpack_require__) {
  23155. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23156. //! moment.js locale configuration
  23157. //! locale : Lao [lo]
  23158. //! author : Ryan Hart : https://github.com/ryanhart2
  23159. ;
  23160. (function (global, factory) {
  23161. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23162. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23163. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23164. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23165. })(this, function (moment) {
  23166. 'use strict';
  23167. //! moment.js locale configuration
  23168. var lo = moment.defineLocale('lo', {
  23169. months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  23170. monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  23171. weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  23172. weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  23173. weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  23174. weekdaysParseExact: true,
  23175. longDateFormat: {
  23176. LT: 'HH:mm',
  23177. LTS: 'HH:mm:ss',
  23178. L: 'DD/MM/YYYY',
  23179. LL: 'D MMMM YYYY',
  23180. LLL: 'D MMMM YYYY HH:mm',
  23181. LLLL: 'ວັນdddd D MMMM YYYY HH:mm'
  23182. },
  23183. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  23184. isPM: function isPM(input) {
  23185. return input === 'ຕອນແລງ';
  23186. },
  23187. meridiem: function meridiem(hour, minute, isLower) {
  23188. if (hour < 12) {
  23189. return 'ຕອນເຊົ້າ';
  23190. } else {
  23191. return 'ຕອນແລງ';
  23192. }
  23193. },
  23194. calendar: {
  23195. sameDay: '[ມື້ນີ້ເວລາ] LT',
  23196. nextDay: '[ມື້ອື່ນເວລາ] LT',
  23197. nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
  23198. lastDay: '[ມື້ວານນີ້ເວລາ] LT',
  23199. lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  23200. sameElse: 'L'
  23201. },
  23202. relativeTime: {
  23203. future: 'ອີກ %s',
  23204. past: '%sຜ່ານມາ',
  23205. s: 'ບໍ່ເທົ່າໃດວິນາທີ',
  23206. ss: '%d ວິນາທີ',
  23207. m: '1 ນາທີ',
  23208. mm: '%d ນາທີ',
  23209. h: '1 ຊົ່ວໂມງ',
  23210. hh: '%d ຊົ່ວໂມງ',
  23211. d: '1 ມື້',
  23212. dd: '%d ມື້',
  23213. M: '1 ເດືອນ',
  23214. MM: '%d ເດືອນ',
  23215. y: '1 ປີ',
  23216. yy: '%d ປີ'
  23217. },
  23218. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  23219. ordinal: function ordinal(number) {
  23220. return 'ທີ່' + number;
  23221. }
  23222. });
  23223. return lo;
  23224. });
  23225. /***/ }),
  23226. /* 190 */
  23227. /*!***********************************************************!*\
  23228. !*** D:/SWS_New/sws_new/node_modules/moment/locale/lt.js ***!
  23229. \***********************************************************/
  23230. /*! no static exports found */
  23231. /***/ (function(module, exports, __webpack_require__) {
  23232. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23233. //! moment.js locale configuration
  23234. //! locale : Lithuanian [lt]
  23235. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  23236. ;
  23237. (function (global, factory) {
  23238. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23239. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23240. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23241. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23242. })(this, function (moment) {
  23243. 'use strict';
  23244. //! moment.js locale configuration
  23245. var units = {
  23246. ss: 'sekundė_sekundžių_sekundes',
  23247. m: 'minutė_minutės_minutę',
  23248. mm: 'minutės_minučių_minutes',
  23249. h: 'valanda_valandos_valandą',
  23250. hh: 'valandos_valandų_valandas',
  23251. d: 'diena_dienos_dieną',
  23252. dd: 'dienos_dienų_dienas',
  23253. M: 'mėnuo_mėnesio_mėnesį',
  23254. MM: 'mėnesiai_mėnesių_mėnesius',
  23255. y: 'metai_metų_metus',
  23256. yy: 'metai_metų_metus'
  23257. };
  23258. function translateSeconds(number, withoutSuffix, key, isFuture) {
  23259. if (withoutSuffix) {
  23260. return 'kelios sekundės';
  23261. } else {
  23262. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  23263. }
  23264. }
  23265. function translateSingular(number, withoutSuffix, key, isFuture) {
  23266. return withoutSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2];
  23267. }
  23268. function special(number) {
  23269. return number % 10 === 0 || number > 10 && number < 20;
  23270. }
  23271. function forms(key) {
  23272. return units[key].split('_');
  23273. }
  23274. function translate(number, withoutSuffix, key, isFuture) {
  23275. var result = number + ' ';
  23276. if (number === 1) {
  23277. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  23278. } else if (withoutSuffix) {
  23279. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  23280. } else {
  23281. if (isFuture) {
  23282. return result + forms(key)[1];
  23283. } else {
  23284. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  23285. }
  23286. }
  23287. }
  23288. var lt = moment.defineLocale('lt', {
  23289. months: {
  23290. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  23291. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
  23292. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
  23293. },
  23294. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  23295. weekdays: {
  23296. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
  23297. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
  23298. isFormat: /dddd HH:mm/
  23299. },
  23300. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  23301. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  23302. weekdaysParseExact: true,
  23303. longDateFormat: {
  23304. LT: 'HH:mm',
  23305. LTS: 'HH:mm:ss',
  23306. L: 'YYYY-MM-DD',
  23307. LL: 'YYYY [m.] MMMM D [d.]',
  23308. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  23309. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  23310. l: 'YYYY-MM-DD',
  23311. ll: 'YYYY [m.] MMMM D [d.]',
  23312. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  23313. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
  23314. },
  23315. calendar: {
  23316. sameDay: '[Šiandien] LT',
  23317. nextDay: '[Rytoj] LT',
  23318. nextWeek: 'dddd LT',
  23319. lastDay: '[Vakar] LT',
  23320. lastWeek: '[Praėjusį] dddd LT',
  23321. sameElse: 'L'
  23322. },
  23323. relativeTime: {
  23324. future: 'po %s',
  23325. past: 'prieš %s',
  23326. s: translateSeconds,
  23327. ss: translate,
  23328. m: translateSingular,
  23329. mm: translate,
  23330. h: translateSingular,
  23331. hh: translate,
  23332. d: translateSingular,
  23333. dd: translate,
  23334. M: translateSingular,
  23335. MM: translate,
  23336. y: translateSingular,
  23337. yy: translate
  23338. },
  23339. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  23340. ordinal: function ordinal(number) {
  23341. return number + '-oji';
  23342. },
  23343. week: {
  23344. dow: 1,
  23345. // Monday is the first day of the week.
  23346. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23347. }
  23348. });
  23349. return lt;
  23350. });
  23351. /***/ }),
  23352. /* 191 */
  23353. /*!***********************************************************!*\
  23354. !*** D:/SWS_New/sws_new/node_modules/moment/locale/lv.js ***!
  23355. \***********************************************************/
  23356. /*! no static exports found */
  23357. /***/ (function(module, exports, __webpack_require__) {
  23358. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23359. //! moment.js locale configuration
  23360. //! locale : Latvian [lv]
  23361. //! author : Kristaps Karlsons : https://github.com/skakri
  23362. //! author : Jānis Elmeris : https://github.com/JanisE
  23363. ;
  23364. (function (global, factory) {
  23365. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23366. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23367. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23368. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23369. })(this, function (moment) {
  23370. 'use strict';
  23371. //! moment.js locale configuration
  23372. var units = {
  23373. ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
  23374. m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  23375. mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  23376. h: 'stundas_stundām_stunda_stundas'.split('_'),
  23377. hh: 'stundas_stundām_stunda_stundas'.split('_'),
  23378. d: 'dienas_dienām_diena_dienas'.split('_'),
  23379. dd: 'dienas_dienām_diena_dienas'.split('_'),
  23380. M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  23381. MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  23382. y: 'gada_gadiem_gads_gadi'.split('_'),
  23383. yy: 'gada_gadiem_gads_gadi'.split('_')
  23384. };
  23385. /**
  23386. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  23387. */
  23388. function format(forms, number, withoutSuffix) {
  23389. if (withoutSuffix) {
  23390. // E.g. "21 minūte", "3 minūtes".
  23391. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  23392. } else {
  23393. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  23394. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  23395. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  23396. }
  23397. }
  23398. function relativeTimeWithPlural(number, withoutSuffix, key) {
  23399. return number + ' ' + format(units[key], number, withoutSuffix);
  23400. }
  23401. function relativeTimeWithSingular(number, withoutSuffix, key) {
  23402. return format(units[key], number, withoutSuffix);
  23403. }
  23404. function relativeSeconds(number, withoutSuffix) {
  23405. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  23406. }
  23407. var lv = moment.defineLocale('lv', {
  23408. months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  23409. monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  23410. weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  23411. weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
  23412. weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
  23413. weekdaysParseExact: true,
  23414. longDateFormat: {
  23415. LT: 'HH:mm',
  23416. LTS: 'HH:mm:ss',
  23417. L: 'DD.MM.YYYY.',
  23418. LL: 'YYYY. [gada] D. MMMM',
  23419. LLL: 'YYYY. [gada] D. MMMM, HH:mm',
  23420. LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm'
  23421. },
  23422. calendar: {
  23423. sameDay: '[Šodien pulksten] LT',
  23424. nextDay: '[Rīt pulksten] LT',
  23425. nextWeek: 'dddd [pulksten] LT',
  23426. lastDay: '[Vakar pulksten] LT',
  23427. lastWeek: '[Pagājušā] dddd [pulksten] LT',
  23428. sameElse: 'L'
  23429. },
  23430. relativeTime: {
  23431. future: 'pēc %s',
  23432. past: 'pirms %s',
  23433. s: relativeSeconds,
  23434. ss: relativeTimeWithPlural,
  23435. m: relativeTimeWithSingular,
  23436. mm: relativeTimeWithPlural,
  23437. h: relativeTimeWithSingular,
  23438. hh: relativeTimeWithPlural,
  23439. d: relativeTimeWithSingular,
  23440. dd: relativeTimeWithPlural,
  23441. M: relativeTimeWithSingular,
  23442. MM: relativeTimeWithPlural,
  23443. y: relativeTimeWithSingular,
  23444. yy: relativeTimeWithPlural
  23445. },
  23446. dayOfMonthOrdinalParse: /\d{1,2}\./,
  23447. ordinal: '%d.',
  23448. week: {
  23449. dow: 1,
  23450. // Monday is the first day of the week.
  23451. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23452. }
  23453. });
  23454. return lv;
  23455. });
  23456. /***/ }),
  23457. /* 192 */
  23458. /*!***********************************************************!*\
  23459. !*** D:/SWS_New/sws_new/node_modules/moment/locale/me.js ***!
  23460. \***********************************************************/
  23461. /*! no static exports found */
  23462. /***/ (function(module, exports, __webpack_require__) {
  23463. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23464. //! moment.js locale configuration
  23465. //! locale : Montenegrin [me]
  23466. //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
  23467. ;
  23468. (function (global, factory) {
  23469. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23470. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23471. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23472. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23473. })(this, function (moment) {
  23474. 'use strict';
  23475. //! moment.js locale configuration
  23476. var translator = {
  23477. words: {
  23478. //Different grammatical cases
  23479. ss: ['sekund', 'sekunda', 'sekundi'],
  23480. m: ['jedan minut', 'jednog minuta'],
  23481. mm: ['minut', 'minuta', 'minuta'],
  23482. h: ['jedan sat', 'jednog sata'],
  23483. hh: ['sat', 'sata', 'sati'],
  23484. dd: ['dan', 'dana', 'dana'],
  23485. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  23486. yy: ['godina', 'godine', 'godina']
  23487. },
  23488. correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
  23489. return number === 1 ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2];
  23490. },
  23491. translate: function translate(number, withoutSuffix, key) {
  23492. var wordKey = translator.words[key];
  23493. if (key.length === 1) {
  23494. return withoutSuffix ? wordKey[0] : wordKey[1];
  23495. } else {
  23496. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  23497. }
  23498. }
  23499. };
  23500. var me = moment.defineLocale('me', {
  23501. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  23502. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  23503. monthsParseExact: true,
  23504. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  23505. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  23506. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  23507. weekdaysParseExact: true,
  23508. longDateFormat: {
  23509. LT: 'H:mm',
  23510. LTS: 'H:mm:ss',
  23511. L: 'DD.MM.YYYY',
  23512. LL: 'D. MMMM YYYY',
  23513. LLL: 'D. MMMM YYYY H:mm',
  23514. LLLL: 'dddd, D. MMMM YYYY H:mm'
  23515. },
  23516. calendar: {
  23517. sameDay: '[danas u] LT',
  23518. nextDay: '[sjutra u] LT',
  23519. nextWeek: function nextWeek() {
  23520. switch (this.day()) {
  23521. case 0:
  23522. return '[u] [nedjelju] [u] LT';
  23523. case 3:
  23524. return '[u] [srijedu] [u] LT';
  23525. case 6:
  23526. return '[u] [subotu] [u] LT';
  23527. case 1:
  23528. case 2:
  23529. case 4:
  23530. case 5:
  23531. return '[u] dddd [u] LT';
  23532. }
  23533. },
  23534. lastDay: '[juče u] LT',
  23535. lastWeek: function lastWeek() {
  23536. var lastWeekDays = ['[prošle] [nedjelje] [u] LT', '[prošlog] [ponedjeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srijede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];
  23537. return lastWeekDays[this.day()];
  23538. },
  23539. sameElse: 'L'
  23540. },
  23541. relativeTime: {
  23542. future: 'za %s',
  23543. past: 'prije %s',
  23544. s: 'nekoliko sekundi',
  23545. ss: translator.translate,
  23546. m: translator.translate,
  23547. mm: translator.translate,
  23548. h: translator.translate,
  23549. hh: translator.translate,
  23550. d: 'dan',
  23551. dd: translator.translate,
  23552. M: 'mjesec',
  23553. MM: translator.translate,
  23554. y: 'godinu',
  23555. yy: translator.translate
  23556. },
  23557. dayOfMonthOrdinalParse: /\d{1,2}\./,
  23558. ordinal: '%d.',
  23559. week: {
  23560. dow: 1,
  23561. // Monday is the first day of the week.
  23562. doy: 7 // The week that contains Jan 7th is the first week of the year.
  23563. }
  23564. });
  23565. return me;
  23566. });
  23567. /***/ }),
  23568. /* 193 */
  23569. /*!***********************************************************!*\
  23570. !*** D:/SWS_New/sws_new/node_modules/moment/locale/mi.js ***!
  23571. \***********************************************************/
  23572. /*! no static exports found */
  23573. /***/ (function(module, exports, __webpack_require__) {
  23574. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23575. //! moment.js locale configuration
  23576. //! locale : Maori [mi]
  23577. //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
  23578. ;
  23579. (function (global, factory) {
  23580. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23581. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23582. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23583. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23584. })(this, function (moment) {
  23585. 'use strict';
  23586. //! moment.js locale configuration
  23587. var mi = moment.defineLocale('mi', {
  23588. months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
  23589. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
  23590. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  23591. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  23592. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  23593. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  23594. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  23595. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  23596. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  23597. longDateFormat: {
  23598. LT: 'HH:mm',
  23599. LTS: 'HH:mm:ss',
  23600. L: 'DD/MM/YYYY',
  23601. LL: 'D MMMM YYYY',
  23602. LLL: 'D MMMM YYYY [i] HH:mm',
  23603. LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
  23604. },
  23605. calendar: {
  23606. sameDay: '[i teie mahana, i] LT',
  23607. nextDay: '[apopo i] LT',
  23608. nextWeek: 'dddd [i] LT',
  23609. lastDay: '[inanahi i] LT',
  23610. lastWeek: 'dddd [whakamutunga i] LT',
  23611. sameElse: 'L'
  23612. },
  23613. relativeTime: {
  23614. future: 'i roto i %s',
  23615. past: '%s i mua',
  23616. s: 'te hēkona ruarua',
  23617. ss: '%d hēkona',
  23618. m: 'he meneti',
  23619. mm: '%d meneti',
  23620. h: 'te haora',
  23621. hh: '%d haora',
  23622. d: 'he ra',
  23623. dd: '%d ra',
  23624. M: 'he marama',
  23625. MM: '%d marama',
  23626. y: 'he tau',
  23627. yy: '%d tau'
  23628. },
  23629. dayOfMonthOrdinalParse: /\d{1,2}º/,
  23630. ordinal: '%dº',
  23631. week: {
  23632. dow: 1,
  23633. // Monday is the first day of the week.
  23634. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23635. }
  23636. });
  23637. return mi;
  23638. });
  23639. /***/ }),
  23640. /* 194 */
  23641. /*!***********************************************************!*\
  23642. !*** D:/SWS_New/sws_new/node_modules/moment/locale/mk.js ***!
  23643. \***********************************************************/
  23644. /*! no static exports found */
  23645. /***/ (function(module, exports, __webpack_require__) {
  23646. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23647. //! moment.js locale configuration
  23648. //! locale : Macedonian [mk]
  23649. //! author : Borislav Mickov : https://github.com/B0k0
  23650. //! author : Sashko Todorov : https://github.com/bkyceh
  23651. ;
  23652. (function (global, factory) {
  23653. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23654. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23655. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23656. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23657. })(this, function (moment) {
  23658. 'use strict';
  23659. //! moment.js locale configuration
  23660. var mk = moment.defineLocale('mk', {
  23661. months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  23662. monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  23663. weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  23664. weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  23665. weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  23666. longDateFormat: {
  23667. LT: 'H:mm',
  23668. LTS: 'H:mm:ss',
  23669. L: 'D.MM.YYYY',
  23670. LL: 'D MMMM YYYY',
  23671. LLL: 'D MMMM YYYY H:mm',
  23672. LLLL: 'dddd, D MMMM YYYY H:mm'
  23673. },
  23674. calendar: {
  23675. sameDay: '[Денес во] LT',
  23676. nextDay: '[Утре во] LT',
  23677. nextWeek: '[Во] dddd [во] LT',
  23678. lastDay: '[Вчера во] LT',
  23679. lastWeek: function lastWeek() {
  23680. switch (this.day()) {
  23681. case 0:
  23682. case 3:
  23683. case 6:
  23684. return '[Изминатата] dddd [во] LT';
  23685. case 1:
  23686. case 2:
  23687. case 4:
  23688. case 5:
  23689. return '[Изминатиот] dddd [во] LT';
  23690. }
  23691. },
  23692. sameElse: 'L'
  23693. },
  23694. relativeTime: {
  23695. future: 'за %s',
  23696. past: 'пред %s',
  23697. s: 'неколку секунди',
  23698. ss: '%d секунди',
  23699. m: 'една минута',
  23700. mm: '%d минути',
  23701. h: 'еден час',
  23702. hh: '%d часа',
  23703. d: 'еден ден',
  23704. dd: '%d дена',
  23705. M: 'еден месец',
  23706. MM: '%d месеци',
  23707. y: 'една година',
  23708. yy: '%d години'
  23709. },
  23710. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  23711. ordinal: function ordinal(number) {
  23712. var lastDigit = number % 10,
  23713. last2Digits = number % 100;
  23714. if (number === 0) {
  23715. return number + '-ев';
  23716. } else if (last2Digits === 0) {
  23717. return number + '-ен';
  23718. } else if (last2Digits > 10 && last2Digits < 20) {
  23719. return number + '-ти';
  23720. } else if (lastDigit === 1) {
  23721. return number + '-ви';
  23722. } else if (lastDigit === 2) {
  23723. return number + '-ри';
  23724. } else if (lastDigit === 7 || lastDigit === 8) {
  23725. return number + '-ми';
  23726. } else {
  23727. return number + '-ти';
  23728. }
  23729. },
  23730. week: {
  23731. dow: 1,
  23732. // Monday is the first day of the week.
  23733. doy: 7 // The week that contains Jan 7th is the first week of the year.
  23734. }
  23735. });
  23736. return mk;
  23737. });
  23738. /***/ }),
  23739. /* 195 */
  23740. /*!***********************************************************!*\
  23741. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ml.js ***!
  23742. \***********************************************************/
  23743. /*! no static exports found */
  23744. /***/ (function(module, exports, __webpack_require__) {
  23745. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23746. //! moment.js locale configuration
  23747. //! locale : Malayalam [ml]
  23748. //! author : Floyd Pink : https://github.com/floydpink
  23749. ;
  23750. (function (global, factory) {
  23751. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23752. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23753. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23754. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23755. })(this, function (moment) {
  23756. 'use strict';
  23757. //! moment.js locale configuration
  23758. var ml = moment.defineLocale('ml', {
  23759. months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  23760. monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  23761. monthsParseExact: true,
  23762. weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  23763. weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  23764. weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  23765. longDateFormat: {
  23766. LT: 'A h:mm -നു',
  23767. LTS: 'A h:mm:ss -നു',
  23768. L: 'DD/MM/YYYY',
  23769. LL: 'D MMMM YYYY',
  23770. LLL: 'D MMMM YYYY, A h:mm -നു',
  23771. LLLL: 'dddd, D MMMM YYYY, A h:mm -നു'
  23772. },
  23773. calendar: {
  23774. sameDay: '[ഇന്ന്] LT',
  23775. nextDay: '[നാളെ] LT',
  23776. nextWeek: 'dddd, LT',
  23777. lastDay: '[ഇന്നലെ] LT',
  23778. lastWeek: '[കഴിഞ്ഞ] dddd, LT',
  23779. sameElse: 'L'
  23780. },
  23781. relativeTime: {
  23782. future: '%s കഴിഞ്ഞ്',
  23783. past: '%s മുൻപ്',
  23784. s: 'അൽപ നിമിഷങ്ങൾ',
  23785. ss: '%d സെക്കൻഡ്',
  23786. m: 'ഒരു മിനിറ്റ്',
  23787. mm: '%d മിനിറ്റ്',
  23788. h: 'ഒരു മണിക്കൂർ',
  23789. hh: '%d മണിക്കൂർ',
  23790. d: 'ഒരു ദിവസം',
  23791. dd: '%d ദിവസം',
  23792. M: 'ഒരു മാസം',
  23793. MM: '%d മാസം',
  23794. y: 'ഒരു വർഷം',
  23795. yy: '%d വർഷം'
  23796. },
  23797. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  23798. meridiemHour: function meridiemHour(hour, meridiem) {
  23799. if (hour === 12) {
  23800. hour = 0;
  23801. }
  23802. if (meridiem === 'രാത്രി' && hour >= 4 || meridiem === 'ഉച്ച കഴിഞ്ഞ്' || meridiem === 'വൈകുന്നേരം') {
  23803. return hour + 12;
  23804. } else {
  23805. return hour;
  23806. }
  23807. },
  23808. meridiem: function meridiem(hour, minute, isLower) {
  23809. if (hour < 4) {
  23810. return 'രാത്രി';
  23811. } else if (hour < 12) {
  23812. return 'രാവിലെ';
  23813. } else if (hour < 17) {
  23814. return 'ഉച്ച കഴിഞ്ഞ്';
  23815. } else if (hour < 20) {
  23816. return 'വൈകുന്നേരം';
  23817. } else {
  23818. return 'രാത്രി';
  23819. }
  23820. }
  23821. });
  23822. return ml;
  23823. });
  23824. /***/ }),
  23825. /* 196 */
  23826. /*!***********************************************************!*\
  23827. !*** D:/SWS_New/sws_new/node_modules/moment/locale/mn.js ***!
  23828. \***********************************************************/
  23829. /*! no static exports found */
  23830. /***/ (function(module, exports, __webpack_require__) {
  23831. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23832. //! moment.js locale configuration
  23833. //! locale : Mongolian [mn]
  23834. //! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7
  23835. ;
  23836. (function (global, factory) {
  23837. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23838. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23839. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23840. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23841. })(this, function (moment) {
  23842. 'use strict';
  23843. //! moment.js locale configuration
  23844. function translate(number, withoutSuffix, key, isFuture) {
  23845. switch (key) {
  23846. case 's':
  23847. return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
  23848. case 'ss':
  23849. return number + (withoutSuffix ? ' секунд' : ' секундын');
  23850. case 'm':
  23851. case 'mm':
  23852. return number + (withoutSuffix ? ' минут' : ' минутын');
  23853. case 'h':
  23854. case 'hh':
  23855. return number + (withoutSuffix ? ' цаг' : ' цагийн');
  23856. case 'd':
  23857. case 'dd':
  23858. return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
  23859. case 'M':
  23860. case 'MM':
  23861. return number + (withoutSuffix ? ' сар' : ' сарын');
  23862. case 'y':
  23863. case 'yy':
  23864. return number + (withoutSuffix ? ' жил' : ' жилийн');
  23865. default:
  23866. return number;
  23867. }
  23868. }
  23869. var mn = moment.defineLocale('mn', {
  23870. months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),
  23871. monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),
  23872. monthsParseExact: true,
  23873. weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
  23874. weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
  23875. weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
  23876. weekdaysParseExact: true,
  23877. longDateFormat: {
  23878. LT: 'HH:mm',
  23879. LTS: 'HH:mm:ss',
  23880. L: 'YYYY-MM-DD',
  23881. LL: 'YYYY оны MMMMын D',
  23882. LLL: 'YYYY оны MMMMын D HH:mm',
  23883. LLLL: 'dddd, YYYY оны MMMMын D HH:mm'
  23884. },
  23885. meridiemParse: /ҮӨ|ҮХ/i,
  23886. isPM: function isPM(input) {
  23887. return input === 'ҮХ';
  23888. },
  23889. meridiem: function meridiem(hour, minute, isLower) {
  23890. if (hour < 12) {
  23891. return 'ҮӨ';
  23892. } else {
  23893. return 'ҮХ';
  23894. }
  23895. },
  23896. calendar: {
  23897. sameDay: '[Өнөөдөр] LT',
  23898. nextDay: '[Маргааш] LT',
  23899. nextWeek: '[Ирэх] dddd LT',
  23900. lastDay: '[Өчигдөр] LT',
  23901. lastWeek: '[Өнгөрсөн] dddd LT',
  23902. sameElse: 'L'
  23903. },
  23904. relativeTime: {
  23905. future: '%s дараа',
  23906. past: '%s өмнө',
  23907. s: translate,
  23908. ss: translate,
  23909. m: translate,
  23910. mm: translate,
  23911. h: translate,
  23912. hh: translate,
  23913. d: translate,
  23914. dd: translate,
  23915. M: translate,
  23916. MM: translate,
  23917. y: translate,
  23918. yy: translate
  23919. },
  23920. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  23921. ordinal: function ordinal(number, period) {
  23922. switch (period) {
  23923. case 'd':
  23924. case 'D':
  23925. case 'DDD':
  23926. return number + ' өдөр';
  23927. default:
  23928. return number;
  23929. }
  23930. }
  23931. });
  23932. return mn;
  23933. });
  23934. /***/ }),
  23935. /* 197 */
  23936. /*!***********************************************************!*\
  23937. !*** D:/SWS_New/sws_new/node_modules/moment/locale/mr.js ***!
  23938. \***********************************************************/
  23939. /*! no static exports found */
  23940. /***/ (function(module, exports, __webpack_require__) {
  23941. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23942. //! moment.js locale configuration
  23943. //! locale : Marathi [mr]
  23944. //! author : Harshad Kale : https://github.com/kalehv
  23945. //! author : Vivek Athalye : https://github.com/vnathalye
  23946. ;
  23947. (function (global, factory) {
  23948. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23949. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23950. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23951. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23952. })(this, function (moment) {
  23953. 'use strict';
  23954. //! moment.js locale configuration
  23955. var symbolMap = {
  23956. 1: '१',
  23957. 2: '२',
  23958. 3: '३',
  23959. 4: '४',
  23960. 5: '५',
  23961. 6: '६',
  23962. 7: '७',
  23963. 8: '८',
  23964. 9: '९',
  23965. 0: '०'
  23966. },
  23967. numberMap = {
  23968. '१': '1',
  23969. '२': '2',
  23970. '३': '3',
  23971. '४': '4',
  23972. '५': '5',
  23973. '६': '6',
  23974. '७': '7',
  23975. '८': '8',
  23976. '९': '9',
  23977. '०': '0'
  23978. };
  23979. function relativeTimeMr(number, withoutSuffix, string, isFuture) {
  23980. var output = '';
  23981. if (withoutSuffix) {
  23982. switch (string) {
  23983. case 's':
  23984. output = 'काही सेकंद';
  23985. break;
  23986. case 'ss':
  23987. output = '%d सेकंद';
  23988. break;
  23989. case 'm':
  23990. output = 'एक मिनिट';
  23991. break;
  23992. case 'mm':
  23993. output = '%d मिनिटे';
  23994. break;
  23995. case 'h':
  23996. output = 'एक तास';
  23997. break;
  23998. case 'hh':
  23999. output = '%d तास';
  24000. break;
  24001. case 'd':
  24002. output = 'एक दिवस';
  24003. break;
  24004. case 'dd':
  24005. output = '%d दिवस';
  24006. break;
  24007. case 'M':
  24008. output = 'एक महिना';
  24009. break;
  24010. case 'MM':
  24011. output = '%d महिने';
  24012. break;
  24013. case 'y':
  24014. output = 'एक वर्ष';
  24015. break;
  24016. case 'yy':
  24017. output = '%d वर्षे';
  24018. break;
  24019. }
  24020. } else {
  24021. switch (string) {
  24022. case 's':
  24023. output = 'काही सेकंदां';
  24024. break;
  24025. case 'ss':
  24026. output = '%d सेकंदां';
  24027. break;
  24028. case 'm':
  24029. output = 'एका मिनिटा';
  24030. break;
  24031. case 'mm':
  24032. output = '%d मिनिटां';
  24033. break;
  24034. case 'h':
  24035. output = 'एका तासा';
  24036. break;
  24037. case 'hh':
  24038. output = '%d तासां';
  24039. break;
  24040. case 'd':
  24041. output = 'एका दिवसा';
  24042. break;
  24043. case 'dd':
  24044. output = '%d दिवसां';
  24045. break;
  24046. case 'M':
  24047. output = 'एका महिन्या';
  24048. break;
  24049. case 'MM':
  24050. output = '%d महिन्यां';
  24051. break;
  24052. case 'y':
  24053. output = 'एका वर्षा';
  24054. break;
  24055. case 'yy':
  24056. output = '%d वर्षां';
  24057. break;
  24058. }
  24059. }
  24060. return output.replace(/%d/i, number);
  24061. }
  24062. var mr = moment.defineLocale('mr', {
  24063. months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  24064. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  24065. monthsParseExact: true,
  24066. weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  24067. weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  24068. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  24069. longDateFormat: {
  24070. LT: 'A h:mm वाजता',
  24071. LTS: 'A h:mm:ss वाजता',
  24072. L: 'DD/MM/YYYY',
  24073. LL: 'D MMMM YYYY',
  24074. LLL: 'D MMMM YYYY, A h:mm वाजता',
  24075. LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता'
  24076. },
  24077. calendar: {
  24078. sameDay: '[आज] LT',
  24079. nextDay: '[उद्या] LT',
  24080. nextWeek: 'dddd, LT',
  24081. lastDay: '[काल] LT',
  24082. lastWeek: '[मागील] dddd, LT',
  24083. sameElse: 'L'
  24084. },
  24085. relativeTime: {
  24086. future: '%sमध्ये',
  24087. past: '%sपूर्वी',
  24088. s: relativeTimeMr,
  24089. ss: relativeTimeMr,
  24090. m: relativeTimeMr,
  24091. mm: relativeTimeMr,
  24092. h: relativeTimeMr,
  24093. hh: relativeTimeMr,
  24094. d: relativeTimeMr,
  24095. dd: relativeTimeMr,
  24096. M: relativeTimeMr,
  24097. MM: relativeTimeMr,
  24098. y: relativeTimeMr,
  24099. yy: relativeTimeMr
  24100. },
  24101. preparse: function preparse(string) {
  24102. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  24103. return numberMap[match];
  24104. });
  24105. },
  24106. postformat: function postformat(string) {
  24107. return string.replace(/\d/g, function (match) {
  24108. return symbolMap[match];
  24109. });
  24110. },
  24111. meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
  24112. meridiemHour: function meridiemHour(hour, meridiem) {
  24113. if (hour === 12) {
  24114. hour = 0;
  24115. }
  24116. if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
  24117. return hour;
  24118. } else if (meridiem === 'दुपारी' || meridiem === 'सायंकाळी' || meridiem === 'रात्री') {
  24119. return hour >= 12 ? hour : hour + 12;
  24120. }
  24121. },
  24122. meridiem: function meridiem(hour, minute, isLower) {
  24123. if (hour >= 0 && hour < 6) {
  24124. return 'पहाटे';
  24125. } else if (hour < 12) {
  24126. return 'सकाळी';
  24127. } else if (hour < 17) {
  24128. return 'दुपारी';
  24129. } else if (hour < 20) {
  24130. return 'सायंकाळी';
  24131. } else {
  24132. return 'रात्री';
  24133. }
  24134. },
  24135. week: {
  24136. dow: 0,
  24137. // Sunday is the first day of the week.
  24138. doy: 6 // The week that contains Jan 6th is the first week of the year.
  24139. }
  24140. });
  24141. return mr;
  24142. });
  24143. /***/ }),
  24144. /* 198 */
  24145. /*!***********************************************************!*\
  24146. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ms.js ***!
  24147. \***********************************************************/
  24148. /*! no static exports found */
  24149. /***/ (function(module, exports, __webpack_require__) {
  24150. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24151. //! moment.js locale configuration
  24152. //! locale : Malay [ms]
  24153. //! author : Weldan Jamili : https://github.com/weldan
  24154. ;
  24155. (function (global, factory) {
  24156. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24157. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24158. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24159. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24160. })(this, function (moment) {
  24161. 'use strict';
  24162. //! moment.js locale configuration
  24163. var ms = moment.defineLocale('ms', {
  24164. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  24165. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  24166. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  24167. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  24168. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  24169. longDateFormat: {
  24170. LT: 'HH.mm',
  24171. LTS: 'HH.mm.ss',
  24172. L: 'DD/MM/YYYY',
  24173. LL: 'D MMMM YYYY',
  24174. LLL: 'D MMMM YYYY [pukul] HH.mm',
  24175. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  24176. },
  24177. meridiemParse: /pagi|tengahari|petang|malam/,
  24178. meridiemHour: function meridiemHour(hour, meridiem) {
  24179. if (hour === 12) {
  24180. hour = 0;
  24181. }
  24182. if (meridiem === 'pagi') {
  24183. return hour;
  24184. } else if (meridiem === 'tengahari') {
  24185. return hour >= 11 ? hour : hour + 12;
  24186. } else if (meridiem === 'petang' || meridiem === 'malam') {
  24187. return hour + 12;
  24188. }
  24189. },
  24190. meridiem: function meridiem(hours, minutes, isLower) {
  24191. if (hours < 11) {
  24192. return 'pagi';
  24193. } else if (hours < 15) {
  24194. return 'tengahari';
  24195. } else if (hours < 19) {
  24196. return 'petang';
  24197. } else {
  24198. return 'malam';
  24199. }
  24200. },
  24201. calendar: {
  24202. sameDay: '[Hari ini pukul] LT',
  24203. nextDay: '[Esok pukul] LT',
  24204. nextWeek: 'dddd [pukul] LT',
  24205. lastDay: '[Kelmarin pukul] LT',
  24206. lastWeek: 'dddd [lepas pukul] LT',
  24207. sameElse: 'L'
  24208. },
  24209. relativeTime: {
  24210. future: 'dalam %s',
  24211. past: '%s yang lepas',
  24212. s: 'beberapa saat',
  24213. ss: '%d saat',
  24214. m: 'seminit',
  24215. mm: '%d minit',
  24216. h: 'sejam',
  24217. hh: '%d jam',
  24218. d: 'sehari',
  24219. dd: '%d hari',
  24220. M: 'sebulan',
  24221. MM: '%d bulan',
  24222. y: 'setahun',
  24223. yy: '%d tahun'
  24224. },
  24225. week: {
  24226. dow: 1,
  24227. // Monday is the first day of the week.
  24228. doy: 7 // The week that contains Jan 7th is the first week of the year.
  24229. }
  24230. });
  24231. return ms;
  24232. });
  24233. /***/ }),
  24234. /* 199 */
  24235. /*!**************************************************************!*\
  24236. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ms-my.js ***!
  24237. \**************************************************************/
  24238. /*! no static exports found */
  24239. /***/ (function(module, exports, __webpack_require__) {
  24240. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24241. //! moment.js locale configuration
  24242. //! locale : Malay [ms-my]
  24243. //! note : DEPRECATED, the correct one is [ms]
  24244. //! author : Weldan Jamili : https://github.com/weldan
  24245. ;
  24246. (function (global, factory) {
  24247. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24248. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24249. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24250. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24251. })(this, function (moment) {
  24252. 'use strict';
  24253. //! moment.js locale configuration
  24254. var msMy = moment.defineLocale('ms-my', {
  24255. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  24256. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  24257. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  24258. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  24259. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  24260. longDateFormat: {
  24261. LT: 'HH.mm',
  24262. LTS: 'HH.mm.ss',
  24263. L: 'DD/MM/YYYY',
  24264. LL: 'D MMMM YYYY',
  24265. LLL: 'D MMMM YYYY [pukul] HH.mm',
  24266. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  24267. },
  24268. meridiemParse: /pagi|tengahari|petang|malam/,
  24269. meridiemHour: function meridiemHour(hour, meridiem) {
  24270. if (hour === 12) {
  24271. hour = 0;
  24272. }
  24273. if (meridiem === 'pagi') {
  24274. return hour;
  24275. } else if (meridiem === 'tengahari') {
  24276. return hour >= 11 ? hour : hour + 12;
  24277. } else if (meridiem === 'petang' || meridiem === 'malam') {
  24278. return hour + 12;
  24279. }
  24280. },
  24281. meridiem: function meridiem(hours, minutes, isLower) {
  24282. if (hours < 11) {
  24283. return 'pagi';
  24284. } else if (hours < 15) {
  24285. return 'tengahari';
  24286. } else if (hours < 19) {
  24287. return 'petang';
  24288. } else {
  24289. return 'malam';
  24290. }
  24291. },
  24292. calendar: {
  24293. sameDay: '[Hari ini pukul] LT',
  24294. nextDay: '[Esok pukul] LT',
  24295. nextWeek: 'dddd [pukul] LT',
  24296. lastDay: '[Kelmarin pukul] LT',
  24297. lastWeek: 'dddd [lepas pukul] LT',
  24298. sameElse: 'L'
  24299. },
  24300. relativeTime: {
  24301. future: 'dalam %s',
  24302. past: '%s yang lepas',
  24303. s: 'beberapa saat',
  24304. ss: '%d saat',
  24305. m: 'seminit',
  24306. mm: '%d minit',
  24307. h: 'sejam',
  24308. hh: '%d jam',
  24309. d: 'sehari',
  24310. dd: '%d hari',
  24311. M: 'sebulan',
  24312. MM: '%d bulan',
  24313. y: 'setahun',
  24314. yy: '%d tahun'
  24315. },
  24316. week: {
  24317. dow: 1,
  24318. // Monday is the first day of the week.
  24319. doy: 7 // The week that contains Jan 7th is the first week of the year.
  24320. }
  24321. });
  24322. return msMy;
  24323. });
  24324. /***/ }),
  24325. /* 200 */
  24326. /*!***********************************************************!*\
  24327. !*** D:/SWS_New/sws_new/node_modules/moment/locale/mt.js ***!
  24328. \***********************************************************/
  24329. /*! no static exports found */
  24330. /***/ (function(module, exports, __webpack_require__) {
  24331. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24332. //! moment.js locale configuration
  24333. //! locale : Maltese (Malta) [mt]
  24334. //! author : Alessandro Maruccia : https://github.com/alesma
  24335. ;
  24336. (function (global, factory) {
  24337. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24338. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24339. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24340. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24341. })(this, function (moment) {
  24342. 'use strict';
  24343. //! moment.js locale configuration
  24344. var mt = moment.defineLocale('mt', {
  24345. months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
  24346. monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
  24347. weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
  24348. weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
  24349. weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
  24350. longDateFormat: {
  24351. LT: 'HH:mm',
  24352. LTS: 'HH:mm:ss',
  24353. L: 'DD/MM/YYYY',
  24354. LL: 'D MMMM YYYY',
  24355. LLL: 'D MMMM YYYY HH:mm',
  24356. LLLL: 'dddd, D MMMM YYYY HH:mm'
  24357. },
  24358. calendar: {
  24359. sameDay: '[Illum fil-]LT',
  24360. nextDay: '[Għada fil-]LT',
  24361. nextWeek: 'dddd [fil-]LT',
  24362. lastDay: '[Il-bieraħ fil-]LT',
  24363. lastWeek: 'dddd [li għadda] [fil-]LT',
  24364. sameElse: 'L'
  24365. },
  24366. relativeTime: {
  24367. future: 'f’ %s',
  24368. past: '%s ilu',
  24369. s: 'ftit sekondi',
  24370. ss: '%d sekondi',
  24371. m: 'minuta',
  24372. mm: '%d minuti',
  24373. h: 'siegħa',
  24374. hh: '%d siegħat',
  24375. d: 'ġurnata',
  24376. dd: '%d ġranet',
  24377. M: 'xahar',
  24378. MM: '%d xhur',
  24379. y: 'sena',
  24380. yy: '%d sni'
  24381. },
  24382. dayOfMonthOrdinalParse: /\d{1,2}º/,
  24383. ordinal: '%dº',
  24384. week: {
  24385. dow: 1,
  24386. // Monday is the first day of the week.
  24387. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24388. }
  24389. });
  24390. return mt;
  24391. });
  24392. /***/ }),
  24393. /* 201 */
  24394. /*!***********************************************************!*\
  24395. !*** D:/SWS_New/sws_new/node_modules/moment/locale/my.js ***!
  24396. \***********************************************************/
  24397. /*! no static exports found */
  24398. /***/ (function(module, exports, __webpack_require__) {
  24399. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24400. //! moment.js locale configuration
  24401. //! locale : Burmese [my]
  24402. //! author : Squar team, mysquar.com
  24403. //! author : David Rossellat : https://github.com/gholadr
  24404. //! author : Tin Aung Lin : https://github.com/thanyawzinmin
  24405. ;
  24406. (function (global, factory) {
  24407. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24408. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24409. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24410. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24411. })(this, function (moment) {
  24412. 'use strict';
  24413. //! moment.js locale configuration
  24414. var symbolMap = {
  24415. 1: '၁',
  24416. 2: '၂',
  24417. 3: '၃',
  24418. 4: '၄',
  24419. 5: '၅',
  24420. 6: '၆',
  24421. 7: '၇',
  24422. 8: '၈',
  24423. 9: '၉',
  24424. 0: '၀'
  24425. },
  24426. numberMap = {
  24427. '၁': '1',
  24428. '၂': '2',
  24429. '၃': '3',
  24430. '၄': '4',
  24431. '၅': '5',
  24432. '၆': '6',
  24433. '၇': '7',
  24434. '၈': '8',
  24435. '၉': '9',
  24436. '၀': '0'
  24437. };
  24438. var my = moment.defineLocale('my', {
  24439. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  24440. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  24441. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  24442. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  24443. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  24444. longDateFormat: {
  24445. LT: 'HH:mm',
  24446. LTS: 'HH:mm:ss',
  24447. L: 'DD/MM/YYYY',
  24448. LL: 'D MMMM YYYY',
  24449. LLL: 'D MMMM YYYY HH:mm',
  24450. LLLL: 'dddd D MMMM YYYY HH:mm'
  24451. },
  24452. calendar: {
  24453. sameDay: '[ယနေ.] LT [မှာ]',
  24454. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  24455. nextWeek: 'dddd LT [မှာ]',
  24456. lastDay: '[မနေ.က] LT [မှာ]',
  24457. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  24458. sameElse: 'L'
  24459. },
  24460. relativeTime: {
  24461. future: 'လာမည့် %s မှာ',
  24462. past: 'လွန်ခဲ့သော %s က',
  24463. s: 'စက္ကန်.အနည်းငယ်',
  24464. ss: '%d စက္ကန့်',
  24465. m: 'တစ်မိနစ်',
  24466. mm: '%d မိနစ်',
  24467. h: 'တစ်နာရီ',
  24468. hh: '%d နာရီ',
  24469. d: 'တစ်ရက်',
  24470. dd: '%d ရက်',
  24471. M: 'တစ်လ',
  24472. MM: '%d လ',
  24473. y: 'တစ်နှစ်',
  24474. yy: '%d နှစ်'
  24475. },
  24476. preparse: function preparse(string) {
  24477. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  24478. return numberMap[match];
  24479. });
  24480. },
  24481. postformat: function postformat(string) {
  24482. return string.replace(/\d/g, function (match) {
  24483. return symbolMap[match];
  24484. });
  24485. },
  24486. week: {
  24487. dow: 1,
  24488. // Monday is the first day of the week.
  24489. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24490. }
  24491. });
  24492. return my;
  24493. });
  24494. /***/ }),
  24495. /* 202 */
  24496. /*!***********************************************************!*\
  24497. !*** D:/SWS_New/sws_new/node_modules/moment/locale/nb.js ***!
  24498. \***********************************************************/
  24499. /*! no static exports found */
  24500. /***/ (function(module, exports, __webpack_require__) {
  24501. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24502. //! moment.js locale configuration
  24503. //! locale : Norwegian Bokmål [nb]
  24504. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  24505. //! Sigurd Gartmann : https://github.com/sigurdga
  24506. //! Stephen Ramthun : https://github.com/stephenramthun
  24507. ;
  24508. (function (global, factory) {
  24509. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24510. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24511. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24512. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24513. })(this, function (moment) {
  24514. 'use strict';
  24515. //! moment.js locale configuration
  24516. var nb = moment.defineLocale('nb', {
  24517. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  24518. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  24519. monthsParseExact: true,
  24520. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  24521. weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  24522. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  24523. weekdaysParseExact: true,
  24524. longDateFormat: {
  24525. LT: 'HH:mm',
  24526. LTS: 'HH:mm:ss',
  24527. L: 'DD.MM.YYYY',
  24528. LL: 'D. MMMM YYYY',
  24529. LLL: 'D. MMMM YYYY [kl.] HH:mm',
  24530. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
  24531. },
  24532. calendar: {
  24533. sameDay: '[i dag kl.] LT',
  24534. nextDay: '[i morgen kl.] LT',
  24535. nextWeek: 'dddd [kl.] LT',
  24536. lastDay: '[i går kl.] LT',
  24537. lastWeek: '[forrige] dddd [kl.] LT',
  24538. sameElse: 'L'
  24539. },
  24540. relativeTime: {
  24541. future: 'om %s',
  24542. past: '%s siden',
  24543. s: 'noen sekunder',
  24544. ss: '%d sekunder',
  24545. m: 'ett minutt',
  24546. mm: '%d minutter',
  24547. h: 'en time',
  24548. hh: '%d timer',
  24549. d: 'en dag',
  24550. dd: '%d dager',
  24551. w: 'en uke',
  24552. ww: '%d uker',
  24553. M: 'en måned',
  24554. MM: '%d måneder',
  24555. y: 'ett år',
  24556. yy: '%d år'
  24557. },
  24558. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24559. ordinal: '%d.',
  24560. week: {
  24561. dow: 1,
  24562. // Monday is the first day of the week.
  24563. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24564. }
  24565. });
  24566. return nb;
  24567. });
  24568. /***/ }),
  24569. /* 203 */
  24570. /*!***********************************************************!*\
  24571. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ne.js ***!
  24572. \***********************************************************/
  24573. /*! no static exports found */
  24574. /***/ (function(module, exports, __webpack_require__) {
  24575. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24576. //! moment.js locale configuration
  24577. //! locale : Nepalese [ne]
  24578. //! author : suvash : https://github.com/suvash
  24579. ;
  24580. (function (global, factory) {
  24581. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24582. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24583. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24584. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24585. })(this, function (moment) {
  24586. 'use strict';
  24587. //! moment.js locale configuration
  24588. var symbolMap = {
  24589. 1: '१',
  24590. 2: '२',
  24591. 3: '३',
  24592. 4: '४',
  24593. 5: '५',
  24594. 6: '६',
  24595. 7: '७',
  24596. 8: '८',
  24597. 9: '९',
  24598. 0: '०'
  24599. },
  24600. numberMap = {
  24601. '१': '1',
  24602. '२': '2',
  24603. '३': '3',
  24604. '४': '4',
  24605. '५': '5',
  24606. '६': '6',
  24607. '७': '7',
  24608. '८': '8',
  24609. '९': '9',
  24610. '०': '0'
  24611. };
  24612. var ne = moment.defineLocale('ne', {
  24613. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  24614. monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  24615. monthsParseExact: true,
  24616. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  24617. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  24618. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  24619. weekdaysParseExact: true,
  24620. longDateFormat: {
  24621. LT: 'Aको h:mm बजे',
  24622. LTS: 'Aको h:mm:ss बजे',
  24623. L: 'DD/MM/YYYY',
  24624. LL: 'D MMMM YYYY',
  24625. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  24626. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे'
  24627. },
  24628. preparse: function preparse(string) {
  24629. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  24630. return numberMap[match];
  24631. });
  24632. },
  24633. postformat: function postformat(string) {
  24634. return string.replace(/\d/g, function (match) {
  24635. return symbolMap[match];
  24636. });
  24637. },
  24638. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  24639. meridiemHour: function meridiemHour(hour, meridiem) {
  24640. if (hour === 12) {
  24641. hour = 0;
  24642. }
  24643. if (meridiem === 'राति') {
  24644. return hour < 4 ? hour : hour + 12;
  24645. } else if (meridiem === 'बिहान') {
  24646. return hour;
  24647. } else if (meridiem === 'दिउँसो') {
  24648. return hour >= 10 ? hour : hour + 12;
  24649. } else if (meridiem === 'साँझ') {
  24650. return hour + 12;
  24651. }
  24652. },
  24653. meridiem: function meridiem(hour, minute, isLower) {
  24654. if (hour < 3) {
  24655. return 'राति';
  24656. } else if (hour < 12) {
  24657. return 'बिहान';
  24658. } else if (hour < 16) {
  24659. return 'दिउँसो';
  24660. } else if (hour < 20) {
  24661. return 'साँझ';
  24662. } else {
  24663. return 'राति';
  24664. }
  24665. },
  24666. calendar: {
  24667. sameDay: '[आज] LT',
  24668. nextDay: '[भोलि] LT',
  24669. nextWeek: '[आउँदो] dddd[,] LT',
  24670. lastDay: '[हिजो] LT',
  24671. lastWeek: '[गएको] dddd[,] LT',
  24672. sameElse: 'L'
  24673. },
  24674. relativeTime: {
  24675. future: '%sमा',
  24676. past: '%s अगाडि',
  24677. s: 'केही क्षण',
  24678. ss: '%d सेकेण्ड',
  24679. m: 'एक मिनेट',
  24680. mm: '%d मिनेट',
  24681. h: 'एक घण्टा',
  24682. hh: '%d घण्टा',
  24683. d: 'एक दिन',
  24684. dd: '%d दिन',
  24685. M: 'एक महिना',
  24686. MM: '%d महिना',
  24687. y: 'एक बर्ष',
  24688. yy: '%d बर्ष'
  24689. },
  24690. week: {
  24691. dow: 0,
  24692. // Sunday is the first day of the week.
  24693. doy: 6 // The week that contains Jan 6th is the first week of the year.
  24694. }
  24695. });
  24696. return ne;
  24697. });
  24698. /***/ }),
  24699. /* 204 */
  24700. /*!***********************************************************!*\
  24701. !*** D:/SWS_New/sws_new/node_modules/moment/locale/nl.js ***!
  24702. \***********************************************************/
  24703. /*! no static exports found */
  24704. /***/ (function(module, exports, __webpack_require__) {
  24705. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24706. //! moment.js locale configuration
  24707. //! locale : Dutch [nl]
  24708. //! author : Joris Röling : https://github.com/jorisroling
  24709. //! author : Jacob Middag : https://github.com/middagj
  24710. ;
  24711. (function (global, factory) {
  24712. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24713. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24714. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24715. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24716. })(this, function (moment) {
  24717. 'use strict';
  24718. //! moment.js locale configuration
  24719. var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  24720. monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  24721. monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],
  24722. monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  24723. var nl = moment.defineLocale('nl', {
  24724. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  24725. monthsShort: function monthsShort(m, format) {
  24726. if (!m) {
  24727. return monthsShortWithDots;
  24728. } else if (/-MMM-/.test(format)) {
  24729. return monthsShortWithoutDots[m.month()];
  24730. } else {
  24731. return monthsShortWithDots[m.month()];
  24732. }
  24733. },
  24734. monthsRegex: monthsRegex,
  24735. monthsShortRegex: monthsRegex,
  24736. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  24737. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  24738. monthsParse: monthsParse,
  24739. longMonthsParse: monthsParse,
  24740. shortMonthsParse: monthsParse,
  24741. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  24742. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  24743. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  24744. weekdaysParseExact: true,
  24745. longDateFormat: {
  24746. LT: 'HH:mm',
  24747. LTS: 'HH:mm:ss',
  24748. L: 'DD-MM-YYYY',
  24749. LL: 'D MMMM YYYY',
  24750. LLL: 'D MMMM YYYY HH:mm',
  24751. LLLL: 'dddd D MMMM YYYY HH:mm'
  24752. },
  24753. calendar: {
  24754. sameDay: '[vandaag om] LT',
  24755. nextDay: '[morgen om] LT',
  24756. nextWeek: 'dddd [om] LT',
  24757. lastDay: '[gisteren om] LT',
  24758. lastWeek: '[afgelopen] dddd [om] LT',
  24759. sameElse: 'L'
  24760. },
  24761. relativeTime: {
  24762. future: 'over %s',
  24763. past: '%s geleden',
  24764. s: 'een paar seconden',
  24765. ss: '%d seconden',
  24766. m: 'één minuut',
  24767. mm: '%d minuten',
  24768. h: 'één uur',
  24769. hh: '%d uur',
  24770. d: 'één dag',
  24771. dd: '%d dagen',
  24772. w: 'één week',
  24773. ww: '%d weken',
  24774. M: 'één maand',
  24775. MM: '%d maanden',
  24776. y: 'één jaar',
  24777. yy: '%d jaar'
  24778. },
  24779. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  24780. ordinal: function ordinal(number) {
  24781. return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
  24782. },
  24783. week: {
  24784. dow: 1,
  24785. // Monday is the first day of the week.
  24786. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24787. }
  24788. });
  24789. return nl;
  24790. });
  24791. /***/ }),
  24792. /* 205 */
  24793. /*!**************************************************************!*\
  24794. !*** D:/SWS_New/sws_new/node_modules/moment/locale/nl-be.js ***!
  24795. \**************************************************************/
  24796. /*! no static exports found */
  24797. /***/ (function(module, exports, __webpack_require__) {
  24798. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24799. //! moment.js locale configuration
  24800. //! locale : Dutch (Belgium) [nl-be]
  24801. //! author : Joris Röling : https://github.com/jorisroling
  24802. //! author : Jacob Middag : https://github.com/middagj
  24803. ;
  24804. (function (global, factory) {
  24805. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24806. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24807. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24808. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24809. })(this, function (moment) {
  24810. 'use strict';
  24811. //! moment.js locale configuration
  24812. var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  24813. monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  24814. monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],
  24815. monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  24816. var nlBe = moment.defineLocale('nl-be', {
  24817. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  24818. monthsShort: function monthsShort(m, format) {
  24819. if (!m) {
  24820. return monthsShortWithDots;
  24821. } else if (/-MMM-/.test(format)) {
  24822. return monthsShortWithoutDots[m.month()];
  24823. } else {
  24824. return monthsShortWithDots[m.month()];
  24825. }
  24826. },
  24827. monthsRegex: monthsRegex,
  24828. monthsShortRegex: monthsRegex,
  24829. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  24830. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  24831. monthsParse: monthsParse,
  24832. longMonthsParse: monthsParse,
  24833. shortMonthsParse: monthsParse,
  24834. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  24835. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  24836. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  24837. weekdaysParseExact: true,
  24838. longDateFormat: {
  24839. LT: 'HH:mm',
  24840. LTS: 'HH:mm:ss',
  24841. L: 'DD/MM/YYYY',
  24842. LL: 'D MMMM YYYY',
  24843. LLL: 'D MMMM YYYY HH:mm',
  24844. LLLL: 'dddd D MMMM YYYY HH:mm'
  24845. },
  24846. calendar: {
  24847. sameDay: '[vandaag om] LT',
  24848. nextDay: '[morgen om] LT',
  24849. nextWeek: 'dddd [om] LT',
  24850. lastDay: '[gisteren om] LT',
  24851. lastWeek: '[afgelopen] dddd [om] LT',
  24852. sameElse: 'L'
  24853. },
  24854. relativeTime: {
  24855. future: 'over %s',
  24856. past: '%s geleden',
  24857. s: 'een paar seconden',
  24858. ss: '%d seconden',
  24859. m: 'één minuut',
  24860. mm: '%d minuten',
  24861. h: 'één uur',
  24862. hh: '%d uur',
  24863. d: 'één dag',
  24864. dd: '%d dagen',
  24865. M: 'één maand',
  24866. MM: '%d maanden',
  24867. y: 'één jaar',
  24868. yy: '%d jaar'
  24869. },
  24870. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  24871. ordinal: function ordinal(number) {
  24872. return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
  24873. },
  24874. week: {
  24875. dow: 1,
  24876. // Monday is the first day of the week.
  24877. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24878. }
  24879. });
  24880. return nlBe;
  24881. });
  24882. /***/ }),
  24883. /* 206 */
  24884. /*!***********************************************************!*\
  24885. !*** D:/SWS_New/sws_new/node_modules/moment/locale/nn.js ***!
  24886. \***********************************************************/
  24887. /*! no static exports found */
  24888. /***/ (function(module, exports, __webpack_require__) {
  24889. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24890. //! moment.js locale configuration
  24891. //! locale : Nynorsk [nn]
  24892. //! authors : https://github.com/mechuwind
  24893. //! Stephen Ramthun : https://github.com/stephenramthun
  24894. ;
  24895. (function (global, factory) {
  24896. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24897. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24898. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24899. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24900. })(this, function (moment) {
  24901. 'use strict';
  24902. //! moment.js locale configuration
  24903. var nn = moment.defineLocale('nn', {
  24904. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  24905. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  24906. monthsParseExact: true,
  24907. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  24908. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  24909. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  24910. weekdaysParseExact: true,
  24911. longDateFormat: {
  24912. LT: 'HH:mm',
  24913. LTS: 'HH:mm:ss',
  24914. L: 'DD.MM.YYYY',
  24915. LL: 'D. MMMM YYYY',
  24916. LLL: 'D. MMMM YYYY [kl.] H:mm',
  24917. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
  24918. },
  24919. calendar: {
  24920. sameDay: '[I dag klokka] LT',
  24921. nextDay: '[I morgon klokka] LT',
  24922. nextWeek: 'dddd [klokka] LT',
  24923. lastDay: '[I går klokka] LT',
  24924. lastWeek: '[Føregåande] dddd [klokka] LT',
  24925. sameElse: 'L'
  24926. },
  24927. relativeTime: {
  24928. future: 'om %s',
  24929. past: '%s sidan',
  24930. s: 'nokre sekund',
  24931. ss: '%d sekund',
  24932. m: 'eit minutt',
  24933. mm: '%d minutt',
  24934. h: 'ein time',
  24935. hh: '%d timar',
  24936. d: 'ein dag',
  24937. dd: '%d dagar',
  24938. w: 'ei veke',
  24939. ww: '%d veker',
  24940. M: 'ein månad',
  24941. MM: '%d månader',
  24942. y: 'eit år',
  24943. yy: '%d år'
  24944. },
  24945. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24946. ordinal: '%d.',
  24947. week: {
  24948. dow: 1,
  24949. // Monday is the first day of the week.
  24950. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24951. }
  24952. });
  24953. return nn;
  24954. });
  24955. /***/ }),
  24956. /* 207 */
  24957. /*!***************************************************************!*\
  24958. !*** D:/SWS_New/sws_new/node_modules/moment/locale/oc-lnc.js ***!
  24959. \***************************************************************/
  24960. /*! no static exports found */
  24961. /***/ (function(module, exports, __webpack_require__) {
  24962. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24963. //! moment.js locale configuration
  24964. //! locale : Occitan, lengadocian dialecte [oc-lnc]
  24965. //! author : Quentin PAGÈS : https://github.com/Quenty31
  24966. ;
  24967. (function (global, factory) {
  24968. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24969. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24970. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24971. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24972. })(this, function (moment) {
  24973. 'use strict';
  24974. //! moment.js locale configuration
  24975. var ocLnc = moment.defineLocale('oc-lnc', {
  24976. months: {
  24977. standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split('_'),
  24978. format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split('_'),
  24979. isFormat: /D[oD]?(\s)+MMMM/
  24980. },
  24981. monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split('_'),
  24982. monthsParseExact: true,
  24983. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split('_'),
  24984. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  24985. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  24986. weekdaysParseExact: true,
  24987. longDateFormat: {
  24988. LT: 'H:mm',
  24989. LTS: 'H:mm:ss',
  24990. L: 'DD/MM/YYYY',
  24991. LL: 'D MMMM [de] YYYY',
  24992. ll: 'D MMM YYYY',
  24993. LLL: 'D MMMM [de] YYYY [a] H:mm',
  24994. lll: 'D MMM YYYY, H:mm',
  24995. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  24996. llll: 'ddd D MMM YYYY, H:mm'
  24997. },
  24998. calendar: {
  24999. sameDay: '[uèi a] LT',
  25000. nextDay: '[deman a] LT',
  25001. nextWeek: 'dddd [a] LT',
  25002. lastDay: '[ièr a] LT',
  25003. lastWeek: 'dddd [passat a] LT',
  25004. sameElse: 'L'
  25005. },
  25006. relativeTime: {
  25007. future: "d'aquí %s",
  25008. past: 'fa %s',
  25009. s: 'unas segondas',
  25010. ss: '%d segondas',
  25011. m: 'una minuta',
  25012. mm: '%d minutas',
  25013. h: 'una ora',
  25014. hh: '%d oras',
  25015. d: 'un jorn',
  25016. dd: '%d jorns',
  25017. M: 'un mes',
  25018. MM: '%d meses',
  25019. y: 'un an',
  25020. yy: '%d ans'
  25021. },
  25022. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  25023. ordinal: function ordinal(number, period) {
  25024. var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';
  25025. if (period === 'w' || period === 'W') {
  25026. output = 'a';
  25027. }
  25028. return number + output;
  25029. },
  25030. week: {
  25031. dow: 1,
  25032. // Monday is the first day of the week.
  25033. doy: 4
  25034. }
  25035. });
  25036. return ocLnc;
  25037. });
  25038. /***/ }),
  25039. /* 208 */
  25040. /*!**************************************************************!*\
  25041. !*** D:/SWS_New/sws_new/node_modules/moment/locale/pa-in.js ***!
  25042. \**************************************************************/
  25043. /*! no static exports found */
  25044. /***/ (function(module, exports, __webpack_require__) {
  25045. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25046. //! moment.js locale configuration
  25047. //! locale : Punjabi (India) [pa-in]
  25048. //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
  25049. ;
  25050. (function (global, factory) {
  25051. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25052. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25053. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25054. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25055. })(this, function (moment) {
  25056. 'use strict';
  25057. //! moment.js locale configuration
  25058. var symbolMap = {
  25059. 1: '੧',
  25060. 2: '੨',
  25061. 3: '੩',
  25062. 4: '੪',
  25063. 5: '੫',
  25064. 6: '੬',
  25065. 7: '੭',
  25066. 8: '੮',
  25067. 9: '੯',
  25068. 0: '੦'
  25069. },
  25070. numberMap = {
  25071. '੧': '1',
  25072. '੨': '2',
  25073. '੩': '3',
  25074. '੪': '4',
  25075. '੫': '5',
  25076. '੬': '6',
  25077. '੭': '7',
  25078. '੮': '8',
  25079. '੯': '9',
  25080. '੦': '0'
  25081. };
  25082. var paIn = moment.defineLocale('pa-in', {
  25083. // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
  25084. months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  25085. monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  25086. weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
  25087. weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  25088. weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  25089. longDateFormat: {
  25090. LT: 'A h:mm ਵਜੇ',
  25091. LTS: 'A h:mm:ss ਵਜੇ',
  25092. L: 'DD/MM/YYYY',
  25093. LL: 'D MMMM YYYY',
  25094. LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
  25095. LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
  25096. },
  25097. calendar: {
  25098. sameDay: '[ਅਜ] LT',
  25099. nextDay: '[ਕਲ] LT',
  25100. nextWeek: '[ਅਗਲਾ] dddd, LT',
  25101. lastDay: '[ਕਲ] LT',
  25102. lastWeek: '[ਪਿਛਲੇ] dddd, LT',
  25103. sameElse: 'L'
  25104. },
  25105. relativeTime: {
  25106. future: '%s ਵਿੱਚ',
  25107. past: '%s ਪਿਛਲੇ',
  25108. s: 'ਕੁਝ ਸਕਿੰਟ',
  25109. ss: '%d ਸਕਿੰਟ',
  25110. m: 'ਇਕ ਮਿੰਟ',
  25111. mm: '%d ਮਿੰਟ',
  25112. h: 'ਇੱਕ ਘੰਟਾ',
  25113. hh: '%d ਘੰਟੇ',
  25114. d: 'ਇੱਕ ਦਿਨ',
  25115. dd: '%d ਦਿਨ',
  25116. M: 'ਇੱਕ ਮਹੀਨਾ',
  25117. MM: '%d ਮਹੀਨੇ',
  25118. y: 'ਇੱਕ ਸਾਲ',
  25119. yy: '%d ਸਾਲ'
  25120. },
  25121. preparse: function preparse(string) {
  25122. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  25123. return numberMap[match];
  25124. });
  25125. },
  25126. postformat: function postformat(string) {
  25127. return string.replace(/\d/g, function (match) {
  25128. return symbolMap[match];
  25129. });
  25130. },
  25131. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  25132. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  25133. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  25134. meridiemHour: function meridiemHour(hour, meridiem) {
  25135. if (hour === 12) {
  25136. hour = 0;
  25137. }
  25138. if (meridiem === 'ਰਾਤ') {
  25139. return hour < 4 ? hour : hour + 12;
  25140. } else if (meridiem === 'ਸਵੇਰ') {
  25141. return hour;
  25142. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  25143. return hour >= 10 ? hour : hour + 12;
  25144. } else if (meridiem === 'ਸ਼ਾਮ') {
  25145. return hour + 12;
  25146. }
  25147. },
  25148. meridiem: function meridiem(hour, minute, isLower) {
  25149. if (hour < 4) {
  25150. return 'ਰਾਤ';
  25151. } else if (hour < 10) {
  25152. return 'ਸਵੇਰ';
  25153. } else if (hour < 17) {
  25154. return 'ਦੁਪਹਿਰ';
  25155. } else if (hour < 20) {
  25156. return 'ਸ਼ਾਮ';
  25157. } else {
  25158. return 'ਰਾਤ';
  25159. }
  25160. },
  25161. week: {
  25162. dow: 0,
  25163. // Sunday is the first day of the week.
  25164. doy: 6 // The week that contains Jan 6th is the first week of the year.
  25165. }
  25166. });
  25167. return paIn;
  25168. });
  25169. /***/ }),
  25170. /* 209 */
  25171. /*!***********************************************************!*\
  25172. !*** D:/SWS_New/sws_new/node_modules/moment/locale/pl.js ***!
  25173. \***********************************************************/
  25174. /*! no static exports found */
  25175. /***/ (function(module, exports, __webpack_require__) {
  25176. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25177. //! moment.js locale configuration
  25178. //! locale : Polish [pl]
  25179. //! author : Rafal Hirsz : https://github.com/evoL
  25180. ;
  25181. (function (global, factory) {
  25182. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25183. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25184. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25185. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25186. })(this, function (moment) {
  25187. 'use strict';
  25188. //! moment.js locale configuration
  25189. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
  25190. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_'),
  25191. monthsParse = [/^sty/i, /^lut/i, /^mar/i, /^kwi/i, /^maj/i, /^cze/i, /^lip/i, /^sie/i, /^wrz/i, /^paź/i, /^lis/i, /^gru/i];
  25192. function plural(n) {
  25193. return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
  25194. }
  25195. function translate(number, withoutSuffix, key) {
  25196. var result = number + ' ';
  25197. switch (key) {
  25198. case 'ss':
  25199. return result + (plural(number) ? 'sekundy' : 'sekund');
  25200. case 'm':
  25201. return withoutSuffix ? 'minuta' : 'minutę';
  25202. case 'mm':
  25203. return result + (plural(number) ? 'minuty' : 'minut');
  25204. case 'h':
  25205. return withoutSuffix ? 'godzina' : 'godzinę';
  25206. case 'hh':
  25207. return result + (plural(number) ? 'godziny' : 'godzin');
  25208. case 'ww':
  25209. return result + (plural(number) ? 'tygodnie' : 'tygodni');
  25210. case 'MM':
  25211. return result + (plural(number) ? 'miesiące' : 'miesięcy');
  25212. case 'yy':
  25213. return result + (plural(number) ? 'lata' : 'lat');
  25214. }
  25215. }
  25216. var pl = moment.defineLocale('pl', {
  25217. months: function months(momentToFormat, format) {
  25218. if (!momentToFormat) {
  25219. return monthsNominative;
  25220. } else if (/D MMMM/.test(format)) {
  25221. return monthsSubjective[momentToFormat.month()];
  25222. } else {
  25223. return monthsNominative[momentToFormat.month()];
  25224. }
  25225. },
  25226. monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  25227. monthsParse: monthsParse,
  25228. longMonthsParse: monthsParse,
  25229. shortMonthsParse: monthsParse,
  25230. weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  25231. weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  25232. weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  25233. longDateFormat: {
  25234. LT: 'HH:mm',
  25235. LTS: 'HH:mm:ss',
  25236. L: 'DD.MM.YYYY',
  25237. LL: 'D MMMM YYYY',
  25238. LLL: 'D MMMM YYYY HH:mm',
  25239. LLLL: 'dddd, D MMMM YYYY HH:mm'
  25240. },
  25241. calendar: {
  25242. sameDay: '[Dziś o] LT',
  25243. nextDay: '[Jutro o] LT',
  25244. nextWeek: function nextWeek() {
  25245. switch (this.day()) {
  25246. case 0:
  25247. return '[W niedzielę o] LT';
  25248. case 2:
  25249. return '[We wtorek o] LT';
  25250. case 3:
  25251. return '[W środę o] LT';
  25252. case 6:
  25253. return '[W sobotę o] LT';
  25254. default:
  25255. return '[W] dddd [o] LT';
  25256. }
  25257. },
  25258. lastDay: '[Wczoraj o] LT',
  25259. lastWeek: function lastWeek() {
  25260. switch (this.day()) {
  25261. case 0:
  25262. return '[W zeszłą niedzielę o] LT';
  25263. case 3:
  25264. return '[W zeszłą środę o] LT';
  25265. case 6:
  25266. return '[W zeszłą sobotę o] LT';
  25267. default:
  25268. return '[W zeszły] dddd [o] LT';
  25269. }
  25270. },
  25271. sameElse: 'L'
  25272. },
  25273. relativeTime: {
  25274. future: 'za %s',
  25275. past: '%s temu',
  25276. s: 'kilka sekund',
  25277. ss: translate,
  25278. m: translate,
  25279. mm: translate,
  25280. h: translate,
  25281. hh: translate,
  25282. d: '1 dzień',
  25283. dd: '%d dni',
  25284. w: 'tydzień',
  25285. ww: translate,
  25286. M: 'miesiąc',
  25287. MM: translate,
  25288. y: 'rok',
  25289. yy: translate
  25290. },
  25291. dayOfMonthOrdinalParse: /\d{1,2}\./,
  25292. ordinal: '%d.',
  25293. week: {
  25294. dow: 1,
  25295. // Monday is the first day of the week.
  25296. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25297. }
  25298. });
  25299. return pl;
  25300. });
  25301. /***/ }),
  25302. /* 210 */
  25303. /*!***********************************************************!*\
  25304. !*** D:/SWS_New/sws_new/node_modules/moment/locale/pt.js ***!
  25305. \***********************************************************/
  25306. /*! no static exports found */
  25307. /***/ (function(module, exports, __webpack_require__) {
  25308. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25309. //! moment.js locale configuration
  25310. //! locale : Portuguese [pt]
  25311. //! author : Jefferson : https://github.com/jalex79
  25312. ;
  25313. (function (global, factory) {
  25314. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25315. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25316. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25317. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25318. })(this, function (moment) {
  25319. 'use strict';
  25320. //! moment.js locale configuration
  25321. var pt = moment.defineLocale('pt', {
  25322. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  25323. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  25324. weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  25325. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  25326. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  25327. weekdaysParseExact: true,
  25328. longDateFormat: {
  25329. LT: 'HH:mm',
  25330. LTS: 'HH:mm:ss',
  25331. L: 'DD/MM/YYYY',
  25332. LL: 'D [de] MMMM [de] YYYY',
  25333. LLL: 'D [de] MMMM [de] YYYY HH:mm',
  25334. LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm'
  25335. },
  25336. calendar: {
  25337. sameDay: '[Hoje às] LT',
  25338. nextDay: '[Amanhã às] LT',
  25339. nextWeek: 'dddd [às] LT',
  25340. lastDay: '[Ontem às] LT',
  25341. lastWeek: function lastWeek() {
  25342. return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday
  25343. : '[Última] dddd [às] LT'; // Monday - Friday
  25344. },
  25345. sameElse: 'L'
  25346. },
  25347. relativeTime: {
  25348. future: 'em %s',
  25349. past: 'há %s',
  25350. s: 'segundos',
  25351. ss: '%d segundos',
  25352. m: 'um minuto',
  25353. mm: '%d minutos',
  25354. h: 'uma hora',
  25355. hh: '%d horas',
  25356. d: 'um dia',
  25357. dd: '%d dias',
  25358. w: 'uma semana',
  25359. ww: '%d semanas',
  25360. M: 'um mês',
  25361. MM: '%d meses',
  25362. y: 'um ano',
  25363. yy: '%d anos'
  25364. },
  25365. dayOfMonthOrdinalParse: /\d{1,2}º/,
  25366. ordinal: '%dº',
  25367. week: {
  25368. dow: 1,
  25369. // Monday is the first day of the week.
  25370. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25371. }
  25372. });
  25373. return pt;
  25374. });
  25375. /***/ }),
  25376. /* 211 */
  25377. /*!**************************************************************!*\
  25378. !*** D:/SWS_New/sws_new/node_modules/moment/locale/pt-br.js ***!
  25379. \**************************************************************/
  25380. /*! no static exports found */
  25381. /***/ (function(module, exports, __webpack_require__) {
  25382. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25383. //! moment.js locale configuration
  25384. //! locale : Portuguese (Brazil) [pt-br]
  25385. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  25386. ;
  25387. (function (global, factory) {
  25388. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25389. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25390. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25391. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25392. })(this, function (moment) {
  25393. 'use strict';
  25394. //! moment.js locale configuration
  25395. var ptBr = moment.defineLocale('pt-br', {
  25396. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  25397. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  25398. weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
  25399. weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  25400. weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
  25401. weekdaysParseExact: true,
  25402. longDateFormat: {
  25403. LT: 'HH:mm',
  25404. LTS: 'HH:mm:ss',
  25405. L: 'DD/MM/YYYY',
  25406. LL: 'D [de] MMMM [de] YYYY',
  25407. LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
  25408. LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
  25409. },
  25410. calendar: {
  25411. sameDay: '[Hoje às] LT',
  25412. nextDay: '[Amanhã às] LT',
  25413. nextWeek: 'dddd [às] LT',
  25414. lastDay: '[Ontem às] LT',
  25415. lastWeek: function lastWeek() {
  25416. return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday
  25417. : '[Última] dddd [às] LT'; // Monday - Friday
  25418. },
  25419. sameElse: 'L'
  25420. },
  25421. relativeTime: {
  25422. future: 'em %s',
  25423. past: 'há %s',
  25424. s: 'poucos segundos',
  25425. ss: '%d segundos',
  25426. m: 'um minuto',
  25427. mm: '%d minutos',
  25428. h: 'uma hora',
  25429. hh: '%d horas',
  25430. d: 'um dia',
  25431. dd: '%d dias',
  25432. M: 'um mês',
  25433. MM: '%d meses',
  25434. y: 'um ano',
  25435. yy: '%d anos'
  25436. },
  25437. dayOfMonthOrdinalParse: /\d{1,2}º/,
  25438. ordinal: '%dº',
  25439. invalidDate: 'Data inválida'
  25440. });
  25441. return ptBr;
  25442. });
  25443. /***/ }),
  25444. /* 212 */
  25445. /*!***********************************************************!*\
  25446. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ro.js ***!
  25447. \***********************************************************/
  25448. /*! no static exports found */
  25449. /***/ (function(module, exports, __webpack_require__) {
  25450. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25451. //! moment.js locale configuration
  25452. //! locale : Romanian [ro]
  25453. //! author : Vlad Gurdiga : https://github.com/gurdiga
  25454. //! author : Valentin Agachi : https://github.com/avaly
  25455. //! author : Emanuel Cepoi : https://github.com/cepem
  25456. ;
  25457. (function (global, factory) {
  25458. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25459. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25460. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25461. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25462. })(this, function (moment) {
  25463. 'use strict';
  25464. //! moment.js locale configuration
  25465. function relativeTimeWithPlural(number, withoutSuffix, key) {
  25466. var format = {
  25467. ss: 'secunde',
  25468. mm: 'minute',
  25469. hh: 'ore',
  25470. dd: 'zile',
  25471. ww: 'săptămâni',
  25472. MM: 'luni',
  25473. yy: 'ani'
  25474. },
  25475. separator = ' ';
  25476. if (number % 100 >= 20 || number >= 100 && number % 100 === 0) {
  25477. separator = ' de ';
  25478. }
  25479. return number + separator + format[key];
  25480. }
  25481. var ro = moment.defineLocale('ro', {
  25482. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  25483. monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  25484. monthsParseExact: true,
  25485. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  25486. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  25487. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  25488. longDateFormat: {
  25489. LT: 'H:mm',
  25490. LTS: 'H:mm:ss',
  25491. L: 'DD.MM.YYYY',
  25492. LL: 'D MMMM YYYY',
  25493. LLL: 'D MMMM YYYY H:mm',
  25494. LLLL: 'dddd, D MMMM YYYY H:mm'
  25495. },
  25496. calendar: {
  25497. sameDay: '[azi la] LT',
  25498. nextDay: '[mâine la] LT',
  25499. nextWeek: 'dddd [la] LT',
  25500. lastDay: '[ieri la] LT',
  25501. lastWeek: '[fosta] dddd [la] LT',
  25502. sameElse: 'L'
  25503. },
  25504. relativeTime: {
  25505. future: 'peste %s',
  25506. past: '%s în urmă',
  25507. s: 'câteva secunde',
  25508. ss: relativeTimeWithPlural,
  25509. m: 'un minut',
  25510. mm: relativeTimeWithPlural,
  25511. h: 'o oră',
  25512. hh: relativeTimeWithPlural,
  25513. d: 'o zi',
  25514. dd: relativeTimeWithPlural,
  25515. w: 'o săptămână',
  25516. ww: relativeTimeWithPlural,
  25517. M: 'o lună',
  25518. MM: relativeTimeWithPlural,
  25519. y: 'un an',
  25520. yy: relativeTimeWithPlural
  25521. },
  25522. week: {
  25523. dow: 1,
  25524. // Monday is the first day of the week.
  25525. doy: 7 // The week that contains Jan 7th is the first week of the year.
  25526. }
  25527. });
  25528. return ro;
  25529. });
  25530. /***/ }),
  25531. /* 213 */
  25532. /*!***********************************************************!*\
  25533. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ru.js ***!
  25534. \***********************************************************/
  25535. /*! no static exports found */
  25536. /***/ (function(module, exports, __webpack_require__) {
  25537. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25538. //! moment.js locale configuration
  25539. //! locale : Russian [ru]
  25540. //! author : Viktorminator : https://github.com/Viktorminator
  25541. //! author : Menelion Elensúle : https://github.com/Oire
  25542. //! author : Коренберг Марк : https://github.com/socketpair
  25543. ;
  25544. (function (global, factory) {
  25545. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25546. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25547. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25548. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25549. })(this, function (moment) {
  25550. 'use strict';
  25551. //! moment.js locale configuration
  25552. function plural(word, num) {
  25553. var forms = word.split('_');
  25554. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
  25555. }
  25556. function relativeTimeWithPlural(number, withoutSuffix, key) {
  25557. var format = {
  25558. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  25559. mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  25560. hh: 'час_часа_часов',
  25561. dd: 'день_дня_дней',
  25562. ww: 'неделя_недели_недель',
  25563. MM: 'месяц_месяца_месяцев',
  25564. yy: 'год_года_лет'
  25565. };
  25566. if (key === 'm') {
  25567. return withoutSuffix ? 'минута' : 'минуту';
  25568. } else {
  25569. return number + ' ' + plural(format[key], +number);
  25570. }
  25571. }
  25572. var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
  25573. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  25574. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  25575. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  25576. var ru = moment.defineLocale('ru', {
  25577. months: {
  25578. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
  25579. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
  25580. },
  25581. monthsShort: {
  25582. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
  25583. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
  25584. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
  25585. },
  25586. weekdays: {
  25587. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  25588. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
  25589. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/
  25590. },
  25591. weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  25592. weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  25593. monthsParse: monthsParse,
  25594. longMonthsParse: monthsParse,
  25595. shortMonthsParse: monthsParse,
  25596. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  25597. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  25598. // копия предыдущего
  25599. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  25600. // полные названия с падежами
  25601. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  25602. // Выражение, которое соответствует только сокращённым формам
  25603. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  25604. longDateFormat: {
  25605. LT: 'H:mm',
  25606. LTS: 'H:mm:ss',
  25607. L: 'DD.MM.YYYY',
  25608. LL: 'D MMMM YYYY г.',
  25609. LLL: 'D MMMM YYYY г., H:mm',
  25610. LLLL: 'dddd, D MMMM YYYY г., H:mm'
  25611. },
  25612. calendar: {
  25613. sameDay: '[Сегодня, в] LT',
  25614. nextDay: '[Завтра, в] LT',
  25615. lastDay: '[Вчера, в] LT',
  25616. nextWeek: function nextWeek(now) {
  25617. if (now.week() !== this.week()) {
  25618. switch (this.day()) {
  25619. case 0:
  25620. return '[В следующее] dddd, [в] LT';
  25621. case 1:
  25622. case 2:
  25623. case 4:
  25624. return '[В следующий] dddd, [в] LT';
  25625. case 3:
  25626. case 5:
  25627. case 6:
  25628. return '[В следующую] dddd, [в] LT';
  25629. }
  25630. } else {
  25631. if (this.day() === 2) {
  25632. return '[Во] dddd, [в] LT';
  25633. } else {
  25634. return '[В] dddd, [в] LT';
  25635. }
  25636. }
  25637. },
  25638. lastWeek: function lastWeek(now) {
  25639. if (now.week() !== this.week()) {
  25640. switch (this.day()) {
  25641. case 0:
  25642. return '[В прошлое] dddd, [в] LT';
  25643. case 1:
  25644. case 2:
  25645. case 4:
  25646. return '[В прошлый] dddd, [в] LT';
  25647. case 3:
  25648. case 5:
  25649. case 6:
  25650. return '[В прошлую] dddd, [в] LT';
  25651. }
  25652. } else {
  25653. if (this.day() === 2) {
  25654. return '[Во] dddd, [в] LT';
  25655. } else {
  25656. return '[В] dddd, [в] LT';
  25657. }
  25658. }
  25659. },
  25660. sameElse: 'L'
  25661. },
  25662. relativeTime: {
  25663. future: 'через %s',
  25664. past: '%s назад',
  25665. s: 'несколько секунд',
  25666. ss: relativeTimeWithPlural,
  25667. m: relativeTimeWithPlural,
  25668. mm: relativeTimeWithPlural,
  25669. h: 'час',
  25670. hh: relativeTimeWithPlural,
  25671. d: 'день',
  25672. dd: relativeTimeWithPlural,
  25673. w: 'неделя',
  25674. ww: relativeTimeWithPlural,
  25675. M: 'месяц',
  25676. MM: relativeTimeWithPlural,
  25677. y: 'год',
  25678. yy: relativeTimeWithPlural
  25679. },
  25680. meridiemParse: /ночи|утра|дня|вечера/i,
  25681. isPM: function isPM(input) {
  25682. return /^(дня|вечера)$/.test(input);
  25683. },
  25684. meridiem: function meridiem(hour, minute, isLower) {
  25685. if (hour < 4) {
  25686. return 'ночи';
  25687. } else if (hour < 12) {
  25688. return 'утра';
  25689. } else if (hour < 17) {
  25690. return 'дня';
  25691. } else {
  25692. return 'вечера';
  25693. }
  25694. },
  25695. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  25696. ordinal: function ordinal(number, period) {
  25697. switch (period) {
  25698. case 'M':
  25699. case 'd':
  25700. case 'DDD':
  25701. return number + '-й';
  25702. case 'D':
  25703. return number + '-го';
  25704. case 'w':
  25705. case 'W':
  25706. return number + '-я';
  25707. default:
  25708. return number;
  25709. }
  25710. },
  25711. week: {
  25712. dow: 1,
  25713. // Monday is the first day of the week.
  25714. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25715. }
  25716. });
  25717. return ru;
  25718. });
  25719. /***/ }),
  25720. /* 214 */
  25721. /*!***********************************************************!*\
  25722. !*** D:/SWS_New/sws_new/node_modules/moment/locale/sd.js ***!
  25723. \***********************************************************/
  25724. /*! no static exports found */
  25725. /***/ (function(module, exports, __webpack_require__) {
  25726. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25727. //! moment.js locale configuration
  25728. //! locale : Sindhi [sd]
  25729. //! author : Narain Sagar : https://github.com/narainsagar
  25730. ;
  25731. (function (global, factory) {
  25732. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25733. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25734. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25735. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25736. })(this, function (moment) {
  25737. 'use strict';
  25738. //! moment.js locale configuration
  25739. var months = ['جنوري', 'فيبروري', 'مارچ', 'اپريل', 'مئي', 'جون', 'جولاءِ', 'آگسٽ', 'سيپٽمبر', 'آڪٽوبر', 'نومبر', 'ڊسمبر'],
  25740. days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
  25741. var sd = moment.defineLocale('sd', {
  25742. months: months,
  25743. monthsShort: months,
  25744. weekdays: days,
  25745. weekdaysShort: days,
  25746. weekdaysMin: days,
  25747. longDateFormat: {
  25748. LT: 'HH:mm',
  25749. LTS: 'HH:mm:ss',
  25750. L: 'DD/MM/YYYY',
  25751. LL: 'D MMMM YYYY',
  25752. LLL: 'D MMMM YYYY HH:mm',
  25753. LLLL: 'dddd، D MMMM YYYY HH:mm'
  25754. },
  25755. meridiemParse: /صبح|شام/,
  25756. isPM: function isPM(input) {
  25757. return 'شام' === input;
  25758. },
  25759. meridiem: function meridiem(hour, minute, isLower) {
  25760. if (hour < 12) {
  25761. return 'صبح';
  25762. }
  25763. return 'شام';
  25764. },
  25765. calendar: {
  25766. sameDay: '[اڄ] LT',
  25767. nextDay: '[سڀاڻي] LT',
  25768. nextWeek: 'dddd [اڳين هفتي تي] LT',
  25769. lastDay: '[ڪالهه] LT',
  25770. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  25771. sameElse: 'L'
  25772. },
  25773. relativeTime: {
  25774. future: '%s پوء',
  25775. past: '%s اڳ',
  25776. s: 'چند سيڪنڊ',
  25777. ss: '%d سيڪنڊ',
  25778. m: 'هڪ منٽ',
  25779. mm: '%d منٽ',
  25780. h: 'هڪ ڪلاڪ',
  25781. hh: '%d ڪلاڪ',
  25782. d: 'هڪ ڏينهن',
  25783. dd: '%d ڏينهن',
  25784. M: 'هڪ مهينو',
  25785. MM: '%d مهينا',
  25786. y: 'هڪ سال',
  25787. yy: '%d سال'
  25788. },
  25789. preparse: function preparse(string) {
  25790. return string.replace(/،/g, ',');
  25791. },
  25792. postformat: function postformat(string) {
  25793. return string.replace(/,/g, '،');
  25794. },
  25795. week: {
  25796. dow: 1,
  25797. // Monday is the first day of the week.
  25798. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25799. }
  25800. });
  25801. return sd;
  25802. });
  25803. /***/ }),
  25804. /* 215 */
  25805. /*!***********************************************************!*\
  25806. !*** D:/SWS_New/sws_new/node_modules/moment/locale/se.js ***!
  25807. \***********************************************************/
  25808. /*! no static exports found */
  25809. /***/ (function(module, exports, __webpack_require__) {
  25810. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25811. //! moment.js locale configuration
  25812. //! locale : Northern Sami [se]
  25813. //! authors : Bård Rolstad Henriksen : https://github.com/karamell
  25814. ;
  25815. (function (global, factory) {
  25816. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25817. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25818. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25819. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25820. })(this, function (moment) {
  25821. 'use strict';
  25822. //! moment.js locale configuration
  25823. var se = moment.defineLocale('se', {
  25824. months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
  25825. monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  25826. weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
  25827. weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  25828. weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
  25829. longDateFormat: {
  25830. LT: 'HH:mm',
  25831. LTS: 'HH:mm:ss',
  25832. L: 'DD.MM.YYYY',
  25833. LL: 'MMMM D. [b.] YYYY',
  25834. LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
  25835. LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
  25836. },
  25837. calendar: {
  25838. sameDay: '[otne ti] LT',
  25839. nextDay: '[ihttin ti] LT',
  25840. nextWeek: 'dddd [ti] LT',
  25841. lastDay: '[ikte ti] LT',
  25842. lastWeek: '[ovddit] dddd [ti] LT',
  25843. sameElse: 'L'
  25844. },
  25845. relativeTime: {
  25846. future: '%s geažes',
  25847. past: 'maŋit %s',
  25848. s: 'moadde sekunddat',
  25849. ss: '%d sekunddat',
  25850. m: 'okta minuhta',
  25851. mm: '%d minuhtat',
  25852. h: 'okta diimmu',
  25853. hh: '%d diimmut',
  25854. d: 'okta beaivi',
  25855. dd: '%d beaivvit',
  25856. M: 'okta mánnu',
  25857. MM: '%d mánut',
  25858. y: 'okta jahki',
  25859. yy: '%d jagit'
  25860. },
  25861. dayOfMonthOrdinalParse: /\d{1,2}\./,
  25862. ordinal: '%d.',
  25863. week: {
  25864. dow: 1,
  25865. // Monday is the first day of the week.
  25866. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25867. }
  25868. });
  25869. return se;
  25870. });
  25871. /***/ }),
  25872. /* 216 */
  25873. /*!***********************************************************!*\
  25874. !*** D:/SWS_New/sws_new/node_modules/moment/locale/si.js ***!
  25875. \***********************************************************/
  25876. /*! no static exports found */
  25877. /***/ (function(module, exports, __webpack_require__) {
  25878. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25879. //! moment.js locale configuration
  25880. //! locale : Sinhalese [si]
  25881. //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
  25882. ;
  25883. (function (global, factory) {
  25884. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25885. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25886. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25887. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25888. })(this, function (moment) {
  25889. 'use strict';
  25890. //! moment.js locale configuration
  25891. /*jshint -W100*/
  25892. var si = moment.defineLocale('si', {
  25893. months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
  25894. monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
  25895. weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
  25896. weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  25897. weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  25898. weekdaysParseExact: true,
  25899. longDateFormat: {
  25900. LT: 'a h:mm',
  25901. LTS: 'a h:mm:ss',
  25902. L: 'YYYY/MM/DD',
  25903. LL: 'YYYY MMMM D',
  25904. LLL: 'YYYY MMMM D, a h:mm',
  25905. LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
  25906. },
  25907. calendar: {
  25908. sameDay: '[අද] LT[ට]',
  25909. nextDay: '[හෙට] LT[ට]',
  25910. nextWeek: 'dddd LT[ට]',
  25911. lastDay: '[ඊයේ] LT[ට]',
  25912. lastWeek: '[පසුගිය] dddd LT[ට]',
  25913. sameElse: 'L'
  25914. },
  25915. relativeTime: {
  25916. future: '%sකින්',
  25917. past: '%sකට පෙර',
  25918. s: 'තත්පර කිහිපය',
  25919. ss: 'තත්පර %d',
  25920. m: 'මිනිත්තුව',
  25921. mm: 'මිනිත්තු %d',
  25922. h: 'පැය',
  25923. hh: 'පැය %d',
  25924. d: 'දිනය',
  25925. dd: 'දින %d',
  25926. M: 'මාසය',
  25927. MM: 'මාස %d',
  25928. y: 'වසර',
  25929. yy: 'වසර %d'
  25930. },
  25931. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  25932. ordinal: function ordinal(number) {
  25933. return number + ' වැනි';
  25934. },
  25935. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  25936. isPM: function isPM(input) {
  25937. return input === 'ප.ව.' || input === 'පස් වරු';
  25938. },
  25939. meridiem: function meridiem(hours, minutes, isLower) {
  25940. if (hours > 11) {
  25941. return isLower ? 'ප.ව.' : 'පස් වරු';
  25942. } else {
  25943. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  25944. }
  25945. }
  25946. });
  25947. return si;
  25948. });
  25949. /***/ }),
  25950. /* 217 */
  25951. /*!***********************************************************!*\
  25952. !*** D:/SWS_New/sws_new/node_modules/moment/locale/sk.js ***!
  25953. \***********************************************************/
  25954. /*! no static exports found */
  25955. /***/ (function(module, exports, __webpack_require__) {
  25956. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25957. //! moment.js locale configuration
  25958. //! locale : Slovak [sk]
  25959. //! author : Martin Minka : https://github.com/k2s
  25960. //! based on work of petrbela : https://github.com/petrbela
  25961. ;
  25962. (function (global, factory) {
  25963. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25964. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25965. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25966. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25967. })(this, function (moment) {
  25968. 'use strict';
  25969. //! moment.js locale configuration
  25970. var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
  25971. monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  25972. function plural(n) {
  25973. return n > 1 && n < 5;
  25974. }
  25975. function translate(number, withoutSuffix, key, isFuture) {
  25976. var result = number + ' ';
  25977. switch (key) {
  25978. case 's':
  25979. // a few seconds / in a few seconds / a few seconds ago
  25980. return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
  25981. case 'ss':
  25982. // 9 seconds / in 9 seconds / 9 seconds ago
  25983. if (withoutSuffix || isFuture) {
  25984. return result + (plural(number) ? 'sekundy' : 'sekúnd');
  25985. } else {
  25986. return result + 'sekundami';
  25987. }
  25988. case 'm':
  25989. // a minute / in a minute / a minute ago
  25990. return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
  25991. case 'mm':
  25992. // 9 minutes / in 9 minutes / 9 minutes ago
  25993. if (withoutSuffix || isFuture) {
  25994. return result + (plural(number) ? 'minúty' : 'minút');
  25995. } else {
  25996. return result + 'minútami';
  25997. }
  25998. case 'h':
  25999. // an hour / in an hour / an hour ago
  26000. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  26001. case 'hh':
  26002. // 9 hours / in 9 hours / 9 hours ago
  26003. if (withoutSuffix || isFuture) {
  26004. return result + (plural(number) ? 'hodiny' : 'hodín');
  26005. } else {
  26006. return result + 'hodinami';
  26007. }
  26008. case 'd':
  26009. // a day / in a day / a day ago
  26010. return withoutSuffix || isFuture ? 'deň' : 'dňom';
  26011. case 'dd':
  26012. // 9 days / in 9 days / 9 days ago
  26013. if (withoutSuffix || isFuture) {
  26014. return result + (plural(number) ? 'dni' : 'dní');
  26015. } else {
  26016. return result + 'dňami';
  26017. }
  26018. case 'M':
  26019. // a month / in a month / a month ago
  26020. return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
  26021. case 'MM':
  26022. // 9 months / in 9 months / 9 months ago
  26023. if (withoutSuffix || isFuture) {
  26024. return result + (plural(number) ? 'mesiace' : 'mesiacov');
  26025. } else {
  26026. return result + 'mesiacmi';
  26027. }
  26028. case 'y':
  26029. // a year / in a year / a year ago
  26030. return withoutSuffix || isFuture ? 'rok' : 'rokom';
  26031. case 'yy':
  26032. // 9 years / in 9 years / 9 years ago
  26033. if (withoutSuffix || isFuture) {
  26034. return result + (plural(number) ? 'roky' : 'rokov');
  26035. } else {
  26036. return result + 'rokmi';
  26037. }
  26038. }
  26039. }
  26040. var sk = moment.defineLocale('sk', {
  26041. months: months,
  26042. monthsShort: monthsShort,
  26043. weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  26044. weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
  26045. weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
  26046. longDateFormat: {
  26047. LT: 'H:mm',
  26048. LTS: 'H:mm:ss',
  26049. L: 'DD.MM.YYYY',
  26050. LL: 'D. MMMM YYYY',
  26051. LLL: 'D. MMMM YYYY H:mm',
  26052. LLLL: 'dddd D. MMMM YYYY H:mm'
  26053. },
  26054. calendar: {
  26055. sameDay: '[dnes o] LT',
  26056. nextDay: '[zajtra o] LT',
  26057. nextWeek: function nextWeek() {
  26058. switch (this.day()) {
  26059. case 0:
  26060. return '[v nedeľu o] LT';
  26061. case 1:
  26062. case 2:
  26063. return '[v] dddd [o] LT';
  26064. case 3:
  26065. return '[v stredu o] LT';
  26066. case 4:
  26067. return '[vo štvrtok o] LT';
  26068. case 5:
  26069. return '[v piatok o] LT';
  26070. case 6:
  26071. return '[v sobotu o] LT';
  26072. }
  26073. },
  26074. lastDay: '[včera o] LT',
  26075. lastWeek: function lastWeek() {
  26076. switch (this.day()) {
  26077. case 0:
  26078. return '[minulú nedeľu o] LT';
  26079. case 1:
  26080. case 2:
  26081. return '[minulý] dddd [o] LT';
  26082. case 3:
  26083. return '[minulú stredu o] LT';
  26084. case 4:
  26085. case 5:
  26086. return '[minulý] dddd [o] LT';
  26087. case 6:
  26088. return '[minulú sobotu o] LT';
  26089. }
  26090. },
  26091. sameElse: 'L'
  26092. },
  26093. relativeTime: {
  26094. future: 'za %s',
  26095. past: 'pred %s',
  26096. s: translate,
  26097. ss: translate,
  26098. m: translate,
  26099. mm: translate,
  26100. h: translate,
  26101. hh: translate,
  26102. d: translate,
  26103. dd: translate,
  26104. M: translate,
  26105. MM: translate,
  26106. y: translate,
  26107. yy: translate
  26108. },
  26109. dayOfMonthOrdinalParse: /\d{1,2}\./,
  26110. ordinal: '%d.',
  26111. week: {
  26112. dow: 1,
  26113. // Monday is the first day of the week.
  26114. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26115. }
  26116. });
  26117. return sk;
  26118. });
  26119. /***/ }),
  26120. /* 218 */
  26121. /*!***********************************************************!*\
  26122. !*** D:/SWS_New/sws_new/node_modules/moment/locale/sl.js ***!
  26123. \***********************************************************/
  26124. /*! no static exports found */
  26125. /***/ (function(module, exports, __webpack_require__) {
  26126. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26127. //! moment.js locale configuration
  26128. //! locale : Slovenian [sl]
  26129. //! author : Robert Sedovšek : https://github.com/sedovsek
  26130. ;
  26131. (function (global, factory) {
  26132. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26133. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26134. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26135. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26136. })(this, function (moment) {
  26137. 'use strict';
  26138. //! moment.js locale configuration
  26139. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  26140. var result = number + ' ';
  26141. switch (key) {
  26142. case 's':
  26143. return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
  26144. case 'ss':
  26145. if (number === 1) {
  26146. result += withoutSuffix ? 'sekundo' : 'sekundi';
  26147. } else if (number === 2) {
  26148. result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
  26149. } else if (number < 5) {
  26150. result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
  26151. } else {
  26152. result += 'sekund';
  26153. }
  26154. return result;
  26155. case 'm':
  26156. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  26157. case 'mm':
  26158. if (number === 1) {
  26159. result += withoutSuffix ? 'minuta' : 'minuto';
  26160. } else if (number === 2) {
  26161. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  26162. } else if (number < 5) {
  26163. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  26164. } else {
  26165. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  26166. }
  26167. return result;
  26168. case 'h':
  26169. return withoutSuffix ? 'ena ura' : 'eno uro';
  26170. case 'hh':
  26171. if (number === 1) {
  26172. result += withoutSuffix ? 'ura' : 'uro';
  26173. } else if (number === 2) {
  26174. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  26175. } else if (number < 5) {
  26176. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  26177. } else {
  26178. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  26179. }
  26180. return result;
  26181. case 'd':
  26182. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  26183. case 'dd':
  26184. if (number === 1) {
  26185. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  26186. } else if (number === 2) {
  26187. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  26188. } else {
  26189. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  26190. }
  26191. return result;
  26192. case 'M':
  26193. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  26194. case 'MM':
  26195. if (number === 1) {
  26196. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  26197. } else if (number === 2) {
  26198. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  26199. } else if (number < 5) {
  26200. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  26201. } else {
  26202. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  26203. }
  26204. return result;
  26205. case 'y':
  26206. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  26207. case 'yy':
  26208. if (number === 1) {
  26209. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  26210. } else if (number === 2) {
  26211. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  26212. } else if (number < 5) {
  26213. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  26214. } else {
  26215. result += withoutSuffix || isFuture ? 'let' : 'leti';
  26216. }
  26217. return result;
  26218. }
  26219. }
  26220. var sl = moment.defineLocale('sl', {
  26221. months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  26222. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  26223. monthsParseExact: true,
  26224. weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  26225. weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  26226. weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
  26227. weekdaysParseExact: true,
  26228. longDateFormat: {
  26229. LT: 'H:mm',
  26230. LTS: 'H:mm:ss',
  26231. L: 'DD. MM. YYYY',
  26232. LL: 'D. MMMM YYYY',
  26233. LLL: 'D. MMMM YYYY H:mm',
  26234. LLLL: 'dddd, D. MMMM YYYY H:mm'
  26235. },
  26236. calendar: {
  26237. sameDay: '[danes ob] LT',
  26238. nextDay: '[jutri ob] LT',
  26239. nextWeek: function nextWeek() {
  26240. switch (this.day()) {
  26241. case 0:
  26242. return '[v] [nedeljo] [ob] LT';
  26243. case 3:
  26244. return '[v] [sredo] [ob] LT';
  26245. case 6:
  26246. return '[v] [soboto] [ob] LT';
  26247. case 1:
  26248. case 2:
  26249. case 4:
  26250. case 5:
  26251. return '[v] dddd [ob] LT';
  26252. }
  26253. },
  26254. lastDay: '[včeraj ob] LT',
  26255. lastWeek: function lastWeek() {
  26256. switch (this.day()) {
  26257. case 0:
  26258. return '[prejšnjo] [nedeljo] [ob] LT';
  26259. case 3:
  26260. return '[prejšnjo] [sredo] [ob] LT';
  26261. case 6:
  26262. return '[prejšnjo] [soboto] [ob] LT';
  26263. case 1:
  26264. case 2:
  26265. case 4:
  26266. case 5:
  26267. return '[prejšnji] dddd [ob] LT';
  26268. }
  26269. },
  26270. sameElse: 'L'
  26271. },
  26272. relativeTime: {
  26273. future: 'čez %s',
  26274. past: 'pred %s',
  26275. s: processRelativeTime,
  26276. ss: processRelativeTime,
  26277. m: processRelativeTime,
  26278. mm: processRelativeTime,
  26279. h: processRelativeTime,
  26280. hh: processRelativeTime,
  26281. d: processRelativeTime,
  26282. dd: processRelativeTime,
  26283. M: processRelativeTime,
  26284. MM: processRelativeTime,
  26285. y: processRelativeTime,
  26286. yy: processRelativeTime
  26287. },
  26288. dayOfMonthOrdinalParse: /\d{1,2}\./,
  26289. ordinal: '%d.',
  26290. week: {
  26291. dow: 1,
  26292. // Monday is the first day of the week.
  26293. doy: 7 // The week that contains Jan 7th is the first week of the year.
  26294. }
  26295. });
  26296. return sl;
  26297. });
  26298. /***/ }),
  26299. /* 219 */
  26300. /*!***********************************************************!*\
  26301. !*** D:/SWS_New/sws_new/node_modules/moment/locale/sq.js ***!
  26302. \***********************************************************/
  26303. /*! no static exports found */
  26304. /***/ (function(module, exports, __webpack_require__) {
  26305. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26306. //! moment.js locale configuration
  26307. //! locale : Albanian [sq]
  26308. //! author : Flakërim Ismani : https://github.com/flakerimi
  26309. //! author : Menelion Elensúle : https://github.com/Oire
  26310. //! author : Oerd Cukalla : https://github.com/oerd
  26311. ;
  26312. (function (global, factory) {
  26313. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26314. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26315. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26316. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26317. })(this, function (moment) {
  26318. 'use strict';
  26319. //! moment.js locale configuration
  26320. var sq = moment.defineLocale('sq', {
  26321. months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  26322. monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  26323. weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  26324. weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  26325. weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
  26326. weekdaysParseExact: true,
  26327. meridiemParse: /PD|MD/,
  26328. isPM: function isPM(input) {
  26329. return input.charAt(0) === 'M';
  26330. },
  26331. meridiem: function meridiem(hours, minutes, isLower) {
  26332. return hours < 12 ? 'PD' : 'MD';
  26333. },
  26334. longDateFormat: {
  26335. LT: 'HH:mm',
  26336. LTS: 'HH:mm:ss',
  26337. L: 'DD/MM/YYYY',
  26338. LL: 'D MMMM YYYY',
  26339. LLL: 'D MMMM YYYY HH:mm',
  26340. LLLL: 'dddd, D MMMM YYYY HH:mm'
  26341. },
  26342. calendar: {
  26343. sameDay: '[Sot në] LT',
  26344. nextDay: '[Nesër në] LT',
  26345. nextWeek: 'dddd [në] LT',
  26346. lastDay: '[Dje në] LT',
  26347. lastWeek: 'dddd [e kaluar në] LT',
  26348. sameElse: 'L'
  26349. },
  26350. relativeTime: {
  26351. future: 'në %s',
  26352. past: '%s më parë',
  26353. s: 'disa sekonda',
  26354. ss: '%d sekonda',
  26355. m: 'një minutë',
  26356. mm: '%d minuta',
  26357. h: 'një orë',
  26358. hh: '%d orë',
  26359. d: 'një ditë',
  26360. dd: '%d ditë',
  26361. M: 'një muaj',
  26362. MM: '%d muaj',
  26363. y: 'një vit',
  26364. yy: '%d vite'
  26365. },
  26366. dayOfMonthOrdinalParse: /\d{1,2}\./,
  26367. ordinal: '%d.',
  26368. week: {
  26369. dow: 1,
  26370. // Monday is the first day of the week.
  26371. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26372. }
  26373. });
  26374. return sq;
  26375. });
  26376. /***/ }),
  26377. /* 220 */
  26378. /*!***********************************************************!*\
  26379. !*** D:/SWS_New/sws_new/node_modules/moment/locale/sr.js ***!
  26380. \***********************************************************/
  26381. /*! no static exports found */
  26382. /***/ (function(module, exports, __webpack_require__) {
  26383. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26384. //! moment.js locale configuration
  26385. //! locale : Serbian [sr]
  26386. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  26387. //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
  26388. ;
  26389. (function (global, factory) {
  26390. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26391. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26392. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26393. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26394. })(this, function (moment) {
  26395. 'use strict';
  26396. //! moment.js locale configuration
  26397. var translator = {
  26398. words: {
  26399. //Different grammatical cases
  26400. ss: ['sekunda', 'sekunde', 'sekundi'],
  26401. m: ['jedan minut', 'jedne minute'],
  26402. mm: ['minut', 'minute', 'minuta'],
  26403. h: ['jedan sat', 'jednog sata'],
  26404. hh: ['sat', 'sata', 'sati'],
  26405. dd: ['dan', 'dana', 'dana'],
  26406. MM: ['mesec', 'meseca', 'meseci'],
  26407. yy: ['godina', 'godine', 'godina']
  26408. },
  26409. correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
  26410. return number === 1 ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2];
  26411. },
  26412. translate: function translate(number, withoutSuffix, key) {
  26413. var wordKey = translator.words[key];
  26414. if (key.length === 1) {
  26415. return withoutSuffix ? wordKey[0] : wordKey[1];
  26416. } else {
  26417. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  26418. }
  26419. }
  26420. };
  26421. var sr = moment.defineLocale('sr', {
  26422. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  26423. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  26424. monthsParseExact: true,
  26425. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
  26426. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  26427. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  26428. weekdaysParseExact: true,
  26429. longDateFormat: {
  26430. LT: 'H:mm',
  26431. LTS: 'H:mm:ss',
  26432. L: 'D. M. YYYY.',
  26433. LL: 'D. MMMM YYYY.',
  26434. LLL: 'D. MMMM YYYY. H:mm',
  26435. LLLL: 'dddd, D. MMMM YYYY. H:mm'
  26436. },
  26437. calendar: {
  26438. sameDay: '[danas u] LT',
  26439. nextDay: '[sutra u] LT',
  26440. nextWeek: function nextWeek() {
  26441. switch (this.day()) {
  26442. case 0:
  26443. return '[u] [nedelju] [u] LT';
  26444. case 3:
  26445. return '[u] [sredu] [u] LT';
  26446. case 6:
  26447. return '[u] [subotu] [u] LT';
  26448. case 1:
  26449. case 2:
  26450. case 4:
  26451. case 5:
  26452. return '[u] dddd [u] LT';
  26453. }
  26454. },
  26455. lastDay: '[juče u] LT',
  26456. lastWeek: function lastWeek() {
  26457. var lastWeekDays = ['[prošle] [nedelje] [u] LT', '[prošlog] [ponedeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];
  26458. return lastWeekDays[this.day()];
  26459. },
  26460. sameElse: 'L'
  26461. },
  26462. relativeTime: {
  26463. future: 'za %s',
  26464. past: 'pre %s',
  26465. s: 'nekoliko sekundi',
  26466. ss: translator.translate,
  26467. m: translator.translate,
  26468. mm: translator.translate,
  26469. h: translator.translate,
  26470. hh: translator.translate,
  26471. d: 'dan',
  26472. dd: translator.translate,
  26473. M: 'mesec',
  26474. MM: translator.translate,
  26475. y: 'godinu',
  26476. yy: translator.translate
  26477. },
  26478. dayOfMonthOrdinalParse: /\d{1,2}\./,
  26479. ordinal: '%d.',
  26480. week: {
  26481. dow: 1,
  26482. // Monday is the first day of the week.
  26483. doy: 7 // The week that contains Jan 7th is the first week of the year.
  26484. }
  26485. });
  26486. return sr;
  26487. });
  26488. /***/ }),
  26489. /* 221 */
  26490. /*!****************************************************************!*\
  26491. !*** D:/SWS_New/sws_new/node_modules/moment/locale/sr-cyrl.js ***!
  26492. \****************************************************************/
  26493. /*! no static exports found */
  26494. /***/ (function(module, exports, __webpack_require__) {
  26495. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26496. //! moment.js locale configuration
  26497. //! locale : Serbian Cyrillic [sr-cyrl]
  26498. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  26499. //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
  26500. ;
  26501. (function (global, factory) {
  26502. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26503. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26504. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26505. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26506. })(this, function (moment) {
  26507. 'use strict';
  26508. //! moment.js locale configuration
  26509. var translator = {
  26510. words: {
  26511. //Different grammatical cases
  26512. ss: ['секунда', 'секунде', 'секунди'],
  26513. m: ['један минут', 'једне минуте'],
  26514. mm: ['минут', 'минуте', 'минута'],
  26515. h: ['један сат', 'једног сата'],
  26516. hh: ['сат', 'сата', 'сати'],
  26517. dd: ['дан', 'дана', 'дана'],
  26518. MM: ['месец', 'месеца', 'месеци'],
  26519. yy: ['година', 'године', 'година']
  26520. },
  26521. correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
  26522. return number === 1 ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2];
  26523. },
  26524. translate: function translate(number, withoutSuffix, key) {
  26525. var wordKey = translator.words[key];
  26526. if (key.length === 1) {
  26527. return withoutSuffix ? wordKey[0] : wordKey[1];
  26528. } else {
  26529. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  26530. }
  26531. }
  26532. };
  26533. var srCyrl = moment.defineLocale('sr-cyrl', {
  26534. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
  26535. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  26536. monthsParseExact: true,
  26537. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  26538. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  26539. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  26540. weekdaysParseExact: true,
  26541. longDateFormat: {
  26542. LT: 'H:mm',
  26543. LTS: 'H:mm:ss',
  26544. L: 'D. M. YYYY.',
  26545. LL: 'D. MMMM YYYY.',
  26546. LLL: 'D. MMMM YYYY. H:mm',
  26547. LLLL: 'dddd, D. MMMM YYYY. H:mm'
  26548. },
  26549. calendar: {
  26550. sameDay: '[данас у] LT',
  26551. nextDay: '[сутра у] LT',
  26552. nextWeek: function nextWeek() {
  26553. switch (this.day()) {
  26554. case 0:
  26555. return '[у] [недељу] [у] LT';
  26556. case 3:
  26557. return '[у] [среду] [у] LT';
  26558. case 6:
  26559. return '[у] [суботу] [у] LT';
  26560. case 1:
  26561. case 2:
  26562. case 4:
  26563. case 5:
  26564. return '[у] dddd [у] LT';
  26565. }
  26566. },
  26567. lastDay: '[јуче у] LT',
  26568. lastWeek: function lastWeek() {
  26569. var lastWeekDays = ['[прошле] [недеље] [у] LT', '[прошлог] [понедељка] [у] LT', '[прошлог] [уторка] [у] LT', '[прошле] [среде] [у] LT', '[прошлог] [четвртка] [у] LT', '[прошлог] [петка] [у] LT', '[прошле] [суботе] [у] LT'];
  26570. return lastWeekDays[this.day()];
  26571. },
  26572. sameElse: 'L'
  26573. },
  26574. relativeTime: {
  26575. future: 'за %s',
  26576. past: 'пре %s',
  26577. s: 'неколико секунди',
  26578. ss: translator.translate,
  26579. m: translator.translate,
  26580. mm: translator.translate,
  26581. h: translator.translate,
  26582. hh: translator.translate,
  26583. d: 'дан',
  26584. dd: translator.translate,
  26585. M: 'месец',
  26586. MM: translator.translate,
  26587. y: 'годину',
  26588. yy: translator.translate
  26589. },
  26590. dayOfMonthOrdinalParse: /\d{1,2}\./,
  26591. ordinal: '%d.',
  26592. week: {
  26593. dow: 1,
  26594. // Monday is the first day of the week.
  26595. doy: 7 // The week that contains Jan 1st is the first week of the year.
  26596. }
  26597. });
  26598. return srCyrl;
  26599. });
  26600. /***/ }),
  26601. /* 222 */
  26602. /*!***********************************************************!*\
  26603. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ss.js ***!
  26604. \***********************************************************/
  26605. /*! no static exports found */
  26606. /***/ (function(module, exports, __webpack_require__) {
  26607. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26608. //! moment.js locale configuration
  26609. //! locale : siSwati [ss]
  26610. //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
  26611. ;
  26612. (function (global, factory) {
  26613. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26614. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26615. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26616. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26617. })(this, function (moment) {
  26618. 'use strict';
  26619. //! moment.js locale configuration
  26620. var ss = moment.defineLocale('ss', {
  26621. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
  26622. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  26623. weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
  26624. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  26625. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  26626. weekdaysParseExact: true,
  26627. longDateFormat: {
  26628. LT: 'h:mm A',
  26629. LTS: 'h:mm:ss A',
  26630. L: 'DD/MM/YYYY',
  26631. LL: 'D MMMM YYYY',
  26632. LLL: 'D MMMM YYYY h:mm A',
  26633. LLLL: 'dddd, D MMMM YYYY h:mm A'
  26634. },
  26635. calendar: {
  26636. sameDay: '[Namuhla nga] LT',
  26637. nextDay: '[Kusasa nga] LT',
  26638. nextWeek: 'dddd [nga] LT',
  26639. lastDay: '[Itolo nga] LT',
  26640. lastWeek: 'dddd [leliphelile] [nga] LT',
  26641. sameElse: 'L'
  26642. },
  26643. relativeTime: {
  26644. future: 'nga %s',
  26645. past: 'wenteka nga %s',
  26646. s: 'emizuzwana lomcane',
  26647. ss: '%d mzuzwana',
  26648. m: 'umzuzu',
  26649. mm: '%d emizuzu',
  26650. h: 'lihora',
  26651. hh: '%d emahora',
  26652. d: 'lilanga',
  26653. dd: '%d emalanga',
  26654. M: 'inyanga',
  26655. MM: '%d tinyanga',
  26656. y: 'umnyaka',
  26657. yy: '%d iminyaka'
  26658. },
  26659. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  26660. meridiem: function meridiem(hours, minutes, isLower) {
  26661. if (hours < 11) {
  26662. return 'ekuseni';
  26663. } else if (hours < 15) {
  26664. return 'emini';
  26665. } else if (hours < 19) {
  26666. return 'entsambama';
  26667. } else {
  26668. return 'ebusuku';
  26669. }
  26670. },
  26671. meridiemHour: function meridiemHour(hour, meridiem) {
  26672. if (hour === 12) {
  26673. hour = 0;
  26674. }
  26675. if (meridiem === 'ekuseni') {
  26676. return hour;
  26677. } else if (meridiem === 'emini') {
  26678. return hour >= 11 ? hour : hour + 12;
  26679. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  26680. if (hour === 0) {
  26681. return 0;
  26682. }
  26683. return hour + 12;
  26684. }
  26685. },
  26686. dayOfMonthOrdinalParse: /\d{1,2}/,
  26687. ordinal: '%d',
  26688. week: {
  26689. dow: 1,
  26690. // Monday is the first day of the week.
  26691. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26692. }
  26693. });
  26694. return ss;
  26695. });
  26696. /***/ }),
  26697. /* 223 */
  26698. /*!***********************************************************!*\
  26699. !*** D:/SWS_New/sws_new/node_modules/moment/locale/sv.js ***!
  26700. \***********************************************************/
  26701. /*! no static exports found */
  26702. /***/ (function(module, exports, __webpack_require__) {
  26703. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26704. //! moment.js locale configuration
  26705. //! locale : Swedish [sv]
  26706. //! author : Jens Alm : https://github.com/ulmus
  26707. ;
  26708. (function (global, factory) {
  26709. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26710. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26711. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26712. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26713. })(this, function (moment) {
  26714. 'use strict';
  26715. //! moment.js locale configuration
  26716. var sv = moment.defineLocale('sv', {
  26717. months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  26718. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  26719. weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  26720. weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  26721. weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
  26722. longDateFormat: {
  26723. LT: 'HH:mm',
  26724. LTS: 'HH:mm:ss',
  26725. L: 'YYYY-MM-DD',
  26726. LL: 'D MMMM YYYY',
  26727. LLL: 'D MMMM YYYY [kl.] HH:mm',
  26728. LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
  26729. lll: 'D MMM YYYY HH:mm',
  26730. llll: 'ddd D MMM YYYY HH:mm'
  26731. },
  26732. calendar: {
  26733. sameDay: '[Idag] LT',
  26734. nextDay: '[Imorgon] LT',
  26735. lastDay: '[Igår] LT',
  26736. nextWeek: '[På] dddd LT',
  26737. lastWeek: '[I] dddd[s] LT',
  26738. sameElse: 'L'
  26739. },
  26740. relativeTime: {
  26741. future: 'om %s',
  26742. past: 'för %s sedan',
  26743. s: 'några sekunder',
  26744. ss: '%d sekunder',
  26745. m: 'en minut',
  26746. mm: '%d minuter',
  26747. h: 'en timme',
  26748. hh: '%d timmar',
  26749. d: 'en dag',
  26750. dd: '%d dagar',
  26751. M: 'en månad',
  26752. MM: '%d månader',
  26753. y: 'ett år',
  26754. yy: '%d år'
  26755. },
  26756. dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
  26757. ordinal: function ordinal(number) {
  26758. var b = number % 10,
  26759. output = ~~(number % 100 / 10) === 1 ? ':e' : b === 1 ? ':a' : b === 2 ? ':a' : b === 3 ? ':e' : ':e';
  26760. return number + output;
  26761. },
  26762. week: {
  26763. dow: 1,
  26764. // Monday is the first day of the week.
  26765. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26766. }
  26767. });
  26768. return sv;
  26769. });
  26770. /***/ }),
  26771. /* 224 */
  26772. /*!***********************************************************!*\
  26773. !*** D:/SWS_New/sws_new/node_modules/moment/locale/sw.js ***!
  26774. \***********************************************************/
  26775. /*! no static exports found */
  26776. /***/ (function(module, exports, __webpack_require__) {
  26777. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26778. //! moment.js locale configuration
  26779. //! locale : Swahili [sw]
  26780. //! author : Fahad Kassim : https://github.com/fadsel
  26781. ;
  26782. (function (global, factory) {
  26783. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26784. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26785. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26786. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26787. })(this, function (moment) {
  26788. 'use strict';
  26789. //! moment.js locale configuration
  26790. var sw = moment.defineLocale('sw', {
  26791. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
  26792. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  26793. weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
  26794. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  26795. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  26796. weekdaysParseExact: true,
  26797. longDateFormat: {
  26798. LT: 'hh:mm A',
  26799. LTS: 'HH:mm:ss',
  26800. L: 'DD.MM.YYYY',
  26801. LL: 'D MMMM YYYY',
  26802. LLL: 'D MMMM YYYY HH:mm',
  26803. LLLL: 'dddd, D MMMM YYYY HH:mm'
  26804. },
  26805. calendar: {
  26806. sameDay: '[leo saa] LT',
  26807. nextDay: '[kesho saa] LT',
  26808. nextWeek: '[wiki ijayo] dddd [saat] LT',
  26809. lastDay: '[jana] LT',
  26810. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  26811. sameElse: 'L'
  26812. },
  26813. relativeTime: {
  26814. future: '%s baadaye',
  26815. past: 'tokea %s',
  26816. s: 'hivi punde',
  26817. ss: 'sekunde %d',
  26818. m: 'dakika moja',
  26819. mm: 'dakika %d',
  26820. h: 'saa limoja',
  26821. hh: 'masaa %d',
  26822. d: 'siku moja',
  26823. dd: 'siku %d',
  26824. M: 'mwezi mmoja',
  26825. MM: 'miezi %d',
  26826. y: 'mwaka mmoja',
  26827. yy: 'miaka %d'
  26828. },
  26829. week: {
  26830. dow: 1,
  26831. // Monday is the first day of the week.
  26832. doy: 7 // The week that contains Jan 7th is the first week of the year.
  26833. }
  26834. });
  26835. return sw;
  26836. });
  26837. /***/ }),
  26838. /* 225 */
  26839. /*!***********************************************************!*\
  26840. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ta.js ***!
  26841. \***********************************************************/
  26842. /*! no static exports found */
  26843. /***/ (function(module, exports, __webpack_require__) {
  26844. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26845. //! moment.js locale configuration
  26846. //! locale : Tamil [ta]
  26847. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  26848. ;
  26849. (function (global, factory) {
  26850. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26851. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26852. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26853. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26854. })(this, function (moment) {
  26855. 'use strict';
  26856. //! moment.js locale configuration
  26857. var symbolMap = {
  26858. 1: '௧',
  26859. 2: '௨',
  26860. 3: '௩',
  26861. 4: '௪',
  26862. 5: '௫',
  26863. 6: '௬',
  26864. 7: '௭',
  26865. 8: '௮',
  26866. 9: '௯',
  26867. 0: '௦'
  26868. },
  26869. numberMap = {
  26870. '௧': '1',
  26871. '௨': '2',
  26872. '௩': '3',
  26873. '௪': '4',
  26874. '௫': '5',
  26875. '௬': '6',
  26876. '௭': '7',
  26877. '௮': '8',
  26878. '௯': '9',
  26879. '௦': '0'
  26880. };
  26881. var ta = moment.defineLocale('ta', {
  26882. months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  26883. monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  26884. weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  26885. weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  26886. weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  26887. longDateFormat: {
  26888. LT: 'HH:mm',
  26889. LTS: 'HH:mm:ss',
  26890. L: 'DD/MM/YYYY',
  26891. LL: 'D MMMM YYYY',
  26892. LLL: 'D MMMM YYYY, HH:mm',
  26893. LLLL: 'dddd, D MMMM YYYY, HH:mm'
  26894. },
  26895. calendar: {
  26896. sameDay: '[இன்று] LT',
  26897. nextDay: '[நாளை] LT',
  26898. nextWeek: 'dddd, LT',
  26899. lastDay: '[நேற்று] LT',
  26900. lastWeek: '[கடந்த வாரம்] dddd, LT',
  26901. sameElse: 'L'
  26902. },
  26903. relativeTime: {
  26904. future: '%s இல்',
  26905. past: '%s முன்',
  26906. s: 'ஒரு சில விநாடிகள்',
  26907. ss: '%d விநாடிகள்',
  26908. m: 'ஒரு நிமிடம்',
  26909. mm: '%d நிமிடங்கள்',
  26910. h: 'ஒரு மணி நேரம்',
  26911. hh: '%d மணி நேரம்',
  26912. d: 'ஒரு நாள்',
  26913. dd: '%d நாட்கள்',
  26914. M: 'ஒரு மாதம்',
  26915. MM: '%d மாதங்கள்',
  26916. y: 'ஒரு வருடம்',
  26917. yy: '%d ஆண்டுகள்'
  26918. },
  26919. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  26920. ordinal: function ordinal(number) {
  26921. return number + 'வது';
  26922. },
  26923. preparse: function preparse(string) {
  26924. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  26925. return numberMap[match];
  26926. });
  26927. },
  26928. postformat: function postformat(string) {
  26929. return string.replace(/\d/g, function (match) {
  26930. return symbolMap[match];
  26931. });
  26932. },
  26933. // refer http://ta.wikipedia.org/s/1er1
  26934. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  26935. meridiem: function meridiem(hour, minute, isLower) {
  26936. if (hour < 2) {
  26937. return ' யாமம்';
  26938. } else if (hour < 6) {
  26939. return ' வைகறை'; // வைகறை
  26940. } else if (hour < 10) {
  26941. return ' காலை'; // காலை
  26942. } else if (hour < 14) {
  26943. return ' நண்பகல்'; // நண்பகல்
  26944. } else if (hour < 18) {
  26945. return ' எற்பாடு'; // எற்பாடு
  26946. } else if (hour < 22) {
  26947. return ' மாலை'; // மாலை
  26948. } else {
  26949. return ' யாமம்';
  26950. }
  26951. },
  26952. meridiemHour: function meridiemHour(hour, meridiem) {
  26953. if (hour === 12) {
  26954. hour = 0;
  26955. }
  26956. if (meridiem === 'யாமம்') {
  26957. return hour < 2 ? hour : hour + 12;
  26958. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  26959. return hour;
  26960. } else if (meridiem === 'நண்பகல்') {
  26961. return hour >= 10 ? hour : hour + 12;
  26962. } else {
  26963. return hour + 12;
  26964. }
  26965. },
  26966. week: {
  26967. dow: 0,
  26968. // Sunday is the first day of the week.
  26969. doy: 6 // The week that contains Jan 6th is the first week of the year.
  26970. }
  26971. });
  26972. return ta;
  26973. });
  26974. /***/ }),
  26975. /* 226 */
  26976. /*!***********************************************************!*\
  26977. !*** D:/SWS_New/sws_new/node_modules/moment/locale/te.js ***!
  26978. \***********************************************************/
  26979. /*! no static exports found */
  26980. /***/ (function(module, exports, __webpack_require__) {
  26981. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26982. //! moment.js locale configuration
  26983. //! locale : Telugu [te]
  26984. //! author : Krishna Chaitanya Thota : https://github.com/kcthota
  26985. ;
  26986. (function (global, factory) {
  26987. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26988. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26989. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26990. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26991. })(this, function (moment) {
  26992. 'use strict';
  26993. //! moment.js locale configuration
  26994. var te = moment.defineLocale('te', {
  26995. months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
  26996. monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
  26997. monthsParseExact: true,
  26998. weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
  26999. weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  27000. weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  27001. longDateFormat: {
  27002. LT: 'A h:mm',
  27003. LTS: 'A h:mm:ss',
  27004. L: 'DD/MM/YYYY',
  27005. LL: 'D MMMM YYYY',
  27006. LLL: 'D MMMM YYYY, A h:mm',
  27007. LLLL: 'dddd, D MMMM YYYY, A h:mm'
  27008. },
  27009. calendar: {
  27010. sameDay: '[నేడు] LT',
  27011. nextDay: '[రేపు] LT',
  27012. nextWeek: 'dddd, LT',
  27013. lastDay: '[నిన్న] LT',
  27014. lastWeek: '[గత] dddd, LT',
  27015. sameElse: 'L'
  27016. },
  27017. relativeTime: {
  27018. future: '%s లో',
  27019. past: '%s క్రితం',
  27020. s: 'కొన్ని క్షణాలు',
  27021. ss: '%d సెకన్లు',
  27022. m: 'ఒక నిమిషం',
  27023. mm: '%d నిమిషాలు',
  27024. h: 'ఒక గంట',
  27025. hh: '%d గంటలు',
  27026. d: 'ఒక రోజు',
  27027. dd: '%d రోజులు',
  27028. M: 'ఒక నెల',
  27029. MM: '%d నెలలు',
  27030. y: 'ఒక సంవత్సరం',
  27031. yy: '%d సంవత్సరాలు'
  27032. },
  27033. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  27034. ordinal: '%dవ',
  27035. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  27036. meridiemHour: function meridiemHour(hour, meridiem) {
  27037. if (hour === 12) {
  27038. hour = 0;
  27039. }
  27040. if (meridiem === 'రాత్రి') {
  27041. return hour < 4 ? hour : hour + 12;
  27042. } else if (meridiem === 'ఉదయం') {
  27043. return hour;
  27044. } else if (meridiem === 'మధ్యాహ్నం') {
  27045. return hour >= 10 ? hour : hour + 12;
  27046. } else if (meridiem === 'సాయంత్రం') {
  27047. return hour + 12;
  27048. }
  27049. },
  27050. meridiem: function meridiem(hour, minute, isLower) {
  27051. if (hour < 4) {
  27052. return 'రాత్రి';
  27053. } else if (hour < 10) {
  27054. return 'ఉదయం';
  27055. } else if (hour < 17) {
  27056. return 'మధ్యాహ్నం';
  27057. } else if (hour < 20) {
  27058. return 'సాయంత్రం';
  27059. } else {
  27060. return 'రాత్రి';
  27061. }
  27062. },
  27063. week: {
  27064. dow: 0,
  27065. // Sunday is the first day of the week.
  27066. doy: 6 // The week that contains Jan 6th is the first week of the year.
  27067. }
  27068. });
  27069. return te;
  27070. });
  27071. /***/ }),
  27072. /* 227 */
  27073. /*!************************************************************!*\
  27074. !*** D:/SWS_New/sws_new/node_modules/moment/locale/tet.js ***!
  27075. \************************************************************/
  27076. /*! no static exports found */
  27077. /***/ (function(module, exports, __webpack_require__) {
  27078. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27079. //! moment.js locale configuration
  27080. //! locale : Tetun Dili (East Timor) [tet]
  27081. //! author : Joshua Brooks : https://github.com/joshbrooks
  27082. //! author : Onorio De J. Afonso : https://github.com/marobo
  27083. //! author : Sonia Simoes : https://github.com/soniasimoes
  27084. ;
  27085. (function (global, factory) {
  27086. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27087. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27088. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27089. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27090. })(this, function (moment) {
  27091. 'use strict';
  27092. //! moment.js locale configuration
  27093. var tet = moment.defineLocale('tet', {
  27094. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
  27095. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  27096. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  27097. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  27098. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  27099. longDateFormat: {
  27100. LT: 'HH:mm',
  27101. LTS: 'HH:mm:ss',
  27102. L: 'DD/MM/YYYY',
  27103. LL: 'D MMMM YYYY',
  27104. LLL: 'D MMMM YYYY HH:mm',
  27105. LLLL: 'dddd, D MMMM YYYY HH:mm'
  27106. },
  27107. calendar: {
  27108. sameDay: '[Ohin iha] LT',
  27109. nextDay: '[Aban iha] LT',
  27110. nextWeek: 'dddd [iha] LT',
  27111. lastDay: '[Horiseik iha] LT',
  27112. lastWeek: 'dddd [semana kotuk] [iha] LT',
  27113. sameElse: 'L'
  27114. },
  27115. relativeTime: {
  27116. future: 'iha %s',
  27117. past: '%s liuba',
  27118. s: 'segundu balun',
  27119. ss: 'segundu %d',
  27120. m: 'minutu ida',
  27121. mm: 'minutu %d',
  27122. h: 'oras ida',
  27123. hh: 'oras %d',
  27124. d: 'loron ida',
  27125. dd: 'loron %d',
  27126. M: 'fulan ida',
  27127. MM: 'fulan %d',
  27128. y: 'tinan ida',
  27129. yy: 'tinan %d'
  27130. },
  27131. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  27132. ordinal: function ordinal(number) {
  27133. var b = number % 10,
  27134. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  27135. return number + output;
  27136. },
  27137. week: {
  27138. dow: 1,
  27139. // Monday is the first day of the week.
  27140. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27141. }
  27142. });
  27143. return tet;
  27144. });
  27145. /***/ }),
  27146. /* 228 */
  27147. /*!***********************************************************!*\
  27148. !*** D:/SWS_New/sws_new/node_modules/moment/locale/tg.js ***!
  27149. \***********************************************************/
  27150. /*! no static exports found */
  27151. /***/ (function(module, exports, __webpack_require__) {
  27152. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27153. //! moment.js locale configuration
  27154. //! locale : Tajik [tg]
  27155. //! author : Orif N. Jr. : https://github.com/orif-jr
  27156. ;
  27157. (function (global, factory) {
  27158. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27159. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27160. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27161. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27162. })(this, function (moment) {
  27163. 'use strict';
  27164. //! moment.js locale configuration
  27165. var suffixes = {
  27166. 0: '-ум',
  27167. 1: '-ум',
  27168. 2: '-юм',
  27169. 3: '-юм',
  27170. 4: '-ум',
  27171. 5: '-ум',
  27172. 6: '-ум',
  27173. 7: '-ум',
  27174. 8: '-ум',
  27175. 9: '-ум',
  27176. 10: '-ум',
  27177. 12: '-ум',
  27178. 13: '-ум',
  27179. 20: '-ум',
  27180. 30: '-юм',
  27181. 40: '-ум',
  27182. 50: '-ум',
  27183. 60: '-ум',
  27184. 70: '-ум',
  27185. 80: '-ум',
  27186. 90: '-ум',
  27187. 100: '-ум'
  27188. };
  27189. var tg = moment.defineLocale('tg', {
  27190. months: {
  27191. format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split('_'),
  27192. standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_')
  27193. },
  27194. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  27195. weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'),
  27196. weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
  27197. weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
  27198. longDateFormat: {
  27199. LT: 'HH:mm',
  27200. LTS: 'HH:mm:ss',
  27201. L: 'DD.MM.YYYY',
  27202. LL: 'D MMMM YYYY',
  27203. LLL: 'D MMMM YYYY HH:mm',
  27204. LLLL: 'dddd, D MMMM YYYY HH:mm'
  27205. },
  27206. calendar: {
  27207. sameDay: '[Имрӯз соати] LT',
  27208. nextDay: '[Фардо соати] LT',
  27209. lastDay: '[Дирӯз соати] LT',
  27210. nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
  27211. lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
  27212. sameElse: 'L'
  27213. },
  27214. relativeTime: {
  27215. future: 'баъди %s',
  27216. past: '%s пеш',
  27217. s: 'якчанд сония',
  27218. m: 'як дақиқа',
  27219. mm: '%d дақиқа',
  27220. h: 'як соат',
  27221. hh: '%d соат',
  27222. d: 'як рӯз',
  27223. dd: '%d рӯз',
  27224. M: 'як моҳ',
  27225. MM: '%d моҳ',
  27226. y: 'як сол',
  27227. yy: '%d сол'
  27228. },
  27229. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  27230. meridiemHour: function meridiemHour(hour, meridiem) {
  27231. if (hour === 12) {
  27232. hour = 0;
  27233. }
  27234. if (meridiem === 'шаб') {
  27235. return hour < 4 ? hour : hour + 12;
  27236. } else if (meridiem === 'субҳ') {
  27237. return hour;
  27238. } else if (meridiem === 'рӯз') {
  27239. return hour >= 11 ? hour : hour + 12;
  27240. } else if (meridiem === 'бегоҳ') {
  27241. return hour + 12;
  27242. }
  27243. },
  27244. meridiem: function meridiem(hour, minute, isLower) {
  27245. if (hour < 4) {
  27246. return 'шаб';
  27247. } else if (hour < 11) {
  27248. return 'субҳ';
  27249. } else if (hour < 16) {
  27250. return 'рӯз';
  27251. } else if (hour < 19) {
  27252. return 'бегоҳ';
  27253. } else {
  27254. return 'шаб';
  27255. }
  27256. },
  27257. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  27258. ordinal: function ordinal(number) {
  27259. var a = number % 10,
  27260. b = number >= 100 ? 100 : null;
  27261. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  27262. },
  27263. week: {
  27264. dow: 1,
  27265. // Monday is the first day of the week.
  27266. doy: 7 // The week that contains Jan 1th is the first week of the year.
  27267. }
  27268. });
  27269. return tg;
  27270. });
  27271. /***/ }),
  27272. /* 229 */
  27273. /*!***********************************************************!*\
  27274. !*** D:/SWS_New/sws_new/node_modules/moment/locale/th.js ***!
  27275. \***********************************************************/
  27276. /*! no static exports found */
  27277. /***/ (function(module, exports, __webpack_require__) {
  27278. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27279. //! moment.js locale configuration
  27280. //! locale : Thai [th]
  27281. //! author : Kridsada Thanabulpong : https://github.com/sirn
  27282. ;
  27283. (function (global, factory) {
  27284. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27285. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27286. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27287. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27288. })(this, function (moment) {
  27289. 'use strict';
  27290. //! moment.js locale configuration
  27291. var th = moment.defineLocale('th', {
  27292. months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  27293. monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
  27294. monthsParseExact: true,
  27295. weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  27296. weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'),
  27297. // yes, three characters difference
  27298. weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  27299. weekdaysParseExact: true,
  27300. longDateFormat: {
  27301. LT: 'H:mm',
  27302. LTS: 'H:mm:ss',
  27303. L: 'DD/MM/YYYY',
  27304. LL: 'D MMMM YYYY',
  27305. LLL: 'D MMMM YYYY เวลา H:mm',
  27306. LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm'
  27307. },
  27308. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  27309. isPM: function isPM(input) {
  27310. return input === 'หลังเที่ยง';
  27311. },
  27312. meridiem: function meridiem(hour, minute, isLower) {
  27313. if (hour < 12) {
  27314. return 'ก่อนเที่ยง';
  27315. } else {
  27316. return 'หลังเที่ยง';
  27317. }
  27318. },
  27319. calendar: {
  27320. sameDay: '[วันนี้ เวลา] LT',
  27321. nextDay: '[พรุ่งนี้ เวลา] LT',
  27322. nextWeek: 'dddd[หน้า เวลา] LT',
  27323. lastDay: '[เมื่อวานนี้ เวลา] LT',
  27324. lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
  27325. sameElse: 'L'
  27326. },
  27327. relativeTime: {
  27328. future: 'อีก %s',
  27329. past: '%sที่แล้ว',
  27330. s: 'ไม่กี่วินาที',
  27331. ss: '%d วินาที',
  27332. m: '1 นาที',
  27333. mm: '%d นาที',
  27334. h: '1 ชั่วโมง',
  27335. hh: '%d ชั่วโมง',
  27336. d: '1 วัน',
  27337. dd: '%d วัน',
  27338. w: '1 สัปดาห์',
  27339. ww: '%d สัปดาห์',
  27340. M: '1 เดือน',
  27341. MM: '%d เดือน',
  27342. y: '1 ปี',
  27343. yy: '%d ปี'
  27344. }
  27345. });
  27346. return th;
  27347. });
  27348. /***/ }),
  27349. /* 230 */
  27350. /*!***********************************************************!*\
  27351. !*** D:/SWS_New/sws_new/node_modules/moment/locale/tk.js ***!
  27352. \***********************************************************/
  27353. /*! no static exports found */
  27354. /***/ (function(module, exports, __webpack_require__) {
  27355. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27356. //! moment.js locale configuration
  27357. //! locale : Turkmen [tk]
  27358. //! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
  27359. ;
  27360. (function (global, factory) {
  27361. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27362. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27363. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27364. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27365. })(this, function (moment) {
  27366. 'use strict';
  27367. //! moment.js locale configuration
  27368. var suffixes = {
  27369. 1: "'inji",
  27370. 5: "'inji",
  27371. 8: "'inji",
  27372. 70: "'inji",
  27373. 80: "'inji",
  27374. 2: "'nji",
  27375. 7: "'nji",
  27376. 20: "'nji",
  27377. 50: "'nji",
  27378. 3: "'ünji",
  27379. 4: "'ünji",
  27380. 100: "'ünji",
  27381. 6: "'njy",
  27382. 9: "'unjy",
  27383. 10: "'unjy",
  27384. 30: "'unjy",
  27385. 60: "'ynjy",
  27386. 90: "'ynjy"
  27387. };
  27388. var tk = moment.defineLocale('tk', {
  27389. months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split('_'),
  27390. monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
  27391. weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split('_'),
  27392. weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
  27393. weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
  27394. longDateFormat: {
  27395. LT: 'HH:mm',
  27396. LTS: 'HH:mm:ss',
  27397. L: 'DD.MM.YYYY',
  27398. LL: 'D MMMM YYYY',
  27399. LLL: 'D MMMM YYYY HH:mm',
  27400. LLLL: 'dddd, D MMMM YYYY HH:mm'
  27401. },
  27402. calendar: {
  27403. sameDay: '[bugün sagat] LT',
  27404. nextDay: '[ertir sagat] LT',
  27405. nextWeek: '[indiki] dddd [sagat] LT',
  27406. lastDay: '[düýn] LT',
  27407. lastWeek: '[geçen] dddd [sagat] LT',
  27408. sameElse: 'L'
  27409. },
  27410. relativeTime: {
  27411. future: '%s soň',
  27412. past: '%s öň',
  27413. s: 'birnäçe sekunt',
  27414. m: 'bir minut',
  27415. mm: '%d minut',
  27416. h: 'bir sagat',
  27417. hh: '%d sagat',
  27418. d: 'bir gün',
  27419. dd: '%d gün',
  27420. M: 'bir aý',
  27421. MM: '%d aý',
  27422. y: 'bir ýyl',
  27423. yy: '%d ýyl'
  27424. },
  27425. ordinal: function ordinal(number, period) {
  27426. switch (period) {
  27427. case 'd':
  27428. case 'D':
  27429. case 'Do':
  27430. case 'DD':
  27431. return number;
  27432. default:
  27433. if (number === 0) {
  27434. // special case for zero
  27435. return number + "'unjy";
  27436. }
  27437. var a = number % 10,
  27438. b = number % 100 - a,
  27439. c = number >= 100 ? 100 : null;
  27440. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  27441. }
  27442. },
  27443. week: {
  27444. dow: 1,
  27445. // Monday is the first day of the week.
  27446. doy: 7 // The week that contains Jan 7th is the first week of the year.
  27447. }
  27448. });
  27449. return tk;
  27450. });
  27451. /***/ }),
  27452. /* 231 */
  27453. /*!**************************************************************!*\
  27454. !*** D:/SWS_New/sws_new/node_modules/moment/locale/tl-ph.js ***!
  27455. \**************************************************************/
  27456. /*! no static exports found */
  27457. /***/ (function(module, exports, __webpack_require__) {
  27458. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27459. //! moment.js locale configuration
  27460. //! locale : Tagalog (Philippines) [tl-ph]
  27461. //! author : Dan Hagman : https://github.com/hagmandan
  27462. ;
  27463. (function (global, factory) {
  27464. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27465. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27466. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27467. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27468. })(this, function (moment) {
  27469. 'use strict';
  27470. //! moment.js locale configuration
  27471. var tlPh = moment.defineLocale('tl-ph', {
  27472. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  27473. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  27474. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  27475. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  27476. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  27477. longDateFormat: {
  27478. LT: 'HH:mm',
  27479. LTS: 'HH:mm:ss',
  27480. L: 'MM/D/YYYY',
  27481. LL: 'MMMM D, YYYY',
  27482. LLL: 'MMMM D, YYYY HH:mm',
  27483. LLLL: 'dddd, MMMM DD, YYYY HH:mm'
  27484. },
  27485. calendar: {
  27486. sameDay: 'LT [ngayong araw]',
  27487. nextDay: '[Bukas ng] LT',
  27488. nextWeek: 'LT [sa susunod na] dddd',
  27489. lastDay: 'LT [kahapon]',
  27490. lastWeek: 'LT [noong nakaraang] dddd',
  27491. sameElse: 'L'
  27492. },
  27493. relativeTime: {
  27494. future: 'sa loob ng %s',
  27495. past: '%s ang nakalipas',
  27496. s: 'ilang segundo',
  27497. ss: '%d segundo',
  27498. m: 'isang minuto',
  27499. mm: '%d minuto',
  27500. h: 'isang oras',
  27501. hh: '%d oras',
  27502. d: 'isang araw',
  27503. dd: '%d araw',
  27504. M: 'isang buwan',
  27505. MM: '%d buwan',
  27506. y: 'isang taon',
  27507. yy: '%d taon'
  27508. },
  27509. dayOfMonthOrdinalParse: /\d{1,2}/,
  27510. ordinal: function ordinal(number) {
  27511. return number;
  27512. },
  27513. week: {
  27514. dow: 1,
  27515. // Monday is the first day of the week.
  27516. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27517. }
  27518. });
  27519. return tlPh;
  27520. });
  27521. /***/ }),
  27522. /* 232 */
  27523. /*!************************************************************!*\
  27524. !*** D:/SWS_New/sws_new/node_modules/moment/locale/tlh.js ***!
  27525. \************************************************************/
  27526. /*! no static exports found */
  27527. /***/ (function(module, exports, __webpack_require__) {
  27528. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27529. //! moment.js locale configuration
  27530. //! locale : Klingon [tlh]
  27531. //! author : Dominika Kruk : https://github.com/amaranthrose
  27532. ;
  27533. (function (global, factory) {
  27534. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27535. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27536. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27537. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27538. })(this, function (moment) {
  27539. 'use strict';
  27540. //! moment.js locale configuration
  27541. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  27542. function translateFuture(output) {
  27543. var time = output;
  27544. time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'leS' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'waQ' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'nem' : time + ' pIq';
  27545. return time;
  27546. }
  27547. function translatePast(output) {
  27548. var time = output;
  27549. time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'Hu’' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'wen' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'ben' : time + ' ret';
  27550. return time;
  27551. }
  27552. function translate(number, withoutSuffix, string, isFuture) {
  27553. var numberNoun = numberAsNoun(number);
  27554. switch (string) {
  27555. case 'ss':
  27556. return numberNoun + ' lup';
  27557. case 'mm':
  27558. return numberNoun + ' tup';
  27559. case 'hh':
  27560. return numberNoun + ' rep';
  27561. case 'dd':
  27562. return numberNoun + ' jaj';
  27563. case 'MM':
  27564. return numberNoun + ' jar';
  27565. case 'yy':
  27566. return numberNoun + ' DIS';
  27567. }
  27568. }
  27569. function numberAsNoun(number) {
  27570. var hundred = Math.floor(number % 1000 / 100),
  27571. ten = Math.floor(number % 100 / 10),
  27572. one = number % 10,
  27573. word = '';
  27574. if (hundred > 0) {
  27575. word += numbersNouns[hundred] + 'vatlh';
  27576. }
  27577. if (ten > 0) {
  27578. word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
  27579. }
  27580. if (one > 0) {
  27581. word += (word !== '' ? ' ' : '') + numbersNouns[one];
  27582. }
  27583. return word === '' ? 'pagh' : word;
  27584. }
  27585. var tlh = moment.defineLocale('tlh', {
  27586. months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),
  27587. monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),
  27588. monthsParseExact: true,
  27589. weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  27590. weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  27591. weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  27592. longDateFormat: {
  27593. LT: 'HH:mm',
  27594. LTS: 'HH:mm:ss',
  27595. L: 'DD.MM.YYYY',
  27596. LL: 'D MMMM YYYY',
  27597. LLL: 'D MMMM YYYY HH:mm',
  27598. LLLL: 'dddd, D MMMM YYYY HH:mm'
  27599. },
  27600. calendar: {
  27601. sameDay: '[DaHjaj] LT',
  27602. nextDay: '[wa’leS] LT',
  27603. nextWeek: 'LLL',
  27604. lastDay: '[wa’Hu’] LT',
  27605. lastWeek: 'LLL',
  27606. sameElse: 'L'
  27607. },
  27608. relativeTime: {
  27609. future: translateFuture,
  27610. past: translatePast,
  27611. s: 'puS lup',
  27612. ss: translate,
  27613. m: 'wa’ tup',
  27614. mm: translate,
  27615. h: 'wa’ rep',
  27616. hh: translate,
  27617. d: 'wa’ jaj',
  27618. dd: translate,
  27619. M: 'wa’ jar',
  27620. MM: translate,
  27621. y: 'wa’ DIS',
  27622. yy: translate
  27623. },
  27624. dayOfMonthOrdinalParse: /\d{1,2}\./,
  27625. ordinal: '%d.',
  27626. week: {
  27627. dow: 1,
  27628. // Monday is the first day of the week.
  27629. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27630. }
  27631. });
  27632. return tlh;
  27633. });
  27634. /***/ }),
  27635. /* 233 */
  27636. /*!***********************************************************!*\
  27637. !*** D:/SWS_New/sws_new/node_modules/moment/locale/tr.js ***!
  27638. \***********************************************************/
  27639. /*! no static exports found */
  27640. /***/ (function(module, exports, __webpack_require__) {
  27641. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27642. //! moment.js locale configuration
  27643. //! locale : Turkish [tr]
  27644. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  27645. //! Burak Yiğit Kaya: https://github.com/BYK
  27646. ;
  27647. (function (global, factory) {
  27648. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27649. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27650. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27651. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27652. })(this, function (moment) {
  27653. 'use strict';
  27654. //! moment.js locale configuration
  27655. var suffixes = {
  27656. 1: "'inci",
  27657. 5: "'inci",
  27658. 8: "'inci",
  27659. 70: "'inci",
  27660. 80: "'inci",
  27661. 2: "'nci",
  27662. 7: "'nci",
  27663. 20: "'nci",
  27664. 50: "'nci",
  27665. 3: "'üncü",
  27666. 4: "'üncü",
  27667. 100: "'üncü",
  27668. 6: "'ncı",
  27669. 9: "'uncu",
  27670. 10: "'uncu",
  27671. 30: "'uncu",
  27672. 60: "'ıncı",
  27673. 90: "'ıncı"
  27674. };
  27675. var tr = moment.defineLocale('tr', {
  27676. months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  27677. monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  27678. weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  27679. weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  27680. weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  27681. meridiem: function meridiem(hours, minutes, isLower) {
  27682. if (hours < 12) {
  27683. return isLower ? 'öö' : 'ÖÖ';
  27684. } else {
  27685. return isLower ? 'ös' : 'ÖS';
  27686. }
  27687. },
  27688. meridiemParse: /öö|ÖÖ|ös|ÖS/,
  27689. isPM: function isPM(input) {
  27690. return input === 'ös' || input === 'ÖS';
  27691. },
  27692. longDateFormat: {
  27693. LT: 'HH:mm',
  27694. LTS: 'HH:mm:ss',
  27695. L: 'DD.MM.YYYY',
  27696. LL: 'D MMMM YYYY',
  27697. LLL: 'D MMMM YYYY HH:mm',
  27698. LLLL: 'dddd, D MMMM YYYY HH:mm'
  27699. },
  27700. calendar: {
  27701. sameDay: '[bugün saat] LT',
  27702. nextDay: '[yarın saat] LT',
  27703. nextWeek: '[gelecek] dddd [saat] LT',
  27704. lastDay: '[dün] LT',
  27705. lastWeek: '[geçen] dddd [saat] LT',
  27706. sameElse: 'L'
  27707. },
  27708. relativeTime: {
  27709. future: '%s sonra',
  27710. past: '%s önce',
  27711. s: 'birkaç saniye',
  27712. ss: '%d saniye',
  27713. m: 'bir dakika',
  27714. mm: '%d dakika',
  27715. h: 'bir saat',
  27716. hh: '%d saat',
  27717. d: 'bir gün',
  27718. dd: '%d gün',
  27719. w: 'bir hafta',
  27720. ww: '%d hafta',
  27721. M: 'bir ay',
  27722. MM: '%d ay',
  27723. y: 'bir yıl',
  27724. yy: '%d yıl'
  27725. },
  27726. ordinal: function ordinal(number, period) {
  27727. switch (period) {
  27728. case 'd':
  27729. case 'D':
  27730. case 'Do':
  27731. case 'DD':
  27732. return number;
  27733. default:
  27734. if (number === 0) {
  27735. // special case for zero
  27736. return number + "'ıncı";
  27737. }
  27738. var a = number % 10,
  27739. b = number % 100 - a,
  27740. c = number >= 100 ? 100 : null;
  27741. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  27742. }
  27743. },
  27744. week: {
  27745. dow: 1,
  27746. // Monday is the first day of the week.
  27747. doy: 7 // The week that contains Jan 7th is the first week of the year.
  27748. }
  27749. });
  27750. return tr;
  27751. });
  27752. /***/ }),
  27753. /* 234 */
  27754. /*!************************************************************!*\
  27755. !*** D:/SWS_New/sws_new/node_modules/moment/locale/tzl.js ***!
  27756. \************************************************************/
  27757. /*! no static exports found */
  27758. /***/ (function(module, exports, __webpack_require__) {
  27759. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27760. //! moment.js locale configuration
  27761. //! locale : Talossan [tzl]
  27762. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  27763. //! author : Iustì Canun
  27764. ;
  27765. (function (global, factory) {
  27766. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27767. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27768. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27769. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27770. })(this, function (moment) {
  27771. 'use strict';
  27772. //! moment.js locale configuration
  27773. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  27774. // This is currently too difficult (maybe even impossible) to add.
  27775. var tzl = moment.defineLocale('tzl', {
  27776. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
  27777. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  27778. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  27779. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  27780. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  27781. longDateFormat: {
  27782. LT: 'HH.mm',
  27783. LTS: 'HH.mm.ss',
  27784. L: 'DD.MM.YYYY',
  27785. LL: 'D. MMMM [dallas] YYYY',
  27786. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  27787. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  27788. },
  27789. meridiemParse: /d\'o|d\'a/i,
  27790. isPM: function isPM(input) {
  27791. return "d'o" === input.toLowerCase();
  27792. },
  27793. meridiem: function meridiem(hours, minutes, isLower) {
  27794. if (hours > 11) {
  27795. return isLower ? "d'o" : "D'O";
  27796. } else {
  27797. return isLower ? "d'a" : "D'A";
  27798. }
  27799. },
  27800. calendar: {
  27801. sameDay: '[oxhi à] LT',
  27802. nextDay: '[demà à] LT',
  27803. nextWeek: 'dddd [à] LT',
  27804. lastDay: '[ieiri à] LT',
  27805. lastWeek: '[sür el] dddd [lasteu à] LT',
  27806. sameElse: 'L'
  27807. },
  27808. relativeTime: {
  27809. future: 'osprei %s',
  27810. past: 'ja%s',
  27811. s: processRelativeTime,
  27812. ss: processRelativeTime,
  27813. m: processRelativeTime,
  27814. mm: processRelativeTime,
  27815. h: processRelativeTime,
  27816. hh: processRelativeTime,
  27817. d: processRelativeTime,
  27818. dd: processRelativeTime,
  27819. M: processRelativeTime,
  27820. MM: processRelativeTime,
  27821. y: processRelativeTime,
  27822. yy: processRelativeTime
  27823. },
  27824. dayOfMonthOrdinalParse: /\d{1,2}\./,
  27825. ordinal: '%d.',
  27826. week: {
  27827. dow: 1,
  27828. // Monday is the first day of the week.
  27829. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27830. }
  27831. });
  27832. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  27833. var format = {
  27834. s: ['viensas secunds', "'iensas secunds"],
  27835. ss: [number + ' secunds', '' + number + ' secunds'],
  27836. m: ["'n míut", "'iens míut"],
  27837. mm: [number + ' míuts', '' + number + ' míuts'],
  27838. h: ["'n þora", "'iensa þora"],
  27839. hh: [number + ' þoras', '' + number + ' þoras'],
  27840. d: ["'n ziua", "'iensa ziua"],
  27841. dd: [number + ' ziuas', '' + number + ' ziuas'],
  27842. M: ["'n mes", "'iens mes"],
  27843. MM: [number + ' mesen', '' + number + ' mesen'],
  27844. y: ["'n ar", "'iens ar"],
  27845. yy: [number + ' ars', '' + number + ' ars']
  27846. };
  27847. return isFuture ? format[key][0] : withoutSuffix ? format[key][0] : format[key][1];
  27848. }
  27849. return tzl;
  27850. });
  27851. /***/ }),
  27852. /* 235 */
  27853. /*!************************************************************!*\
  27854. !*** D:/SWS_New/sws_new/node_modules/moment/locale/tzm.js ***!
  27855. \************************************************************/
  27856. /*! no static exports found */
  27857. /***/ (function(module, exports, __webpack_require__) {
  27858. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27859. //! moment.js locale configuration
  27860. //! locale : Central Atlas Tamazight [tzm]
  27861. //! author : Abdel Said : https://github.com/abdelsaid
  27862. ;
  27863. (function (global, factory) {
  27864. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27865. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27866. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27867. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27868. })(this, function (moment) {
  27869. 'use strict';
  27870. //! moment.js locale configuration
  27871. var tzm = moment.defineLocale('tzm', {
  27872. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  27873. monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  27874. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  27875. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  27876. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  27877. longDateFormat: {
  27878. LT: 'HH:mm',
  27879. LTS: 'HH:mm:ss',
  27880. L: 'DD/MM/YYYY',
  27881. LL: 'D MMMM YYYY',
  27882. LLL: 'D MMMM YYYY HH:mm',
  27883. LLLL: 'dddd D MMMM YYYY HH:mm'
  27884. },
  27885. calendar: {
  27886. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  27887. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  27888. nextWeek: 'dddd [ⴴ] LT',
  27889. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  27890. lastWeek: 'dddd [ⴴ] LT',
  27891. sameElse: 'L'
  27892. },
  27893. relativeTime: {
  27894. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  27895. past: 'ⵢⴰⵏ %s',
  27896. s: 'ⵉⵎⵉⴽ',
  27897. ss: '%d ⵉⵎⵉⴽ',
  27898. m: 'ⵎⵉⵏⵓⴺ',
  27899. mm: '%d ⵎⵉⵏⵓⴺ',
  27900. h: 'ⵙⴰⵄⴰ',
  27901. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  27902. d: 'ⴰⵙⵙ',
  27903. dd: '%d oⵙⵙⴰⵏ',
  27904. M: 'ⴰⵢoⵓⵔ',
  27905. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  27906. y: 'ⴰⵙⴳⴰⵙ',
  27907. yy: '%d ⵉⵙⴳⴰⵙⵏ'
  27908. },
  27909. week: {
  27910. dow: 6,
  27911. // Saturday is the first day of the week.
  27912. doy: 12 // The week that contains Jan 12th is the first week of the year.
  27913. }
  27914. });
  27915. return tzm;
  27916. });
  27917. /***/ }),
  27918. /* 236 */
  27919. /*!*****************************************************************!*\
  27920. !*** D:/SWS_New/sws_new/node_modules/moment/locale/tzm-latn.js ***!
  27921. \*****************************************************************/
  27922. /*! no static exports found */
  27923. /***/ (function(module, exports, __webpack_require__) {
  27924. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27925. //! moment.js locale configuration
  27926. //! locale : Central Atlas Tamazight Latin [tzm-latn]
  27927. //! author : Abdel Said : https://github.com/abdelsaid
  27928. ;
  27929. (function (global, factory) {
  27930. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27931. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27932. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27933. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27934. })(this, function (moment) {
  27935. 'use strict';
  27936. //! moment.js locale configuration
  27937. var tzmLatn = moment.defineLocale('tzm-latn', {
  27938. months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  27939. monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  27940. weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  27941. weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  27942. weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  27943. longDateFormat: {
  27944. LT: 'HH:mm',
  27945. LTS: 'HH:mm:ss',
  27946. L: 'DD/MM/YYYY',
  27947. LL: 'D MMMM YYYY',
  27948. LLL: 'D MMMM YYYY HH:mm',
  27949. LLLL: 'dddd D MMMM YYYY HH:mm'
  27950. },
  27951. calendar: {
  27952. sameDay: '[asdkh g] LT',
  27953. nextDay: '[aska g] LT',
  27954. nextWeek: 'dddd [g] LT',
  27955. lastDay: '[assant g] LT',
  27956. lastWeek: 'dddd [g] LT',
  27957. sameElse: 'L'
  27958. },
  27959. relativeTime: {
  27960. future: 'dadkh s yan %s',
  27961. past: 'yan %s',
  27962. s: 'imik',
  27963. ss: '%d imik',
  27964. m: 'minuḍ',
  27965. mm: '%d minuḍ',
  27966. h: 'saɛa',
  27967. hh: '%d tassaɛin',
  27968. d: 'ass',
  27969. dd: '%d ossan',
  27970. M: 'ayowr',
  27971. MM: '%d iyyirn',
  27972. y: 'asgas',
  27973. yy: '%d isgasn'
  27974. },
  27975. week: {
  27976. dow: 6,
  27977. // Saturday is the first day of the week.
  27978. doy: 12 // The week that contains Jan 12th is the first week of the year.
  27979. }
  27980. });
  27981. return tzmLatn;
  27982. });
  27983. /***/ }),
  27984. /* 237 */
  27985. /*!**************************************************************!*\
  27986. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ug-cn.js ***!
  27987. \**************************************************************/
  27988. /*! no static exports found */
  27989. /***/ (function(module, exports, __webpack_require__) {
  27990. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27991. //! moment.js locale configuration
  27992. //! locale : Uyghur (China) [ug-cn]
  27993. //! author: boyaq : https://github.com/boyaq
  27994. ;
  27995. (function (global, factory) {
  27996. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27997. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27998. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27999. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  28000. })(this, function (moment) {
  28001. 'use strict';
  28002. //! moment.js locale configuration
  28003. var ugCn = moment.defineLocale('ug-cn', {
  28004. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),
  28005. monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),
  28006. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split('_'),
  28007. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  28008. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  28009. longDateFormat: {
  28010. LT: 'HH:mm',
  28011. LTS: 'HH:mm:ss',
  28012. L: 'YYYY-MM-DD',
  28013. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  28014. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  28015. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm'
  28016. },
  28017. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  28018. meridiemHour: function meridiemHour(hour, meridiem) {
  28019. if (hour === 12) {
  28020. hour = 0;
  28021. }
  28022. if (meridiem === 'يېرىم كېچە' || meridiem === 'سەھەر' || meridiem === 'چۈشتىن بۇرۇن') {
  28023. return hour;
  28024. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  28025. return hour + 12;
  28026. } else {
  28027. return hour >= 11 ? hour : hour + 12;
  28028. }
  28029. },
  28030. meridiem: function meridiem(hour, minute, isLower) {
  28031. var hm = hour * 100 + minute;
  28032. if (hm < 600) {
  28033. return 'يېرىم كېچە';
  28034. } else if (hm < 900) {
  28035. return 'سەھەر';
  28036. } else if (hm < 1130) {
  28037. return 'چۈشتىن بۇرۇن';
  28038. } else if (hm < 1230) {
  28039. return 'چۈش';
  28040. } else if (hm < 1800) {
  28041. return 'چۈشتىن كېيىن';
  28042. } else {
  28043. return 'كەچ';
  28044. }
  28045. },
  28046. calendar: {
  28047. sameDay: '[بۈگۈن سائەت] LT',
  28048. nextDay: '[ئەتە سائەت] LT',
  28049. nextWeek: '[كېلەركى] dddd [سائەت] LT',
  28050. lastDay: '[تۆنۈگۈن] LT',
  28051. lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
  28052. sameElse: 'L'
  28053. },
  28054. relativeTime: {
  28055. future: '%s كېيىن',
  28056. past: '%s بۇرۇن',
  28057. s: 'نەچچە سېكونت',
  28058. ss: '%d سېكونت',
  28059. m: 'بىر مىنۇت',
  28060. mm: '%d مىنۇت',
  28061. h: 'بىر سائەت',
  28062. hh: '%d سائەت',
  28063. d: 'بىر كۈن',
  28064. dd: '%d كۈن',
  28065. M: 'بىر ئاي',
  28066. MM: '%d ئاي',
  28067. y: 'بىر يىل',
  28068. yy: '%d يىل'
  28069. },
  28070. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  28071. ordinal: function ordinal(number, period) {
  28072. switch (period) {
  28073. case 'd':
  28074. case 'D':
  28075. case 'DDD':
  28076. return number + '-كۈنى';
  28077. case 'w':
  28078. case 'W':
  28079. return number + '-ھەپتە';
  28080. default:
  28081. return number;
  28082. }
  28083. },
  28084. preparse: function preparse(string) {
  28085. return string.replace(/،/g, ',');
  28086. },
  28087. postformat: function postformat(string) {
  28088. return string.replace(/,/g, '،');
  28089. },
  28090. week: {
  28091. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  28092. dow: 1,
  28093. // Monday is the first day of the week.
  28094. doy: 7 // The week that contains Jan 1st is the first week of the year.
  28095. }
  28096. });
  28097. return ugCn;
  28098. });
  28099. /***/ }),
  28100. /* 238 */
  28101. /*!***********************************************************!*\
  28102. !*** D:/SWS_New/sws_new/node_modules/moment/locale/uk.js ***!
  28103. \***********************************************************/
  28104. /*! no static exports found */
  28105. /***/ (function(module, exports, __webpack_require__) {
  28106. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  28107. //! moment.js locale configuration
  28108. //! locale : Ukrainian [uk]
  28109. //! author : zemlanin : https://github.com/zemlanin
  28110. //! Author : Menelion Elensúle : https://github.com/Oire
  28111. ;
  28112. (function (global, factory) {
  28113. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28114. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28115. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28116. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  28117. })(this, function (moment) {
  28118. 'use strict';
  28119. //! moment.js locale configuration
  28120. function plural(word, num) {
  28121. var forms = word.split('_');
  28122. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
  28123. }
  28124. function relativeTimeWithPlural(number, withoutSuffix, key) {
  28125. var format = {
  28126. ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
  28127. mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  28128. hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  28129. dd: 'день_дні_днів',
  28130. MM: 'місяць_місяці_місяців',
  28131. yy: 'рік_роки_років'
  28132. };
  28133. if (key === 'm') {
  28134. return withoutSuffix ? 'хвилина' : 'хвилину';
  28135. } else if (key === 'h') {
  28136. return withoutSuffix ? 'година' : 'годину';
  28137. } else {
  28138. return number + ' ' + plural(format[key], +number);
  28139. }
  28140. }
  28141. function weekdaysCaseReplace(m, format) {
  28142. var weekdays = {
  28143. nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  28144. accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  28145. genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  28146. },
  28147. nounCase;
  28148. if (m === true) {
  28149. return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));
  28150. }
  28151. if (!m) {
  28152. return weekdays['nominative'];
  28153. }
  28154. nounCase = /(\[[ВвУу]\]) ?dddd/.test(format) ? 'accusative' : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format) ? 'genitive' : 'nominative';
  28155. return weekdays[nounCase][m.day()];
  28156. }
  28157. function processHoursFunction(str) {
  28158. return function () {
  28159. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  28160. };
  28161. }
  28162. var uk = moment.defineLocale('uk', {
  28163. months: {
  28164. format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
  28165. standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
  28166. },
  28167. monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  28168. weekdays: weekdaysCaseReplace,
  28169. weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  28170. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  28171. longDateFormat: {
  28172. LT: 'HH:mm',
  28173. LTS: 'HH:mm:ss',
  28174. L: 'DD.MM.YYYY',
  28175. LL: 'D MMMM YYYY р.',
  28176. LLL: 'D MMMM YYYY р., HH:mm',
  28177. LLLL: 'dddd, D MMMM YYYY р., HH:mm'
  28178. },
  28179. calendar: {
  28180. sameDay: processHoursFunction('[Сьогодні '),
  28181. nextDay: processHoursFunction('[Завтра '),
  28182. lastDay: processHoursFunction('[Вчора '),
  28183. nextWeek: processHoursFunction('[У] dddd ['),
  28184. lastWeek: function lastWeek() {
  28185. switch (this.day()) {
  28186. case 0:
  28187. case 3:
  28188. case 5:
  28189. case 6:
  28190. return processHoursFunction('[Минулої] dddd [').call(this);
  28191. case 1:
  28192. case 2:
  28193. case 4:
  28194. return processHoursFunction('[Минулого] dddd [').call(this);
  28195. }
  28196. },
  28197. sameElse: 'L'
  28198. },
  28199. relativeTime: {
  28200. future: 'за %s',
  28201. past: '%s тому',
  28202. s: 'декілька секунд',
  28203. ss: relativeTimeWithPlural,
  28204. m: relativeTimeWithPlural,
  28205. mm: relativeTimeWithPlural,
  28206. h: 'годину',
  28207. hh: relativeTimeWithPlural,
  28208. d: 'день',
  28209. dd: relativeTimeWithPlural,
  28210. M: 'місяць',
  28211. MM: relativeTimeWithPlural,
  28212. y: 'рік',
  28213. yy: relativeTimeWithPlural
  28214. },
  28215. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  28216. meridiemParse: /ночі|ранку|дня|вечора/,
  28217. isPM: function isPM(input) {
  28218. return /^(дня|вечора)$/.test(input);
  28219. },
  28220. meridiem: function meridiem(hour, minute, isLower) {
  28221. if (hour < 4) {
  28222. return 'ночі';
  28223. } else if (hour < 12) {
  28224. return 'ранку';
  28225. } else if (hour < 17) {
  28226. return 'дня';
  28227. } else {
  28228. return 'вечора';
  28229. }
  28230. },
  28231. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  28232. ordinal: function ordinal(number, period) {
  28233. switch (period) {
  28234. case 'M':
  28235. case 'd':
  28236. case 'DDD':
  28237. case 'w':
  28238. case 'W':
  28239. return number + '-й';
  28240. case 'D':
  28241. return number + '-го';
  28242. default:
  28243. return number;
  28244. }
  28245. },
  28246. week: {
  28247. dow: 1,
  28248. // Monday is the first day of the week.
  28249. doy: 7 // The week that contains Jan 7th is the first week of the year.
  28250. }
  28251. });
  28252. return uk;
  28253. });
  28254. /***/ }),
  28255. /* 239 */
  28256. /*!***********************************************************!*\
  28257. !*** D:/SWS_New/sws_new/node_modules/moment/locale/ur.js ***!
  28258. \***********************************************************/
  28259. /*! no static exports found */
  28260. /***/ (function(module, exports, __webpack_require__) {
  28261. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  28262. //! moment.js locale configuration
  28263. //! locale : Urdu [ur]
  28264. //! author : Sawood Alam : https://github.com/ibnesayeed
  28265. //! author : Zack : https://github.com/ZackVision
  28266. ;
  28267. (function (global, factory) {
  28268. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28269. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28270. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28271. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  28272. })(this, function (moment) {
  28273. 'use strict';
  28274. //! moment.js locale configuration
  28275. var months = ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئی', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'],
  28276. days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
  28277. var ur = moment.defineLocale('ur', {
  28278. months: months,
  28279. monthsShort: months,
  28280. weekdays: days,
  28281. weekdaysShort: days,
  28282. weekdaysMin: days,
  28283. longDateFormat: {
  28284. LT: 'HH:mm',
  28285. LTS: 'HH:mm:ss',
  28286. L: 'DD/MM/YYYY',
  28287. LL: 'D MMMM YYYY',
  28288. LLL: 'D MMMM YYYY HH:mm',
  28289. LLLL: 'dddd، D MMMM YYYY HH:mm'
  28290. },
  28291. meridiemParse: /صبح|شام/,
  28292. isPM: function isPM(input) {
  28293. return 'شام' === input;
  28294. },
  28295. meridiem: function meridiem(hour, minute, isLower) {
  28296. if (hour < 12) {
  28297. return 'صبح';
  28298. }
  28299. return 'شام';
  28300. },
  28301. calendar: {
  28302. sameDay: '[آج بوقت] LT',
  28303. nextDay: '[کل بوقت] LT',
  28304. nextWeek: 'dddd [بوقت] LT',
  28305. lastDay: '[گذشتہ روز بوقت] LT',
  28306. lastWeek: '[گذشتہ] dddd [بوقت] LT',
  28307. sameElse: 'L'
  28308. },
  28309. relativeTime: {
  28310. future: '%s بعد',
  28311. past: '%s قبل',
  28312. s: 'چند سیکنڈ',
  28313. ss: '%d سیکنڈ',
  28314. m: 'ایک منٹ',
  28315. mm: '%d منٹ',
  28316. h: 'ایک گھنٹہ',
  28317. hh: '%d گھنٹے',
  28318. d: 'ایک دن',
  28319. dd: '%d دن',
  28320. M: 'ایک ماہ',
  28321. MM: '%d ماہ',
  28322. y: 'ایک سال',
  28323. yy: '%d سال'
  28324. },
  28325. preparse: function preparse(string) {
  28326. return string.replace(/،/g, ',');
  28327. },
  28328. postformat: function postformat(string) {
  28329. return string.replace(/,/g, '،');
  28330. },
  28331. week: {
  28332. dow: 1,
  28333. // Monday is the first day of the week.
  28334. doy: 4 // The week that contains Jan 4th is the first week of the year.
  28335. }
  28336. });
  28337. return ur;
  28338. });
  28339. /***/ }),
  28340. /* 240 */
  28341. /*!***********************************************************!*\
  28342. !*** D:/SWS_New/sws_new/node_modules/moment/locale/uz.js ***!
  28343. \***********************************************************/
  28344. /*! no static exports found */
  28345. /***/ (function(module, exports, __webpack_require__) {
  28346. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  28347. //! moment.js locale configuration
  28348. //! locale : Uzbek [uz]
  28349. //! author : Sardor Muminov : https://github.com/muminoff
  28350. ;
  28351. (function (global, factory) {
  28352. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28353. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28354. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28355. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  28356. })(this, function (moment) {
  28357. 'use strict';
  28358. //! moment.js locale configuration
  28359. var uz = moment.defineLocale('uz', {
  28360. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  28361. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  28362. weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  28363. weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  28364. weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  28365. longDateFormat: {
  28366. LT: 'HH:mm',
  28367. LTS: 'HH:mm:ss',
  28368. L: 'DD/MM/YYYY',
  28369. LL: 'D MMMM YYYY',
  28370. LLL: 'D MMMM YYYY HH:mm',
  28371. LLLL: 'D MMMM YYYY, dddd HH:mm'
  28372. },
  28373. calendar: {
  28374. sameDay: '[Бугун соат] LT [да]',
  28375. nextDay: '[Эртага] LT [да]',
  28376. nextWeek: 'dddd [куни соат] LT [да]',
  28377. lastDay: '[Кеча соат] LT [да]',
  28378. lastWeek: '[Утган] dddd [куни соат] LT [да]',
  28379. sameElse: 'L'
  28380. },
  28381. relativeTime: {
  28382. future: 'Якин %s ичида',
  28383. past: 'Бир неча %s олдин',
  28384. s: 'фурсат',
  28385. ss: '%d фурсат',
  28386. m: 'бир дакика',
  28387. mm: '%d дакика',
  28388. h: 'бир соат',
  28389. hh: '%d соат',
  28390. d: 'бир кун',
  28391. dd: '%d кун',
  28392. M: 'бир ой',
  28393. MM: '%d ой',
  28394. y: 'бир йил',
  28395. yy: '%d йил'
  28396. },
  28397. week: {
  28398. dow: 1,
  28399. // Monday is the first day of the week.
  28400. doy: 7 // The week that contains Jan 4th is the first week of the year.
  28401. }
  28402. });
  28403. return uz;
  28404. });
  28405. /***/ }),
  28406. /* 241 */
  28407. /*!****************************************************************!*\
  28408. !*** D:/SWS_New/sws_new/node_modules/moment/locale/uz-latn.js ***!
  28409. \****************************************************************/
  28410. /*! no static exports found */
  28411. /***/ (function(module, exports, __webpack_require__) {
  28412. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  28413. //! moment.js locale configuration
  28414. //! locale : Uzbek Latin [uz-latn]
  28415. //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
  28416. ;
  28417. (function (global, factory) {
  28418. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28419. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28420. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28421. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  28422. })(this, function (moment) {
  28423. 'use strict';
  28424. //! moment.js locale configuration
  28425. var uzLatn = moment.defineLocale('uz-latn', {
  28426. months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
  28427. monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  28428. weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
  28429. weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  28430. weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  28431. longDateFormat: {
  28432. LT: 'HH:mm',
  28433. LTS: 'HH:mm:ss',
  28434. L: 'DD/MM/YYYY',
  28435. LL: 'D MMMM YYYY',
  28436. LLL: 'D MMMM YYYY HH:mm',
  28437. LLLL: 'D MMMM YYYY, dddd HH:mm'
  28438. },
  28439. calendar: {
  28440. sameDay: '[Bugun soat] LT [da]',
  28441. nextDay: '[Ertaga] LT [da]',
  28442. nextWeek: 'dddd [kuni soat] LT [da]',
  28443. lastDay: '[Kecha soat] LT [da]',
  28444. lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
  28445. sameElse: 'L'
  28446. },
  28447. relativeTime: {
  28448. future: 'Yaqin %s ichida',
  28449. past: 'Bir necha %s oldin',
  28450. s: 'soniya',
  28451. ss: '%d soniya',
  28452. m: 'bir daqiqa',
  28453. mm: '%d daqiqa',
  28454. h: 'bir soat',
  28455. hh: '%d soat',
  28456. d: 'bir kun',
  28457. dd: '%d kun',
  28458. M: 'bir oy',
  28459. MM: '%d oy',
  28460. y: 'bir yil',
  28461. yy: '%d yil'
  28462. },
  28463. week: {
  28464. dow: 1,
  28465. // Monday is the first day of the week.
  28466. doy: 7 // The week that contains Jan 7th is the first week of the year.
  28467. }
  28468. });
  28469. return uzLatn;
  28470. });
  28471. /***/ }),
  28472. /* 242 */
  28473. /*!***********************************************************!*\
  28474. !*** D:/SWS_New/sws_new/node_modules/moment/locale/vi.js ***!
  28475. \***********************************************************/
  28476. /*! no static exports found */
  28477. /***/ (function(module, exports, __webpack_require__) {
  28478. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  28479. //! moment.js locale configuration
  28480. //! locale : Vietnamese [vi]
  28481. //! author : Bang Nguyen : https://github.com/bangnk
  28482. //! author : Chien Kira : https://github.com/chienkira
  28483. ;
  28484. (function (global, factory) {
  28485. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28486. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28487. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28488. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  28489. })(this, function (moment) {
  28490. 'use strict';
  28491. //! moment.js locale configuration
  28492. var vi = moment.defineLocale('vi', {
  28493. months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
  28494. monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split('_'),
  28495. monthsParseExact: true,
  28496. weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  28497. weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  28498. weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  28499. weekdaysParseExact: true,
  28500. meridiemParse: /sa|ch/i,
  28501. isPM: function isPM(input) {
  28502. return /^ch$/i.test(input);
  28503. },
  28504. meridiem: function meridiem(hours, minutes, isLower) {
  28505. if (hours < 12) {
  28506. return isLower ? 'sa' : 'SA';
  28507. } else {
  28508. return isLower ? 'ch' : 'CH';
  28509. }
  28510. },
  28511. longDateFormat: {
  28512. LT: 'HH:mm',
  28513. LTS: 'HH:mm:ss',
  28514. L: 'DD/MM/YYYY',
  28515. LL: 'D MMMM [năm] YYYY',
  28516. LLL: 'D MMMM [năm] YYYY HH:mm',
  28517. LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
  28518. l: 'DD/M/YYYY',
  28519. ll: 'D MMM YYYY',
  28520. lll: 'D MMM YYYY HH:mm',
  28521. llll: 'ddd, D MMM YYYY HH:mm'
  28522. },
  28523. calendar: {
  28524. sameDay: '[Hôm nay lúc] LT',
  28525. nextDay: '[Ngày mai lúc] LT',
  28526. nextWeek: 'dddd [tuần tới lúc] LT',
  28527. lastDay: '[Hôm qua lúc] LT',
  28528. lastWeek: 'dddd [tuần trước lúc] LT',
  28529. sameElse: 'L'
  28530. },
  28531. relativeTime: {
  28532. future: '%s tới',
  28533. past: '%s trước',
  28534. s: 'vài giây',
  28535. ss: '%d giây',
  28536. m: 'một phút',
  28537. mm: '%d phút',
  28538. h: 'một giờ',
  28539. hh: '%d giờ',
  28540. d: 'một ngày',
  28541. dd: '%d ngày',
  28542. w: 'một tuần',
  28543. ww: '%d tuần',
  28544. M: 'một tháng',
  28545. MM: '%d tháng',
  28546. y: 'một năm',
  28547. yy: '%d năm'
  28548. },
  28549. dayOfMonthOrdinalParse: /\d{1,2}/,
  28550. ordinal: function ordinal(number) {
  28551. return number;
  28552. },
  28553. week: {
  28554. dow: 1,
  28555. // Monday is the first day of the week.
  28556. doy: 4 // The week that contains Jan 4th is the first week of the year.
  28557. }
  28558. });
  28559. return vi;
  28560. });
  28561. /***/ }),
  28562. /* 243 */
  28563. /*!*****************************************************************!*\
  28564. !*** D:/SWS_New/sws_new/node_modules/moment/locale/x-pseudo.js ***!
  28565. \*****************************************************************/
  28566. /*! no static exports found */
  28567. /***/ (function(module, exports, __webpack_require__) {
  28568. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  28569. //! moment.js locale configuration
  28570. //! locale : Pseudo [x-pseudo]
  28571. //! author : Andrew Hood : https://github.com/andrewhood125
  28572. ;
  28573. (function (global, factory) {
  28574. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28575. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28576. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28577. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  28578. })(this, function (moment) {
  28579. 'use strict';
  28580. //! moment.js locale configuration
  28581. var xPseudo = moment.defineLocale('x-pseudo', {
  28582. months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
  28583. monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
  28584. monthsParseExact: true,
  28585. weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
  28586. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  28587. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  28588. weekdaysParseExact: true,
  28589. longDateFormat: {
  28590. LT: 'HH:mm',
  28591. L: 'DD/MM/YYYY',
  28592. LL: 'D MMMM YYYY',
  28593. LLL: 'D MMMM YYYY HH:mm',
  28594. LLLL: 'dddd, D MMMM YYYY HH:mm'
  28595. },
  28596. calendar: {
  28597. sameDay: '[T~ódá~ý át] LT',
  28598. nextDay: '[T~ómó~rró~w át] LT',
  28599. nextWeek: 'dddd [át] LT',
  28600. lastDay: '[Ý~ést~érdá~ý át] LT',
  28601. lastWeek: '[L~ást] dddd [át] LT',
  28602. sameElse: 'L'
  28603. },
  28604. relativeTime: {
  28605. future: 'í~ñ %s',
  28606. past: '%s á~gó',
  28607. s: 'á ~féw ~sécó~ñds',
  28608. ss: '%d s~écóñ~ds',
  28609. m: 'á ~míñ~úté',
  28610. mm: '%d m~íñú~tés',
  28611. h: 'á~ñ hó~úr',
  28612. hh: '%d h~óúrs',
  28613. d: 'á ~dáý',
  28614. dd: '%d d~áýs',
  28615. M: 'á ~móñ~th',
  28616. MM: '%d m~óñt~hs',
  28617. y: 'á ~ýéár',
  28618. yy: '%d ý~éárs'
  28619. },
  28620. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  28621. ordinal: function ordinal(number) {
  28622. var b = number % 10,
  28623. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  28624. return number + output;
  28625. },
  28626. week: {
  28627. dow: 1,
  28628. // Monday is the first day of the week.
  28629. doy: 4 // The week that contains Jan 4th is the first week of the year.
  28630. }
  28631. });
  28632. return xPseudo;
  28633. });
  28634. /***/ }),
  28635. /* 244 */
  28636. /*!***********************************************************!*\
  28637. !*** D:/SWS_New/sws_new/node_modules/moment/locale/yo.js ***!
  28638. \***********************************************************/
  28639. /*! no static exports found */
  28640. /***/ (function(module, exports, __webpack_require__) {
  28641. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  28642. //! moment.js locale configuration
  28643. //! locale : Yoruba Nigeria [yo]
  28644. //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
  28645. ;
  28646. (function (global, factory) {
  28647. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28648. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28649. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28650. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  28651. })(this, function (moment) {
  28652. 'use strict';
  28653. //! moment.js locale configuration
  28654. var yo = moment.defineLocale('yo', {
  28655. months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
  28656. monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  28657. weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  28658. weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  28659. weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  28660. longDateFormat: {
  28661. LT: 'h:mm A',
  28662. LTS: 'h:mm:ss A',
  28663. L: 'DD/MM/YYYY',
  28664. LL: 'D MMMM YYYY',
  28665. LLL: 'D MMMM YYYY h:mm A',
  28666. LLLL: 'dddd, D MMMM YYYY h:mm A'
  28667. },
  28668. calendar: {
  28669. sameDay: '[Ònì ni] LT',
  28670. nextDay: '[Ọ̀la ni] LT',
  28671. nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
  28672. lastDay: '[Àna ni] LT',
  28673. lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  28674. sameElse: 'L'
  28675. },
  28676. relativeTime: {
  28677. future: 'ní %s',
  28678. past: '%s kọjá',
  28679. s: 'ìsẹjú aayá die',
  28680. ss: 'aayá %d',
  28681. m: 'ìsẹjú kan',
  28682. mm: 'ìsẹjú %d',
  28683. h: 'wákati kan',
  28684. hh: 'wákati %d',
  28685. d: 'ọjọ́ kan',
  28686. dd: 'ọjọ́ %d',
  28687. M: 'osù kan',
  28688. MM: 'osù %d',
  28689. y: 'ọdún kan',
  28690. yy: 'ọdún %d'
  28691. },
  28692. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  28693. ordinal: 'ọjọ́ %d',
  28694. week: {
  28695. dow: 1,
  28696. // Monday is the first day of the week.
  28697. doy: 4 // The week that contains Jan 4th is the first week of the year.
  28698. }
  28699. });
  28700. return yo;
  28701. });
  28702. /***/ }),
  28703. /* 245 */
  28704. /*!**************************************************************!*\
  28705. !*** D:/SWS_New/sws_new/node_modules/moment/locale/zh-cn.js ***!
  28706. \**************************************************************/
  28707. /*! no static exports found */
  28708. /***/ (function(module, exports, __webpack_require__) {
  28709. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  28710. //! moment.js locale configuration
  28711. //! locale : Chinese (China) [zh-cn]
  28712. //! author : suupic : https://github.com/suupic
  28713. //! author : Zeno Zeng : https://github.com/zenozeng
  28714. //! author : uu109 : https://github.com/uu109
  28715. ;
  28716. (function (global, factory) {
  28717. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28718. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28719. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28720. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  28721. })(this, function (moment) {
  28722. 'use strict';
  28723. //! moment.js locale configuration
  28724. var zhCn = moment.defineLocale('zh-cn', {
  28725. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  28726. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  28727. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  28728. weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  28729. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  28730. longDateFormat: {
  28731. LT: 'HH:mm',
  28732. LTS: 'HH:mm:ss',
  28733. L: 'YYYY/MM/DD',
  28734. LL: 'YYYY年M月D日',
  28735. LLL: 'YYYY年M月D日Ah点mm分',
  28736. LLLL: 'YYYY年M月D日ddddAh点mm分',
  28737. l: 'YYYY/M/D',
  28738. ll: 'YYYY年M月D日',
  28739. lll: 'YYYY年M月D日 HH:mm',
  28740. llll: 'YYYY年M月D日dddd HH:mm'
  28741. },
  28742. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  28743. meridiemHour: function meridiemHour(hour, meridiem) {
  28744. if (hour === 12) {
  28745. hour = 0;
  28746. }
  28747. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  28748. return hour;
  28749. } else if (meridiem === '下午' || meridiem === '晚上') {
  28750. return hour + 12;
  28751. } else {
  28752. // '中午'
  28753. return hour >= 11 ? hour : hour + 12;
  28754. }
  28755. },
  28756. meridiem: function meridiem(hour, minute, isLower) {
  28757. var hm = hour * 100 + minute;
  28758. if (hm < 600) {
  28759. return '凌晨';
  28760. } else if (hm < 900) {
  28761. return '早上';
  28762. } else if (hm < 1130) {
  28763. return '上午';
  28764. } else if (hm < 1230) {
  28765. return '中午';
  28766. } else if (hm < 1800) {
  28767. return '下午';
  28768. } else {
  28769. return '晚上';
  28770. }
  28771. },
  28772. calendar: {
  28773. sameDay: '[今天]LT',
  28774. nextDay: '[明天]LT',
  28775. nextWeek: function nextWeek(now) {
  28776. if (now.week() !== this.week()) {
  28777. return '[下]dddLT';
  28778. } else {
  28779. return '[本]dddLT';
  28780. }
  28781. },
  28782. lastDay: '[昨天]LT',
  28783. lastWeek: function lastWeek(now) {
  28784. if (this.week() !== now.week()) {
  28785. return '[上]dddLT';
  28786. } else {
  28787. return '[本]dddLT';
  28788. }
  28789. },
  28790. sameElse: 'L'
  28791. },
  28792. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  28793. ordinal: function ordinal(number, period) {
  28794. switch (period) {
  28795. case 'd':
  28796. case 'D':
  28797. case 'DDD':
  28798. return number + '日';
  28799. case 'M':
  28800. return number + '月';
  28801. case 'w':
  28802. case 'W':
  28803. return number + '周';
  28804. default:
  28805. return number;
  28806. }
  28807. },
  28808. relativeTime: {
  28809. future: '%s后',
  28810. past: '%s前',
  28811. s: '几秒',
  28812. ss: '%d 秒',
  28813. m: '1 分钟',
  28814. mm: '%d 分钟',
  28815. h: '1 小时',
  28816. hh: '%d 小时',
  28817. d: '1 天',
  28818. dd: '%d 天',
  28819. w: '1 周',
  28820. ww: '%d 周',
  28821. M: '1 个月',
  28822. MM: '%d 个月',
  28823. y: '1 年',
  28824. yy: '%d 年'
  28825. },
  28826. week: {
  28827. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  28828. dow: 1,
  28829. // Monday is the first day of the week.
  28830. doy: 4 // The week that contains Jan 4th is the first week of the year.
  28831. }
  28832. });
  28833. return zhCn;
  28834. });
  28835. /***/ }),
  28836. /* 246 */
  28837. /*!**************************************************************!*\
  28838. !*** D:/SWS_New/sws_new/node_modules/moment/locale/zh-hk.js ***!
  28839. \**************************************************************/
  28840. /*! no static exports found */
  28841. /***/ (function(module, exports, __webpack_require__) {
  28842. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  28843. //! moment.js locale configuration
  28844. //! locale : Chinese (Hong Kong) [zh-hk]
  28845. //! author : Ben : https://github.com/ben-lin
  28846. //! author : Chris Lam : https://github.com/hehachris
  28847. //! author : Konstantin : https://github.com/skfd
  28848. //! author : Anthony : https://github.com/anthonylau
  28849. ;
  28850. (function (global, factory) {
  28851. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28852. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28853. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28854. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  28855. })(this, function (moment) {
  28856. 'use strict';
  28857. //! moment.js locale configuration
  28858. var zhHk = moment.defineLocale('zh-hk', {
  28859. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  28860. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  28861. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  28862. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  28863. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  28864. longDateFormat: {
  28865. LT: 'HH:mm',
  28866. LTS: 'HH:mm:ss',
  28867. L: 'YYYY/MM/DD',
  28868. LL: 'YYYY年M月D日',
  28869. LLL: 'YYYY年M月D日 HH:mm',
  28870. LLLL: 'YYYY年M月D日dddd HH:mm',
  28871. l: 'YYYY/M/D',
  28872. ll: 'YYYY年M月D日',
  28873. lll: 'YYYY年M月D日 HH:mm',
  28874. llll: 'YYYY年M月D日dddd HH:mm'
  28875. },
  28876. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  28877. meridiemHour: function meridiemHour(hour, meridiem) {
  28878. if (hour === 12) {
  28879. hour = 0;
  28880. }
  28881. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  28882. return hour;
  28883. } else if (meridiem === '中午') {
  28884. return hour >= 11 ? hour : hour + 12;
  28885. } else if (meridiem === '下午' || meridiem === '晚上') {
  28886. return hour + 12;
  28887. }
  28888. },
  28889. meridiem: function meridiem(hour, minute, isLower) {
  28890. var hm = hour * 100 + minute;
  28891. if (hm < 600) {
  28892. return '凌晨';
  28893. } else if (hm < 900) {
  28894. return '早上';
  28895. } else if (hm < 1200) {
  28896. return '上午';
  28897. } else if (hm === 1200) {
  28898. return '中午';
  28899. } else if (hm < 1800) {
  28900. return '下午';
  28901. } else {
  28902. return '晚上';
  28903. }
  28904. },
  28905. calendar: {
  28906. sameDay: '[今天]LT',
  28907. nextDay: '[明天]LT',
  28908. nextWeek: '[下]ddddLT',
  28909. lastDay: '[昨天]LT',
  28910. lastWeek: '[上]ddddLT',
  28911. sameElse: 'L'
  28912. },
  28913. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  28914. ordinal: function ordinal(number, period) {
  28915. switch (period) {
  28916. case 'd':
  28917. case 'D':
  28918. case 'DDD':
  28919. return number + '日';
  28920. case 'M':
  28921. return number + '月';
  28922. case 'w':
  28923. case 'W':
  28924. return number + '週';
  28925. default:
  28926. return number;
  28927. }
  28928. },
  28929. relativeTime: {
  28930. future: '%s後',
  28931. past: '%s前',
  28932. s: '幾秒',
  28933. ss: '%d 秒',
  28934. m: '1 分鐘',
  28935. mm: '%d 分鐘',
  28936. h: '1 小時',
  28937. hh: '%d 小時',
  28938. d: '1 天',
  28939. dd: '%d 天',
  28940. M: '1 個月',
  28941. MM: '%d 個月',
  28942. y: '1 年',
  28943. yy: '%d 年'
  28944. }
  28945. });
  28946. return zhHk;
  28947. });
  28948. /***/ }),
  28949. /* 247 */
  28950. /*!**************************************************************!*\
  28951. !*** D:/SWS_New/sws_new/node_modules/moment/locale/zh-mo.js ***!
  28952. \**************************************************************/
  28953. /*! no static exports found */
  28954. /***/ (function(module, exports, __webpack_require__) {
  28955. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  28956. //! moment.js locale configuration
  28957. //! locale : Chinese (Macau) [zh-mo]
  28958. //! author : Ben : https://github.com/ben-lin
  28959. //! author : Chris Lam : https://github.com/hehachris
  28960. //! author : Tan Yuanhong : https://github.com/le0tan
  28961. ;
  28962. (function (global, factory) {
  28963. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28964. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28965. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28966. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  28967. })(this, function (moment) {
  28968. 'use strict';
  28969. //! moment.js locale configuration
  28970. var zhMo = moment.defineLocale('zh-mo', {
  28971. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  28972. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  28973. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  28974. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  28975. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  28976. longDateFormat: {
  28977. LT: 'HH:mm',
  28978. LTS: 'HH:mm:ss',
  28979. L: 'DD/MM/YYYY',
  28980. LL: 'YYYY年M月D日',
  28981. LLL: 'YYYY年M月D日 HH:mm',
  28982. LLLL: 'YYYY年M月D日dddd HH:mm',
  28983. l: 'D/M/YYYY',
  28984. ll: 'YYYY年M月D日',
  28985. lll: 'YYYY年M月D日 HH:mm',
  28986. llll: 'YYYY年M月D日dddd HH:mm'
  28987. },
  28988. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  28989. meridiemHour: function meridiemHour(hour, meridiem) {
  28990. if (hour === 12) {
  28991. hour = 0;
  28992. }
  28993. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  28994. return hour;
  28995. } else if (meridiem === '中午') {
  28996. return hour >= 11 ? hour : hour + 12;
  28997. } else if (meridiem === '下午' || meridiem === '晚上') {
  28998. return hour + 12;
  28999. }
  29000. },
  29001. meridiem: function meridiem(hour, minute, isLower) {
  29002. var hm = hour * 100 + minute;
  29003. if (hm < 600) {
  29004. return '凌晨';
  29005. } else if (hm < 900) {
  29006. return '早上';
  29007. } else if (hm < 1130) {
  29008. return '上午';
  29009. } else if (hm < 1230) {
  29010. return '中午';
  29011. } else if (hm < 1800) {
  29012. return '下午';
  29013. } else {
  29014. return '晚上';
  29015. }
  29016. },
  29017. calendar: {
  29018. sameDay: '[今天] LT',
  29019. nextDay: '[明天] LT',
  29020. nextWeek: '[下]dddd LT',
  29021. lastDay: '[昨天] LT',
  29022. lastWeek: '[上]dddd LT',
  29023. sameElse: 'L'
  29024. },
  29025. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  29026. ordinal: function ordinal(number, period) {
  29027. switch (period) {
  29028. case 'd':
  29029. case 'D':
  29030. case 'DDD':
  29031. return number + '日';
  29032. case 'M':
  29033. return number + '月';
  29034. case 'w':
  29035. case 'W':
  29036. return number + '週';
  29037. default:
  29038. return number;
  29039. }
  29040. },
  29041. relativeTime: {
  29042. future: '%s內',
  29043. past: '%s前',
  29044. s: '幾秒',
  29045. ss: '%d 秒',
  29046. m: '1 分鐘',
  29047. mm: '%d 分鐘',
  29048. h: '1 小時',
  29049. hh: '%d 小時',
  29050. d: '1 天',
  29051. dd: '%d 天',
  29052. M: '1 個月',
  29053. MM: '%d 個月',
  29054. y: '1 年',
  29055. yy: '%d 年'
  29056. }
  29057. });
  29058. return zhMo;
  29059. });
  29060. /***/ }),
  29061. /* 248 */
  29062. /*!**************************************************************!*\
  29063. !*** D:/SWS_New/sws_new/node_modules/moment/locale/zh-tw.js ***!
  29064. \**************************************************************/
  29065. /*! no static exports found */
  29066. /***/ (function(module, exports, __webpack_require__) {
  29067. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  29068. //! moment.js locale configuration
  29069. //! locale : Chinese (Taiwan) [zh-tw]
  29070. //! author : Ben : https://github.com/ben-lin
  29071. //! author : Chris Lam : https://github.com/hehachris
  29072. ;
  29073. (function (global, factory) {
  29074. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 111)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 111)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  29075. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  29076. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  29077. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  29078. })(this, function (moment) {
  29079. 'use strict';
  29080. //! moment.js locale configuration
  29081. var zhTw = moment.defineLocale('zh-tw', {
  29082. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  29083. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  29084. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  29085. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  29086. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  29087. longDateFormat: {
  29088. LT: 'HH:mm',
  29089. LTS: 'HH:mm:ss',
  29090. L: 'YYYY/MM/DD',
  29091. LL: 'YYYY年M月D日',
  29092. LLL: 'YYYY年M月D日 HH:mm',
  29093. LLLL: 'YYYY年M月D日dddd HH:mm',
  29094. l: 'YYYY/M/D',
  29095. ll: 'YYYY年M月D日',
  29096. lll: 'YYYY年M月D日 HH:mm',
  29097. llll: 'YYYY年M月D日dddd HH:mm'
  29098. },
  29099. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  29100. meridiemHour: function meridiemHour(hour, meridiem) {
  29101. if (hour === 12) {
  29102. hour = 0;
  29103. }
  29104. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  29105. return hour;
  29106. } else if (meridiem === '中午') {
  29107. return hour >= 11 ? hour : hour + 12;
  29108. } else if (meridiem === '下午' || meridiem === '晚上') {
  29109. return hour + 12;
  29110. }
  29111. },
  29112. meridiem: function meridiem(hour, minute, isLower) {
  29113. var hm = hour * 100 + minute;
  29114. if (hm < 600) {
  29115. return '凌晨';
  29116. } else if (hm < 900) {
  29117. return '早上';
  29118. } else if (hm < 1130) {
  29119. return '上午';
  29120. } else if (hm < 1230) {
  29121. return '中午';
  29122. } else if (hm < 1800) {
  29123. return '下午';
  29124. } else {
  29125. return '晚上';
  29126. }
  29127. },
  29128. calendar: {
  29129. sameDay: '[今天] LT',
  29130. nextDay: '[明天] LT',
  29131. nextWeek: '[下]dddd LT',
  29132. lastDay: '[昨天] LT',
  29133. lastWeek: '[上]dddd LT',
  29134. sameElse: 'L'
  29135. },
  29136. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  29137. ordinal: function ordinal(number, period) {
  29138. switch (period) {
  29139. case 'd':
  29140. case 'D':
  29141. case 'DDD':
  29142. return number + '日';
  29143. case 'M':
  29144. return number + '月';
  29145. case 'w':
  29146. case 'W':
  29147. return number + '週';
  29148. default:
  29149. return number;
  29150. }
  29151. },
  29152. relativeTime: {
  29153. future: '%s後',
  29154. past: '%s前',
  29155. s: '幾秒',
  29156. ss: '%d 秒',
  29157. m: '1 分鐘',
  29158. mm: '%d 分鐘',
  29159. h: '1 小時',
  29160. hh: '%d 小時',
  29161. d: '1 天',
  29162. dd: '%d 天',
  29163. M: '1 個月',
  29164. MM: '%d 個月',
  29165. y: '1 年',
  29166. yy: '%d 年'
  29167. }
  29168. });
  29169. return zhTw;
  29170. });
  29171. /***/ }),
  29172. /* 249 */,
  29173. /* 250 */,
  29174. /* 251 */,
  29175. /* 252 */,
  29176. /* 253 */,
  29177. /* 254 */,
  29178. /* 255 */,
  29179. /* 256 */,
  29180. /* 257 */,
  29181. /* 258 */,
  29182. /* 259 */,
  29183. /* 260 */,
  29184. /* 261 */,
  29185. /* 262 */,
  29186. /* 263 */,
  29187. /* 264 */,
  29188. /* 265 */,
  29189. /* 266 */,
  29190. /* 267 */
  29191. /*!**********************************************!*\
  29192. !*** D:/SWS_New/sws_new/utils/formatDate.js ***!
  29193. \**********************************************/
  29194. /*! no static exports found */
  29195. /***/ (function(module, exports, __webpack_require__) {
  29196. "use strict";
  29197. Object.defineProperty(exports, "__esModule", {
  29198. value: true
  29199. });
  29200. exports.formatDate = formatDate;
  29201. function formatDate(date, fmt) {
  29202. if (/(y+)/.test(fmt)) {
  29203. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  29204. }
  29205. var o = {
  29206. 'M+': date.getMonth() + 1,
  29207. 'd+': date.getDate(),
  29208. 'h+': date.getHours(),
  29209. 'm+': date.getMinutes(),
  29210. 's+': date.getSeconds()
  29211. };
  29212. for (var k in o) {
  29213. if (new RegExp("(".concat(k, ")")).test(fmt)) {
  29214. var str = o[k] + '';
  29215. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? str : padLeftZero(str));
  29216. }
  29217. }
  29218. return fmt;
  29219. }
  29220. ;
  29221. function padLeftZero(str) {
  29222. return ('00' + str).substr(str.length);
  29223. }
  29224. ;
  29225. /***/ }),
  29226. /* 268 */,
  29227. /* 269 */,
  29228. /* 270 */,
  29229. /* 271 */,
  29230. /* 272 */,
  29231. /* 273 */,
  29232. /* 274 */,
  29233. /* 275 */,
  29234. /* 276 */,
  29235. /* 277 */,
  29236. /* 278 */,
  29237. /* 279 */,
  29238. /* 280 */,
  29239. /* 281 */,
  29240. /* 282 */,
  29241. /* 283 */,
  29242. /* 284 */,
  29243. /* 285 */,
  29244. /* 286 */,
  29245. /* 287 */,
  29246. /* 288 */,
  29247. /* 289 */,
  29248. /* 290 */,
  29249. /* 291 */,
  29250. /* 292 */
  29251. /*!*************************************************!*\
  29252. !*** D:/SWS_New/sws_new/static/personage/4.png ***!
  29253. \*************************************************/
  29254. /*! no static exports found */
  29255. /***/ (function(module, exports) {
  29256. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAu4AAADYCAYAAAC0oWZTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo4NjM5NGZmZS0xNzY5LTNhNDYtYTgwZC05NTNmZjY0MDY5OGQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODVFQUQ1NzIzOTI5MTFFRjhCNDBDMjREMDQ3MTY3NjIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODVFQUQ1NzEzOTI5MTFFRjhCNDBDMjREMDQ3MTY3NjIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDFmNjNlNzEtN2E2NC1jMDQ5LWI2NGUtYTQzMDc0NWNkOTA0IiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6ODUxZjIwOGUtNmU1Zi1kNTQwLTgxZTUtZDFmZmQ4NTg2ZWQwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+6091egAABwRJREFUeNrs3T9oXWUcx+HzilUHnQRHEYc61A4Vt+rsoCIiddNZwS6lbnVQqINWxL/tqC5CKi4m+G8zokNFSVuLrcVEu7VGKgZt0sb4e7kvJW1jk3vuueeeJM8DX0Q0MXnPSfwYk5P06DdvLFUDSA38HWt50VQ1LTX1VtZ8z1Nfx5QafIvSsN631NqdUV6+/mtIqf4VTI2cW38XPLV8X6eaH4ip+ZNY/TWkYd5zfd5labV/Tmr04yHVuCCppXs+1fwkXucqpoE+B9T96Gr44zA1816mwa9U368wNXYla9z5acDPH22/7anZfxun1t7juvdDk/XSSo0NI76avALVDRUAANB5wh0AAIQ7AAAg3AEAQLgDAADCHQAAEO4AACDcAQAA4Q4AAAh3AAAQ7gAAgHAHAADhDgAACHcAAEC4AwCAcAcAAIQ7AAAg3AEAQLgDAADCHQAAEO4AACDcAQAA4Q4AAMIdAAAQ7gAAgHAHAADhDgAACHcAAEC4AwCAcAcAAIQ7AAAIdwAAQLgDAADCHQAAhDsAACDcAQAA4Q4AAMIdAAAQ7gAAgHAHAADhDgAACHcAABDuAACAcAcAAIQ7AAAIdwAAQLgDAADCHQAAhDsAACDcAQBAuAMAAMIdAAAQ7gAAINwBAADhDgAACHcAABDuAACAcAcAAIQ7AAAIdwAAQLgDAIBwBwAAhDsAACDcAQBAuAMAAMIdAAAQ7gAAINwBAADhDgAAwh0AABDuAACAcAcAAOEOAAAIdwAAQLgDAIBwBwAAhDsAACDcAQBAuAMAAMIdAACEOwAAINwBAADhDgAAwh0AABDuAACAcAcAAOEOAAAIdwAAEO4AAIBwBwAAhDsAAAh3AABAuAMAAMIdAACEOwAAINwBAADhDgAAwh0AABDuAAAg3AEAAOEOAAAIdwAAEO4AAIBwBwAAhDsAAAh3AABAuAMAgHAHAACEOwAAINwBAEC4AwAAwh0AABDuAAAg3AEAAOEOAAAIdwAAEO4AAIBwBwAA4Q4AAAh3AABAuAMAgHAHAACEOwAAINwBAEC4AwAAwh0AAIQ7AAAg3AEAAOEOAADCHQAAEO4AAIBwBwAA4Q4AAAh3AABAuAMAgHAHAACEOwAACHcAAEC4AwAAwh0AAIQ7AAAg3AEAAOEOAADCHQAAEO4AACDcAQAA4Q4AAAh3AAAQ7gAAgHAHAACEOwAACHcAAEC4AwAAwh0AAIQ7AAAg3AEAQLgDAADCHQAAEO4AACDcAQAA4Q4AAAh3AAAQ7gAAgHAHAADhDgAACHcAAEC4AwCAcAcAAIQ7AAAg3AEAYIO4sYNv04XY8dix2MnYTOy32GzZfGzOpQMAYAC3xm6O3V52Z+yu2D2x7bF7Y7cI9ystxL6OfR6bjH0Xu+heAgBgiObKZsuff3vVX98Suz/2YOyh2AOxmzZjuOcwn4iNxcZjf7l3AADokIsl5vNeid0WeyS2q/xxy0YP919iB2MfxM66HwAAWCfyF5o/LLsj9nTs2djdbb0Bbf1w6lTsydjW2AHRDgDAOna2NO3W0rhHN0K4n656/zthR+xwbNF1BgBgg1gsjbujBPzp9Rju+Rv998a2xT6KLbmuAABsUP+WgN9WGngoT0AcRrh/WvUeofNa1XtiDAAAbAYLpYG3lybubLjnn7zdE3u46j17HQAANqOZ0sR7qgYfc95UuE/HdsZer3xbDAAALJU23llauRPhnp/Hfl/siOsDAABXOFJaeWLU4f5O7LHYedcEAABWdL4089ujCvcXYs9VHvEIAACryc28O7av7iuo+5tTn696D50HAADWbn9sPvZqvy9Y5yvu+0Q7AADUdqCq8ZX3fsP9YPmvBAAAoL79pa2HEu6fVL3vywEAAAa3uzR2o+F+KvZU5QdRAQCgKYulsU81Fe5/x56I/elsAQCgUbmxHy/NPXC4740dd6YAADAUJ0pzDxTun8UOOUsAABiqQ6W9a4X7XOyZ2JJzBACAoVoq7T1XJ9xfiv3qDAEAoBW5vV/sN9x/jr3p7AAAoFVvlRZfc7jn3+Q079wAAKBV89X//FbVlcL9aOywMwMAgJHILT61lnDPv37VD6QCAMBo5BZ/ebVwn4l97KwAAGCkcpNPXy/c341dck4AADBSl0qbrxjuC7H3nBEAAHTC+6XRrwn3idg55wMAAJ1wrjT6NeE+5mwAAKBTxq4O9/y8yHHnAgAAnTJeWv1yuE/G5pwLAAB0Sm70r5aH+xfOBAAAOunL5eE+6TwAAKCTLn/F/ULse+cBAACd9EPsnxzuP1bLng8JAAB0Sm71EzncjzkLAADotKkc7j85BwAA6LSTOdynnQMAAHTaTA73M84BAAA67UwO99+dAwAAdNpsDvc/nAMAAHQ/3D0KEgAAum3hPwEGAGvHqUOMx8+1AAAAAElFTkSuQmCC"
  29257. /***/ }),
  29258. /* 293 */,
  29259. /* 294 */,
  29260. /* 295 */,
  29261. /* 296 */,
  29262. /* 297 */,
  29263. /* 298 */,
  29264. /* 299 */,
  29265. /* 300 */,
  29266. /* 301 */,
  29267. /* 302 */,
  29268. /* 303 */,
  29269. /* 304 */,
  29270. /* 305 */,
  29271. /* 306 */,
  29272. /* 307 */,
  29273. /* 308 */,
  29274. /* 309 */,
  29275. /* 310 */,
  29276. /* 311 */
  29277. /*!**********************************************************!*\
  29278. !*** D:/SWS_New/sws_new/wxcomponents/vant/icon/index.js ***!
  29279. \**********************************************************/
  29280. /*! no static exports found */
  29281. /***/ (function(module, exports, __webpack_require__) {
  29282. "use strict";
  29283. var _component = __webpack_require__(/*! ../common/component */ 312);
  29284. (0, _component.VantComponent)({
  29285. props: {
  29286. info: null,
  29287. name: String,
  29288. size: String,
  29289. color: String,
  29290. customStyle: String,
  29291. classPrefix: {
  29292. type: String,
  29293. value: 'van-icon'
  29294. }
  29295. },
  29296. methods: {
  29297. onClick: function onClick() {
  29298. this.$emit('click');
  29299. }
  29300. }
  29301. });
  29302. /***/ }),
  29303. /* 312 */
  29304. /*!****************************************************************!*\
  29305. !*** D:/SWS_New/sws_new/wxcomponents/vant/common/component.js ***!
  29306. \****************************************************************/
  29307. /*! no static exports found */
  29308. /***/ (function(module, exports, __webpack_require__) {
  29309. "use strict";
  29310. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  29311. Object.defineProperty(exports, "__esModule", {
  29312. value: true
  29313. });
  29314. exports.VantComponent = VantComponent;
  29315. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  29316. var _basic = __webpack_require__(/*! ../mixins/basic */ 313);
  29317. var _index = __webpack_require__(/*! ../mixins/observer/index */ 314);
  29318. function mapKeys(source, target, map) {
  29319. Object.keys(map).forEach(function (key) {
  29320. if (source[key]) {
  29321. target[map[key]] = source[key];
  29322. }
  29323. });
  29324. }
  29325. function VantComponent() {
  29326. var vantOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  29327. var options = {};
  29328. mapKeys(vantOptions, options, {
  29329. data: 'data',
  29330. props: 'properties',
  29331. mixins: 'behaviors',
  29332. methods: 'methods',
  29333. beforeCreate: 'created',
  29334. created: 'attached',
  29335. mounted: 'ready',
  29336. relations: 'relations',
  29337. destroyed: 'detached',
  29338. classes: 'externalClasses'
  29339. });
  29340. var relation = vantOptions.relation;
  29341. if (relation) {
  29342. options.relations = Object.assign(options.relations || {}, (0, _defineProperty2.default)({}, "../".concat(relation.name, "/index"), relation));
  29343. }
  29344. // add default externalClasses
  29345. options.externalClasses = options.externalClasses || [];
  29346. options.externalClasses.push('custom-class');
  29347. // add default behaviors
  29348. options.behaviors = options.behaviors || [];
  29349. options.behaviors.push(_basic.basic);
  29350. // map field to form-field behavior
  29351. if (vantOptions.field) {
  29352. options.behaviors.push('wx://form-field');
  29353. }
  29354. // add default options
  29355. options.options = {
  29356. multipleSlots: true,
  29357. addGlobalClass: true
  29358. };
  29359. (0, _index.observe)(vantOptions, options);
  29360. Component(options);
  29361. }
  29362. /***/ }),
  29363. /* 313 */
  29364. /*!************************************************************!*\
  29365. !*** D:/SWS_New/sws_new/wxcomponents/vant/mixins/basic.js ***!
  29366. \************************************************************/
  29367. /*! no static exports found */
  29368. /***/ (function(module, exports, __webpack_require__) {
  29369. "use strict";
  29370. /* WEBPACK VAR INJECTION */(function(wx) {
  29371. Object.defineProperty(exports, "__esModule", {
  29372. value: true
  29373. });
  29374. exports.basic = void 0;
  29375. var basic = Behavior({
  29376. methods: {
  29377. $emit: function $emit() {
  29378. this.triggerEvent.apply(this, arguments);
  29379. },
  29380. getRect: function getRect(selector, all) {
  29381. var _this = this;
  29382. return new Promise(function (resolve) {
  29383. wx.createSelectorQuery().in(_this)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  29384. if (all && Array.isArray(rect) && rect.length) {
  29385. resolve(rect);
  29386. }
  29387. if (!all && rect) {
  29388. resolve(rect);
  29389. }
  29390. }).exec();
  29391. });
  29392. }
  29393. }
  29394. });
  29395. exports.basic = basic;
  29396. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  29397. /***/ }),
  29398. /* 314 */
  29399. /*!*********************************************************************!*\
  29400. !*** D:/SWS_New/sws_new/wxcomponents/vant/mixins/observer/index.js ***!
  29401. \*********************************************************************/
  29402. /*! no static exports found */
  29403. /***/ (function(module, exports, __webpack_require__) {
  29404. "use strict";
  29405. Object.defineProperty(exports, "__esModule", {
  29406. value: true
  29407. });
  29408. exports.observe = observe;
  29409. var _behavior = __webpack_require__(/*! ./behavior */ 315);
  29410. var _props = __webpack_require__(/*! ./props */ 316);
  29411. function observe(vantOptions, options) {
  29412. var watch = vantOptions.watch,
  29413. computed = vantOptions.computed;
  29414. options.behaviors.push(_behavior.behavior);
  29415. if (watch) {
  29416. var props = options.properties || {};
  29417. Object.keys(watch).forEach(function (key) {
  29418. if (key in props) {
  29419. var prop = props[key];
  29420. if (prop === null || !('type' in prop)) {
  29421. prop = {
  29422. type: prop
  29423. };
  29424. }
  29425. prop.observer = watch[key];
  29426. props[key] = prop;
  29427. }
  29428. });
  29429. options.properties = props;
  29430. }
  29431. if (computed) {
  29432. options.methods = options.methods || {};
  29433. options.methods.$options = function () {
  29434. return vantOptions;
  29435. };
  29436. if (options.properties) {
  29437. (0, _props.observeProps)(options.properties);
  29438. }
  29439. }
  29440. }
  29441. /***/ }),
  29442. /* 315 */
  29443. /*!************************************************************************!*\
  29444. !*** D:/SWS_New/sws_new/wxcomponents/vant/mixins/observer/behavior.js ***!
  29445. \************************************************************************/
  29446. /*! no static exports found */
  29447. /***/ (function(module, exports, __webpack_require__) {
  29448. "use strict";
  29449. Object.defineProperty(exports, "__esModule", {
  29450. value: true
  29451. });
  29452. exports.behavior = void 0;
  29453. function setAsync(context, data) {
  29454. return new Promise(function (resolve) {
  29455. context.setData(data, resolve);
  29456. });
  29457. }
  29458. var behavior = Behavior({
  29459. created: function created() {
  29460. var _this = this;
  29461. if (!this.$options) {
  29462. return;
  29463. }
  29464. var cache = {};
  29465. var _this$$options = this.$options(),
  29466. computed = _this$$options.computed;
  29467. var keys = Object.keys(computed);
  29468. this.calcComputed = function () {
  29469. var needUpdate = {};
  29470. keys.forEach(function (key) {
  29471. var value = computed[key].call(_this);
  29472. if (cache[key] !== value) {
  29473. cache[key] = value;
  29474. needUpdate[key] = value;
  29475. }
  29476. });
  29477. return needUpdate;
  29478. };
  29479. },
  29480. attached: function attached() {
  29481. this.set();
  29482. },
  29483. methods: {
  29484. // set data and set computed data
  29485. set: function set(data, callback) {
  29486. var _this2 = this;
  29487. var stack = [];
  29488. if (data) {
  29489. stack.push(setAsync(this, data));
  29490. }
  29491. if (this.calcComputed) {
  29492. stack.push(setAsync(this, this.calcComputed()));
  29493. }
  29494. return Promise.all(stack).then(function (res) {
  29495. if (callback && typeof callback === 'function') {
  29496. callback.call(_this2);
  29497. }
  29498. return res;
  29499. });
  29500. }
  29501. }
  29502. });
  29503. exports.behavior = behavior;
  29504. /***/ }),
  29505. /* 316 */
  29506. /*!*********************************************************************!*\
  29507. !*** D:/SWS_New/sws_new/wxcomponents/vant/mixins/observer/props.js ***!
  29508. \*********************************************************************/
  29509. /*! no static exports found */
  29510. /***/ (function(module, exports, __webpack_require__) {
  29511. "use strict";
  29512. Object.defineProperty(exports, "__esModule", {
  29513. value: true
  29514. });
  29515. exports.observeProps = observeProps;
  29516. function observeProps(props) {
  29517. if (!props) {
  29518. return;
  29519. }
  29520. Object.keys(props).forEach(function (key) {
  29521. var prop = props[key];
  29522. if (prop === null || !('type' in prop)) {
  29523. prop = {
  29524. type: prop
  29525. };
  29526. }
  29527. var _prop = prop,
  29528. observer = _prop.observer;
  29529. prop.observer = function () {
  29530. if (observer) {
  29531. if (typeof observer === 'string') {
  29532. observer = this[observer];
  29533. }
  29534. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  29535. args[_key] = arguments[_key];
  29536. }
  29537. observer.apply(this, args);
  29538. }
  29539. this.set();
  29540. };
  29541. props[key] = prop;
  29542. });
  29543. }
  29544. /***/ }),
  29545. /* 317 */,
  29546. /* 318 */,
  29547. /* 319 */,
  29548. /* 320 */,
  29549. /* 321 */,
  29550. /* 322 */,
  29551. /* 323 */,
  29552. /* 324 */,
  29553. /* 325 */,
  29554. /* 326 */,
  29555. /* 327 */
  29556. /*!*************************************************!*\
  29557. !*** D:/SWS_New/sws_new/utils/validateIdent.js ***!
  29558. \*************************************************/
  29559. /*! no static exports found */
  29560. /***/ (function(module, exports, __webpack_require__) {
  29561. "use strict";
  29562. Object.defineProperty(exports, "__esModule", {
  29563. value: true
  29564. });
  29565. exports.default = void 0;
  29566. var validateIdent = {
  29567. aIdentityCode_City: {
  29568. // 城市代码列表
  29569. 11: "北京",
  29570. 12: "天津",
  29571. 13: "河北",
  29572. 14: "山西",
  29573. 15: "内蒙古",
  29574. 21: "辽宁",
  29575. 22: "吉林",
  29576. 23: "黑龙江 ",
  29577. 31: "上海",
  29578. 32: "江苏",
  29579. 33: "浙江",
  29580. 34: "安徽",
  29581. 35: "福建",
  29582. 36: "江西",
  29583. 37: "山东",
  29584. 41: "河南",
  29585. 42: "湖北 ",
  29586. 43: "湖南",
  29587. 44: "广东",
  29588. 45: "广西",
  29589. 46: "海南",
  29590. 50: "重庆",
  29591. 51: "四川",
  29592. 52: "贵州",
  29593. 53: "云南",
  29594. 54: "西藏 ",
  29595. 61: "陕西",
  29596. 62: "甘肃",
  29597. 63: "青海",
  29598. 64: "宁夏",
  29599. 65: "新疆",
  29600. 71: "台湾",
  29601. 81: "香港",
  29602. 82: "澳门",
  29603. 91: "国外 "
  29604. },
  29605. IdentityCode_isCardNo: function IdentityCode_isCardNo(card) {
  29606. //检查号码是否符合规范,包括长度,类型
  29607. var reg = /(^\d{15}$)|(^\d{17}(\d|X)$)/; //身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X
  29608. if (reg.test(card) === false) {
  29609. return false;
  29610. }
  29611. return true;
  29612. },
  29613. IdentityCode_checkProvince: function IdentityCode_checkProvince(card) {
  29614. //取身份证前两位,校验省份
  29615. var province = card.substr(0, 2);
  29616. if (validateIdent.aIdentityCode_City[province] == undefined) {
  29617. return false;
  29618. }
  29619. return true;
  29620. },
  29621. IdentityCode_checkBirthday: function IdentityCode_checkBirthday(card) {
  29622. //检查生日是否正确,15位以'19'年份来进行补齐。
  29623. var len = card.length;
  29624. //身份证15位时,次序为省(3位)市(3位)年(2位)月(2位)日(2位)校验位(3位),皆为数字
  29625. if (len == '15') {
  29626. var re_fifteen = /^(\d{6})(\d{2})(\d{2})(\d{2})(\d{3})$/;
  29627. var arr_data = card.match(re_fifteen); // 正则取号码内所含出年月日数据
  29628. var year = arr_data[2];
  29629. var month = arr_data[3];
  29630. var day = arr_data[4];
  29631. var birthday = new Date('19' + year + '/' + month + '/' + day);
  29632. return validateIdent.IdentityCode_verifyBirthday('19' + year, month, day, birthday);
  29633. }
  29634. //身份证18位时,次序为省(3位)市(3位)年(4位)月(2位)日(2位)校验位(4位),校验位末尾可能为X
  29635. if (len == '18') {
  29636. var re_eighteen = /^(\d{6})(\d{4})(\d{2})(\d{2})(\d{3})([0-9]|X)$/;
  29637. var arr_data = card.match(re_eighteen); // 正则取号码内所含出年月日数据
  29638. var year = arr_data[2];
  29639. var month = arr_data[3];
  29640. var day = arr_data[4];
  29641. var birthday = new Date(year + '/' + month + '/' + day);
  29642. return validateIdent.IdentityCode_verifyBirthday(year, month, day, birthday);
  29643. }
  29644. return false;
  29645. },
  29646. IdentityCode_verifyBirthday: function IdentityCode_verifyBirthday(year, month, day, birthday) {
  29647. //校验日期 ,15位以'19'年份来进行补齐。
  29648. var now = new Date();
  29649. var now_year = now.getFullYear();
  29650. //年月日是否合理
  29651. if (birthday.getFullYear() == year && birthday.getMonth() + 1 == month && birthday.getDate() == day) {
  29652. //判断年份的范围(3岁到150岁之间)
  29653. var time = now_year - year;
  29654. if (time >= 3 && time <= 150) {
  29655. return true;
  29656. }
  29657. return false;
  29658. }
  29659. return false;
  29660. },
  29661. IdentityCode_checkParity: function IdentityCode_checkParity(card) {
  29662. //校验位的检测
  29663. card = validateIdent.IdentityCode_changeFivteenToEighteen(card); // 15位转18位
  29664. var len = card.length;
  29665. if (len == '18') {
  29666. var arrInt = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2);
  29667. var arrCh = new Array('1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2');
  29668. var cardTemp = 0,
  29669. i,
  29670. valnum;
  29671. for (i = 0; i < 17; i++) {
  29672. cardTemp += card.substr(i, 1) * arrInt[i];
  29673. }
  29674. valnum = arrCh[cardTemp % 11];
  29675. if (valnum == card.substr(17, 1)) {
  29676. return true;
  29677. }
  29678. return false;
  29679. }
  29680. return false;
  29681. },
  29682. IdentityCode_changeFivteenToEighteen: function IdentityCode_changeFivteenToEighteen(card) {
  29683. //15位转18位身份证号
  29684. if (card.length == '15') {
  29685. var arrInt = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2);
  29686. var arrCh = new Array('1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2');
  29687. var cardTemp = 0,
  29688. i;
  29689. card = card.substr(0, 6) + '19' + card.substr(6, card.length - 6);
  29690. for (i = 0; i < 17; i++) {
  29691. cardTemp += card.substr(i, 1) * arrInt[i];
  29692. }
  29693. card += arrCh[cardTemp % 11];
  29694. return card;
  29695. }
  29696. return card;
  29697. },
  29698. IdentityCodeValid: function IdentityCodeValid(card) {
  29699. // 身份证号码检验主入口
  29700. var pass = true;
  29701. var sex = '';
  29702. //是否为空
  29703. if (pass && card === '') pass = false;
  29704. //校验长度,类型
  29705. if (pass && validateIdent.IdentityCode_isCardNo(card) === false) pass = false;
  29706. //检查省份
  29707. if (pass && validateIdent.IdentityCode_checkProvince(card) === false) pass = false;
  29708. //校验生日
  29709. if (pass && validateIdent.IdentityCode_checkBirthday(card) === false) pass = false;
  29710. //检验位的检测
  29711. if (pass && validateIdent.IdentityCode_checkParity(card) === false) pass = false;
  29712. if (pass) {
  29713. var iCard = validateIdent.IdentityCode_changeFivteenToEighteen(card);
  29714. if (parseInt(iCard.charAt(16)) % 2 == 0) {
  29715. sex = "0"; // 女生
  29716. } else {
  29717. sex = "1"; // 男生
  29718. }
  29719. return true;
  29720. } else {
  29721. return false;
  29722. }
  29723. }
  29724. };
  29725. var _default = validateIdent.IdentityCodeValid; //导出
  29726. exports.default = _default;
  29727. /***/ }),
  29728. /* 328 */
  29729. /*!***************************************************!*\
  29730. !*** D:/SWS_New/sws_new/mixins/SendVerifyCode.js ***!
  29731. \***************************************************/
  29732. /*! no static exports found */
  29733. /***/ (function(module, exports, __webpack_require__) {
  29734. "use strict";
  29735. Object.defineProperty(exports, "__esModule", {
  29736. value: true
  29737. });
  29738. exports.default = void 0;
  29739. var _default = {
  29740. data: function data() {
  29741. return {
  29742. disabled: false,
  29743. text: "获取验证码"
  29744. };
  29745. },
  29746. methods: {
  29747. sendCode: function sendCode() {
  29748. var _this = this;
  29749. if (this.disabled) return;
  29750. this.disabled = true;
  29751. var n = 60;
  29752. this.text = "剩余 " + n + "s";
  29753. var run = setInterval(function () {
  29754. n = n - 1;
  29755. if (n < 0) {
  29756. clearInterval(run);
  29757. }
  29758. _this.text = "剩余 " + n + "s";
  29759. if (_this.text < "剩余 " + 0 + "s") {
  29760. _this.disabled = false;
  29761. _this.text = "重新获取";
  29762. }
  29763. }, 1000);
  29764. }
  29765. }
  29766. };
  29767. exports.default = _default;
  29768. /***/ }),
  29769. /* 329 */,
  29770. /* 330 */,
  29771. /* 331 */,
  29772. /* 332 */,
  29773. /* 333 */,
  29774. /* 334 */,
  29775. /* 335 */,
  29776. /* 336 */,
  29777. /* 337 */,
  29778. /* 338 */,
  29779. /* 339 */,
  29780. /* 340 */,
  29781. /* 341 */,
  29782. /* 342 */,
  29783. /* 343 */,
  29784. /* 344 */,
  29785. /* 345 */,
  29786. /* 346 */,
  29787. /* 347 */,
  29788. /* 348 */,
  29789. /* 349 */,
  29790. /* 350 */,
  29791. /* 351 */,
  29792. /* 352 */,
  29793. /* 353 */
  29794. /*!****************************************************!*\
  29795. !*** D:/SWS_New/sws_new/static/images/app1new.png ***!
  29796. \****************************************************/
  29797. /*! no static exports found */
  29798. /***/ (function(module, exports) {
  29799. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAAB8CAMAAACcwCSMAAADI2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDFCQjEwQjE0N0Y1MTFFRDk5NTg5MEM0RTUwMzY4NEEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDFCQjEwQjI0N0Y1MTFFRDk5NTg5MEM0RTUwMzY4NEEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpEMUJCMTBBRjQ3RjUxMUVEOTk1ODkwQzRFNTAzNjg0QSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpEMUJCMTBCMDQ3RjUxMUVEOTk1ODkwQzRFNTAzNjg0QSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PsPVx8oAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAAM1BMVEVHcExDy/9Cuv9Dxv8XgPU5s/1Avv8QdvMQd/QRefRCv/9Ct//1/P9+1P+T2/+x5f/U8f+MQJntAAAACnRSTlMA////QYrVChgq9H20/QAABx9JREFUaN7tm9mipCgMhlsQBRyX93/aAQIkAVTKsmZuOtouLPnyh1hz5pzyz5+/9teubPb7+eb3H3Fnv/fYuzH0Ugl9fpdsRqWmSQ4XNk2TUqN+S38k61FNQ7dNMYAv8cAePwDnAMbv5ANZqwdo0K+/onu0HJ7bUzzIfqoa1T/JfWCbL9EBbzz9c7YaXjEQ/+lqDy+Z0h/gX0s5T/38v7A/Wnj/sSKHd23s0x4+xt9mD0OXdp/0d3P+QeZ9nf+A7ei3NT+/+ozVT9ytcM+WP6PPPcUm/f5uDPJ62asFl0OMQcZsSExLKzJJhyQVsmfZfaH7BS9m42QShuT3cigiY5NlGnC17I7thMs6cFn4Z/0sEJkjGsh1CvBceq50Wbiq/A+0D8PhomWdrivpUG2ymJwaUKikSyulrKQXaaCRGt2Wnn5oAndyoCffCNxwn9UAgwQAEUq65JJmT53CdSh1if7glEKA6yH3SHZKOcC77IH4nHSLHkp9TO6Y6IE1yFy/mJwhtlMol5CzMzZXPTzjkvhCZXJgaWAdRazsUrLAk/RGwXu2kSzM7Atb8DxQfRgriaol3Zmupbus61lVPnAS11pkRvJ0DXwqr4pWyflyU6XDIoh7a4ELFaqWPodav6YN635mx+r6XffQiocF1Kp3WPJLoevxz7m5mas/r7e5GUwLbsbLWesF+sD+W3q96HNe8lPrY3fQ60X3WVeX693JvqUPqlz0VG/ntt+zD1z/K5tq5fopHNlJ/nGt3MF1pdw8gmf2jsm/Vm5NlXatjXUdoTcOYqf9br13fCQyBqfnc4Az5WHJDZ0RowgX9hwe5R7peoeKs5SJmqI/U6Xdwy0L1pJMSbs7At3CwfEssOEuDFrzHCqX5L0Nl4iPknO0wS/d/QF0F0GtFEs84GWPcsmVO895hy2wD84+Us5tIZ2speEP+pzgTDkV7uBIhwOw8224COxdtv0k/knabc1NKdsPjj7Ceh8MDeu9H7LikTxUaSfK7UkE25EMJO42sYkF3cdR+oC7fHOy5taPyKPgxsLsjWN2116zY4Zk9GItJjN5S8/5XH3I+C6IMZlMUW997DAsQjAG4s0dm2m3KTc2q8eYER60hZzvBTuFmJ0QdMq5rT7hsnI6jkbrJe1xc7vjDHCF22BtGiSpFxSUfLbhDMuFe+UIcg3+tBH4iuyDZFuyyiHKy+e8qTyFv7mfEtPuVly6iy0cYQ/sPbBDN000riWcTpTT5LD1D54z3ZH8D7LSRnrMebj0DbzMJFXhD+2CozCarqg82wqxBE2pAQYAvko5j+NCeVmm0Sg8MWVsXqt+S59YXsD25DmvyVilKxMOd9ua2ez/J+rQmdOT59y2p53BwYaSvdtru097Dd/SFrKdt5V3uu0X8OycwlfJ+8LWA59baT+Fb1SrW+xtA3LoYuztfeUBB+ZLY11TLa9AzLZ/CO9T7v2CYt8goHlF5pZieEu5iLtYiTagUzK3NAfP2Zk/nDznaUK4EPEK/hWcdT0jOxMWgcmBuEm7IFrjZQ5BlCjPXrd2AESzsNxdVl6mHQfjlk8etMIOhy3SGxudKYiv2NaETyKrFjlZ8bBc0opN4FoLi9TYujSfcweHFAs4pD3MWYOhfJIE3ONJBLM0kcEPJGA6UW4FpVqRjr7awXVmxEM+IzqmPc8l4HBqwxWOFEiOniQDZjxvjZYkCEHXPeHVGTwLt5gFcGHXfrPEUbbsSV0op0YSL9D31iRia+GiXMIGfNZmzKsjWMxws/Ro9hFIvsiVnLH1a5FY7uLMFtmV86VJRPP1psvfAmrTyDsulacv4sKgM485EWHrJY8PuhL/gSmj699/umSM/wF7MS3lPu/T7+GTaf3WWT/N+9K4Oh27qLre4pPeJX0JW11qXVOnOusZrnrIHLk0wrkqN9P4SwPQx+VOA2FF4oKt99JHo3X7T1te+gKeUN+yMMkL2eAUr8LAJecC5sEN9PiBqpn1+AlrxgmnJ1ELkZr8ZHeCB5Kn0YTAcG+jMad/zgzSwciMoAJaYhfpzIPLS4G7SNODcN344kTMu5mWpem1uhdXA5vmSv3sT9hR+rj8zEbTLDcifVS/YitzUm5EOk/8a2ZVFP7n/EsToeJ/AZ8ukk6l/4Lu2RfC4Vt4Qfr4k2K7Fo5F97r2zJ4vvwynf0CfxtG0/lPakv42PbDvhNMPuvG9511l3V1fBQTt6i226WXHpx3ET++lXHd++ZTQ1Zf4KaQ8PWQd9Bnp3+aeoru/650+aD39uXqHjuyPv+ys9Vf46Rm6KDszBv4nAfhXOiL6CZvjPT0EoKabEPyrJAEM5Ifo/A4J5/daRuunr9RkOuD7AjARHMhfvc1C8CmALtPfoxGfA9C9XCB//woR5SczrR1tfgud8HUELZsTeH7vtbEH74y9/7bc/8FtvCnY3sla/bW/1rJ/AUYmMYzATFzIAAAAAElFTkSuQmCC"
  29800. /***/ }),
  29801. /* 354 */
  29802. /*!****************************************************!*\
  29803. !*** D:/SWS_New/sws_new/static/images/app3new.png ***!
  29804. \****************************************************/
  29805. /*! no static exports found */
  29806. /***/ (function(module, exports) {
  29807. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAAB8CAMAAACcwCSMAAADI2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6M0ZCNDk5Qjg0N0Y2MTFFRDk5NTg5MEM0RTUwMzY4NEEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6M0ZCNDk5Qjk0N0Y2MTFFRDk5NTg5MEM0RTUwMzY4NEEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpEMUJCMTBCNzQ3RjUxMUVEOTk1ODkwQzRFNTAzNjg0QSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpEMUJCMTBCODQ3RjUxMUVEOTk1ODkwQzRFNTAzNjg0QSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pjn58h4AAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAAP1BMVEVHcEz/f2H/aGP/YWL6MzD6QDj+aFf5MS/6MS/6MzD/iWX/eWT/cGP/j2X/gWT/lGb/l2f/taP/8u7/3dT/ybqSg1CpAAAACnRSTlMA1///PVyhCRUm7QJo8QAAB91JREFUaN7tm+uas6wOhsdtFRWl4/kf6wISkoC4a53vx7re6ChiyJ0nWNvpjD8//+yf7dnLLafm3R4H37LnEmByd26P8gO56/qmaYtiObKiKNqm6UMKX/IR3XWWu1w2mwHyv8AD2pGX24b8T+mI7pti+cgKW/+P1YPqdvnC2s/Ue9m24MXylRUfFR8q/iXa4/u7dLzO5t2Q8w38PfFQ8r4NiFkg59mubh8W0d6khMctiL8u3JYcwmJ0xPDe05iPZ0J6OHSOSn+R3XV1AaPZGABk6uQO6lvkEEev4UV3bb5rVENgosxx6I0tcWNB9fWVeX+B7vlRY/q1+X7crsz7Hns6OT60yYkv+pN5xzuqc59mXAPKdU3THBbciCYNiZbQPcO99ud1fKE3yJuYyXuR1cRJ8VmRQTIE7zaHNe9qqW6KuDLcFFbfFryQE1WGCjbXB3R/pffFJGye9gyCgsMs/OZ4T9W3zeNp90WPZ2yadxYizBGELos4JazOQeH9B7ViumXzHZ956vfo8G5yKdzH5t9jcle8Fz79qe1KR+F/bCB9d8ZV7K3CVkFTxacUd6nNySmJpiZ3l83cZuGDKrjIZaItoeQp2RdSpDSV7MHeJifdC2+Vd1I+oPItt/F7Fc4pDBUICkfgIJEGjoJDOD23mVmHX4g4UUXpworjYy0iE0yR0+MkhAB3nLvkfNV5mIwn8lEpMnWKlygaxJib7XsrVl2EjyvOkyBEyzNTcpzr90eZujvhfbEZfmZTJvomQORhr/f0kvPXeq3+zCS/3sI7mPK/t6lJ6x5eaP+FtRl4H+A6cQ7H2qy/l2w1URgdx7R32LjuL7zeNHhpWnijlXlfNsOjEC1Cbq44V3W82DVLDVn7ruX9vk1nJSEowV8buHXTarv4zXoHvuqkbrSx295NenK91eAIblpzxtA29+AKQmhia9rV8RWHcPSnEWgw+jacoHESSufhivJlqtKfKU9S16xMnyjXkXKwD8qudFS/EHcL7xGeMwXw37dbL9ivVL61e3Ad4HbBdV1XbK9GLND1/j2B97fhv29ajKvF7FFG64F8huD0uPJf0m2ApN3tltCwhxvs29xXPmAIvx/CIf4YvneHM8oeGEF2ymFuVuobKLUhBN1Rji7xENw5+NvDF3I0/m2Ejd55TCRgEFnY/e6cD1GSnjxABytXtg9Omb03NqNFGZ33MLD8rPJhGNCT6Z7s+wQ8xDuAD+TDkULkrHIJZek4PoH7ZTyA50MdKEepA5gOO43KV1yCwzAs0GPog0JwMRQFG1pE3FE+ME8nI51KCPy7UEbQtw5s3mHlsuuIDB27c84ZJ+3BoKp1NYxafZcY4RwAvm/HynM2mtWj1nVRzDK+l8q+GPQ5gXc34VY5oOOUhmVdMSta3VXwrPLSa9xGhYqk9rRykLidDv0BPKt83F9QoQ5OdMbB+f7K8MRNNPPKx2g2BzyG1rgg3EcRrnq1N/IRDa8AY8RYEfB4zmOxMu0SPi0EBewzrAadXQd+qrivHEMQGLd+lBNli2rmEfvJ0/ZrjD6gk10xSpCAR7DPKh/HWHRA+EGlcYLsS3oMIWFVvt+Yxa8rOBkTqaAdDDpQjvkKPCxLqGhi2LfykWuWUnn0s6s8lIYVk5UIWLdwE/CU27qMI1dIpuB2eeVkmRFWOVMkOMkJExhZwEbH3pznfMEqiZIyo1ToIB9kQHjmN5ZiPLIlKfWudtdaDgIV2bJfh5/bfpyyyCpvD+HDHbY+CNRehZefSV+igXGwMg9v7OlyjNbRd+GirqIVBSjTlt00CRy+FmkwvXIcxRjRrrzhbtfkINkIYprka5HwWiudp934H2SXpciIwlJVZFWRVgqhJcfDWOnLHJXXLbrwwDCsjFtjsg/plhxAeIyRX1sn30bB93AeziG3yzbaxpHSSDp5abfK/RVXJxrRxrCNhKbiow45SjbtT11nv3u1t5mIy3HHFCmDRkiZ7yYJZ0Xdb75wh7o3MlqiPG1yilHXKLtSd/vT1Pnv233dL9mYzeaCu6963+X+zFHbS+4p28mq3U75pu5/Zpmqhz9tPSk9Z1UQ/sr8UQ+lV+yd31R0tpLePLY6Ep7/k2LvpYfhFUQOG9nks3QmLNJbxIBdm7vcqO6WXlCUWBCrrmKdMokoQ1kK313sCSfpDUe5uuS7t2ebHeEsvWmroKUKIeBttIz6SmyWFfpU3Kp4mJgGKPru/y2A9JbemWWQEL/kd3SRCeutZIPf/C2bhB9Ir5siKZzII+ZtOQlfpFU0R8Lp5WanPfnIUnI9o88xZVRhAawq2fB2xqbCN0zawsoobFltW1WVnLf+lp1+itiT3kSxzj615T/KRa2GhR9JJ3oaqqx2+sozR6v7pOjJRWevusesONed0tun2C2wL/0roIM/SW9Z9wn8xdqfKb0v+TXdQXugt4/IDrov/MvxS2r/Dg9oz+6u/rszav8Wb9Gh5Bf/4Ve+3h3d4z+Y+wLRxL71P+Ys3vNv6W8dmWXfZNPEe/G1D2UTOC9B0TLYo2+VfCseio8JXLO6YTTIft2GR3gqwBVuhP7saZLwxFAvEsA0cquwPkJ/+iyLxNsE4hQy1gO3p+eYPkTDOH5gqr9s3bdokUH0vFbvkug2C6zxs1vPPDcWHp+CFE4eHHuFR7aefFzudeOBuScf1ntdfVDw5/X8Q4L/7P/L/gcH0Mne2q3ZZgAAAABJRU5ErkJggg=="
  29808. /***/ }),
  29809. /* 355 */
  29810. /*!****************************************************!*\
  29811. !*** D:/SWS_New/sws_new/static/images/app2new.png ***!
  29812. \****************************************************/
  29813. /*! no static exports found */
  29814. /***/ (function(module, exports) {
  29815. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAAB8CAMAAACcwCSMAAADI2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDFCQjEwQjU0N0Y1MTFFRDk5NTg5MEM0RTUwMzY4NEEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDFCQjEwQjY0N0Y1MTFFRDk5NTg5MEM0RTUwMzY4NEEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpEMUJCMTBCMzQ3RjUxMUVEOTk1ODkwQzRFNTAzNjg0QSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpEMUJCMTBCNDQ3RjUxMUVEOTk1ODkwQzRFNTAzNjg0QSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgmRK3sAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAAPFBMVEVHcEz60Sj9rl36zDD7kBr7sjb7uz76jBj6jRj6jhj7xjn9tFT7wEL8u0v//vv/9+P+7cP95Kj81oD7y1cHoHY0AAAACnRSTlMA////U4vFCxoy94L5oQAABzBJREFUaN7tm2mbsyoMhqfiilK3//9fD0uABIJL68yHc73RUkSSO0+wnZlO/fn5Z/+sbJ3Zjne9/Qr3hj2YAgH3XV80ffJhvkf3fd00rRSvsolX2zZN3T+UQCDXTfu6bMIn8BXdsfv6Bthb+x0fVPeNeH1koum/oX+DtvYh3hf8G7RR74r/gex+aF9fWzv0N8V331c82k3xpuZ9374eshau++vs4TF2KP315RavB00MF0vfPc/29Is1f5h9Ubtjy9frV+gnr7ju0eucXvMnlX/4NcbQj7Tb9xb42fy4NYfS/cUmHF08kYKASOeXvCt6nA+9uIVsBKqOoHvsIg/bPSq8vdia1NkHCGFJKgInGNImruGsKXxfkO5fZQ4QolBG0pCKpAMiG5flwjvhOLDAUnGTrEY8lWQQhmGkKB3eVkXmrhsbBdFzEh5DmabpFd7o3IqL4BOYRBfKhe4eRoqEnsGxJN3AZdCIXaNvbL3aNAE8PdntqrPvc+7PAkHFBTQa8VAh9uX9fs+roKPMdIyvWen2NR5joOKSwahsfTubd1otPlPvzr3FW+FDPp/oIb3t7W0WBSN8H2BgpMPllpaO54vXtr6jLdt+MDc5bHLp7kepuGhyeSe2XnUVba7csO21fsnmd2bb5cTzusclP7FtWRaGrWuv7VIGGbyjS160neVGm/fzGNmiW+EaLmHPGrft71OTxFFIHMI1TS5dw831JuGRNs6Wc/gCKyu8EhTCPbUJ3L3KWyyTVf6+YNGfVy5TuCv75OckRYv5XIInPoRt9omFSykON0b5urKLznijMEzZBw3PZwYP22ZsKXf2iiv4u21Ifp8xwgfnFGZKdAwD2TsLkxA4SBQIZyBFSbmnAY9KuK48OvhAMa4pu6EnSz7IKDRM9Crcubd+jwlvM8u67npw9esO56hkVLcQakil+7LLFEmKbxF6M/saIbsdBLwvLwmAImVrHpTnLiTM7CiWtONxP6x3LgrVwytH68OYQBCNWSJ9RUnNueDUEjinnDOouNtn/VNMykn/kHOHMHoepaj8BD4DCFAavs8zGs3KXoB3nyiPZGubS+iN+beVJ/CJd5rknNgi5ZaOldynE/gEmww9umXw2S54Cud943BxzWEWZCBJmyvnLMbwYgMZuvyahyynJHs41nCjdOGpMBxjlLaC8kK1QyiL0JBly2xxp5Y58WQ2ds2RUN+QEf2anh1jx9fUZAuzw6mZcUvKyCqfJoK2h/7Z9UDcMmGTbo6XLqNf7PrdNuyah/N4Joy4I2DP6+5t8k+r+X3elh35yYTtIvNlRzInLDwMLEc2232JiqfoS+pQgKeljGCXh1fOgGePJzHklOVRXnM0E2cynSlfYzcB5kEKa16en8C3PMMtwE+trPzQjgAfw7ub8D0/tf+Zcu4d7hacWXOFNt+QQX1huY275GDLQ9DjQtndOdrSw3U537wbDhGfzSAPjwnanrIdf2h2T1jzshPlXqyioWBj19xNIPPCbsaV0n8gLGbfFV4Se3aHU2sSA6+acifYNW8jSykVe9DoJxM8AlQ4ac9BZpOKZyc00cdQLau8VWRi2nHKrW0qs82iV5MY4zmhgzZT3qVw1lZPODCOTKxN/lC0/2MYmivw9SK8bO4DoS75TObP4EPysUiv4bUaldmVa13PP9lz+zl7j7NDmNgzjzpRDpf76KaNwQENuM52xt6IP+3C0cB+IGSvuPF42zF+Qw83sJNcExmu0xbgjRo5omnC0YhWb6QLpIg731VjM7CfQA41nkp6KAwyhR5+gADTMGavGeWu7uATAmEEiuTD+QeTm0IOY0yFqXqoe/BUuOPRI9NXWSVQYmrMnKDqXQ6vxxRTNEW66tJE0x9Y5UT6eZwPjRNOpf+i1UPpv0sa3vwuuynBHb3SU8zDNdCOMFqFKBWZUeFhYhXpVzwbSbcQF9K3VURXaCDMiKOhh+bFrhfO/zNV01vqgaKTPFBocr7ENk1bYgfpdRq7qng5uUqSWj6/qktVh+/ImMJHv4oT48crjl2xXq5pysK9dF14iJA8wQFAA7+qSGekh1Wcaoo+HHxtAQrfMmgAjzEBnAROZmRO2gU/Eh6l1yHt5Akr9wekdzDk2H35WzqEHiNweVRVITnshApXh6J3R98JM/C6+so43cdFf5JeYPeHbPd/dEtvn0O3iN2dfRnvYTpin30PEega3zzDbuBau/IVzC5c8o+Id7Ivson278U3jj30V792i+nf4Q36jm5C/w7v0bfY/m3ei6+bD9a+tego+/L3rDPxd/lARrLvfL/da0f42txJcpqCvZckkof+XsmT0lt84F+2oUbo7ufnO/xwm4zQH9xJAncXRL7OYLjGBfSnsql4jQ8JnFsfyV/eQNSRBPrhKIvec4H8wM1TmH/JuqfI4WUf7hjr7M1h+Q4bumHrobvGbt4t9yv368Gdgn77o7sE/9n/yf4DsEhekO9RFbwAAAAASUVORK5CYII="
  29816. /***/ }),
  29817. /* 356 */
  29818. /*!****************************************************!*\
  29819. !*** D:/SWS_New/sws_new/static/images/app4new.png ***!
  29820. \****************************************************/
  29821. /*! no static exports found */
  29822. /***/ (function(module, exports) {
  29823. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAAB8CAMAAACcwCSMAAADI2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6M0ZCNDk5QkM0N0Y2MTFFRDk5NTg5MEM0RTUwMzY4NEEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6M0ZCNDk5QkQ0N0Y2MTFFRDk5NTg5MEM0RTUwMzY4NEEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDozRkI0OTlCQTQ3RjYxMUVEOTk1ODkwQzRFNTAzNjg0QSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDozRkI0OTlCQjQ3RjYxMUVEOTk1ODkwQzRFNTAzNjg0QSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PkeMh5wAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAAP1BMVEVHcEzRQ/PVS/Tyif/USfTgY/jcWvfRRPPSRfTSRfTvgv7ZU/bsfP3dXPfodPvhZfnlbPryqfz42fz77/z1wPzMb92mAAAACnRSTlMA////WsWPDyM8LdL+eQAAB9JJREFUaN7tm9uCoyAMhlfxiEc6vv+zLhACCYJi27mbYBUx5MsfaWd3pv7792d/dmW92a7ar3H73r7u7atJFDI5vv8qe2i6rhU31nZdM3yLH8CWq+7g1qN1CXxIB3bTlmCjBJrPbj+Qh068ad3wPt2y30d7/Bt8V3Dxodniv8UeW/GxtWP/kO9kS/ENax5W3sCHVnzJ2icLD1ba19hILxWub7cpuTTN7NwmBBzSt0OSfew0FmrvHVt6IvZtJu5Mhh1t3o1ctiHGQu2BHcdN8jBH7hZflyXaQfccJQ9dDpasAPSMT3QjsuS+27UG7jIcQmAcJBh/XVI+zsXbdb/me2B7mSEsMgTJSbAxQhQsQ7hWsOb19Y4qJljGSFzOGRZFmJ+zeeluoReakE/tesnjDf8dg8L3Fx+qXWbmTPYPLUyyhb8QPhtn3sIudzHX8OCPWenwz5Y4ZkzwsRLXZuZCAvgMuqx0zR6Mn31JH86OuGEcIKx5luyCc5ZkpnMzhyHzfrPCKS9FDRcJmV4ImdBsfCctvXfCPRTn4/TI3hnNS7f/Op/fNFnsmV7w9j0+/7bJ5HvdsMebmer1c2svdRNkSEjHqq+s0cN8/BTZy09Y55lMh539oOlP623QVTfubhq6+ziF7J+fg0xf55nT5zYh3az1ddXXufQVpum9vIcqBQmKlVbObsjX+9N6t59uo6dhFmFgXtUtW88CL+Xnh3hwanbjqe5GeLMSqD/g5Dv4C1wPSGOmkVamqknCO+dJiDgyB/jrsGv+pe2gq1+BpwrdEGKmUbv4ppuqDy3FnUzhUjbdl1x3M3hk4PPK+LQHK65Pw9cs/KWbvbGzrXEYNC3AX1552trEihvGS/huJBmG/ne5OwhhPnVwS5Q9Y9GKs8LHncEi9qr0Tf55OaGol5wrl6N2UzTIHsXb13PZh2HYV9pWfmqi/mQ2y1fBTdEgcbh1H6MVB8r39aIpAjvjXxZuyu66Fy0NN1eMrTvkARuM2Xo6+3klTAU35YKsZLcbzXuA9/E93xEKQEd1Y+J1bQrcVOjuPn8WNlf2wAt4HFK3cGObCkXIWQ5+YaIIvt/B1xO8L4IfL9jwyDcV3EqU90+VA0ZJ5Y8EX6g8W/bNNneIm7CaddMOpi90GFcI2xT4CSiCD5WIlF7t21UTDnLAidi3bT8Oz9bJODffzbWk8s3EY1toWrklmW3VZ/blyWZTm51hcnRdM+1ERnisfIvAxPSJiQoU6Xzk4cxeEDDD5KigC16R6ZG08i3liiGEI5F4K9biOEC5K5DgEVwKPpfkW227NEEZzg5iIrip60ilyolhkeWGRd1FBi4K4H2Z8oXDjenlNh/qOD6An5QvyWb5i6ahKYAfMdy6S4AvFy2jfNk8MOwXGJUaCs0oX2Z/6gYFzJYhDxYHB5a8ckNywCX0F1CuDgvRPx2Np/nEPYBrN7EsmCN0aQTfM9GSn+0ZZ5eTk6oWSMaaQ9sm7OBm4NKFoEJI2ORbzccMcxGkX7ODuKLYnBTkYy8IcJM2Dzo/jroky74spNAL1httVs6klHp01weDhZcZBmczKBcq/ZRJFp632Sk0hxUKoRTiba2tScjjypKr/RbuTcPXoNkrR7cS+DPlKwHt9PR4C/5MeQTfVWRzcNPw6bny6aKtHCQTcHQzeSRCYCetnDuzbZkoXP83MWZrudZTWvh0jjX5hJLKJ5af6dLeqm5ss+62CBgmJXxakh8y7UTd2N5sd3CxT24lbGTW5F+4tUnlGm5twT3OhP6sbg1uhnARGNoHcvA+CfeOE51hTNjouS1kEJRSMf6YVt5NNzaLAvHzchOli+/5vyK4sxo3+8JejYPTQzj82reZ3rH66YRxTP1aZAxKqKSzQJSOjnEd6igxll+thQ/nXwLqFXcKHU6QzQjMJ5pd045v9Wmxuzd6l5nAhuyGXZbmyZslje10y53yscbw07nDBkL3pOx8qJnDmFKuV9zYorJTFN4hx7om4QnrTIZeO46J3/abFdeFiHQfdh7lHacwA/3IVXIROlVn11t/+iuHrXuE4Hgf52QTy5AfQpX0No6ZvzSMRjqZVF+wKOze31t3vuVeelP/sjVj8q96VPqvWZesOq735reFj9k/Z4L0KmxwxIPbuytVdL0KfhV51X6KWeogvP+Xrrt+r5OQPCzuQjIsxShlcKzIlLZJVz1Ib7gyiq54pzoP0hzZuX01WeH4o63paNiqqsvaeRI7N3td9DH7XZkeCx9z/aZ3/BrZcU+8HmKEol/Sm7aq7LQqChcw0aFimfAjOiH76qsqBt7Ec+uKcOJ0IghLLGRrbviV8FD4pkKrq4r1azbCM4qH6KUa2ddfTwLtjFvzJBJ53Q41vuj95feTPP17VgN7uPtGnKe332O3nn35hbg+3Pbv0Sm74KuAgO++w+6a28WW0v4N8a1Dl37xNmj/XHxH2CXfPe0p/TO8RhPd5V/5hdJ/hHfocXj0JXvU7sQ33Rv3vg3o4fF33AP+Db4lc/az75iHOw/4xjxJcptCa54l8eS3ZJMb7/CYQKGNI1f9FN8HvOM3JQmMDmzIwydPk+ATNES/ywK2aEfMTvn0QRr3KAvwh5GlkLGBkD99iAfVO36h4fNTX3xm6z6DfggPbn3zsbGnj4x976G13lWgJIfffEwwPCyY2PzVP/uztP0H/VanLrIBylsAAAAASUVORK5CYII="
  29824. /***/ }),
  29825. /* 357 */
  29826. /*!****************************************************!*\
  29827. !*** D:/SWS_New/sws_new/static/images/app5new.png ***!
  29828. \****************************************************/
  29829. /*! no static exports found */
  29830. /***/ (function(module, exports) {
  29831. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAAB8CAMAAACcwCSMAAADI2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6M0ZCNDk5QzA0N0Y2MTFFRDk5NTg5MEM0RTUwMzY4NEEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6M0ZCNDk5QzE0N0Y2MTFFRDk5NTg5MEM0RTUwMzY4NEEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDozRkI0OTlCRTQ3RjYxMUVEOTk1ODkwQzRFNTAzNjg0QSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDozRkI0OTlCRjQ3RjYxMUVEOTk1ODkwQzRFNTAzNjg0QSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnCzx3wAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAANlBMVEVHcExs4Zpz5qBMzX9V04dd2I1U0oZS0IRS0YRT0YVj3JNS0YRa1ov+//+I7rDL+Nyp88bp/PF/jDp+AAAACnRSTlMA////XKXeDiI7l7XMOwAABzpJREFUaN7tm4mWrCgMhhvcl1br/V92gJAQIChWWTNnzumAG0K+/EHte6vKn58/+7MTGyrKl7i+nhr2ehx8w57KgXNkbWzbrtMX1nVtOz7FJ3DXa72ZcmWuRwcBfEgHdtuh13rr2uEjPpDHVhQH6y05jszJf5MO7E5/YN2b2fcJv83b4iy45L/Fnj6SDbF0013x78oW7bZ4e6F1+iHr7lx4kPJeP2Z9PR3Y+lGbajM/PM8G+vCf6CbtQ41upZXWfgWLxq3CY8UOFC1KpxXnvSLzVvjYa8EpRyt2hoWhkhDDUKW366vOsTvmTEmykhXPUa6fHMAdd8FuY4RXrTiEM1QeFWMrlhP7h+ZEun22TIohE4e476qWiWlMrJxPu3uwgXO5hDN4oKOmoFPlAZw+6iDpabiZ50I0PKKomYXhEl8UPo6kJfhSUYvOMxOd07x7OnQsPWsGSDoMypjoCpUpxXrieb6fNEMtX/FOeBp37BXJPOsqyvcZ2kqX6XCLq2A6W2l2Iuxqddac5KkbS2m3wjNo7FirOJCkQ2EYGy5Kh3+oqty0esd0qaEV826Fd+rbZu51ge4fbt+3aRTTLmb9cWvze32ozPq2X9hxdY24vAtT3ptzs6tsg7t2te2/l/Y60pFz5C6/3gc25QjL8dtvlR2MRHEHN9OYp320Uz4z4Ewr5Y9fdfDfLfMRPM1m0sdMuZ3yOYbiqBl2j0r27y44Cqt80hFOfeaA9XM277Xwl8KBvOAqu9Od8j4C5oFUw39FLvruc/g4Tn0e7TxjMGa9hwt62w5zAexmI0aEQ5iTEEg/CconDI1XSfnuroX50K71OFPOQp8pq2My6Vb5OOdsWPzYHdnY4Op6yMpjJ37HraYY7qZ8inwGNGVwZzn1MWm72gV4iufSJ0H5RDJjNB3uJNw8bQ6LfrnNIaV95t4U9wzwQVDOgakB3OJebqvtRrtQklstkzAz/SXlJVMJ3O0d7oGnBPjvfGpl5ScW0h4etFuW9hdXXobXKyf4yxQN97zdfVn27Pao2vIN5eD7BU8cu7dBM0F/6+G3lVuK4eyeDuzDtbHF2FvKV1NsdYvfx7pa5eAeHjM7sT3yhedfND7ygX7KylkncEE7604Eo933O16SzcEB53pHsvKVOrAQgnIG2n0f12T+zKDt/izLXBpEUTnnZWxD2l1x1bVa9m6mfjVmV74LU77GM+cOy8rjEu14sC+O7fa2EO3hupjIMgesQVYu9g+bw4CIbQh4vLEbApr44AI8Vb7OPnkY9+rzCXsG5nw7S7fMTBP5YNvgUlS+rixENhL3jr3W/Kg4BKpF5V5t1B239XBKWAiB7RWUzyzRKx/sljtwkpCh14LyNSiX8Mdu8DYC3Bzhv0K+uDPHzvyQBb+lOY87JraB5+OgjdDFnQpuguhgJeUy1dtxBLKjb0IXd6LgZmbwsnLRlgPoaC7tyWcg/tS5o5M5L9t21FoF/KbyZ+HfU758Rzks28b+jEYGHdwlEhYfC7bIypfzYj27chaf77Ck+CXgReV9PAAjprV2is0KfQlwyAri/Dbs2dqLyvvQ2ZRItDuxQbZBmFw0dEmwURcPF5TTgIJnsJNPyuBaSNTGbmTlnVdJnUvwS1tZ6iK0XXWi8m7xQ8KoaArq4cuSzx2uCvCWznsu7FLLDfjKvKzch6ltDh8snHUifIh63jbt60XBqSMwEy7BjfKpD11RNDMrva6sbPS6JAfp9UZXXJroJQp5mevYMw84i6GbhA9fAX5ua82X1bMgmVl2vXnl07IURpDZT8GE76/Dt73qSsBUUO4n/avWT5Pw2SvcbF+3NhfO835uDVvDpgnHtL0lHPPeZf4lSONrk7Q2SVwN8+L7dJOsHPLeBD8NlYWOERGFEQ9gI/CIRotZ59ITZrNExw3vkB1iNCGIhicBhUtfbRl428teYz733WSk9MTS4EHfynCkd2Vyg81hRacy9VFfLChc/j5zMvc6jiEGVtvUBBpVH1jDNhGWGlD48FOS3hJ1aZrmhLM0qewYtcT9TC2zEW4Sj/hMY6bP56IJO9S8NOkIk3R5xtPEx16ThtDOU7EkYRDeb7q2OOP+J1lwxQc3XMgiBiSrzx3QhA/ln8lY6Zaeek9sKWSiESPy7OKMR9dc25zacqsZ7Jod6H3zrLUu6dc/jvoCva9hs2l/ku7Y50kPv5YB7d1T7I501/wM0WvvHmR73Ze/wcR5fyb1mPKx6senA6d3T8mu/tntwOif4QF9h80z/xHeoBm79rfWAxPv8G/Mff8eOkn91Dr+rQDsOx2AJvZtOuItHQLoL0IwHQAM5Hdk/7g4PR3wGEClEXp8752OgcQj3s/AObWlzuNbspPcO34IAMPIF27jGCb7CXzKL9gI4HEYnniJh/NdDK5mC0IZ+fN3l37C+1qjC4HFkdswhje3nntrjNlY9cqYj/yR98bo8q8lf+tdwX/5JcE4B3/2/7Z/AF0wSeH2Iy2dAAAAAElFTkSuQmCC"
  29832. /***/ }),
  29833. /* 358 */,
  29834. /* 359 */,
  29835. /* 360 */,
  29836. /* 361 */,
  29837. /* 362 */,
  29838. /* 363 */,
  29839. /* 364 */,
  29840. /* 365 */,
  29841. /* 366 */,
  29842. /* 367 */,
  29843. /* 368 */,
  29844. /* 369 */,
  29845. /* 370 */,
  29846. /* 371 */,
  29847. /* 372 */,
  29848. /* 373 */,
  29849. /* 374 */,
  29850. /* 375 */,
  29851. /* 376 */
  29852. /*!**********************************************!*\
  29853. !*** D:/SWS_New/sws_new/static/js/qrcode.js ***!
  29854. \**********************************************/
  29855. /*! no static exports found */
  29856. /***/ (function(module, exports, __webpack_require__) {
  29857. /* WEBPACK VAR INJECTION */(function(wx) {//Core code comes from https://github.com/davidshimjs/qrcodejs
  29858. var QRCode;
  29859. (function () {
  29860. /**
  29861. * Get the type by string length
  29862. *
  29863. * @private
  29864. * @param {String} sText
  29865. * @param {Number} nCorrectLevel
  29866. * @return {Number} type
  29867. */
  29868. function _getTypeNumber(sText, nCorrectLevel) {
  29869. var nType = 1;
  29870. var length = _getUTF8Length(sText);
  29871. for (var i = 0, len = QRCodeLimitLength.length; i <= len; i++) {
  29872. var nLimit = 0;
  29873. switch (nCorrectLevel) {
  29874. case QRErrorCorrectLevel.L:
  29875. nLimit = QRCodeLimitLength[i][0];
  29876. break;
  29877. case QRErrorCorrectLevel.M:
  29878. nLimit = QRCodeLimitLength[i][1];
  29879. break;
  29880. case QRErrorCorrectLevel.Q:
  29881. nLimit = QRCodeLimitLength[i][2];
  29882. break;
  29883. case QRErrorCorrectLevel.H:
  29884. nLimit = QRCodeLimitLength[i][3];
  29885. break;
  29886. }
  29887. if (length <= nLimit) {
  29888. break;
  29889. } else {
  29890. nType++;
  29891. }
  29892. }
  29893. if (nType > QRCodeLimitLength.length) {
  29894. throw new Error("Too long data");
  29895. }
  29896. return nType;
  29897. }
  29898. function _getUTF8Length(sText) {
  29899. var replacedText = encodeURI(sText).toString().replace(/\%[0-9a-fA-F]{2}/g, 'a');
  29900. return replacedText.length + (replacedText.length != sText ? 3 : 0);
  29901. }
  29902. function QR8bitByte(data) {
  29903. this.mode = QRMode.MODE_8BIT_BYTE;
  29904. this.data = data;
  29905. this.parsedData = [];
  29906. // Added to support UTF-8 Characters
  29907. for (var i = 0, l = this.data.length; i < l; i++) {
  29908. var byteArray = [];
  29909. var code = this.data.charCodeAt(i);
  29910. if (code > 0x10000) {
  29911. byteArray[0] = 0xF0 | (code & 0x1C0000) >>> 18;
  29912. byteArray[1] = 0x80 | (code & 0x3F000) >>> 12;
  29913. byteArray[2] = 0x80 | (code & 0xFC0) >>> 6;
  29914. byteArray[3] = 0x80 | code & 0x3F;
  29915. } else if (code > 0x800) {
  29916. byteArray[0] = 0xE0 | (code & 0xF000) >>> 12;
  29917. byteArray[1] = 0x80 | (code & 0xFC0) >>> 6;
  29918. byteArray[2] = 0x80 | code & 0x3F;
  29919. } else if (code > 0x80) {
  29920. byteArray[0] = 0xC0 | (code & 0x7C0) >>> 6;
  29921. byteArray[1] = 0x80 | code & 0x3F;
  29922. } else {
  29923. byteArray[0] = code;
  29924. }
  29925. this.parsedData.push(byteArray);
  29926. }
  29927. this.parsedData = Array.prototype.concat.apply([], this.parsedData);
  29928. if (this.parsedData.length != this.data.length) {
  29929. this.parsedData.unshift(191);
  29930. this.parsedData.unshift(187);
  29931. this.parsedData.unshift(239);
  29932. }
  29933. }
  29934. QR8bitByte.prototype = {
  29935. getLength: function getLength(buffer) {
  29936. return this.parsedData.length;
  29937. },
  29938. write: function write(buffer) {
  29939. for (var i = 0, l = this.parsedData.length; i < l; i++) {
  29940. buffer.put(this.parsedData[i], 8);
  29941. }
  29942. }
  29943. };
  29944. // QRCodeModel
  29945. function QRCodeModel(typeNumber, errorCorrectLevel) {
  29946. this.typeNumber = typeNumber;
  29947. this.errorCorrectLevel = errorCorrectLevel;
  29948. this.modules = null;
  29949. this.moduleCount = 0;
  29950. this.dataCache = null;
  29951. this.dataList = [];
  29952. }
  29953. QRCodeModel.prototype = {
  29954. addData: function addData(data) {
  29955. var newData = new QR8bitByte(data);
  29956. this.dataList.push(newData);
  29957. this.dataCache = null;
  29958. },
  29959. isDark: function isDark(row, col) {
  29960. if (row < 0 || this.moduleCount <= row || col < 0 || this.moduleCount <= col) {
  29961. throw new Error(row + "," + col);
  29962. }
  29963. return this.modules[row][col];
  29964. },
  29965. getModuleCount: function getModuleCount() {
  29966. return this.moduleCount;
  29967. },
  29968. make: function make() {
  29969. this.makeImpl(false, this.getBestMaskPattern());
  29970. },
  29971. makeImpl: function makeImpl(test, maskPattern) {
  29972. this.moduleCount = this.typeNumber * 4 + 17;
  29973. this.modules = new Array(this.moduleCount);
  29974. for (var row = 0; row < this.moduleCount; row++) {
  29975. this.modules[row] = new Array(this.moduleCount);
  29976. for (var col = 0; col < this.moduleCount; col++) {
  29977. this.modules[row][col] = null;
  29978. }
  29979. }
  29980. this.setupPositionProbePattern(0, 0);
  29981. this.setupPositionProbePattern(this.moduleCount - 7, 0);
  29982. this.setupPositionProbePattern(0, this.moduleCount - 7);
  29983. this.setupPositionAdjustPattern();
  29984. this.setupTimingPattern();
  29985. this.setupTypeInfo(test, maskPattern);
  29986. if (this.typeNumber >= 7) {
  29987. this.setupTypeNumber(test);
  29988. }
  29989. if (this.dataCache == null) {
  29990. this.dataCache = QRCodeModel.createData(this.typeNumber, this.errorCorrectLevel, this.dataList);
  29991. }
  29992. this.mapData(this.dataCache, maskPattern);
  29993. },
  29994. setupPositionProbePattern: function setupPositionProbePattern(row, col) {
  29995. for (var r = -1; r <= 7; r++) {
  29996. if (row + r <= -1 || this.moduleCount <= row + r) continue;
  29997. for (var c = -1; c <= 7; c++) {
  29998. if (col + c <= -1 || this.moduleCount <= col + c) continue;
  29999. if (0 <= r && r <= 6 && (c == 0 || c == 6) || 0 <= c && c <= 6 && (r == 0 || r == 6) || 2 <= r && r <= 4 && 2 <= c && c <= 4) {
  30000. this.modules[row + r][col + c] = true;
  30001. } else {
  30002. this.modules[row + r][col + c] = false;
  30003. }
  30004. }
  30005. }
  30006. },
  30007. getBestMaskPattern: function getBestMaskPattern() {
  30008. var minLostPoint = 0;
  30009. var pattern = 0;
  30010. for (var i = 0; i < 8; i++) {
  30011. this.makeImpl(true, i);
  30012. var lostPoint = QRUtil.getLostPoint(this);
  30013. if (i == 0 || minLostPoint > lostPoint) {
  30014. minLostPoint = lostPoint;
  30015. pattern = i;
  30016. }
  30017. }
  30018. return pattern;
  30019. },
  30020. createMovieClip: function createMovieClip(target_mc, instance_name, depth) {
  30021. var qr_mc = target_mc.createEmptyMovieClip(instance_name, depth);
  30022. var cs = 1;
  30023. this.make();
  30024. for (var row = 0; row < this.modules.length; row++) {
  30025. var y = row * cs;
  30026. for (var col = 0; col < this.modules[row].length; col++) {
  30027. var x = col * cs;
  30028. var dark = this.modules[row][col];
  30029. if (dark) {
  30030. qr_mc.beginFill(0, 100);
  30031. qr_mc.moveTo(x, y);
  30032. qr_mc.lineTo(x + cs, y);
  30033. qr_mc.lineTo(x + cs, y + cs);
  30034. qr_mc.lineTo(x, y + cs);
  30035. qr_mc.endFill();
  30036. }
  30037. }
  30038. }
  30039. return qr_mc;
  30040. },
  30041. setupTimingPattern: function setupTimingPattern() {
  30042. for (var r = 8; r < this.moduleCount - 8; r++) {
  30043. if (this.modules[r][6] != null) {
  30044. continue;
  30045. }
  30046. this.modules[r][6] = r % 2 == 0;
  30047. }
  30048. for (var c = 8; c < this.moduleCount - 8; c++) {
  30049. if (this.modules[6][c] != null) {
  30050. continue;
  30051. }
  30052. this.modules[6][c] = c % 2 == 0;
  30053. }
  30054. },
  30055. setupPositionAdjustPattern: function setupPositionAdjustPattern() {
  30056. var pos = QRUtil.getPatternPosition(this.typeNumber);
  30057. for (var i = 0; i < pos.length; i++) {
  30058. for (var j = 0; j < pos.length; j++) {
  30059. var row = pos[i];
  30060. var col = pos[j];
  30061. if (this.modules[row][col] != null) {
  30062. continue;
  30063. }
  30064. for (var r = -2; r <= 2; r++) {
  30065. for (var c = -2; c <= 2; c++) {
  30066. if (r == -2 || r == 2 || c == -2 || c == 2 || r == 0 && c == 0) {
  30067. this.modules[row + r][col + c] = true;
  30068. } else {
  30069. this.modules[row + r][col + c] = false;
  30070. }
  30071. }
  30072. }
  30073. }
  30074. }
  30075. },
  30076. setupTypeNumber: function setupTypeNumber(test) {
  30077. var bits = QRUtil.getBCHTypeNumber(this.typeNumber);
  30078. for (var i = 0; i < 18; i++) {
  30079. var mod = !test && (bits >> i & 1) == 1;
  30080. this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = mod;
  30081. }
  30082. for (var i = 0; i < 18; i++) {
  30083. var mod = !test && (bits >> i & 1) == 1;
  30084. this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = mod;
  30085. }
  30086. },
  30087. setupTypeInfo: function setupTypeInfo(test, maskPattern) {
  30088. var data = this.errorCorrectLevel << 3 | maskPattern;
  30089. var bits = QRUtil.getBCHTypeInfo(data);
  30090. for (var i = 0; i < 15; i++) {
  30091. var mod = !test && (bits >> i & 1) == 1;
  30092. if (i < 6) {
  30093. this.modules[i][8] = mod;
  30094. } else if (i < 8) {
  30095. this.modules[i + 1][8] = mod;
  30096. } else {
  30097. this.modules[this.moduleCount - 15 + i][8] = mod;
  30098. }
  30099. }
  30100. for (var i = 0; i < 15; i++) {
  30101. var mod = !test && (bits >> i & 1) == 1;
  30102. if (i < 8) {
  30103. this.modules[8][this.moduleCount - i - 1] = mod;
  30104. } else if (i < 9) {
  30105. this.modules[8][15 - i - 1 + 1] = mod;
  30106. } else {
  30107. this.modules[8][15 - i - 1] = mod;
  30108. }
  30109. }
  30110. this.modules[this.moduleCount - 8][8] = !test;
  30111. },
  30112. mapData: function mapData(data, maskPattern) {
  30113. var inc = -1;
  30114. var row = this.moduleCount - 1;
  30115. var bitIndex = 7;
  30116. var byteIndex = 0;
  30117. for (var col = this.moduleCount - 1; col > 0; col -= 2) {
  30118. if (col == 6) col--;
  30119. while (true) {
  30120. for (var c = 0; c < 2; c++) {
  30121. if (this.modules[row][col - c] == null) {
  30122. var dark = false;
  30123. if (byteIndex < data.length) {
  30124. dark = (data[byteIndex] >>> bitIndex & 1) == 1;
  30125. }
  30126. var mask = QRUtil.getMask(maskPattern, row, col - c);
  30127. if (mask) {
  30128. dark = !dark;
  30129. }
  30130. this.modules[row][col - c] = dark;
  30131. bitIndex--;
  30132. if (bitIndex == -1) {
  30133. byteIndex++;
  30134. bitIndex = 7;
  30135. }
  30136. }
  30137. }
  30138. row += inc;
  30139. if (row < 0 || this.moduleCount <= row) {
  30140. row -= inc;
  30141. inc = -inc;
  30142. break;
  30143. }
  30144. }
  30145. }
  30146. }
  30147. };
  30148. QRCodeModel.PAD0 = 0xEC;
  30149. QRCodeModel.PAD1 = 0x11;
  30150. QRCodeModel.createData = function (typeNumber, errorCorrectLevel, dataList) {
  30151. var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectLevel);
  30152. var buffer = new QRBitBuffer();
  30153. for (var i = 0; i < dataList.length; i++) {
  30154. var data = dataList[i];
  30155. buffer.put(data.mode, 4);
  30156. buffer.put(data.getLength(), QRUtil.getLengthInBits(data.mode, typeNumber));
  30157. data.write(buffer);
  30158. }
  30159. var totalDataCount = 0;
  30160. for (var i = 0; i < rsBlocks.length; i++) {
  30161. totalDataCount += rsBlocks[i].dataCount;
  30162. }
  30163. if (buffer.getLengthInBits() > totalDataCount * 8) {
  30164. throw new Error("code length overflow. (" + buffer.getLengthInBits() + ">" + totalDataCount * 8 + ")");
  30165. }
  30166. if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) {
  30167. buffer.put(0, 4);
  30168. }
  30169. while (buffer.getLengthInBits() % 8 != 0) {
  30170. buffer.putBit(false);
  30171. }
  30172. while (true) {
  30173. if (buffer.getLengthInBits() >= totalDataCount * 8) {
  30174. break;
  30175. }
  30176. buffer.put(QRCodeModel.PAD0, 8);
  30177. if (buffer.getLengthInBits() >= totalDataCount * 8) {
  30178. break;
  30179. }
  30180. buffer.put(QRCodeModel.PAD1, 8);
  30181. }
  30182. return QRCodeModel.createBytes(buffer, rsBlocks);
  30183. };
  30184. QRCodeModel.createBytes = function (buffer, rsBlocks) {
  30185. var offset = 0;
  30186. var maxDcCount = 0;
  30187. var maxEcCount = 0;
  30188. var dcdata = new Array(rsBlocks.length);
  30189. var ecdata = new Array(rsBlocks.length);
  30190. for (var r = 0; r < rsBlocks.length; r++) {
  30191. var dcCount = rsBlocks[r].dataCount;
  30192. var ecCount = rsBlocks[r].totalCount - dcCount;
  30193. maxDcCount = Math.max(maxDcCount, dcCount);
  30194. maxEcCount = Math.max(maxEcCount, ecCount);
  30195. dcdata[r] = new Array(dcCount);
  30196. for (var i = 0; i < dcdata[r].length; i++) {
  30197. dcdata[r][i] = 0xff & buffer.buffer[i + offset];
  30198. }
  30199. offset += dcCount;
  30200. var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount);
  30201. var rawPoly = new QRPolynomial(dcdata[r], rsPoly.getLength() - 1);
  30202. var modPoly = rawPoly.mod(rsPoly);
  30203. ecdata[r] = new Array(rsPoly.getLength() - 1);
  30204. for (var i = 0; i < ecdata[r].length; i++) {
  30205. var modIndex = i + modPoly.getLength() - ecdata[r].length;
  30206. ecdata[r][i] = modIndex >= 0 ? modPoly.get(modIndex) : 0;
  30207. }
  30208. }
  30209. var totalCodeCount = 0;
  30210. for (var i = 0; i < rsBlocks.length; i++) {
  30211. totalCodeCount += rsBlocks[i].totalCount;
  30212. }
  30213. var data = new Array(totalCodeCount);
  30214. var index = 0;
  30215. for (var i = 0; i < maxDcCount; i++) {
  30216. for (var r = 0; r < rsBlocks.length; r++) {
  30217. if (i < dcdata[r].length) {
  30218. data[index++] = dcdata[r][i];
  30219. }
  30220. }
  30221. }
  30222. for (var i = 0; i < maxEcCount; i++) {
  30223. for (var r = 0; r < rsBlocks.length; r++) {
  30224. if (i < ecdata[r].length) {
  30225. data[index++] = ecdata[r][i];
  30226. }
  30227. }
  30228. }
  30229. return data;
  30230. };
  30231. var QRMode = {
  30232. MODE_NUMBER: 1 << 0,
  30233. MODE_ALPHA_NUM: 1 << 1,
  30234. MODE_8BIT_BYTE: 1 << 2,
  30235. MODE_KANJI: 1 << 3
  30236. };
  30237. var QRErrorCorrectLevel = {
  30238. L: 1,
  30239. M: 0,
  30240. Q: 3,
  30241. H: 2
  30242. };
  30243. var QRMaskPattern = {
  30244. PATTERN000: 0,
  30245. PATTERN001: 1,
  30246. PATTERN010: 2,
  30247. PATTERN011: 3,
  30248. PATTERN100: 4,
  30249. PATTERN101: 5,
  30250. PATTERN110: 6,
  30251. PATTERN111: 7
  30252. };
  30253. var QRUtil = {
  30254. PATTERN_POSITION_TABLE: [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]],
  30255. G15: 1 << 10 | 1 << 8 | 1 << 5 | 1 << 4 | 1 << 2 | 1 << 1 | 1 << 0,
  30256. G18: 1 << 12 | 1 << 11 | 1 << 10 | 1 << 9 | 1 << 8 | 1 << 5 | 1 << 2 | 1 << 0,
  30257. G15_MASK: 1 << 14 | 1 << 12 | 1 << 10 | 1 << 4 | 1 << 1,
  30258. getBCHTypeInfo: function getBCHTypeInfo(data) {
  30259. var d = data << 10;
  30260. while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) >= 0) {
  30261. d ^= QRUtil.G15 << QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15);
  30262. }
  30263. return (data << 10 | d) ^ QRUtil.G15_MASK;
  30264. },
  30265. getBCHTypeNumber: function getBCHTypeNumber(data) {
  30266. var d = data << 12;
  30267. while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) >= 0) {
  30268. d ^= QRUtil.G18 << QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18);
  30269. }
  30270. return data << 12 | d;
  30271. },
  30272. getBCHDigit: function getBCHDigit(data) {
  30273. var digit = 0;
  30274. while (data != 0) {
  30275. digit++;
  30276. data >>>= 1;
  30277. }
  30278. return digit;
  30279. },
  30280. getPatternPosition: function getPatternPosition(typeNumber) {
  30281. return QRUtil.PATTERN_POSITION_TABLE[typeNumber - 1];
  30282. },
  30283. getMask: function getMask(maskPattern, i, j) {
  30284. switch (maskPattern) {
  30285. case QRMaskPattern.PATTERN000:
  30286. return (i + j) % 2 == 0;
  30287. case QRMaskPattern.PATTERN001:
  30288. return i % 2 == 0;
  30289. case QRMaskPattern.PATTERN010:
  30290. return j % 3 == 0;
  30291. case QRMaskPattern.PATTERN011:
  30292. return (i + j) % 3 == 0;
  30293. case QRMaskPattern.PATTERN100:
  30294. return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 == 0;
  30295. case QRMaskPattern.PATTERN101:
  30296. return i * j % 2 + i * j % 3 == 0;
  30297. case QRMaskPattern.PATTERN110:
  30298. return (i * j % 2 + i * j % 3) % 2 == 0;
  30299. case QRMaskPattern.PATTERN111:
  30300. return (i * j % 3 + (i + j) % 2) % 2 == 0;
  30301. default:
  30302. throw new Error("bad maskPattern:" + maskPattern);
  30303. }
  30304. },
  30305. getErrorCorrectPolynomial: function getErrorCorrectPolynomial(errorCorrectLength) {
  30306. var a = new QRPolynomial([1], 0);
  30307. for (var i = 0; i < errorCorrectLength; i++) {
  30308. a = a.multiply(new QRPolynomial([1, QRMath.gexp(i)], 0));
  30309. }
  30310. return a;
  30311. },
  30312. getLengthInBits: function getLengthInBits(mode, type) {
  30313. if (1 <= type && type < 10) {
  30314. switch (mode) {
  30315. case QRMode.MODE_NUMBER:
  30316. return 10;
  30317. case QRMode.MODE_ALPHA_NUM:
  30318. return 9;
  30319. case QRMode.MODE_8BIT_BYTE:
  30320. return 8;
  30321. case QRMode.MODE_KANJI:
  30322. return 8;
  30323. default:
  30324. throw new Error("mode:" + mode);
  30325. }
  30326. } else if (type < 27) {
  30327. switch (mode) {
  30328. case QRMode.MODE_NUMBER:
  30329. return 12;
  30330. case QRMode.MODE_ALPHA_NUM:
  30331. return 11;
  30332. case QRMode.MODE_8BIT_BYTE:
  30333. return 16;
  30334. case QRMode.MODE_KANJI:
  30335. return 10;
  30336. default:
  30337. throw new Error("mode:" + mode);
  30338. }
  30339. } else if (type < 41) {
  30340. switch (mode) {
  30341. case QRMode.MODE_NUMBER:
  30342. return 14;
  30343. case QRMode.MODE_ALPHA_NUM:
  30344. return 13;
  30345. case QRMode.MODE_8BIT_BYTE:
  30346. return 16;
  30347. case QRMode.MODE_KANJI:
  30348. return 12;
  30349. default:
  30350. throw new Error("mode:" + mode);
  30351. }
  30352. } else {
  30353. throw new Error("type:" + type);
  30354. }
  30355. },
  30356. getLostPoint: function getLostPoint(qrCode) {
  30357. var moduleCount = qrCode.getModuleCount();
  30358. var lostPoint = 0;
  30359. for (var row = 0; row < moduleCount; row++) {
  30360. for (var col = 0; col < moduleCount; col++) {
  30361. var sameCount = 0;
  30362. var dark = qrCode.isDark(row, col);
  30363. for (var r = -1; r <= 1; r++) {
  30364. if (row + r < 0 || moduleCount <= row + r) {
  30365. continue;
  30366. }
  30367. for (var c = -1; c <= 1; c++) {
  30368. if (col + c < 0 || moduleCount <= col + c) {
  30369. continue;
  30370. }
  30371. if (r == 0 && c == 0) {
  30372. continue;
  30373. }
  30374. if (dark == qrCode.isDark(row + r, col + c)) {
  30375. sameCount++;
  30376. }
  30377. }
  30378. }
  30379. if (sameCount > 5) {
  30380. lostPoint += 3 + sameCount - 5;
  30381. }
  30382. }
  30383. }
  30384. for (var row = 0; row < moduleCount - 1; row++) {
  30385. for (var col = 0; col < moduleCount - 1; col++) {
  30386. var count = 0;
  30387. if (qrCode.isDark(row, col)) count++;
  30388. if (qrCode.isDark(row + 1, col)) count++;
  30389. if (qrCode.isDark(row, col + 1)) count++;
  30390. if (qrCode.isDark(row + 1, col + 1)) count++;
  30391. if (count == 0 || count == 4) {
  30392. lostPoint += 3;
  30393. }
  30394. }
  30395. }
  30396. for (var row = 0; row < moduleCount; row++) {
  30397. for (var col = 0; col < moduleCount - 6; col++) {
  30398. if (qrCode.isDark(row, col) && !qrCode.isDark(row, col + 1) && qrCode.isDark(row, col + 2) && qrCode.isDark(row, col + 3) && qrCode.isDark(row, col + 4) && !qrCode.isDark(row, col + 5) && qrCode.isDark(row, col + 6)) {
  30399. lostPoint += 40;
  30400. }
  30401. }
  30402. }
  30403. for (var col = 0; col < moduleCount; col++) {
  30404. for (var row = 0; row < moduleCount - 6; row++) {
  30405. if (qrCode.isDark(row, col) && !qrCode.isDark(row + 1, col) && qrCode.isDark(row + 2, col) && qrCode.isDark(row + 3, col) && qrCode.isDark(row + 4, col) && !qrCode.isDark(row + 5, col) && qrCode.isDark(row + 6, col)) {
  30406. lostPoint += 40;
  30407. }
  30408. }
  30409. }
  30410. var darkCount = 0;
  30411. for (var col = 0; col < moduleCount; col++) {
  30412. for (var row = 0; row < moduleCount; row++) {
  30413. if (qrCode.isDark(row, col)) {
  30414. darkCount++;
  30415. }
  30416. }
  30417. }
  30418. var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;
  30419. lostPoint += ratio * 10;
  30420. return lostPoint;
  30421. }
  30422. };
  30423. var QRMath = {
  30424. glog: function glog(n) {
  30425. if (n < 1) {
  30426. throw new Error("glog(" + n + ")");
  30427. }
  30428. return QRMath.LOG_TABLE[n];
  30429. },
  30430. gexp: function gexp(n) {
  30431. while (n < 0) {
  30432. n += 255;
  30433. }
  30434. while (n >= 256) {
  30435. n -= 255;
  30436. }
  30437. return QRMath.EXP_TABLE[n];
  30438. },
  30439. EXP_TABLE: new Array(256),
  30440. LOG_TABLE: new Array(256)
  30441. };
  30442. for (var i = 0; i < 8; i++) {
  30443. QRMath.EXP_TABLE[i] = 1 << i;
  30444. }
  30445. for (var i = 8; i < 256; i++) {
  30446. QRMath.EXP_TABLE[i] = QRMath.EXP_TABLE[i - 4] ^ QRMath.EXP_TABLE[i - 5] ^ QRMath.EXP_TABLE[i - 6] ^ QRMath.EXP_TABLE[i - 8];
  30447. }
  30448. for (var i = 0; i < 255; i++) {
  30449. QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]] = i;
  30450. }
  30451. function QRPolynomial(num, shift) {
  30452. if (num.length == undefined) {
  30453. throw new Error(num.length + "/" + shift);
  30454. }
  30455. var offset = 0;
  30456. while (offset < num.length && num[offset] == 0) {
  30457. offset++;
  30458. }
  30459. this.num = new Array(num.length - offset + shift);
  30460. for (var i = 0; i < num.length - offset; i++) {
  30461. this.num[i] = num[i + offset];
  30462. }
  30463. }
  30464. QRPolynomial.prototype = {
  30465. get: function get(index) {
  30466. return this.num[index];
  30467. },
  30468. getLength: function getLength() {
  30469. return this.num.length;
  30470. },
  30471. multiply: function multiply(e) {
  30472. var num = new Array(this.getLength() + e.getLength() - 1);
  30473. for (var i = 0; i < this.getLength(); i++) {
  30474. for (var j = 0; j < e.getLength(); j++) {
  30475. num[i + j] ^= QRMath.gexp(QRMath.glog(this.get(i)) + QRMath.glog(e.get(j)));
  30476. }
  30477. }
  30478. return new QRPolynomial(num, 0);
  30479. },
  30480. mod: function mod(e) {
  30481. if (this.getLength() - e.getLength() < 0) {
  30482. return this;
  30483. }
  30484. var ratio = QRMath.glog(this.get(0)) - QRMath.glog(e.get(0));
  30485. var num = new Array(this.getLength());
  30486. for (var i = 0; i < this.getLength(); i++) {
  30487. num[i] = this.get(i);
  30488. }
  30489. for (var i = 0; i < e.getLength(); i++) {
  30490. num[i] ^= QRMath.gexp(QRMath.glog(e.get(i)) + ratio);
  30491. }
  30492. return new QRPolynomial(num, 0).mod(e);
  30493. }
  30494. };
  30495. function QRRSBlock(totalCount, dataCount) {
  30496. this.totalCount = totalCount;
  30497. this.dataCount = dataCount;
  30498. }
  30499. QRRSBlock.RS_BLOCK_TABLE = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]];
  30500. QRRSBlock.getRSBlocks = function (typeNumber, errorCorrectLevel) {
  30501. var rsBlock = QRRSBlock.getRsBlockTable(typeNumber, errorCorrectLevel);
  30502. if (rsBlock == undefined) {
  30503. throw new Error("bad rs block @ typeNumber:" + typeNumber + "/errorCorrectLevel:" + errorCorrectLevel);
  30504. }
  30505. var length = rsBlock.length / 3;
  30506. var list = [];
  30507. for (var i = 0; i < length; i++) {
  30508. var count = rsBlock[i * 3 + 0];
  30509. var totalCount = rsBlock[i * 3 + 1];
  30510. var dataCount = rsBlock[i * 3 + 2];
  30511. for (var j = 0; j < count; j++) {
  30512. list.push(new QRRSBlock(totalCount, dataCount));
  30513. }
  30514. }
  30515. return list;
  30516. };
  30517. QRRSBlock.getRsBlockTable = function (typeNumber, errorCorrectLevel) {
  30518. switch (errorCorrectLevel) {
  30519. case QRErrorCorrectLevel.L:
  30520. return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0];
  30521. case QRErrorCorrectLevel.M:
  30522. return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1];
  30523. case QRErrorCorrectLevel.Q:
  30524. return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2];
  30525. case QRErrorCorrectLevel.H:
  30526. return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3];
  30527. default:
  30528. return undefined;
  30529. }
  30530. };
  30531. function QRBitBuffer() {
  30532. this.buffer = [];
  30533. this.length = 0;
  30534. }
  30535. QRBitBuffer.prototype = {
  30536. get: function get(index) {
  30537. var bufIndex = Math.floor(index / 8);
  30538. return (this.buffer[bufIndex] >>> 7 - index % 8 & 1) == 1;
  30539. },
  30540. put: function put(num, length) {
  30541. for (var i = 0; i < length; i++) {
  30542. this.putBit((num >>> length - i - 1 & 1) == 1);
  30543. }
  30544. },
  30545. getLengthInBits: function getLengthInBits() {
  30546. return this.length;
  30547. },
  30548. putBit: function putBit(bit) {
  30549. var bufIndex = Math.floor(this.length / 8);
  30550. if (this.buffer.length <= bufIndex) {
  30551. this.buffer.push(0);
  30552. }
  30553. if (bit) {
  30554. this.buffer[bufIndex] |= 0x80 >>> this.length % 8;
  30555. }
  30556. this.length++;
  30557. }
  30558. };
  30559. var QRCodeLimitLength = [[17, 14, 11, 7], [32, 26, 20, 14], [53, 42, 32, 24], [78, 62, 46, 34], [106, 84, 60, 44], [134, 106, 74, 58], [154, 122, 86, 64], [192, 152, 108, 84], [230, 180, 130, 98], [271, 213, 151, 119], [321, 251, 177, 137], [367, 287, 203, 155], [425, 331, 241, 177], [458, 362, 258, 194], [520, 412, 292, 220], [586, 450, 322, 250], [644, 504, 364, 280], [718, 560, 394, 310], [792, 624, 442, 338], [858, 666, 482, 382], [929, 711, 509, 403], [1003, 779, 565, 439], [1091, 857, 611, 461], [1171, 911, 661, 511], [1273, 997, 715, 535], [1367, 1059, 751, 593], [1465, 1125, 805, 625], [1528, 1190, 868, 658], [1628, 1264, 908, 698], [1732, 1370, 982, 742], [1840, 1452, 1030, 790], [1952, 1538, 1112, 842], [2068, 1628, 1168, 898], [2188, 1722, 1228, 958], [2303, 1809, 1283, 983], [2431, 1911, 1351, 1051], [2563, 1989, 1423, 1093], [2699, 2099, 1499, 1139], [2809, 2213, 1579, 1219], [2953, 2331, 1663, 1273]];
  30560. // QRCode object
  30561. QRCode = function QRCode(canvasId, vOption) {
  30562. this._htOption = {
  30563. width: 256,
  30564. height: 256,
  30565. typeNumber: 4,
  30566. colorDark: "#000000",
  30567. colorLight: "#ffffff",
  30568. correctLevel: QRErrorCorrectLevel.H
  30569. };
  30570. if (typeof vOption === 'string') {
  30571. vOption = {
  30572. text: vOption
  30573. };
  30574. }
  30575. // Overwrites options
  30576. if (vOption) {
  30577. for (var i in vOption) {
  30578. this._htOption[i] = vOption[i];
  30579. }
  30580. }
  30581. this._oQRCode = null;
  30582. this.canvasId = canvasId;
  30583. if (this._htOption.text && this.canvasId) {
  30584. this.makeCode(this._htOption.text);
  30585. }
  30586. };
  30587. QRCode.prototype.makeCode = function (sText) {
  30588. this._oQRCode = new QRCodeModel(_getTypeNumber(sText, this._htOption.correctLevel), this._htOption.correctLevel);
  30589. this._oQRCode.addData(sText);
  30590. this._oQRCode.make();
  30591. this.makeImage();
  30592. };
  30593. QRCode.prototype.makeImage = function () {
  30594. var _oContext;
  30595. if (this._htOption.usingIn) {
  30596. _oContext = wx.createCanvasContext(this.canvasId, this._htOption.usingIn);
  30597. } else {
  30598. _oContext = wx.createCanvasContext(this.canvasId);
  30599. }
  30600. var _htOption = this._htOption;
  30601. var oQRCode = this._oQRCode;
  30602. var nCount = oQRCode.getModuleCount();
  30603. var nWidth = _htOption.width / nCount;
  30604. var nHeight = _htOption.height / nCount;
  30605. var nRoundedWidth = Math.round(nWidth);
  30606. var nRoundedHeight = Math.round(nHeight);
  30607. if (_htOption.image && _htOption.image != '') {
  30608. _oContext.drawImage(_htOption.image, 0, 0, _htOption.width, _htOption.height);
  30609. }
  30610. for (var row = 0; row < nCount; row++) {
  30611. for (var col = 0; col < nCount; col++) {
  30612. var bIsDark = oQRCode.isDark(row, col);
  30613. var nLeft = col * nWidth;
  30614. var nTop = row * nHeight;
  30615. _oContext.setStrokeStyle(bIsDark ? _htOption.colorDark : _htOption.colorLight);
  30616. // _oContext.setStrokeStyle('yellow')
  30617. _oContext.setLineWidth(1);
  30618. _oContext.setFillStyle(bIsDark ? _htOption.colorDark : _htOption.colorLight);
  30619. // _oContext.setFillStyle('red')
  30620. // if (bIsDark) {
  30621. _oContext.fillRect(nLeft, nTop, nWidth, nHeight);
  30622. // }
  30623. // 안티 앨리어싱 방지 처리
  30624. // if (bIsDark) {
  30625. _oContext.strokeRect(Math.floor(nLeft) + 0.5, Math.floor(nTop) + 0.5, nRoundedWidth, nRoundedHeight);
  30626. _oContext.strokeRect(Math.ceil(nLeft) - 0.5, Math.ceil(nTop) - 0.5, nRoundedWidth, nRoundedHeight);
  30627. // }
  30628. // _oContext.fillRect(
  30629. // Math.floor(nLeft) + 0.5,
  30630. // Math.floor(nTop) + 0.5,
  30631. // nRoundedWidth,
  30632. // nRoundedHeight
  30633. // );
  30634. // _oContext.fillRect(
  30635. // Math.ceil(nLeft) - 0.5,
  30636. // Math.ceil(nTop) - 0.5,
  30637. // nRoundedWidth,
  30638. // nRoundedHeight
  30639. // );
  30640. // _oContext.clearRect(
  30641. // Math.floor(nLeft) + 0.5,
  30642. // Math.floor(nTop) + 0.5,
  30643. // nRoundedWidth,
  30644. // nRoundedHeight
  30645. // );
  30646. // _oContext.clearRect(
  30647. // Math.ceil(nLeft) - 0.5,
  30648. // Math.ceil(nTop) - 0.5,
  30649. // nRoundedWidth,
  30650. // nRoundedHeight
  30651. // );
  30652. }
  30653. }
  30654. _oContext.draw();
  30655. };
  30656. // 保存为图片,将临时路径传给回调
  30657. QRCode.prototype.exportImage = function (callback) {
  30658. if (!callback) {
  30659. return;
  30660. }
  30661. wx.canvasToTempFilePath({
  30662. x: 0,
  30663. y: 0,
  30664. width: this._htOption.width,
  30665. height: this._htOption.height,
  30666. destWidth: this._htOption.width,
  30667. destHeight: this._htOption.height,
  30668. canvasId: this.canvasId,
  30669. success: function success(res) {
  30670. console.log(res.tempFilePath);
  30671. callback(res.tempFilePath);
  30672. }
  30673. });
  30674. };
  30675. QRCode.CorrectLevel = QRErrorCorrectLevel;
  30676. })();
  30677. module.exports = QRCode;
  30678. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  30679. /***/ }),
  30680. /* 377 */,
  30681. /* 378 */,
  30682. /* 379 */,
  30683. /* 380 */,
  30684. /* 381 */,
  30685. /* 382 */,
  30686. /* 383 */
  30687. /*!************************************************!*\
  30688. !*** D:/SWS_New/sws_new/static/images/tip.png ***!
  30689. \************************************************/
  30690. /*! no static exports found */
  30691. /***/ (function(module, exports) {
  30692. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJ8AAACfCAYAAADnGwvgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6REI1NzY1QzJGOUM3MTFFQkJFRDZBOEI0QUZGNTQ1NkMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6REI1NzY1QzNGOUM3MTFFQkJFRDZBOEI0QUZGNTQ1NkMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGNDczRTA4NUY5NjIxMUVCQkVENkE4QjRBRkY1NDU2QyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGNDczRTA4NkY5NjIxMUVCQkVENkE4QjRBRkY1NDU2QyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnoybacAAA89SURBVHja7F0HlJxVFb4z2ZKQuumEEgwlQEIAg5TQDdIUlKABFSVIsaEIIiBFj0AE4qEfrByPAgpRqSGQoDSJoAYCAgkECL3ENRUI6Tveb9/9k5nN7O4/M//793/v3e+c72wS2Clvvnnv3vtuyRVmUJroxmxk9mD2ZjYx+zL7yc8m+fdupEgaBeZK5jLh8jZ/XsFczVyT1guqS/HNd2d+grkfczdmL/m3RmGD/B0/c6oVK1jHXCUCW11E/NtrzH8I3/VBfNjR9mLuzdyVOYK5rQhPkT0czVzAfJH5b+YTzFdsPVnO0rG7NXMicxxzB+bIlHdZRe14mzmf+SzzLubfsy6+QczPCseLbadwH08x72fezXwya+KDk3CkbNtHiOOg8A+PMe9h3seclwXxwXn4uux2m+vnEwSgmluYU8WJ6RKH43DmD5if1M8jKOBzH8scxvw1mVBNauLryfwC82zmKP0sggTs+0uYg5nXMN9JQ3yD5Jj9rvxZES4aZQOCDq5gvmBTfFsyzxPxaehEEeFE5kDm5WRig+vj/FK+gicYKg/+bRWeogw+LcfvAXF/Ia74+jDPZ35Z11jRAcbKyTgmKfHhXP8Oc5KurSIGDhU7cGit4sMF/3HM08gEkhWKODiBTAiuRy3iO5B5Bpm7WoUiLnLiG3yPWV+N+JB9ciHz47qWiirQKOI7gdpJketIfDi3D9Y1VNQABKC/SiadLrb4kJFyCFUWilEoygHJwxPK/Ye6ds7rU5gf03XbBLhEf4/5XzL3mR/KTwRVNyMTkoJj1p/MvWc/XbJWjR3GnMac3Zn4cGm8L2kdxRtkrovAl5hvMRczPyKTdr5WxIifBVmvelnTBvH0IEZk+mzP3FMY4pUkMp+O70x89bLrDQtUcM8zZ5LJW0Mdw1LhMop5ZdQOUDYwRAgh7i9mzfBA1rVBTLl9yFy/mSO2TT4frkaQp7VVQILD0XmPiA4JkgtEcDaB3RD1LLvIh3KUeIc+A4VKv2Ce2d7Od0RAxwLstr8w/8p8mvlmis/9nhCVYg8w/yQ7IQzzgZ6ud6Mcv3h/i9qKr05sve6eiw7H5x3Mm+XDX9LFr+dV4aPM6WTKEVB85WMpArKi9iCTCV0ivtEBeLjPMX/PvJ35esZeW7Mc/7NEiMeSqYmp92j9tyATOy4RX17cYV9DAyiSvpP5G+aDGX+t2IlvFcMcVWMnk7lt8gGIAOxOJiz1URRERpgAdRg9PRQeak8vZn7fAeEVAzvzZWRumv7l2dGLG498JD54XqjF8K1NBWw6ZFdMpipqDDKCu8RDvJdMPNGXo7ehTo7ccZ7tenAqUFv6Ezm6XMcTIsCFZAq3+jr8XhB4R8+e+rzYfQh2NngivHViM53hifAioGfKucyryYSJXAYSTTfLy87XRP7UZSCMcgGZrku+Ac7IFDK1NM0Ovw948AOLxefDXe7DzB9RugHjtLFSvHaIcKmj7wGnbFMkvv4eiG+OeLTzyX+sEAGiWmy1o+LrXyw+l7FQ7KGnKRy8LwK8zYedz+Vj6MdkbgVCA+6HJ1NRpoiLO5/LlWm4o0WCwFoKEy8zfyi7v0sORz8IL0fuBpex8FdR1ycHdDVwA3I91dCuLGVAb92iGw4XI+fIKP5pIA5GZ0BmNRImZjv0mguuFgjhy4J72rtVdxuA60PcBX/gygt2VXwo2rmO3I1z2QKcroeYLSo+O4Bdg3ywx1VrmwDhF3QK/VDFZwfY7W4Qm0+xKWbJF7NFxZe8rTfbMcO6K3a/21zY/fIOLizy21arxjrETHIgf9E18aGWdrpqq1Mg4IyqvFUqvuQcjTmU0lA6D4Aw1DIVX3JH7izVVGzgi7pExZcMlpGGVypdr7lUW5sPFZ8AqeMvqqZiIycnxftZfYGupM4jxIKq/jWW16K+6PnSEEfBolOAx35exNek4qseyNl7w9Jjo1Aevad3pPRHtEIgCIkgHw+t2JIODL+cZY/XFfEhbfx1C4+Lynn0DJ5CXTsbGPexGDcxL+HHfSfLHq8rNh+u0t628LjoTfMV6vqh1OgWcYCFz6OFMhxsdkV8sPWWWnr/WemLh9RyG0Vciymj97yuiG+dHL1JA7vCNCrtPFqIyc5suTi/Hzkc8OKRjWyjFGAFZTTDuc4h8dm4KEcQFh0A0G95f7EB43i62El2YO5MpS3MUNAzRxykzkoTIm8XtuwfmM9YNFnWUQY7UrgivvUWvTYI8EbmTRS/lgWi+RbzIiptK/eMOA4LK3xvNkNIKymjgWZXxGfbNmupQtwry+ySODbfl/+WFTRm1bxyxebD0dbbgS9uPoPHW2/KaHdTV8RXRzr1slr0yuoJ59LO10t1VPXOp8duDUCH/MGqo6owJMuGvCtHh86Cqxz4wg5Q8dUGxN+2Vy1VjJFZtpVdER9e5wjVUsVAILyniq92YGzS1qqnioAp8X1VfLUDNwn7qZ4qMlX2oAxPMHJJfGhgeahqKjZ2y/pJ4ZL48A0eSzq9Ow5wR30YZXxeh2tF44hZjVNtxTpyMeWnh4ovOeCbfBz5MbbB5q6H0bWjs/5CXRMfLu0xFHlH1ViHa3QaOXAX7mKLNDgeXyP/hhQmBex4B5ED6XIuig/3vMcwt1GdbQLYeKeSGa5HKj47GMb8JvkzrDApwNabSI5MJ3dVfMjOPYnM6EzFxkjAOZTR7gQ+iQ/AdRtGXg1S3bV+jhPE1iMVXzrAjcfnyZ9xrdVidzIT1etVfOkevxeSKXsMFRgbj9lzzuU75j1YfDgfV1CYsT/cZKDdx5Gu2go+AI7H+czNAxMfrtDOJkdvfPIefRATA3NADifTbWGAq2/AJ/HB/juFeSa5P7y6MxxFZhCO06UFec8+FKSMo43F6eRIlL9C5GSHx3h758sK8h5+QMh8OYPMBMZtPNvZvyHOlRf1LD6Kj+TYxR0nBiDv48H7QUAd08Qv8ukL5XNwFgHXz5C5dppM7s7mRQjpLObx5FnLkBBuBhCG+Zkcx+iDl2S7sFyZvyeZ6oV2ubivPczHDyaUayl4hRfLzvFbstfCDC3T1iYk6mOZF5ApBPISeQoHw8VmgjOSRGwMoxnajpRH/+Mkhq7Ao53is/BCEx+J/Xe+HGVb1vhY/2T+jvkKcxGZEfNTqfZxrEfILu19b5oQs0F6y+5XL47I4iofp5l5JfNp5lARX61zNPZiXk6mzQWp+PwEYmYnkpntcVUNj7OceWdCrwkdpZChMyaUDyFP4QKxQFzHjc3Aa0FiAMoCgkoNC1l8wE5kkhG6uuvpgbIT91XxhYWDmJO68PlxH30WBdj8UsVnUrBQZL1dFz0/Bg/uHeLCq/gMthP7L22g6dHJ5HBOnoqvdqDYenwX2H6fY24b6qKr+DZiK0q39LC7HLlNKj4Fjr6jKb16CJQ7jqKAe86o+DYCAXcMXB6Y0nMhvNIn5AVX8ZUC12SHpLAuDSL0Hio+RQTUwaLpuO3Kf+yuoynwNm8qvlLUi+Nh2+5DdnLwgwxVfJtisOV1gb23EznWV0XFlw4GWd75ILrtSXsLqvjKAE6AzaJz7HxbkHbWUvGVQTcRh80170PaU1rF187ONMSiOHLiVZOKT1FOfMMs230DdJlVfOWAO1fE4NZbevyBKj4VX0c7H66+9rT0+Gjj21OXWT2u9oAJ3ZcyL2G+QKYWt1DjOiN+iBoNdNFq1CVW8XUE3PGi0+kjzLeYLVWcFIU2R/mRuuup+OJilFChNl/qKNR43Np6LN35PAW83JeYLzJXUHLxPggvCmCPUo9XxdcWsOseIlNM9J6lnQp3u18k07atf8iLrcduKdC3Be0z3iTT6mydBaI9GxoKPRH6MaziKwU6TL2SwvN8JAJfF/Ba5yLx6eBkA4RB9klhPVCvu1vgZk+hTuyctaq7VqBXynnMhcxZzFUWngNtMU4X8YX6pYdTt7JO/vA/5taqvVYzZGcyrXOXyhczaSBfcCsKu3gI5s2iaOdrVt2VYEuqvXOpon3gRGnOi/gWkb0sDoWi3Z0vOnbheXXTdSnBdOa9YgPWAtRr7MH8EtnNknZJfM11RTsfxKfZFhsN4vvIdK//T0KPOYP5HPM68XZDF9+S6NhdQmHHnMotztQEhQcgLQv9m+fp8rauxZpIfAtIwy3FyFk6BbDeodfrYpPDDJMWLEZBjoPFqrkNgPAmkcloTgrIDcTUyJ0DX1uYeE/idIki7HA4ZpNpVKjJBmaHQtYxZmI8IgtWC7DbIZkUgwhDTyZ9l/kgTtpIaAUxiDH9RotbNmJvCrRfsiVAZ/Pl2KVi8T1GJqqv4isPDHx5hvkOxbv5wA3GTnrMlgD6ejz6S/ER+6aocgRptks57+wGMtduCyr4vUOZZzM/pUu4QWMPlxMfSShgX9I4VFtgrtq1VPk15AMIKZDp9Ry6l4vTFdnhc4sN62JMI1MqqCgFjtoVVf4uYqirdQlbHY272np1xcA3+ybmMl2rTRyPMVWYI71l1+sV+Pq1yHFbMiSxXFjlVjLDhrFommRqgNy7y8TmQ0gqThIGcgMxZ+NUXT56jcyN0ZrOxLdcdj94aUN03TbgQLGH42b/5GR9Q3fesOshrje97X9ob2GmyjdcUQqIqTEmG1R4rcBd9p+pTLFUe4uDCqubSYKBCkUNHu59VBReiSM+Es8EBqJmuyiqxf3MG9szVToSH4zDS2XLVCgqBZIHrmS+3N7/0JlNgkyXC8kESxWKuEBM73oywXmqVnzAq2T61KkDoogDFMRfKyfm+lrFB6CG9Woy8RqFoiP8nPkrcVopCfFFDsjFshMqFG2BeB6SL6aQiRV3ikoSR6Fk3H4gsfJcMgPyFAoAqVLXMH9JJjGZkhYfgAtylBKifdgFzGN03YPHXBHeH8XeI1vii/AU8xxR+STSOWKhYqb4AjOr+eVcYUZNT44heSeRKYbeVT+LYNAsPsB1VJSfl7b4IownM18C3da14ZC/gNmFmO/tzDuYH9TyYEmJj+TonUAmHetg0mxo34Dai3vEtnsriQdMUnwRMN7pBDK5bLtQ4H2HHQfu9ZHZ/jfmLcw5ST64DfFF2I5MnSqygNEQcThpfqALwFGKbCYU+zwrx+zDNp7IpviKgRJCFGEjNjhSRNhTjuqImvuWLtYUEf3yEL99ncw16qPyc5XNF5CW+IAoyRIzKMaR6c7ZR2zDiE1k6h5UiHaAONyyNlxOG1tYzJa/w7Fosf1i/i/AAMKE6W33K84/AAAAAElFTkSuQmCC"
  30693. /***/ }),
  30694. /* 384 */,
  30695. /* 385 */,
  30696. /* 386 */,
  30697. /* 387 */,
  30698. /* 388 */,
  30699. /* 389 */,
  30700. /* 390 */,
  30701. /* 391 */,
  30702. /* 392 */,
  30703. /* 393 */,
  30704. /* 394 */,
  30705. /* 395 */,
  30706. /* 396 */,
  30707. /* 397 */,
  30708. /* 398 */,
  30709. /* 399 */,
  30710. /* 400 */,
  30711. /* 401 */,
  30712. /* 402 */,
  30713. /* 403 */,
  30714. /* 404 */,
  30715. /* 405 */,
  30716. /* 406 */,
  30717. /* 407 */,
  30718. /* 408 */,
  30719. /* 409 */,
  30720. /* 410 */,
  30721. /* 411 */,
  30722. /* 412 */,
  30723. /* 413 */,
  30724. /* 414 */,
  30725. /* 415 */,
  30726. /* 416 */,
  30727. /* 417 */,
  30728. /* 418 */,
  30729. /* 419 */,
  30730. /* 420 */,
  30731. /* 421 */,
  30732. /* 422 */,
  30733. /* 423 */,
  30734. /* 424 */,
  30735. /* 425 */,
  30736. /* 426 */,
  30737. /* 427 */,
  30738. /* 428 */,
  30739. /* 429 */,
  30740. /* 430 */,
  30741. /* 431 */,
  30742. /* 432 */,
  30743. /* 433 */,
  30744. /* 434 */,
  30745. /* 435 */,
  30746. /* 436 */,
  30747. /* 437 */,
  30748. /* 438 */,
  30749. /* 439 */,
  30750. /* 440 */,
  30751. /* 441 */,
  30752. /* 442 */,
  30753. /* 443 */,
  30754. /* 444 */,
  30755. /* 445 */,
  30756. /* 446 */,
  30757. /* 447 */,
  30758. /* 448 */,
  30759. /* 449 */,
  30760. /* 450 */,
  30761. /* 451 */,
  30762. /* 452 */,
  30763. /* 453 */,
  30764. /* 454 */,
  30765. /* 455 */,
  30766. /* 456 */,
  30767. /* 457 */,
  30768. /* 458 */,
  30769. /* 459 */,
  30770. /* 460 */
  30771. /*!*******************************************************************************************************!*\
  30772. !*** D:/SWS_New/sws_new/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js ***!
  30773. \*******************************************************************************************************/
  30774. /*! no static exports found */
  30775. /***/ (function(module, exports, __webpack_require__) {
  30776. "use strict";
  30777. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30778. Object.defineProperty(exports, "__esModule", {
  30779. value: true
  30780. });
  30781. exports.default = void 0;
  30782. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 461));
  30783. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 462));
  30784. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 463));
  30785. var _default = {
  30786. en: _en.default,
  30787. 'zh-Hans': _zhHans.default,
  30788. 'zh-Hant': _zhHant.default
  30789. };
  30790. exports.default = _default;
  30791. /***/ }),
  30792. /* 461 */
  30793. /*!******************************************************************************************************!*\
  30794. !*** D:/SWS_New/sws_new/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json ***!
  30795. \******************************************************************************************************/
  30796. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.SUN, uni-calender.confirm, default */
  30797. /***/ (function(module) {
  30798. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"select date\",\"uni-datetime-picker.selectTime\":\"select time\",\"uni-datetime-picker.selectDateTime\":\"select datetime\",\"uni-datetime-picker.startDate\":\"start date\",\"uni-datetime-picker.endDate\":\"end date\",\"uni-datetime-picker.startTime\":\"start time\",\"uni-datetime-picker.endTime\":\"end time\",\"uni-datetime-picker.ok\":\"ok\",\"uni-datetime-picker.clear\":\"clear\",\"uni-datetime-picker.cancel\":\"cancel\",\"uni-datetime-picker.year\":\"-\",\"uni-datetime-picker.month\":\"\",\"uni-calender.MON\":\"MON\",\"uni-calender.TUE\":\"TUE\",\"uni-calender.WED\":\"WED\",\"uni-calender.THU\":\"THU\",\"uni-calender.FRI\":\"FRI\",\"uni-calender.SAT\":\"SAT\",\"uni-calender.SUN\":\"SUN\",\"uni-calender.confirm\":\"confirm\"}");
  30799. /***/ }),
  30800. /* 462 */
  30801. /*!***********************************************************************************************************!*\
  30802. !*** D:/SWS_New/sws_new/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json ***!
  30803. \***********************************************************************************************************/
  30804. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.SUN, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.confirm, default */
  30805. /***/ (function(module) {
  30806. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"选择日期\",\"uni-datetime-picker.selectTime\":\"选择时间\",\"uni-datetime-picker.selectDateTime\":\"选择日期时间\",\"uni-datetime-picker.startDate\":\"开始日期\",\"uni-datetime-picker.endDate\":\"结束日期\",\"uni-datetime-picker.startTime\":\"开始时间\",\"uni-datetime-picker.endTime\":\"结束时间\",\"uni-datetime-picker.ok\":\"确定\",\"uni-datetime-picker.clear\":\"清除\",\"uni-datetime-picker.cancel\":\"取消\",\"uni-datetime-picker.year\":\"年\",\"uni-datetime-picker.month\":\"月\",\"uni-calender.SUN\":\"日\",\"uni-calender.MON\":\"一\",\"uni-calender.TUE\":\"二\",\"uni-calender.WED\":\"三\",\"uni-calender.THU\":\"四\",\"uni-calender.FRI\":\"五\",\"uni-calender.SAT\":\"六\",\"uni-calender.confirm\":\"确认\"}");
  30807. /***/ }),
  30808. /* 463 */
  30809. /*!***********************************************************************************************************!*\
  30810. !*** D:/SWS_New/sws_new/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json ***!
  30811. \***********************************************************************************************************/
  30812. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.SUN, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.confirm, default */
  30813. /***/ (function(module) {
  30814. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"選擇日期\",\"uni-datetime-picker.selectTime\":\"選擇時間\",\"uni-datetime-picker.selectDateTime\":\"選擇日期時間\",\"uni-datetime-picker.startDate\":\"開始日期\",\"uni-datetime-picker.endDate\":\"結束日期\",\"uni-datetime-picker.startTime\":\"開始时间\",\"uni-datetime-picker.endTime\":\"結束时间\",\"uni-datetime-picker.ok\":\"確定\",\"uni-datetime-picker.clear\":\"清除\",\"uni-datetime-picker.cancel\":\"取消\",\"uni-datetime-picker.year\":\"年\",\"uni-datetime-picker.month\":\"月\",\"uni-calender.SUN\":\"日\",\"uni-calender.MON\":\"一\",\"uni-calender.TUE\":\"二\",\"uni-calender.WED\":\"三\",\"uni-calender.THU\":\"四\",\"uni-calender.FRI\":\"五\",\"uni-calender.SAT\":\"六\",\"uni-calender.confirm\":\"確認\"}");
  30815. /***/ }),
  30816. /* 464 */,
  30817. /* 465 */,
  30818. /* 466 */,
  30819. /* 467 */,
  30820. /* 468 */,
  30821. /* 469 */,
  30822. /* 470 */,
  30823. /* 471 */
  30824. /*!************************************************************************************!*\
  30825. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js ***!
  30826. \************************************************************************************/
  30827. /*! no static exports found */
  30828. /***/ (function(module, exports, __webpack_require__) {
  30829. "use strict";
  30830. /* WEBPACK VAR INJECTION */(function(global, uni, wx) {
  30831. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30832. Object.defineProperty(exports, "__esModule", {
  30833. value: true
  30834. });
  30835. exports.default = void 0;
  30836. var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ 472));
  30837. var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ 473));
  30838. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 71));
  30839. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  30840. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  30841. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  30842. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 73));
  30843. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  30844. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 475));
  30845. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 476));
  30846. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 477));
  30847. var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ 478));
  30848. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  30849. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  30850. var _pages = _interopRequireDefault(__webpack_require__(/*! @/pages.json */ 480));
  30851. var _excluded = ["spaceAppId", "accessKey"];
  30852. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e34) { throw _e34; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e35) { didErr = true; err = _e35; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  30853. function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  30854. function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  30855. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  30856. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  30857. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  30858. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  30859. "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
  30860. function t(e) {
  30861. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  30862. }
  30863. function n(e, t, n) {
  30864. return e(n = {
  30865. path: t,
  30866. exports: {},
  30867. require: function require(e, t) {
  30868. return function () {
  30869. throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
  30870. }(null == t && n.path);
  30871. }
  30872. }, n.exports), n.exports;
  30873. }
  30874. var s = n(function (e, t) {
  30875. var n;
  30876. e.exports = (n = n || function (e, t) {
  30877. var n = Object.create || function () {
  30878. function e() {}
  30879. return function (t) {
  30880. var n;
  30881. return e.prototype = t, n = new e(), e.prototype = null, n;
  30882. };
  30883. }(),
  30884. s = {},
  30885. r = s.lib = {},
  30886. i = r.Base = {
  30887. extend: function extend(e) {
  30888. var t = n(this);
  30889. return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
  30890. t.$super.init.apply(this, arguments);
  30891. }), t.init.prototype = t, t.$super = this, t;
  30892. },
  30893. create: function create() {
  30894. var e = this.extend();
  30895. return e.init.apply(e, arguments), e;
  30896. },
  30897. init: function init() {},
  30898. mixIn: function mixIn(e) {
  30899. for (var t in e) {
  30900. e.hasOwnProperty(t) && (this[t] = e[t]);
  30901. }
  30902. e.hasOwnProperty("toString") && (this.toString = e.toString);
  30903. },
  30904. clone: function clone() {
  30905. return this.init.prototype.extend(this);
  30906. }
  30907. },
  30908. o = r.WordArray = i.extend({
  30909. init: function init(e, n) {
  30910. e = this.words = e || [], this.sigBytes = n != t ? n : 4 * e.length;
  30911. },
  30912. toString: function toString(e) {
  30913. return (e || c).stringify(this);
  30914. },
  30915. concat: function concat(e) {
  30916. var t = this.words,
  30917. n = e.words,
  30918. s = this.sigBytes,
  30919. r = e.sigBytes;
  30920. if (this.clamp(), s % 4) for (var i = 0; i < r; i++) {
  30921. var o = n[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  30922. t[s + i >>> 2] |= o << 24 - (s + i) % 4 * 8;
  30923. } else for (i = 0; i < r; i += 4) {
  30924. t[s + i >>> 2] = n[i >>> 2];
  30925. }
  30926. return this.sigBytes += r, this;
  30927. },
  30928. clamp: function clamp() {
  30929. var t = this.words,
  30930. n = this.sigBytes;
  30931. t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);
  30932. },
  30933. clone: function clone() {
  30934. var e = i.clone.call(this);
  30935. return e.words = this.words.slice(0), e;
  30936. },
  30937. random: function random(t) {
  30938. for (var n, s = [], r = function r(t) {
  30939. t = t;
  30940. var n = 987654321,
  30941. s = 4294967295;
  30942. return function () {
  30943. var r = ((n = 36969 * (65535 & n) + (n >> 16) & s) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & s) & s;
  30944. return r /= 4294967296, (r += .5) * (e.random() > .5 ? 1 : -1);
  30945. };
  30946. }, i = 0; i < t; i += 4) {
  30947. var a = r(4294967296 * (n || e.random()));
  30948. n = 987654071 * a(), s.push(4294967296 * a() | 0);
  30949. }
  30950. return new o.init(s, t);
  30951. }
  30952. }),
  30953. a = s.enc = {},
  30954. c = a.Hex = {
  30955. stringify: function stringify(e) {
  30956. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  30957. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  30958. s.push((i >>> 4).toString(16)), s.push((15 & i).toString(16));
  30959. }
  30960. return s.join("");
  30961. },
  30962. parse: function parse(e) {
  30963. for (var t = e.length, n = [], s = 0; s < t; s += 2) {
  30964. n[s >>> 3] |= parseInt(e.substr(s, 2), 16) << 24 - s % 8 * 4;
  30965. }
  30966. return new o.init(n, t / 2);
  30967. }
  30968. },
  30969. u = a.Latin1 = {
  30970. stringify: function stringify(e) {
  30971. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  30972. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  30973. s.push(String.fromCharCode(i));
  30974. }
  30975. return s.join("");
  30976. },
  30977. parse: function parse(e) {
  30978. for (var t = e.length, n = [], s = 0; s < t; s++) {
  30979. n[s >>> 2] |= (255 & e.charCodeAt(s)) << 24 - s % 4 * 8;
  30980. }
  30981. return new o.init(n, t);
  30982. }
  30983. },
  30984. l = a.Utf8 = {
  30985. stringify: function stringify(e) {
  30986. try {
  30987. return decodeURIComponent(escape(u.stringify(e)));
  30988. } catch (e) {
  30989. throw new Error("Malformed UTF-8 data");
  30990. }
  30991. },
  30992. parse: function parse(e) {
  30993. return u.parse(unescape(encodeURIComponent(e)));
  30994. }
  30995. },
  30996. h = r.BufferedBlockAlgorithm = i.extend({
  30997. reset: function reset() {
  30998. this._data = new o.init(), this._nDataBytes = 0;
  30999. },
  31000. _append: function _append(e) {
  31001. "string" == typeof e && (e = l.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;
  31002. },
  31003. _process: function _process(t) {
  31004. var n = this._data,
  31005. s = n.words,
  31006. r = n.sigBytes,
  31007. i = this.blockSize,
  31008. a = r / (4 * i),
  31009. c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * i,
  31010. u = e.min(4 * c, r);
  31011. if (c) {
  31012. for (var l = 0; l < c; l += i) {
  31013. this._doProcessBlock(s, l);
  31014. }
  31015. var h = s.splice(0, c);
  31016. n.sigBytes -= u;
  31017. }
  31018. return new o.init(h, u);
  31019. },
  31020. clone: function clone() {
  31021. var e = i.clone.call(this);
  31022. return e._data = this._data.clone(), e;
  31023. },
  31024. _minBufferSize: 0
  31025. });
  31026. r.Hasher = h.extend({
  31027. cfg: i.extend(),
  31028. init: function init(e) {
  31029. this.cfg = this.cfg.extend(e), this.reset();
  31030. },
  31031. reset: function reset() {
  31032. h.reset.call(this), this._doReset();
  31033. },
  31034. update: function update(e) {
  31035. return this._append(e), this._process(), this;
  31036. },
  31037. finalize: function finalize(e) {
  31038. return e && this._append(e), this._doFinalize();
  31039. },
  31040. blockSize: 16,
  31041. _createHelper: function _createHelper(e) {
  31042. return function (t, n) {
  31043. return new e.init(n).finalize(t);
  31044. };
  31045. },
  31046. _createHmacHelper: function _createHmacHelper(e) {
  31047. return function (t, n) {
  31048. return new d.HMAC.init(e, n).finalize(t);
  31049. };
  31050. }
  31051. });
  31052. var d = s.algo = {};
  31053. return s;
  31054. }(Math), n);
  31055. }),
  31056. r = s,
  31057. i = (n(function (e, t) {
  31058. var n;
  31059. e.exports = (n = r, function (e) {
  31060. var t = n,
  31061. s = t.lib,
  31062. r = s.WordArray,
  31063. i = s.Hasher,
  31064. o = t.algo,
  31065. a = [];
  31066. !function () {
  31067. for (var t = 0; t < 64; t++) {
  31068. a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
  31069. }
  31070. }();
  31071. var c = o.MD5 = i.extend({
  31072. _doReset: function _doReset() {
  31073. this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878]);
  31074. },
  31075. _doProcessBlock: function _doProcessBlock(e, t) {
  31076. for (var n = 0; n < 16; n++) {
  31077. var s = t + n,
  31078. r = e[s];
  31079. e[s] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
  31080. }
  31081. var i = this._hash.words,
  31082. o = e[t + 0],
  31083. c = e[t + 1],
  31084. p = e[t + 2],
  31085. f = e[t + 3],
  31086. g = e[t + 4],
  31087. m = e[t + 5],
  31088. y = e[t + 6],
  31089. _ = e[t + 7],
  31090. w = e[t + 8],
  31091. v = e[t + 9],
  31092. I = e[t + 10],
  31093. S = e[t + 11],
  31094. b = e[t + 12],
  31095. k = e[t + 13],
  31096. A = e[t + 14],
  31097. P = e[t + 15],
  31098. T = i[0],
  31099. C = i[1],
  31100. x = i[2],
  31101. O = i[3];
  31102. T = u(T, C, x, O, o, 7, a[0]), O = u(O, T, C, x, c, 12, a[1]), x = u(x, O, T, C, p, 17, a[2]), C = u(C, x, O, T, f, 22, a[3]), T = u(T, C, x, O, g, 7, a[4]), O = u(O, T, C, x, m, 12, a[5]), x = u(x, O, T, C, y, 17, a[6]), C = u(C, x, O, T, _, 22, a[7]), T = u(T, C, x, O, w, 7, a[8]), O = u(O, T, C, x, v, 12, a[9]), x = u(x, O, T, C, I, 17, a[10]), C = u(C, x, O, T, S, 22, a[11]), T = u(T, C, x, O, b, 7, a[12]), O = u(O, T, C, x, k, 12, a[13]), x = u(x, O, T, C, A, 17, a[14]), T = l(T, C = u(C, x, O, T, P, 22, a[15]), x, O, c, 5, a[16]), O = l(O, T, C, x, y, 9, a[17]), x = l(x, O, T, C, S, 14, a[18]), C = l(C, x, O, T, o, 20, a[19]), T = l(T, C, x, O, m, 5, a[20]), O = l(O, T, C, x, I, 9, a[21]), x = l(x, O, T, C, P, 14, a[22]), C = l(C, x, O, T, g, 20, a[23]), T = l(T, C, x, O, v, 5, a[24]), O = l(O, T, C, x, A, 9, a[25]), x = l(x, O, T, C, f, 14, a[26]), C = l(C, x, O, T, w, 20, a[27]), T = l(T, C, x, O, k, 5, a[28]), O = l(O, T, C, x, p, 9, a[29]), x = l(x, O, T, C, _, 14, a[30]), T = h(T, C = l(C, x, O, T, b, 20, a[31]), x, O, m, 4, a[32]), O = h(O, T, C, x, w, 11, a[33]), x = h(x, O, T, C, S, 16, a[34]), C = h(C, x, O, T, A, 23, a[35]), T = h(T, C, x, O, c, 4, a[36]), O = h(O, T, C, x, g, 11, a[37]), x = h(x, O, T, C, _, 16, a[38]), C = h(C, x, O, T, I, 23, a[39]), T = h(T, C, x, O, k, 4, a[40]), O = h(O, T, C, x, o, 11, a[41]), x = h(x, O, T, C, f, 16, a[42]), C = h(C, x, O, T, y, 23, a[43]), T = h(T, C, x, O, v, 4, a[44]), O = h(O, T, C, x, b, 11, a[45]), x = h(x, O, T, C, P, 16, a[46]), T = d(T, C = h(C, x, O, T, p, 23, a[47]), x, O, o, 6, a[48]), O = d(O, T, C, x, _, 10, a[49]), x = d(x, O, T, C, A, 15, a[50]), C = d(C, x, O, T, m, 21, a[51]), T = d(T, C, x, O, b, 6, a[52]), O = d(O, T, C, x, f, 10, a[53]), x = d(x, O, T, C, I, 15, a[54]), C = d(C, x, O, T, c, 21, a[55]), T = d(T, C, x, O, w, 6, a[56]), O = d(O, T, C, x, P, 10, a[57]), x = d(x, O, T, C, y, 15, a[58]), C = d(C, x, O, T, k, 21, a[59]), T = d(T, C, x, O, g, 6, a[60]), O = d(O, T, C, x, S, 10, a[61]), x = d(x, O, T, C, p, 15, a[62]), C = d(C, x, O, T, v, 21, a[63]), i[0] = i[0] + T | 0, i[1] = i[1] + C | 0, i[2] = i[2] + x | 0, i[3] = i[3] + O | 0;
  31103. },
  31104. _doFinalize: function _doFinalize() {
  31105. var t = this._data,
  31106. n = t.words,
  31107. s = 8 * this._nDataBytes,
  31108. r = 8 * t.sigBytes;
  31109. n[r >>> 5] |= 128 << 24 - r % 32;
  31110. var i = e.floor(s / 4294967296),
  31111. o = s;
  31112. n[15 + (r + 64 >>> 9 << 4)] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8), n[14 + (r + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), t.sigBytes = 4 * (n.length + 1), this._process();
  31113. for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {
  31114. var l = c[u];
  31115. c[u] = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8);
  31116. }
  31117. return a;
  31118. },
  31119. clone: function clone() {
  31120. var e = i.clone.call(this);
  31121. return e._hash = this._hash.clone(), e;
  31122. }
  31123. });
  31124. function u(e, t, n, s, r, i, o) {
  31125. var a = e + (t & n | ~t & s) + r + o;
  31126. return (a << i | a >>> 32 - i) + t;
  31127. }
  31128. function l(e, t, n, s, r, i, o) {
  31129. var a = e + (t & s | n & ~s) + r + o;
  31130. return (a << i | a >>> 32 - i) + t;
  31131. }
  31132. function h(e, t, n, s, r, i, o) {
  31133. var a = e + (t ^ n ^ s) + r + o;
  31134. return (a << i | a >>> 32 - i) + t;
  31135. }
  31136. function d(e, t, n, s, r, i, o) {
  31137. var a = e + (n ^ (t | ~s)) + r + o;
  31138. return (a << i | a >>> 32 - i) + t;
  31139. }
  31140. t.MD5 = i._createHelper(c), t.HmacMD5 = i._createHmacHelper(c);
  31141. }(Math), n.MD5);
  31142. }), n(function (e, t) {
  31143. var n;
  31144. e.exports = (n = r, void function () {
  31145. var e = n,
  31146. t = e.lib.Base,
  31147. s = e.enc.Utf8;
  31148. e.algo.HMAC = t.extend({
  31149. init: function init(e, t) {
  31150. e = this._hasher = new e.init(), "string" == typeof t && (t = s.parse(t));
  31151. var n = e.blockSize,
  31152. r = 4 * n;
  31153. t.sigBytes > r && (t = e.finalize(t)), t.clamp();
  31154. for (var i = this._oKey = t.clone(), o = this._iKey = t.clone(), a = i.words, c = o.words, u = 0; u < n; u++) {
  31155. a[u] ^= 1549556828, c[u] ^= 909522486;
  31156. }
  31157. i.sigBytes = o.sigBytes = r, this.reset();
  31158. },
  31159. reset: function reset() {
  31160. var e = this._hasher;
  31161. e.reset(), e.update(this._iKey);
  31162. },
  31163. update: function update(e) {
  31164. return this._hasher.update(e), this;
  31165. },
  31166. finalize: function finalize(e) {
  31167. var t = this._hasher,
  31168. n = t.finalize(e);
  31169. return t.reset(), t.finalize(this._oKey.clone().concat(n));
  31170. }
  31171. });
  31172. }());
  31173. }), n(function (e, t) {
  31174. e.exports = r.HmacMD5;
  31175. })),
  31176. o = n(function (e, t) {
  31177. e.exports = r.enc.Utf8;
  31178. }),
  31179. a = n(function (e, t) {
  31180. var n;
  31181. e.exports = (n = r, function () {
  31182. var e = n,
  31183. t = e.lib.WordArray;
  31184. function s(e, n, s) {
  31185. for (var r = [], i = 0, o = 0; o < n; o++) {
  31186. if (o % 4) {
  31187. var a = s[e.charCodeAt(o - 1)] << o % 4 * 2,
  31188. c = s[e.charCodeAt(o)] >>> 6 - o % 4 * 2;
  31189. r[i >>> 2] |= (a | c) << 24 - i % 4 * 8, i++;
  31190. }
  31191. }
  31192. return t.create(r, i);
  31193. }
  31194. e.enc.Base64 = {
  31195. stringify: function stringify(e) {
  31196. var t = e.words,
  31197. n = e.sigBytes,
  31198. s = this._map;
  31199. e.clamp();
  31200. for (var r = [], i = 0; i < n; i += 3) {
  31201. for (var o = (t[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (t[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | t[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, a = 0; a < 4 && i + .75 * a < n; a++) {
  31202. r.push(s.charAt(o >>> 6 * (3 - a) & 63));
  31203. }
  31204. }
  31205. var c = s.charAt(64);
  31206. if (c) for (; r.length % 4;) {
  31207. r.push(c);
  31208. }
  31209. return r.join("");
  31210. },
  31211. parse: function parse(e) {
  31212. var t = e.length,
  31213. n = this._map,
  31214. r = this._reverseMap;
  31215. if (!r) {
  31216. r = this._reverseMap = [];
  31217. for (var i = 0; i < n.length; i++) {
  31218. r[n.charCodeAt(i)] = i;
  31219. }
  31220. }
  31221. var o = n.charAt(64);
  31222. if (o) {
  31223. var a = e.indexOf(o);
  31224. -1 !== a && (t = a);
  31225. }
  31226. return s(e, t, r);
  31227. },
  31228. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  31229. };
  31230. }(), n.enc.Base64);
  31231. });
  31232. var c = "FUNCTION",
  31233. u = "OBJECT",
  31234. l = "CLIENT_DB",
  31235. h = "pending",
  31236. d = "fulfilled",
  31237. p = "rejected";
  31238. function f(e) {
  31239. return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
  31240. }
  31241. function g(e) {
  31242. return "object" === f(e);
  31243. }
  31244. function m(e) {
  31245. return "function" == typeof e;
  31246. }
  31247. function y(e) {
  31248. return function () {
  31249. try {
  31250. return e.apply(e, arguments);
  31251. } catch (e) {
  31252. console.error(e);
  31253. }
  31254. };
  31255. }
  31256. var _ = "REJECTED",
  31257. w = "NOT_PENDING";
  31258. var v = /*#__PURE__*/function () {
  31259. function v() {
  31260. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  31261. e = _ref.createPromise,
  31262. _ref$retryRule = _ref.retryRule,
  31263. t = _ref$retryRule === void 0 ? _ : _ref$retryRule;
  31264. (0, _classCallCheck2.default)(this, v);
  31265. this.createPromise = e, this.status = null, this.promise = null, this.retryRule = t;
  31266. }
  31267. (0, _createClass2.default)(v, [{
  31268. key: "needRetry",
  31269. get: function get() {
  31270. if (!this.status) return !0;
  31271. switch (this.retryRule) {
  31272. case _:
  31273. return this.status === p;
  31274. case w:
  31275. return this.status !== h;
  31276. }
  31277. }
  31278. }, {
  31279. key: "exec",
  31280. value: function exec() {
  31281. var _this = this;
  31282. return this.needRetry ? (this.status = h, this.promise = this.createPromise().then(function (e) {
  31283. return _this.status = d, Promise.resolve(e);
  31284. }, function (e) {
  31285. return _this.status = p, Promise.reject(e);
  31286. }), this.promise) : this.promise;
  31287. }
  31288. }]);
  31289. return v;
  31290. }();
  31291. function I(e) {
  31292. return e && "string" == typeof e ? JSON.parse(e) : e;
  31293. }
  31294. var S = "development" === "development",
  31295. b = "mp-weixin",
  31296. k = "true" === undefined || !0 === undefined,
  31297. A = I([]),
  31298. P = "h5" === b ? "web" : "app-plus" === b ? "app" : b,
  31299. T = I(undefined),
  31300. C = I(undefined) || [],
  31301. x = true;
  31302. var O = "";
  31303. try {
  31304. O = (__webpack_require__(/*! uni-stat-config */ 481).default || __webpack_require__(/*! uni-stat-config */ 481)).appid;
  31305. } catch (e) {}
  31306. var E = {};
  31307. function L(e) {
  31308. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  31309. var n, s;
  31310. return n = E, s = e, Object.prototype.hasOwnProperty.call(n, s) || (E[e] = t), E[e];
  31311. }
  31312. "app" === P && (E = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {});
  31313. var R = ["invoke", "success", "fail", "complete"],
  31314. U = L("_globalUniCloudInterceptor");
  31315. function N(e, t) {
  31316. U[e] || (U[e] = {}), g(t) && Object.keys(t).forEach(function (n) {
  31317. R.indexOf(n) > -1 && function (e, t, n) {
  31318. var s = U[e][t];
  31319. s || (s = U[e][t] = []), -1 === s.indexOf(n) && m(n) && s.push(n);
  31320. }(e, n, t[n]);
  31321. });
  31322. }
  31323. function D(e, t) {
  31324. U[e] || (U[e] = {}), g(t) ? Object.keys(t).forEach(function (n) {
  31325. R.indexOf(n) > -1 && function (e, t, n) {
  31326. var s = U[e][t];
  31327. if (!s) return;
  31328. var r = s.indexOf(n);
  31329. r > -1 && s.splice(r, 1);
  31330. }(e, n, t[n]);
  31331. }) : delete U[e];
  31332. }
  31333. function M(e, t) {
  31334. return e && 0 !== e.length ? e.reduce(function (e, n) {
  31335. return e.then(function () {
  31336. return n(t);
  31337. });
  31338. }, Promise.resolve()) : Promise.resolve();
  31339. }
  31340. function q(e, t) {
  31341. return U[e] && U[e][t] || [];
  31342. }
  31343. function F(e) {
  31344. N("callObject", e);
  31345. }
  31346. var K = L("_globalUniCloudListener"),
  31347. j = "response",
  31348. B = "needLogin",
  31349. $ = "refreshToken",
  31350. W = "clientdb",
  31351. H = "cloudfunction",
  31352. z = "cloudobject";
  31353. function J(e) {
  31354. return K[e] || (K[e] = []), K[e];
  31355. }
  31356. function V(e, t) {
  31357. var n = J(e);
  31358. n.includes(t) || n.push(t);
  31359. }
  31360. function G(e, t) {
  31361. var n = J(e),
  31362. s = n.indexOf(t);
  31363. -1 !== s && n.splice(s, 1);
  31364. }
  31365. function Y(e, t) {
  31366. var n = J(e);
  31367. for (var _e2 = 0; _e2 < n.length; _e2++) {
  31368. (0, n[_e2])(t);
  31369. }
  31370. }
  31371. var Q,
  31372. X = !1;
  31373. function Z() {
  31374. return Q || (Q = new Promise(function (e) {
  31375. X && e(), function t() {
  31376. if ("function" == typeof getCurrentPages) {
  31377. var _t2 = getCurrentPages();
  31378. _t2 && _t2[0] && (X = !0, e());
  31379. }
  31380. X || setTimeout(function () {
  31381. t();
  31382. }, 30);
  31383. }();
  31384. }), Q);
  31385. }
  31386. function ee(e) {
  31387. var t = {};
  31388. for (var _n2 in e) {
  31389. var _s2 = e[_n2];
  31390. m(_s2) && (t[_n2] = y(_s2));
  31391. }
  31392. return t;
  31393. }
  31394. var te = /*#__PURE__*/function (_Error) {
  31395. (0, _inherits2.default)(te, _Error);
  31396. var _super = _createSuper(te);
  31397. function te(e) {
  31398. var _this2;
  31399. (0, _classCallCheck2.default)(this, te);
  31400. _this2 = _super.call(this, e.message), _this2.errMsg = e.message || e.errMsg || "unknown system error", _this2.code = _this2.errCode = e.code || e.errCode || "SYSTEM_ERROR", _this2.errSubject = _this2.subject = e.subject || e.errSubject, _this2.cause = e.cause, _this2.requestId = e.requestId;
  31401. return _this2;
  31402. }
  31403. (0, _createClass2.default)(te, [{
  31404. key: "toJson",
  31405. value: function toJson() {
  31406. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  31407. if (!(e >= 10)) return e++, {
  31408. errCode: this.errCode,
  31409. errMsg: this.errMsg,
  31410. errSubject: this.errSubject,
  31411. cause: this.cause && this.cause.toJson ? this.cause.toJson(e) : this.cause
  31412. };
  31413. }
  31414. }]);
  31415. return te;
  31416. }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
  31417. var ne = {
  31418. request: function request(e) {
  31419. return uni.request(e);
  31420. },
  31421. uploadFile: function uploadFile(e) {
  31422. return uni.uploadFile(e);
  31423. },
  31424. setStorageSync: function setStorageSync(e, t) {
  31425. return uni.setStorageSync(e, t);
  31426. },
  31427. getStorageSync: function getStorageSync(e) {
  31428. return uni.getStorageSync(e);
  31429. },
  31430. removeStorageSync: function removeStorageSync(e) {
  31431. return uni.removeStorageSync(e);
  31432. },
  31433. clearStorageSync: function clearStorageSync() {
  31434. return uni.clearStorageSync();
  31435. }
  31436. };
  31437. function se() {
  31438. return {
  31439. token: ne.getStorageSync("uni_id_token") || ne.getStorageSync("uniIdToken"),
  31440. tokenExpired: ne.getStorageSync("uni_id_token_expired")
  31441. };
  31442. }
  31443. function re() {
  31444. var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  31445. e = _ref2.token,
  31446. t = _ref2.tokenExpired;
  31447. e && ne.setStorageSync("uni_id_token", e), t && ne.setStorageSync("uni_id_token_expired", t);
  31448. }
  31449. var ie, oe;
  31450. function ae() {
  31451. return ie || (ie = uni.getSystemInfoSync()), ie;
  31452. }
  31453. function ce() {
  31454. var e, t;
  31455. try {
  31456. if (uni.getLaunchOptionsSync) {
  31457. if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;
  31458. var _uni$getLaunchOptions = uni.getLaunchOptionsSync(),
  31459. _n3 = _uni$getLaunchOptions.scene,
  31460. _s3 = _uni$getLaunchOptions.channel;
  31461. e = _s3, t = _n3;
  31462. }
  31463. } catch (e) {}
  31464. return {
  31465. channel: e,
  31466. scene: t
  31467. };
  31468. }
  31469. function ue() {
  31470. var e = uni.getLocale && uni.getLocale() || "en";
  31471. if (oe) return _objectSpread(_objectSpread({}, oe), {}, {
  31472. locale: e,
  31473. LOCALE: e
  31474. });
  31475. var t = ae(),
  31476. n = t.deviceId,
  31477. s = t.osName,
  31478. r = t.uniPlatform,
  31479. i = t.appId,
  31480. o = ["pixelRatio", "brand", "model", "system", "language", "version", "platform", "host", "SDKVersion", "swanNativeVersion", "app", "AppPlatform", "fontSizeSetting"];
  31481. for (var _e3 = 0; _e3 < o.length; _e3++) {
  31482. delete t[o[_e3]];
  31483. }
  31484. return oe = _objectSpread(_objectSpread({
  31485. PLATFORM: r,
  31486. OS: s,
  31487. APPID: i,
  31488. DEVICEID: n
  31489. }, ce()), t), _objectSpread(_objectSpread({}, oe), {}, {
  31490. locale: e,
  31491. LOCALE: e
  31492. });
  31493. }
  31494. var le = {
  31495. sign: function sign(e, t) {
  31496. var n = "";
  31497. return Object.keys(e).sort().forEach(function (t) {
  31498. e[t] && (n = n + "&" + t + "=" + e[t]);
  31499. }), n = n.slice(1), i(n, t).toString();
  31500. },
  31501. wrappedRequest: function wrappedRequest(e, t) {
  31502. return new Promise(function (n, s) {
  31503. t(Object.assign(e, {
  31504. complete: function complete(e) {
  31505. e || (e = {}), S && "web" === P && e.errMsg && 0 === e.errMsg.indexOf("request:fail") && console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");
  31506. var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];
  31507. if (!e.statusCode || e.statusCode >= 400) return s(new te({
  31508. code: "SYS_ERR",
  31509. message: e.errMsg || "request:fail",
  31510. requestId: t
  31511. }));
  31512. var r = e.data;
  31513. if (r.error) return s(new te({
  31514. code: r.error.code,
  31515. message: r.error.message,
  31516. requestId: t
  31517. }));
  31518. r.result = r.data, r.requestId = t, delete r.data, n(r);
  31519. }
  31520. }));
  31521. });
  31522. },
  31523. toBase64: function toBase64(e) {
  31524. return a.stringify(o.parse(e));
  31525. }
  31526. };
  31527. var he = /*#__PURE__*/function () {
  31528. function he(e) {
  31529. var _this3 = this;
  31530. (0, _classCallCheck2.default)(this, he);
  31531. ["spaceId", "clientSecret"].forEach(function (t) {
  31532. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  31533. }), this.config = Object.assign({}, {
  31534. endpoint: 0 === e.spaceId.indexOf("mp-") ? "https://api.next.bspapp.com" : "https://api.bspapp.com"
  31535. }, e), this.config.provider = "aliyun", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.config.accessTokenKey = "access_token_" + this.config.spaceId, this.adapter = ne, this._getAccessTokenPromiseHub = new v({
  31536. createPromise: function createPromise() {
  31537. return _this3.requestAuth(_this3.setupRequest({
  31538. method: "serverless.auth.user.anonymousAuthorize",
  31539. params: "{}"
  31540. }, "auth")).then(function (e) {
  31541. if (!e.result || !e.result.accessToken) throw new te({
  31542. code: "AUTH_FAILED",
  31543. message: "获取accessToken失败"
  31544. });
  31545. _this3.setAccessToken(e.result.accessToken);
  31546. });
  31547. },
  31548. retryRule: w
  31549. });
  31550. }
  31551. (0, _createClass2.default)(he, [{
  31552. key: "hasAccessToken",
  31553. get: function get() {
  31554. return !!this.accessToken;
  31555. }
  31556. }, {
  31557. key: "setAccessToken",
  31558. value: function setAccessToken(e) {
  31559. this.accessToken = e;
  31560. }
  31561. }, {
  31562. key: "requestWrapped",
  31563. value: function requestWrapped(e) {
  31564. return le.wrappedRequest(e, this.adapter.request);
  31565. }
  31566. }, {
  31567. key: "requestAuth",
  31568. value: function requestAuth(e) {
  31569. return this.requestWrapped(e);
  31570. }
  31571. }, {
  31572. key: "request",
  31573. value: function request(e, t) {
  31574. var _this4 = this;
  31575. return Promise.resolve().then(function () {
  31576. return _this4.hasAccessToken ? t ? _this4.requestWrapped(e) : _this4.requestWrapped(e).catch(function (t) {
  31577. return new Promise(function (e, n) {
  31578. !t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();
  31579. }).then(function () {
  31580. return _this4.getAccessToken();
  31581. }).then(function () {
  31582. var t = _this4.rebuildRequest(e);
  31583. return _this4.request(t, !0);
  31584. });
  31585. }) : _this4.getAccessToken().then(function () {
  31586. var t = _this4.rebuildRequest(e);
  31587. return _this4.request(t, !0);
  31588. });
  31589. });
  31590. }
  31591. }, {
  31592. key: "rebuildRequest",
  31593. value: function rebuildRequest(e) {
  31594. var t = Object.assign({}, e);
  31595. return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, t.header["x-serverless-sign"] = le.sign(t.data, this.config.clientSecret), t;
  31596. }
  31597. }, {
  31598. key: "setupRequest",
  31599. value: function setupRequest(e, t) {
  31600. var n = Object.assign({}, e, {
  31601. spaceId: this.config.spaceId,
  31602. timestamp: Date.now()
  31603. }),
  31604. s = {
  31605. "Content-Type": "application/json"
  31606. };
  31607. return "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = le.sign(n, this.config.clientSecret), {
  31608. url: this.config.requestUrl,
  31609. method: "POST",
  31610. data: n,
  31611. dataType: "json",
  31612. header: s
  31613. };
  31614. }
  31615. }, {
  31616. key: "getAccessToken",
  31617. value: function getAccessToken() {
  31618. return this._getAccessTokenPromiseHub.exec();
  31619. }
  31620. }, {
  31621. key: "authorize",
  31622. value: function () {
  31623. var _authorize = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  31624. return _regenerator.default.wrap(function _callee$(_context) {
  31625. while (1) {
  31626. switch (_context.prev = _context.next) {
  31627. case 0:
  31628. _context.next = 2;
  31629. return this.getAccessToken();
  31630. case 2:
  31631. case "end":
  31632. return _context.stop();
  31633. }
  31634. }
  31635. }, _callee, this);
  31636. }));
  31637. function authorize() {
  31638. return _authorize.apply(this, arguments);
  31639. }
  31640. return authorize;
  31641. }()
  31642. }, {
  31643. key: "callFunction",
  31644. value: function callFunction(e) {
  31645. var t = {
  31646. method: "serverless.function.runtime.invoke",
  31647. params: JSON.stringify({
  31648. functionTarget: e.name,
  31649. functionArgs: e.data || {}
  31650. })
  31651. };
  31652. return this.request(this.setupRequest(t));
  31653. }
  31654. }, {
  31655. key: "getOSSUploadOptionsFromPath",
  31656. value: function getOSSUploadOptionsFromPath(e) {
  31657. var t = {
  31658. method: "serverless.file.resource.generateProximalSign",
  31659. params: JSON.stringify(e)
  31660. };
  31661. return this.request(this.setupRequest(t));
  31662. }
  31663. }, {
  31664. key: "uploadFileToOSS",
  31665. value: function uploadFileToOSS(_ref3) {
  31666. var _this5 = this;
  31667. var e = _ref3.url,
  31668. t = _ref3.formData,
  31669. n = _ref3.name,
  31670. s = _ref3.filePath,
  31671. r = _ref3.fileType,
  31672. i = _ref3.onUploadProgress;
  31673. return new Promise(function (o, a) {
  31674. var c = _this5.adapter.uploadFile({
  31675. url: e,
  31676. formData: t,
  31677. name: n,
  31678. filePath: s,
  31679. fileType: r,
  31680. header: {
  31681. "X-OSS-server-side-encrpytion": "AES256"
  31682. },
  31683. success: function success(e) {
  31684. e && e.statusCode < 400 ? o(e) : a(new te({
  31685. code: "UPLOAD_FAILED",
  31686. message: "文件上传失败"
  31687. }));
  31688. },
  31689. fail: function fail(e) {
  31690. a(new te({
  31691. code: e.code || "UPLOAD_FAILED",
  31692. message: e.message || e.errMsg || "文件上传失败"
  31693. }));
  31694. }
  31695. });
  31696. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  31697. i({
  31698. loaded: e.totalBytesSent,
  31699. total: e.totalBytesExpectedToSend
  31700. });
  31701. });
  31702. });
  31703. }
  31704. }, {
  31705. key: "reportOSSUpload",
  31706. value: function reportOSSUpload(e) {
  31707. var t = {
  31708. method: "serverless.file.resource.report",
  31709. params: JSON.stringify(e)
  31710. };
  31711. return this.request(this.setupRequest(t));
  31712. }
  31713. }, {
  31714. key: "uploadFile",
  31715. value: function () {
  31716. var _uploadFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref4) {
  31717. var e, t, _ref4$fileType, n, _ref4$cloudPathAsReal, s, r, i, o, a, c, u, l, h, d, p, g, m, y, _, _e4, w;
  31718. return _regenerator.default.wrap(function _callee2$(_context2) {
  31719. while (1) {
  31720. switch (_context2.prev = _context2.next) {
  31721. case 0:
  31722. e = _ref4.filePath, t = _ref4.cloudPath, _ref4$fileType = _ref4.fileType, n = _ref4$fileType === void 0 ? "image" : _ref4$fileType, _ref4$cloudPathAsReal = _ref4.cloudPathAsRealPath, s = _ref4$cloudPathAsReal === void 0 ? !1 : _ref4$cloudPathAsReal, r = _ref4.onUploadProgress, i = _ref4.config;
  31723. if (!("string" !== f(t))) {
  31724. _context2.next = 3;
  31725. break;
  31726. }
  31727. throw new te({
  31728. code: "INVALID_PARAM",
  31729. message: "cloudPath必须为字符串类型"
  31730. });
  31731. case 3:
  31732. if (t = t.trim()) {
  31733. _context2.next = 5;
  31734. break;
  31735. }
  31736. throw new te({
  31737. code: "INVALID_PARAM",
  31738. message: "cloudPath不可为空"
  31739. });
  31740. case 5:
  31741. if (!/:\/\//.test(t)) {
  31742. _context2.next = 7;
  31743. break;
  31744. }
  31745. throw new te({
  31746. code: "INVALID_PARAM",
  31747. message: "cloudPath不合法"
  31748. });
  31749. case 7:
  31750. o = i && i.envType || this.config.envType;
  31751. if (!(s && ("/" !== t[0] && (t = "/" + t), t.indexOf("\\") > -1))) {
  31752. _context2.next = 10;
  31753. break;
  31754. }
  31755. throw new te({
  31756. code: "INVALID_PARAM",
  31757. message: "使用cloudPath作为路径时,cloudPath不可包含“\\”"
  31758. });
  31759. case 10:
  31760. _context2.next = 12;
  31761. return this.getOSSUploadOptionsFromPath({
  31762. env: o,
  31763. filename: s ? t.split("/").pop() : t,
  31764. fileId: s ? t : void 0
  31765. });
  31766. case 12:
  31767. a = _context2.sent.result;
  31768. c = "https://" + a.cdnDomain + "/" + a.ossPath;
  31769. u = a.securityToken;
  31770. l = a.accessKeyId;
  31771. h = a.signature;
  31772. d = a.host;
  31773. p = a.ossPath;
  31774. g = a.id;
  31775. m = a.policy;
  31776. y = a.ossCallbackUrl;
  31777. _ = {
  31778. "Cache-Control": "max-age=2592000",
  31779. "Content-Disposition": "attachment",
  31780. OSSAccessKeyId: l,
  31781. Signature: h,
  31782. host: d,
  31783. id: g,
  31784. key: p,
  31785. policy: m,
  31786. success_action_status: 200
  31787. };
  31788. if (u && (_["x-oss-security-token"] = u), y) {
  31789. _e4 = JSON.stringify({
  31790. callbackUrl: y,
  31791. callbackBody: JSON.stringify({
  31792. fileId: g,
  31793. spaceId: this.config.spaceId
  31794. }),
  31795. callbackBodyType: "application/json"
  31796. });
  31797. _.callback = le.toBase64(_e4);
  31798. }
  31799. w = {
  31800. url: "https://" + a.host,
  31801. formData: _,
  31802. fileName: "file",
  31803. name: "file",
  31804. filePath: e,
  31805. fileType: n
  31806. };
  31807. _context2.next = 27;
  31808. return this.uploadFileToOSS(Object.assign({}, w, {
  31809. onUploadProgress: r
  31810. }));
  31811. case 27:
  31812. if (!y) {
  31813. _context2.next = 29;
  31814. break;
  31815. }
  31816. return _context2.abrupt("return", {
  31817. success: !0,
  31818. filePath: e,
  31819. fileID: c
  31820. });
  31821. case 29:
  31822. _context2.next = 31;
  31823. return this.reportOSSUpload({
  31824. id: g
  31825. });
  31826. case 31:
  31827. if (!_context2.sent.success) {
  31828. _context2.next = 33;
  31829. break;
  31830. }
  31831. return _context2.abrupt("return", {
  31832. success: !0,
  31833. filePath: e,
  31834. fileID: c
  31835. });
  31836. case 33:
  31837. throw new te({
  31838. code: "UPLOAD_FAILED",
  31839. message: "文件上传失败"
  31840. });
  31841. case 34:
  31842. case "end":
  31843. return _context2.stop();
  31844. }
  31845. }
  31846. }, _callee2, this);
  31847. }));
  31848. function uploadFile(_x) {
  31849. return _uploadFile.apply(this, arguments);
  31850. }
  31851. return uploadFile;
  31852. }()
  31853. }, {
  31854. key: "getTempFileURL",
  31855. value: function getTempFileURL() {
  31856. var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  31857. e = _ref5.fileList;
  31858. return new Promise(function (t, n) {
  31859. Array.isArray(e) && 0 !== e.length || n(new te({
  31860. code: "INVALID_PARAM",
  31861. message: "fileList的元素必须是非空的字符串"
  31862. })), t({
  31863. fileList: e.map(function (e) {
  31864. return {
  31865. fileID: e,
  31866. tempFileURL: e
  31867. };
  31868. })
  31869. });
  31870. });
  31871. }
  31872. }, {
  31873. key: "getFileInfo",
  31874. value: function () {
  31875. var _getFileInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  31876. var _ref6,
  31877. e,
  31878. t,
  31879. _args3 = arguments;
  31880. return _regenerator.default.wrap(function _callee3$(_context3) {
  31881. while (1) {
  31882. switch (_context3.prev = _context3.next) {
  31883. case 0:
  31884. _ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, e = _ref6.fileList;
  31885. if (!(!Array.isArray(e) || 0 === e.length)) {
  31886. _context3.next = 3;
  31887. break;
  31888. }
  31889. throw new te({
  31890. code: "INVALID_PARAM",
  31891. message: "fileList的元素必须是非空的字符串"
  31892. });
  31893. case 3:
  31894. t = {
  31895. method: "serverless.file.resource.info",
  31896. params: JSON.stringify({
  31897. id: e.map(function (e) {
  31898. return e.split("?")[0];
  31899. }).join(",")
  31900. })
  31901. };
  31902. _context3.next = 6;
  31903. return this.request(this.setupRequest(t));
  31904. case 6:
  31905. _context3.t0 = _context3.sent.result;
  31906. return _context3.abrupt("return", {
  31907. fileList: _context3.t0
  31908. });
  31909. case 8:
  31910. case "end":
  31911. return _context3.stop();
  31912. }
  31913. }
  31914. }, _callee3, this);
  31915. }));
  31916. function getFileInfo() {
  31917. return _getFileInfo.apply(this, arguments);
  31918. }
  31919. return getFileInfo;
  31920. }()
  31921. }]);
  31922. return he;
  31923. }();
  31924. var de = {
  31925. init: function init(e) {
  31926. var t = new he(e),
  31927. n = {
  31928. signInAnonymously: function signInAnonymously() {
  31929. return t.authorize();
  31930. },
  31931. getLoginState: function getLoginState() {
  31932. return Promise.resolve(!1);
  31933. }
  31934. };
  31935. return t.auth = function () {
  31936. return n;
  31937. }, t.customAuth = t.auth, t;
  31938. }
  31939. };
  31940. var pe = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";
  31941. var fe;
  31942. !function (e) {
  31943. e.local = "local", e.none = "none", e.session = "session";
  31944. }(fe || (fe = {}));
  31945. var ge = function ge() {},
  31946. me = n(function (e, t) {
  31947. var n;
  31948. e.exports = (n = r, function (e) {
  31949. var t = n,
  31950. s = t.lib,
  31951. r = s.WordArray,
  31952. i = s.Hasher,
  31953. o = t.algo,
  31954. a = [],
  31955. c = [];
  31956. !function () {
  31957. function t(t) {
  31958. for (var n = e.sqrt(t), s = 2; s <= n; s++) {
  31959. if (!(t % s)) return !1;
  31960. }
  31961. return !0;
  31962. }
  31963. function n(e) {
  31964. return 4294967296 * (e - (0 | e)) | 0;
  31965. }
  31966. for (var s = 2, r = 0; r < 64;) {
  31967. t(s) && (r < 8 && (a[r] = n(e.pow(s, .5))), c[r] = n(e.pow(s, 1 / 3)), r++), s++;
  31968. }
  31969. }();
  31970. var u = [],
  31971. l = o.SHA256 = i.extend({
  31972. _doReset: function _doReset() {
  31973. this._hash = new r.init(a.slice(0));
  31974. },
  31975. _doProcessBlock: function _doProcessBlock(e, t) {
  31976. for (var n = this._hash.words, s = n[0], r = n[1], i = n[2], o = n[3], a = n[4], l = n[5], h = n[6], d = n[7], p = 0; p < 64; p++) {
  31977. if (p < 16) u[p] = 0 | e[t + p];else {
  31978. var f = u[p - 15],
  31979. g = (f << 25 | f >>> 7) ^ (f << 14 | f >>> 18) ^ f >>> 3,
  31980. m = u[p - 2],
  31981. y = (m << 15 | m >>> 17) ^ (m << 13 | m >>> 19) ^ m >>> 10;
  31982. u[p] = g + u[p - 7] + y + u[p - 16];
  31983. }
  31984. var _ = s & r ^ s & i ^ r & i,
  31985. w = (s << 30 | s >>> 2) ^ (s << 19 | s >>> 13) ^ (s << 10 | s >>> 22),
  31986. v = d + ((a << 26 | a >>> 6) ^ (a << 21 | a >>> 11) ^ (a << 7 | a >>> 25)) + (a & l ^ ~a & h) + c[p] + u[p];
  31987. d = h, h = l, l = a, a = o + v | 0, o = i, i = r, r = s, s = v + (w + _) | 0;
  31988. }
  31989. n[0] = n[0] + s | 0, n[1] = n[1] + r | 0, n[2] = n[2] + i | 0, n[3] = n[3] + o | 0, n[4] = n[4] + a | 0, n[5] = n[5] + l | 0, n[6] = n[6] + h | 0, n[7] = n[7] + d | 0;
  31990. },
  31991. _doFinalize: function _doFinalize() {
  31992. var t = this._data,
  31993. n = t.words,
  31994. s = 8 * this._nDataBytes,
  31995. r = 8 * t.sigBytes;
  31996. return n[r >>> 5] |= 128 << 24 - r % 32, n[14 + (r + 64 >>> 9 << 4)] = e.floor(s / 4294967296), n[15 + (r + 64 >>> 9 << 4)] = s, t.sigBytes = 4 * n.length, this._process(), this._hash;
  31997. },
  31998. clone: function clone() {
  31999. var e = i.clone.call(this);
  32000. return e._hash = this._hash.clone(), e;
  32001. }
  32002. });
  32003. t.SHA256 = i._createHelper(l), t.HmacSHA256 = i._createHmacHelper(l);
  32004. }(Math), n.SHA256);
  32005. }),
  32006. ye = me,
  32007. _e = n(function (e, t) {
  32008. e.exports = r.HmacSHA256;
  32009. });
  32010. var we = function we() {
  32011. var e;
  32012. if (!Promise) {
  32013. e = function e() {}, e.promise = {};
  32014. var _t3 = function _t3() {
  32015. throw new te({
  32016. message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'
  32017. });
  32018. };
  32019. return Object.defineProperty(e.promise, "then", {
  32020. get: _t3
  32021. }), Object.defineProperty(e.promise, "catch", {
  32022. get: _t3
  32023. }), e;
  32024. }
  32025. var t = new Promise(function (t, n) {
  32026. e = function e(_e5, s) {
  32027. return _e5 ? n(_e5) : t(s);
  32028. };
  32029. });
  32030. return e.promise = t, e;
  32031. };
  32032. function ve(e) {
  32033. return void 0 === e;
  32034. }
  32035. function Ie(e) {
  32036. return "[object Null]" === Object.prototype.toString.call(e);
  32037. }
  32038. var Se;
  32039. function be(e) {
  32040. var t = (n = e, "[object Array]" === Object.prototype.toString.call(n) ? e : [e]);
  32041. var n;
  32042. var _iterator = _createForOfIteratorHelper(t),
  32043. _step;
  32044. try {
  32045. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  32046. var _e6 = _step.value;
  32047. var _t4 = _e6.isMatch,
  32048. _n4 = _e6.genAdapter,
  32049. _s4 = _e6.runtime;
  32050. if (_t4()) return {
  32051. adapter: _n4(),
  32052. runtime: _s4
  32053. };
  32054. }
  32055. } catch (err) {
  32056. _iterator.e(err);
  32057. } finally {
  32058. _iterator.f();
  32059. }
  32060. }
  32061. !function (e) {
  32062. e.WEB = "web", e.WX_MP = "wx_mp";
  32063. }(Se || (Se = {}));
  32064. var ke = {
  32065. adapter: null,
  32066. runtime: void 0
  32067. },
  32068. Ae = ["anonymousUuidKey"];
  32069. var Pe = /*#__PURE__*/function (_ge) {
  32070. (0, _inherits2.default)(Pe, _ge);
  32071. var _super2 = _createSuper(Pe);
  32072. function Pe() {
  32073. var _this6;
  32074. (0, _classCallCheck2.default)(this, Pe);
  32075. _this6 = _super2.call(this), ke.adapter.root.tcbObject || (ke.adapter.root.tcbObject = {});
  32076. return _this6;
  32077. }
  32078. (0, _createClass2.default)(Pe, [{
  32079. key: "setItem",
  32080. value: function setItem(e, t) {
  32081. ke.adapter.root.tcbObject[e] = t;
  32082. }
  32083. }, {
  32084. key: "getItem",
  32085. value: function getItem(e) {
  32086. return ke.adapter.root.tcbObject[e];
  32087. }
  32088. }, {
  32089. key: "removeItem",
  32090. value: function removeItem(e) {
  32091. delete ke.adapter.root.tcbObject[e];
  32092. }
  32093. }, {
  32094. key: "clear",
  32095. value: function clear() {
  32096. delete ke.adapter.root.tcbObject;
  32097. }
  32098. }]);
  32099. return Pe;
  32100. }(ge);
  32101. function Te(e, t) {
  32102. switch (e) {
  32103. case "local":
  32104. return t.localStorage || new Pe();
  32105. case "none":
  32106. return new Pe();
  32107. default:
  32108. return t.sessionStorage || new Pe();
  32109. }
  32110. }
  32111. var Ce = /*#__PURE__*/function () {
  32112. function Ce(e) {
  32113. (0, _classCallCheck2.default)(this, Ce);
  32114. if (!this._storage) {
  32115. this._persistence = ke.adapter.primaryStorage || e.persistence, this._storage = Te(this._persistence, ke.adapter);
  32116. var _t5 = "access_token_".concat(e.env),
  32117. _n5 = "access_token_expire_".concat(e.env),
  32118. _s5 = "refresh_token_".concat(e.env),
  32119. _r = "anonymous_uuid_".concat(e.env),
  32120. _i = "login_type_".concat(e.env),
  32121. _o = "user_info_".concat(e.env);
  32122. this.keys = {
  32123. accessTokenKey: _t5,
  32124. accessTokenExpireKey: _n5,
  32125. refreshTokenKey: _s5,
  32126. anonymousUuidKey: _r,
  32127. loginTypeKey: _i,
  32128. userInfoKey: _o
  32129. };
  32130. }
  32131. }
  32132. (0, _createClass2.default)(Ce, [{
  32133. key: "updatePersistence",
  32134. value: function updatePersistence(e) {
  32135. if (e === this._persistence) return;
  32136. var t = "local" === this._persistence;
  32137. this._persistence = e;
  32138. var n = Te(e, ke.adapter);
  32139. for (var _e7 in this.keys) {
  32140. var _s6 = this.keys[_e7];
  32141. if (t && Ae.includes(_e7)) continue;
  32142. var _r2 = this._storage.getItem(_s6);
  32143. ve(_r2) || Ie(_r2) || (n.setItem(_s6, _r2), this._storage.removeItem(_s6));
  32144. }
  32145. this._storage = n;
  32146. }
  32147. }, {
  32148. key: "setStore",
  32149. value: function setStore(e, t, n) {
  32150. if (!this._storage) return;
  32151. var s = {
  32152. version: n || "localCachev1",
  32153. content: t
  32154. },
  32155. r = JSON.stringify(s);
  32156. try {
  32157. this._storage.setItem(e, r);
  32158. } catch (e) {
  32159. throw e;
  32160. }
  32161. }
  32162. }, {
  32163. key: "getStore",
  32164. value: function getStore(e, t) {
  32165. try {
  32166. if (!this._storage) return;
  32167. } catch (e) {
  32168. return "";
  32169. }
  32170. t = t || "localCachev1";
  32171. var n = this._storage.getItem(e);
  32172. if (!n) return "";
  32173. if (n.indexOf(t) >= 0) {
  32174. return JSON.parse(n).content;
  32175. }
  32176. return "";
  32177. }
  32178. }, {
  32179. key: "removeStore",
  32180. value: function removeStore(e) {
  32181. this._storage.removeItem(e);
  32182. }
  32183. }]);
  32184. return Ce;
  32185. }();
  32186. var xe = {},
  32187. Oe = {};
  32188. function Ee(e) {
  32189. return xe[e];
  32190. }
  32191. var Le = /*#__PURE__*/(0, _createClass2.default)(function Le(e, t) {
  32192. (0, _classCallCheck2.default)(this, Le);
  32193. this.data = t || null, this.name = e;
  32194. });
  32195. var Re = /*#__PURE__*/function (_Le) {
  32196. (0, _inherits2.default)(Re, _Le);
  32197. var _super3 = _createSuper(Re);
  32198. function Re(e, t) {
  32199. var _this7;
  32200. (0, _classCallCheck2.default)(this, Re);
  32201. _this7 = _super3.call(this, "error", {
  32202. error: e,
  32203. data: t
  32204. }), _this7.error = e;
  32205. return _this7;
  32206. }
  32207. return (0, _createClass2.default)(Re);
  32208. }(Le);
  32209. var Ue = new ( /*#__PURE__*/function () {
  32210. function _class() {
  32211. (0, _classCallCheck2.default)(this, _class);
  32212. this._listeners = {};
  32213. }
  32214. (0, _createClass2.default)(_class, [{
  32215. key: "on",
  32216. value: function on(e, t) {
  32217. return function (e, t, n) {
  32218. n[e] = n[e] || [], n[e].push(t);
  32219. }(e, t, this._listeners), this;
  32220. }
  32221. }, {
  32222. key: "off",
  32223. value: function off(e, t) {
  32224. return function (e, t, n) {
  32225. if (n && n[e]) {
  32226. var _s7 = n[e].indexOf(t);
  32227. -1 !== _s7 && n[e].splice(_s7, 1);
  32228. }
  32229. }(e, t, this._listeners), this;
  32230. }
  32231. }, {
  32232. key: "fire",
  32233. value: function fire(e, t) {
  32234. if (e instanceof Re) return console.error(e.error), this;
  32235. var n = "string" == typeof e ? new Le(e, t || {}) : e;
  32236. var s = n.name;
  32237. if (this._listens(s)) {
  32238. n.target = this;
  32239. var _e8 = this._listeners[s] ? (0, _toConsumableArray2.default)(this._listeners[s]) : [];
  32240. var _iterator2 = _createForOfIteratorHelper(_e8),
  32241. _step2;
  32242. try {
  32243. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  32244. var _t6 = _step2.value;
  32245. _t6.call(this, n);
  32246. }
  32247. } catch (err) {
  32248. _iterator2.e(err);
  32249. } finally {
  32250. _iterator2.f();
  32251. }
  32252. }
  32253. return this;
  32254. }
  32255. }, {
  32256. key: "_listens",
  32257. value: function _listens(e) {
  32258. return this._listeners[e] && this._listeners[e].length > 0;
  32259. }
  32260. }]);
  32261. return _class;
  32262. }())();
  32263. function Ne(e, t) {
  32264. Ue.on(e, t);
  32265. }
  32266. function De(e) {
  32267. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  32268. Ue.fire(e, t);
  32269. }
  32270. function Me(e, t) {
  32271. Ue.off(e, t);
  32272. }
  32273. var qe = "loginStateChanged",
  32274. Fe = "loginStateExpire",
  32275. Ke = "loginTypeChanged",
  32276. je = "anonymousConverted",
  32277. Be = "refreshAccessToken";
  32278. var $e;
  32279. !function (e) {
  32280. e.ANONYMOUS = "ANONYMOUS", e.WECHAT = "WECHAT", e.WECHAT_PUBLIC = "WECHAT-PUBLIC", e.WECHAT_OPEN = "WECHAT-OPEN", e.CUSTOM = "CUSTOM", e.EMAIL = "EMAIL", e.USERNAME = "USERNAME", e.NULL = "NULL";
  32281. }($e || ($e = {}));
  32282. var We = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"],
  32283. He = {
  32284. "X-SDK-Version": "1.3.5"
  32285. };
  32286. function ze(e, t, n) {
  32287. var s = e[t];
  32288. e[t] = function (t) {
  32289. var r = {},
  32290. i = {};
  32291. n.forEach(function (n) {
  32292. var _n$call = n.call(e, t),
  32293. s = _n$call.data,
  32294. o = _n$call.headers;
  32295. Object.assign(r, s), Object.assign(i, o);
  32296. });
  32297. var o = t.data;
  32298. return o && function () {
  32299. var e;
  32300. if (e = o, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = _objectSpread(_objectSpread({}, o), r);else for (var _e9 in r) {
  32301. o.append(_e9, r[_e9]);
  32302. }
  32303. }(), t.headers = _objectSpread(_objectSpread({}, t.headers || {}), i), s.call(e, t);
  32304. };
  32305. }
  32306. function Je() {
  32307. var e = Math.random().toString(16).slice(2);
  32308. return {
  32309. data: {
  32310. seqId: e
  32311. },
  32312. headers: _objectSpread(_objectSpread({}, He), {}, {
  32313. "x-seqid": e
  32314. })
  32315. };
  32316. }
  32317. var Ve = /*#__PURE__*/function () {
  32318. function Ve() {
  32319. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  32320. (0, _classCallCheck2.default)(this, Ve);
  32321. var t;
  32322. this.config = e, this._reqClass = new ke.adapter.reqClass({
  32323. timeout: this.config.timeout,
  32324. timeoutMsg: "\u8BF7\u6C42\u5728".concat(this.config.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"),
  32325. restrictedMethods: ["post"]
  32326. }), this._cache = Ee(this.config.env), this._localCache = (t = this.config.env, Oe[t]), ze(this._reqClass, "post", [Je]), ze(this._reqClass, "upload", [Je]), ze(this._reqClass, "download", [Je]);
  32327. }
  32328. (0, _createClass2.default)(Ve, [{
  32329. key: "post",
  32330. value: function () {
  32331. var _post = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(e) {
  32332. return _regenerator.default.wrap(function _callee4$(_context4) {
  32333. while (1) {
  32334. switch (_context4.prev = _context4.next) {
  32335. case 0:
  32336. _context4.next = 2;
  32337. return this._reqClass.post(e);
  32338. case 2:
  32339. return _context4.abrupt("return", _context4.sent);
  32340. case 3:
  32341. case "end":
  32342. return _context4.stop();
  32343. }
  32344. }
  32345. }, _callee4, this);
  32346. }));
  32347. function post(_x2) {
  32348. return _post.apply(this, arguments);
  32349. }
  32350. return post;
  32351. }()
  32352. }, {
  32353. key: "upload",
  32354. value: function () {
  32355. var _upload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(e) {
  32356. return _regenerator.default.wrap(function _callee5$(_context5) {
  32357. while (1) {
  32358. switch (_context5.prev = _context5.next) {
  32359. case 0:
  32360. _context5.next = 2;
  32361. return this._reqClass.upload(e);
  32362. case 2:
  32363. return _context5.abrupt("return", _context5.sent);
  32364. case 3:
  32365. case "end":
  32366. return _context5.stop();
  32367. }
  32368. }
  32369. }, _callee5, this);
  32370. }));
  32371. function upload(_x3) {
  32372. return _upload.apply(this, arguments);
  32373. }
  32374. return upload;
  32375. }()
  32376. }, {
  32377. key: "download",
  32378. value: function () {
  32379. var _download = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(e) {
  32380. return _regenerator.default.wrap(function _callee6$(_context6) {
  32381. while (1) {
  32382. switch (_context6.prev = _context6.next) {
  32383. case 0:
  32384. _context6.next = 2;
  32385. return this._reqClass.download(e);
  32386. case 2:
  32387. return _context6.abrupt("return", _context6.sent);
  32388. case 3:
  32389. case "end":
  32390. return _context6.stop();
  32391. }
  32392. }
  32393. }, _callee6, this);
  32394. }));
  32395. function download(_x4) {
  32396. return _download.apply(this, arguments);
  32397. }
  32398. return download;
  32399. }()
  32400. }, {
  32401. key: "refreshAccessToken",
  32402. value: function () {
  32403. var _refreshAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  32404. var e, t;
  32405. return _regenerator.default.wrap(function _callee7$(_context7) {
  32406. while (1) {
  32407. switch (_context7.prev = _context7.next) {
  32408. case 0:
  32409. this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken());
  32410. _context7.prev = 1;
  32411. _context7.next = 4;
  32412. return this._refreshAccessTokenPromise;
  32413. case 4:
  32414. e = _context7.sent;
  32415. _context7.next = 10;
  32416. break;
  32417. case 7:
  32418. _context7.prev = 7;
  32419. _context7.t0 = _context7["catch"](1);
  32420. t = _context7.t0;
  32421. case 10:
  32422. if (!(this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t)) {
  32423. _context7.next = 12;
  32424. break;
  32425. }
  32426. throw t;
  32427. case 12:
  32428. return _context7.abrupt("return", e);
  32429. case 13:
  32430. case "end":
  32431. return _context7.stop();
  32432. }
  32433. }
  32434. }, _callee7, this, [[1, 7]]);
  32435. }));
  32436. function refreshAccessToken() {
  32437. return _refreshAccessToken2.apply(this, arguments);
  32438. }
  32439. return refreshAccessToken;
  32440. }()
  32441. }, {
  32442. key: "_refreshAccessToken",
  32443. value: function () {
  32444. var _refreshAccessToken3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  32445. var _this$_cache$keys, e, t, n, s, r, i, o, a, _e10, _e11, _t7, _s8;
  32446. return _regenerator.default.wrap(function _callee8$(_context8) {
  32447. while (1) {
  32448. switch (_context8.prev = _context8.next) {
  32449. case 0:
  32450. _this$_cache$keys = this._cache.keys, e = _this$_cache$keys.accessTokenKey, t = _this$_cache$keys.accessTokenExpireKey, n = _this$_cache$keys.refreshTokenKey, s = _this$_cache$keys.loginTypeKey, r = _this$_cache$keys.anonymousUuidKey;
  32451. this._cache.removeStore(e), this._cache.removeStore(t);
  32452. i = this._cache.getStore(n);
  32453. if (i) {
  32454. _context8.next = 5;
  32455. break;
  32456. }
  32457. throw new te({
  32458. message: "未登录CloudBase"
  32459. });
  32460. case 5:
  32461. o = {
  32462. refresh_token: i
  32463. };
  32464. _context8.next = 8;
  32465. return this.request("auth.fetchAccessTokenWithRefreshToken", o);
  32466. case 8:
  32467. a = _context8.sent;
  32468. if (!a.data.code) {
  32469. _context8.next = 21;
  32470. break;
  32471. }
  32472. _e10 = a.data.code;
  32473. if (!("SIGN_PARAM_INVALID" === _e10 || "REFRESH_TOKEN_EXPIRED" === _e10 || "INVALID_REFRESH_TOKEN" === _e10)) {
  32474. _context8.next = 20;
  32475. break;
  32476. }
  32477. if (!(this._cache.getStore(s) === $e.ANONYMOUS && "INVALID_REFRESH_TOKEN" === _e10)) {
  32478. _context8.next = 19;
  32479. break;
  32480. }
  32481. _e11 = this._cache.getStore(r);
  32482. _t7 = this._cache.getStore(n);
  32483. _context8.next = 17;
  32484. return this.send("auth.signInAnonymously", {
  32485. anonymous_uuid: _e11,
  32486. refresh_token: _t7
  32487. });
  32488. case 17:
  32489. _s8 = _context8.sent;
  32490. return _context8.abrupt("return", (this.setRefreshToken(_s8.refresh_token), this._refreshAccessToken()));
  32491. case 19:
  32492. De(Fe), this._cache.removeStore(n);
  32493. case 20:
  32494. throw new te({
  32495. code: a.data.code,
  32496. message: "\u5237\u65B0access token\u5931\u8D25\uFF1A".concat(a.data.code)
  32497. });
  32498. case 21:
  32499. if (!a.data.access_token) {
  32500. _context8.next = 23;
  32501. break;
  32502. }
  32503. return _context8.abrupt("return", (De(Be), this._cache.setStore(e, a.data.access_token), this._cache.setStore(t, a.data.access_token_expire + Date.now()), {
  32504. accessToken: a.data.access_token,
  32505. accessTokenExpire: a.data.access_token_expire
  32506. }));
  32507. case 23:
  32508. a.data.refresh_token && (this._cache.removeStore(n), this._cache.setStore(n, a.data.refresh_token), this._refreshAccessToken());
  32509. case 24:
  32510. case "end":
  32511. return _context8.stop();
  32512. }
  32513. }
  32514. }, _callee8, this);
  32515. }));
  32516. function _refreshAccessToken() {
  32517. return _refreshAccessToken3.apply(this, arguments);
  32518. }
  32519. return _refreshAccessToken;
  32520. }()
  32521. }, {
  32522. key: "getAccessToken",
  32523. value: function () {
  32524. var _getAccessToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
  32525. var _this$_cache$keys2, e, t, n, s, r, i;
  32526. return _regenerator.default.wrap(function _callee9$(_context9) {
  32527. while (1) {
  32528. switch (_context9.prev = _context9.next) {
  32529. case 0:
  32530. _this$_cache$keys2 = this._cache.keys, e = _this$_cache$keys2.accessTokenKey, t = _this$_cache$keys2.accessTokenExpireKey, n = _this$_cache$keys2.refreshTokenKey;
  32531. if (this._cache.getStore(n)) {
  32532. _context9.next = 3;
  32533. break;
  32534. }
  32535. throw new te({
  32536. message: "refresh token不存在,登录状态异常"
  32537. });
  32538. case 3:
  32539. s = this._cache.getStore(e), r = this._cache.getStore(t), i = !0;
  32540. _context9.t0 = this._shouldRefreshAccessTokenHook;
  32541. if (!_context9.t0) {
  32542. _context9.next = 9;
  32543. break;
  32544. }
  32545. _context9.next = 8;
  32546. return this._shouldRefreshAccessTokenHook(s, r);
  32547. case 8:
  32548. _context9.t0 = !_context9.sent;
  32549. case 9:
  32550. _context9.t1 = _context9.t0;
  32551. if (!_context9.t1) {
  32552. _context9.next = 12;
  32553. break;
  32554. }
  32555. i = !1;
  32556. case 12:
  32557. return _context9.abrupt("return", (!s || !r || r < Date.now()) && i ? this.refreshAccessToken() : {
  32558. accessToken: s,
  32559. accessTokenExpire: r
  32560. });
  32561. case 13:
  32562. case "end":
  32563. return _context9.stop();
  32564. }
  32565. }
  32566. }, _callee9, this);
  32567. }));
  32568. function getAccessToken() {
  32569. return _getAccessToken.apply(this, arguments);
  32570. }
  32571. return getAccessToken;
  32572. }()
  32573. }, {
  32574. key: "request",
  32575. value: function () {
  32576. var _request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(e, t, n) {
  32577. var s, r, i, _e12, o, _e13, _e14, a, c, u, l, h, d, p, f, g;
  32578. return _regenerator.default.wrap(function _callee10$(_context10) {
  32579. while (1) {
  32580. switch (_context10.prev = _context10.next) {
  32581. case 0:
  32582. s = "x-tcb-trace_".concat(this.config.env);
  32583. r = "application/x-www-form-urlencoded";
  32584. i = _objectSpread({
  32585. action: e,
  32586. env: this.config.env,
  32587. dataVersion: "2019-08-16"
  32588. }, t);
  32589. if (!(-1 === We.indexOf(e))) {
  32590. _context10.next = 10;
  32591. break;
  32592. }
  32593. _e12 = this._cache.keys.refreshTokenKey;
  32594. _context10.t0 = this._cache.getStore(_e12);
  32595. if (!_context10.t0) {
  32596. _context10.next = 10;
  32597. break;
  32598. }
  32599. _context10.next = 9;
  32600. return this.getAccessToken();
  32601. case 9:
  32602. i.access_token = _context10.sent.accessToken;
  32603. case 10:
  32604. if ("storage.uploadFile" === e) {
  32605. o = new FormData();
  32606. for (_e13 in o) {
  32607. o.hasOwnProperty(_e13) && void 0 !== o[_e13] && o.append(_e13, i[_e13]);
  32608. }
  32609. r = "multipart/form-data";
  32610. } else {
  32611. r = "application/json", o = {};
  32612. for (_e14 in i) {
  32613. void 0 !== i[_e14] && (o[_e14] = i[_e14]);
  32614. }
  32615. }
  32616. a = {
  32617. headers: {
  32618. "content-type": r
  32619. }
  32620. };
  32621. n && n.onUploadProgress && (a.onUploadProgress = n.onUploadProgress);
  32622. c = this._localCache.getStore(s);
  32623. c && (a.headers["X-TCB-Trace"] = c);
  32624. u = t.parse, l = t.inQuery, h = t.search;
  32625. d = {
  32626. env: this.config.env
  32627. };
  32628. u && (d.parse = !0), l && (d = _objectSpread(_objectSpread({}, l), d));
  32629. p = function (e, t) {
  32630. var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  32631. var s = /\?/.test(t);
  32632. var r = "";
  32633. for (var _e15 in n) {
  32634. "" === r ? !s && (t += "?") : r += "&", r += "".concat(_e15, "=").concat(encodeURIComponent(n[_e15]));
  32635. }
  32636. return /^http(s)?\:\/\//.test(t += r) ? t : "".concat(e).concat(t);
  32637. }(pe, "//tcb-api.tencentcloudapi.com/web", d);
  32638. h && (p += h);
  32639. _context10.next = 22;
  32640. return this.post(_objectSpread({
  32641. url: p,
  32642. data: o
  32643. }, a));
  32644. case 22:
  32645. f = _context10.sent;
  32646. g = f.header && f.header["x-tcb-trace"];
  32647. if (!(g && this._localCache.setStore(s, g), 200 !== Number(f.status) && 200 !== Number(f.statusCode) || !f.data)) {
  32648. _context10.next = 26;
  32649. break;
  32650. }
  32651. throw new te({
  32652. code: "NETWORK_ERROR",
  32653. message: "network request error"
  32654. });
  32655. case 26:
  32656. return _context10.abrupt("return", f);
  32657. case 27:
  32658. case "end":
  32659. return _context10.stop();
  32660. }
  32661. }
  32662. }, _callee10, this);
  32663. }));
  32664. function request(_x5, _x6, _x7) {
  32665. return _request.apply(this, arguments);
  32666. }
  32667. return request;
  32668. }()
  32669. }, {
  32670. key: "send",
  32671. value: function () {
  32672. var _send = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(e) {
  32673. var t,
  32674. n,
  32675. _n6,
  32676. _args11 = arguments;
  32677. return _regenerator.default.wrap(function _callee11$(_context11) {
  32678. while (1) {
  32679. switch (_context11.prev = _context11.next) {
  32680. case 0:
  32681. t = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
  32682. _context11.next = 3;
  32683. return this.request(e, t, {
  32684. onUploadProgress: t.onUploadProgress
  32685. });
  32686. case 3:
  32687. n = _context11.sent;
  32688. if (!("ACCESS_TOKEN_EXPIRED" === n.data.code && -1 === We.indexOf(e))) {
  32689. _context11.next = 13;
  32690. break;
  32691. }
  32692. _context11.next = 7;
  32693. return this.refreshAccessToken();
  32694. case 7:
  32695. _context11.next = 9;
  32696. return this.request(e, t, {
  32697. onUploadProgress: t.onUploadProgress
  32698. });
  32699. case 9:
  32700. _n6 = _context11.sent;
  32701. if (!_n6.data.code) {
  32702. _context11.next = 12;
  32703. break;
  32704. }
  32705. throw new te({
  32706. code: _n6.data.code,
  32707. message: _n6.data.message
  32708. });
  32709. case 12:
  32710. return _context11.abrupt("return", _n6.data);
  32711. case 13:
  32712. if (!n.data.code) {
  32713. _context11.next = 15;
  32714. break;
  32715. }
  32716. throw new te({
  32717. code: n.data.code,
  32718. message: n.data.message
  32719. });
  32720. case 15:
  32721. return _context11.abrupt("return", n.data);
  32722. case 16:
  32723. case "end":
  32724. return _context11.stop();
  32725. }
  32726. }
  32727. }, _callee11, this);
  32728. }));
  32729. function send(_x8) {
  32730. return _send.apply(this, arguments);
  32731. }
  32732. return send;
  32733. }()
  32734. }, {
  32735. key: "setRefreshToken",
  32736. value: function setRefreshToken(e) {
  32737. var _this$_cache$keys3 = this._cache.keys,
  32738. t = _this$_cache$keys3.accessTokenKey,
  32739. n = _this$_cache$keys3.accessTokenExpireKey,
  32740. s = _this$_cache$keys3.refreshTokenKey;
  32741. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  32742. }
  32743. }]);
  32744. return Ve;
  32745. }();
  32746. var Ge = {};
  32747. function Ye(e) {
  32748. return Ge[e];
  32749. }
  32750. var Qe = /*#__PURE__*/function () {
  32751. function Qe(e) {
  32752. (0, _classCallCheck2.default)(this, Qe);
  32753. this.config = e, this._cache = Ee(e.env), this._request = Ye(e.env);
  32754. }
  32755. (0, _createClass2.default)(Qe, [{
  32756. key: "setRefreshToken",
  32757. value: function setRefreshToken(e) {
  32758. var _this$_cache$keys4 = this._cache.keys,
  32759. t = _this$_cache$keys4.accessTokenKey,
  32760. n = _this$_cache$keys4.accessTokenExpireKey,
  32761. s = _this$_cache$keys4.refreshTokenKey;
  32762. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  32763. }
  32764. }, {
  32765. key: "setAccessToken",
  32766. value: function setAccessToken(e, t) {
  32767. var _this$_cache$keys5 = this._cache.keys,
  32768. n = _this$_cache$keys5.accessTokenKey,
  32769. s = _this$_cache$keys5.accessTokenExpireKey;
  32770. this._cache.setStore(n, e), this._cache.setStore(s, t);
  32771. }
  32772. }, {
  32773. key: "refreshUserInfo",
  32774. value: function () {
  32775. var _refreshUserInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
  32776. var _yield$this$_request$, e;
  32777. return _regenerator.default.wrap(function _callee12$(_context12) {
  32778. while (1) {
  32779. switch (_context12.prev = _context12.next) {
  32780. case 0:
  32781. _context12.next = 2;
  32782. return this._request.send("auth.getUserInfo", {});
  32783. case 2:
  32784. _yield$this$_request$ = _context12.sent;
  32785. e = _yield$this$_request$.data;
  32786. return _context12.abrupt("return", (this.setLocalUserInfo(e), e));
  32787. case 5:
  32788. case "end":
  32789. return _context12.stop();
  32790. }
  32791. }
  32792. }, _callee12, this);
  32793. }));
  32794. function refreshUserInfo() {
  32795. return _refreshUserInfo.apply(this, arguments);
  32796. }
  32797. return refreshUserInfo;
  32798. }()
  32799. }, {
  32800. key: "setLocalUserInfo",
  32801. value: function setLocalUserInfo(e) {
  32802. var t = this._cache.keys.userInfoKey;
  32803. this._cache.setStore(t, e);
  32804. }
  32805. }]);
  32806. return Qe;
  32807. }();
  32808. var Xe = /*#__PURE__*/function () {
  32809. function Xe(e) {
  32810. (0, _classCallCheck2.default)(this, Xe);
  32811. if (!e) throw new te({
  32812. code: "PARAM_ERROR",
  32813. message: "envId is not defined"
  32814. });
  32815. this._envId = e, this._cache = Ee(this._envId), this._request = Ye(this._envId), this.setUserInfo();
  32816. }
  32817. (0, _createClass2.default)(Xe, [{
  32818. key: "linkWithTicket",
  32819. value: function linkWithTicket(e) {
  32820. if ("string" != typeof e) throw new te({
  32821. code: "PARAM_ERROR",
  32822. message: "ticket must be string"
  32823. });
  32824. return this._request.send("auth.linkWithTicket", {
  32825. ticket: e
  32826. });
  32827. }
  32828. }, {
  32829. key: "linkWithRedirect",
  32830. value: function linkWithRedirect(e) {
  32831. e.signInWithRedirect();
  32832. }
  32833. }, {
  32834. key: "updatePassword",
  32835. value: function updatePassword(e, t) {
  32836. return this._request.send("auth.updatePassword", {
  32837. oldPassword: t,
  32838. newPassword: e
  32839. });
  32840. }
  32841. }, {
  32842. key: "updateEmail",
  32843. value: function updateEmail(e) {
  32844. return this._request.send("auth.updateEmail", {
  32845. newEmail: e
  32846. });
  32847. }
  32848. }, {
  32849. key: "updateUsername",
  32850. value: function updateUsername(e) {
  32851. if ("string" != typeof e) throw new te({
  32852. code: "PARAM_ERROR",
  32853. message: "username must be a string"
  32854. });
  32855. return this._request.send("auth.updateUsername", {
  32856. username: e
  32857. });
  32858. }
  32859. }, {
  32860. key: "getLinkedUidList",
  32861. value: function () {
  32862. var _getLinkedUidList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
  32863. var _yield$this$_request$2, e, t, n;
  32864. return _regenerator.default.wrap(function _callee13$(_context13) {
  32865. while (1) {
  32866. switch (_context13.prev = _context13.next) {
  32867. case 0:
  32868. _context13.next = 2;
  32869. return this._request.send("auth.getLinkedUidList", {});
  32870. case 2:
  32871. _yield$this$_request$2 = _context13.sent;
  32872. e = _yield$this$_request$2.data;
  32873. t = !1;
  32874. n = e.users;
  32875. return _context13.abrupt("return", (n.forEach(function (e) {
  32876. e.wxOpenId && e.wxPublicId && (t = !0);
  32877. }), {
  32878. users: n,
  32879. hasPrimaryUid: t
  32880. }));
  32881. case 7:
  32882. case "end":
  32883. return _context13.stop();
  32884. }
  32885. }
  32886. }, _callee13, this);
  32887. }));
  32888. function getLinkedUidList() {
  32889. return _getLinkedUidList.apply(this, arguments);
  32890. }
  32891. return getLinkedUidList;
  32892. }()
  32893. }, {
  32894. key: "setPrimaryUid",
  32895. value: function setPrimaryUid(e) {
  32896. return this._request.send("auth.setPrimaryUid", {
  32897. uid: e
  32898. });
  32899. }
  32900. }, {
  32901. key: "unlink",
  32902. value: function unlink(e) {
  32903. return this._request.send("auth.unlink", {
  32904. platform: e
  32905. });
  32906. }
  32907. }, {
  32908. key: "update",
  32909. value: function () {
  32910. var _update = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(e) {
  32911. var t, n, s, r, i, o, _yield$this$_request$3, a;
  32912. return _regenerator.default.wrap(function _callee14$(_context14) {
  32913. while (1) {
  32914. switch (_context14.prev = _context14.next) {
  32915. case 0:
  32916. t = e.nickName;
  32917. n = e.gender;
  32918. s = e.avatarUrl;
  32919. r = e.province;
  32920. i = e.country;
  32921. o = e.city;
  32922. _context14.next = 8;
  32923. return this._request.send("auth.updateUserInfo", {
  32924. nickName: t,
  32925. gender: n,
  32926. avatarUrl: s,
  32927. province: r,
  32928. country: i,
  32929. city: o
  32930. });
  32931. case 8:
  32932. _yield$this$_request$3 = _context14.sent;
  32933. a = _yield$this$_request$3.data;
  32934. this.setLocalUserInfo(a);
  32935. case 11:
  32936. case "end":
  32937. return _context14.stop();
  32938. }
  32939. }
  32940. }, _callee14, this);
  32941. }));
  32942. function update(_x9) {
  32943. return _update.apply(this, arguments);
  32944. }
  32945. return update;
  32946. }()
  32947. }, {
  32948. key: "refresh",
  32949. value: function () {
  32950. var _refresh = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
  32951. var _yield$this$_request$4, e;
  32952. return _regenerator.default.wrap(function _callee15$(_context15) {
  32953. while (1) {
  32954. switch (_context15.prev = _context15.next) {
  32955. case 0:
  32956. _context15.next = 2;
  32957. return this._request.send("auth.getUserInfo", {});
  32958. case 2:
  32959. _yield$this$_request$4 = _context15.sent;
  32960. e = _yield$this$_request$4.data;
  32961. return _context15.abrupt("return", (this.setLocalUserInfo(e), e));
  32962. case 5:
  32963. case "end":
  32964. return _context15.stop();
  32965. }
  32966. }
  32967. }, _callee15, this);
  32968. }));
  32969. function refresh() {
  32970. return _refresh.apply(this, arguments);
  32971. }
  32972. return refresh;
  32973. }()
  32974. }, {
  32975. key: "setUserInfo",
  32976. value: function setUserInfo() {
  32977. var _this8 = this;
  32978. var e = this._cache.keys.userInfoKey,
  32979. t = this._cache.getStore(e);
  32980. ["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach(function (e) {
  32981. _this8[e] = t[e];
  32982. }), this.location = {
  32983. country: t.country,
  32984. province: t.province,
  32985. city: t.city
  32986. };
  32987. }
  32988. }, {
  32989. key: "setLocalUserInfo",
  32990. value: function setLocalUserInfo(e) {
  32991. var t = this._cache.keys.userInfoKey;
  32992. this._cache.setStore(t, e), this.setUserInfo();
  32993. }
  32994. }]);
  32995. return Xe;
  32996. }();
  32997. var Ze = /*#__PURE__*/function () {
  32998. function Ze(e) {
  32999. (0, _classCallCheck2.default)(this, Ze);
  33000. if (!e) throw new te({
  33001. code: "PARAM_ERROR",
  33002. message: "envId is not defined"
  33003. });
  33004. this._cache = Ee(e);
  33005. var _this$_cache$keys6 = this._cache.keys,
  33006. t = _this$_cache$keys6.refreshTokenKey,
  33007. n = _this$_cache$keys6.accessTokenKey,
  33008. s = _this$_cache$keys6.accessTokenExpireKey,
  33009. r = this._cache.getStore(t),
  33010. i = this._cache.getStore(n),
  33011. o = this._cache.getStore(s);
  33012. this.credential = {
  33013. refreshToken: r,
  33014. accessToken: i,
  33015. accessTokenExpire: o
  33016. }, this.user = new Xe(e);
  33017. }
  33018. (0, _createClass2.default)(Ze, [{
  33019. key: "isAnonymousAuth",
  33020. get: function get() {
  33021. return this.loginType === $e.ANONYMOUS;
  33022. }
  33023. }, {
  33024. key: "isCustomAuth",
  33025. get: function get() {
  33026. return this.loginType === $e.CUSTOM;
  33027. }
  33028. }, {
  33029. key: "isWeixinAuth",
  33030. get: function get() {
  33031. return this.loginType === $e.WECHAT || this.loginType === $e.WECHAT_OPEN || this.loginType === $e.WECHAT_PUBLIC;
  33032. }
  33033. }, {
  33034. key: "loginType",
  33035. get: function get() {
  33036. return this._cache.getStore(this._cache.keys.loginTypeKey);
  33037. }
  33038. }]);
  33039. return Ze;
  33040. }();
  33041. var et = /*#__PURE__*/function (_Qe) {
  33042. (0, _inherits2.default)(et, _Qe);
  33043. var _super4 = _createSuper(et);
  33044. function et() {
  33045. (0, _classCallCheck2.default)(this, et);
  33046. return _super4.apply(this, arguments);
  33047. }
  33048. (0, _createClass2.default)(et, [{
  33049. key: "signIn",
  33050. value: function () {
  33051. var _signIn = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
  33052. var _this$_cache$keys7, e, t, n, s, r, _e16;
  33053. return _regenerator.default.wrap(function _callee16$(_context16) {
  33054. while (1) {
  33055. switch (_context16.prev = _context16.next) {
  33056. case 0:
  33057. this._cache.updatePersistence("local");
  33058. _this$_cache$keys7 = this._cache.keys;
  33059. e = _this$_cache$keys7.anonymousUuidKey;
  33060. t = _this$_cache$keys7.refreshTokenKey;
  33061. n = this._cache.getStore(e) || void 0;
  33062. s = this._cache.getStore(t) || void 0;
  33063. _context16.next = 8;
  33064. return this._request.send("auth.signInAnonymously", {
  33065. anonymous_uuid: n,
  33066. refresh_token: s
  33067. });
  33068. case 8:
  33069. r = _context16.sent;
  33070. if (!(r.uuid && r.refresh_token)) {
  33071. _context16.next = 20;
  33072. break;
  33073. }
  33074. this._setAnonymousUUID(r.uuid);
  33075. this.setRefreshToken(r.refresh_token);
  33076. _context16.next = 14;
  33077. return this._request.refreshAccessToken();
  33078. case 14:
  33079. De(qe);
  33080. De(Ke, {
  33081. env: this.config.env,
  33082. loginType: $e.ANONYMOUS,
  33083. persistence: "local"
  33084. });
  33085. _e16 = new Ze(this.config.env);
  33086. _context16.next = 19;
  33087. return _e16.user.refresh();
  33088. case 19:
  33089. return _context16.abrupt("return", _e16);
  33090. case 20:
  33091. throw new te({
  33092. message: "匿名登录失败"
  33093. });
  33094. case 21:
  33095. case "end":
  33096. return _context16.stop();
  33097. }
  33098. }
  33099. }, _callee16, this);
  33100. }));
  33101. function signIn() {
  33102. return _signIn.apply(this, arguments);
  33103. }
  33104. return signIn;
  33105. }()
  33106. }, {
  33107. key: "linkAndRetrieveDataWithTicket",
  33108. value: function () {
  33109. var _linkAndRetrieveDataWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(e) {
  33110. var _this$_cache$keys8, t, n, s, r, i;
  33111. return _regenerator.default.wrap(function _callee17$(_context17) {
  33112. while (1) {
  33113. switch (_context17.prev = _context17.next) {
  33114. case 0:
  33115. _this$_cache$keys8 = this._cache.keys;
  33116. t = _this$_cache$keys8.anonymousUuidKey;
  33117. n = _this$_cache$keys8.refreshTokenKey;
  33118. s = this._cache.getStore(t);
  33119. r = this._cache.getStore(n);
  33120. _context17.next = 7;
  33121. return this._request.send("auth.linkAndRetrieveDataWithTicket", {
  33122. anonymous_uuid: s,
  33123. refresh_token: r,
  33124. ticket: e
  33125. });
  33126. case 7:
  33127. i = _context17.sent;
  33128. if (!i.refresh_token) {
  33129. _context17.next = 16;
  33130. break;
  33131. }
  33132. this._clearAnonymousUUID();
  33133. this.setRefreshToken(i.refresh_token);
  33134. _context17.next = 13;
  33135. return this._request.refreshAccessToken();
  33136. case 13:
  33137. De(je, {
  33138. env: this.config.env
  33139. });
  33140. De(Ke, {
  33141. loginType: $e.CUSTOM,
  33142. persistence: "local"
  33143. });
  33144. return _context17.abrupt("return", {
  33145. credential: {
  33146. refreshToken: i.refresh_token
  33147. }
  33148. });
  33149. case 16:
  33150. throw new te({
  33151. message: "匿名转化失败"
  33152. });
  33153. case 17:
  33154. case "end":
  33155. return _context17.stop();
  33156. }
  33157. }
  33158. }, _callee17, this);
  33159. }));
  33160. function linkAndRetrieveDataWithTicket(_x10) {
  33161. return _linkAndRetrieveDataWithTicket.apply(this, arguments);
  33162. }
  33163. return linkAndRetrieveDataWithTicket;
  33164. }()
  33165. }, {
  33166. key: "_setAnonymousUUID",
  33167. value: function _setAnonymousUUID(e) {
  33168. var _this$_cache$keys9 = this._cache.keys,
  33169. t = _this$_cache$keys9.anonymousUuidKey,
  33170. n = _this$_cache$keys9.loginTypeKey;
  33171. this._cache.removeStore(t), this._cache.setStore(t, e), this._cache.setStore(n, $e.ANONYMOUS);
  33172. }
  33173. }, {
  33174. key: "_clearAnonymousUUID",
  33175. value: function _clearAnonymousUUID() {
  33176. this._cache.removeStore(this._cache.keys.anonymousUuidKey);
  33177. }
  33178. }]);
  33179. return et;
  33180. }(Qe);
  33181. var tt = /*#__PURE__*/function (_Qe2) {
  33182. (0, _inherits2.default)(tt, _Qe2);
  33183. var _super5 = _createSuper(tt);
  33184. function tt() {
  33185. (0, _classCallCheck2.default)(this, tt);
  33186. return _super5.apply(this, arguments);
  33187. }
  33188. (0, _createClass2.default)(tt, [{
  33189. key: "signIn",
  33190. value: function () {
  33191. var _signIn2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(e) {
  33192. var t, n;
  33193. return _regenerator.default.wrap(function _callee18$(_context18) {
  33194. while (1) {
  33195. switch (_context18.prev = _context18.next) {
  33196. case 0:
  33197. if (!("string" != typeof e)) {
  33198. _context18.next = 2;
  33199. break;
  33200. }
  33201. throw new te({
  33202. code: "PARAM_ERROR",
  33203. message: "ticket must be a string"
  33204. });
  33205. case 2:
  33206. t = this._cache.keys.refreshTokenKey;
  33207. _context18.next = 5;
  33208. return this._request.send("auth.signInWithTicket", {
  33209. ticket: e,
  33210. refresh_token: this._cache.getStore(t) || ""
  33211. });
  33212. case 5:
  33213. n = _context18.sent;
  33214. if (!n.refresh_token) {
  33215. _context18.next = 15;
  33216. break;
  33217. }
  33218. this.setRefreshToken(n.refresh_token);
  33219. _context18.next = 10;
  33220. return this._request.refreshAccessToken();
  33221. case 10:
  33222. De(qe);
  33223. De(Ke, {
  33224. env: this.config.env,
  33225. loginType: $e.CUSTOM,
  33226. persistence: this.config.persistence
  33227. });
  33228. _context18.next = 14;
  33229. return this.refreshUserInfo();
  33230. case 14:
  33231. return _context18.abrupt("return", new Ze(this.config.env));
  33232. case 15:
  33233. throw new te({
  33234. message: "自定义登录失败"
  33235. });
  33236. case 16:
  33237. case "end":
  33238. return _context18.stop();
  33239. }
  33240. }
  33241. }, _callee18, this);
  33242. }));
  33243. function signIn(_x11) {
  33244. return _signIn2.apply(this, arguments);
  33245. }
  33246. return signIn;
  33247. }()
  33248. }]);
  33249. return tt;
  33250. }(Qe);
  33251. var nt = /*#__PURE__*/function (_Qe3) {
  33252. (0, _inherits2.default)(nt, _Qe3);
  33253. var _super6 = _createSuper(nt);
  33254. function nt() {
  33255. (0, _classCallCheck2.default)(this, nt);
  33256. return _super6.apply(this, arguments);
  33257. }
  33258. (0, _createClass2.default)(nt, [{
  33259. key: "signIn",
  33260. value: function () {
  33261. var _signIn3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(e, t) {
  33262. var n, s, r, i, o;
  33263. return _regenerator.default.wrap(function _callee19$(_context19) {
  33264. while (1) {
  33265. switch (_context19.prev = _context19.next) {
  33266. case 0:
  33267. if (!("string" != typeof e)) {
  33268. _context19.next = 2;
  33269. break;
  33270. }
  33271. throw new te({
  33272. code: "PARAM_ERROR",
  33273. message: "email must be a string"
  33274. });
  33275. case 2:
  33276. n = this._cache.keys.refreshTokenKey;
  33277. _context19.next = 5;
  33278. return this._request.send("auth.signIn", {
  33279. loginType: "EMAIL",
  33280. email: e,
  33281. password: t,
  33282. refresh_token: this._cache.getStore(n) || ""
  33283. });
  33284. case 5:
  33285. s = _context19.sent;
  33286. r = s.refresh_token;
  33287. i = s.access_token;
  33288. o = s.access_token_expire;
  33289. if (!r) {
  33290. _context19.next = 22;
  33291. break;
  33292. }
  33293. this.setRefreshToken(r);
  33294. if (!(i && o)) {
  33295. _context19.next = 15;
  33296. break;
  33297. }
  33298. this.setAccessToken(i, o);
  33299. _context19.next = 17;
  33300. break;
  33301. case 15:
  33302. _context19.next = 17;
  33303. return this._request.refreshAccessToken();
  33304. case 17:
  33305. _context19.next = 19;
  33306. return this.refreshUserInfo();
  33307. case 19:
  33308. De(qe);
  33309. De(Ke, {
  33310. env: this.config.env,
  33311. loginType: $e.EMAIL,
  33312. persistence: this.config.persistence
  33313. });
  33314. return _context19.abrupt("return", new Ze(this.config.env));
  33315. case 22:
  33316. throw s.code ? new te({
  33317. code: s.code,
  33318. message: "\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  33319. }) : new te({
  33320. message: "邮箱登录失败"
  33321. });
  33322. case 23:
  33323. case "end":
  33324. return _context19.stop();
  33325. }
  33326. }
  33327. }, _callee19, this);
  33328. }));
  33329. function signIn(_x12, _x13) {
  33330. return _signIn3.apply(this, arguments);
  33331. }
  33332. return signIn;
  33333. }()
  33334. }, {
  33335. key: "activate",
  33336. value: function () {
  33337. var _activate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(e) {
  33338. return _regenerator.default.wrap(function _callee20$(_context20) {
  33339. while (1) {
  33340. switch (_context20.prev = _context20.next) {
  33341. case 0:
  33342. return _context20.abrupt("return", this._request.send("auth.activateEndUserMail", {
  33343. token: e
  33344. }));
  33345. case 1:
  33346. case "end":
  33347. return _context20.stop();
  33348. }
  33349. }
  33350. }, _callee20, this);
  33351. }));
  33352. function activate(_x14) {
  33353. return _activate.apply(this, arguments);
  33354. }
  33355. return activate;
  33356. }()
  33357. }, {
  33358. key: "resetPasswordWithToken",
  33359. value: function () {
  33360. var _resetPasswordWithToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(e, t) {
  33361. return _regenerator.default.wrap(function _callee21$(_context21) {
  33362. while (1) {
  33363. switch (_context21.prev = _context21.next) {
  33364. case 0:
  33365. return _context21.abrupt("return", this._request.send("auth.resetPasswordWithToken", {
  33366. token: e,
  33367. newPassword: t
  33368. }));
  33369. case 1:
  33370. case "end":
  33371. return _context21.stop();
  33372. }
  33373. }
  33374. }, _callee21, this);
  33375. }));
  33376. function resetPasswordWithToken(_x15, _x16) {
  33377. return _resetPasswordWithToken.apply(this, arguments);
  33378. }
  33379. return resetPasswordWithToken;
  33380. }()
  33381. }]);
  33382. return nt;
  33383. }(Qe);
  33384. var st = /*#__PURE__*/function (_Qe4) {
  33385. (0, _inherits2.default)(st, _Qe4);
  33386. var _super7 = _createSuper(st);
  33387. function st() {
  33388. (0, _classCallCheck2.default)(this, st);
  33389. return _super7.apply(this, arguments);
  33390. }
  33391. (0, _createClass2.default)(st, [{
  33392. key: "signIn",
  33393. value: function () {
  33394. var _signIn4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(e, t) {
  33395. var n, s, r, i, o;
  33396. return _regenerator.default.wrap(function _callee22$(_context22) {
  33397. while (1) {
  33398. switch (_context22.prev = _context22.next) {
  33399. case 0:
  33400. if (!("string" != typeof e)) {
  33401. _context22.next = 2;
  33402. break;
  33403. }
  33404. throw new te({
  33405. code: "PARAM_ERROR",
  33406. message: "username must be a string"
  33407. });
  33408. case 2:
  33409. "string" != typeof t && (t = "", console.warn("password is empty"));
  33410. n = this._cache.keys.refreshTokenKey;
  33411. _context22.next = 6;
  33412. return this._request.send("auth.signIn", {
  33413. loginType: $e.USERNAME,
  33414. username: e,
  33415. password: t,
  33416. refresh_token: this._cache.getStore(n) || ""
  33417. });
  33418. case 6:
  33419. s = _context22.sent;
  33420. r = s.refresh_token;
  33421. i = s.access_token_expire;
  33422. o = s.access_token;
  33423. if (!r) {
  33424. _context22.next = 23;
  33425. break;
  33426. }
  33427. this.setRefreshToken(r);
  33428. if (!(o && i)) {
  33429. _context22.next = 16;
  33430. break;
  33431. }
  33432. this.setAccessToken(o, i);
  33433. _context22.next = 18;
  33434. break;
  33435. case 16:
  33436. _context22.next = 18;
  33437. return this._request.refreshAccessToken();
  33438. case 18:
  33439. _context22.next = 20;
  33440. return this.refreshUserInfo();
  33441. case 20:
  33442. De(qe);
  33443. De(Ke, {
  33444. env: this.config.env,
  33445. loginType: $e.USERNAME,
  33446. persistence: this.config.persistence
  33447. });
  33448. return _context22.abrupt("return", new Ze(this.config.env));
  33449. case 23:
  33450. throw s.code ? new te({
  33451. code: s.code,
  33452. message: "\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  33453. }) : new te({
  33454. message: "用户名密码登录失败"
  33455. });
  33456. case 24:
  33457. case "end":
  33458. return _context22.stop();
  33459. }
  33460. }
  33461. }, _callee22, this);
  33462. }));
  33463. function signIn(_x17, _x18) {
  33464. return _signIn4.apply(this, arguments);
  33465. }
  33466. return signIn;
  33467. }()
  33468. }]);
  33469. return st;
  33470. }(Qe);
  33471. var rt = /*#__PURE__*/function () {
  33472. function rt(e) {
  33473. (0, _classCallCheck2.default)(this, rt);
  33474. this.config = e, this._cache = Ee(e.env), this._request = Ye(e.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), Ne(Ke, this._onLoginTypeChanged);
  33475. }
  33476. (0, _createClass2.default)(rt, [{
  33477. key: "currentUser",
  33478. get: function get() {
  33479. var e = this.hasLoginState();
  33480. return e && e.user || null;
  33481. }
  33482. }, {
  33483. key: "loginType",
  33484. get: function get() {
  33485. return this._cache.getStore(this._cache.keys.loginTypeKey);
  33486. }
  33487. }, {
  33488. key: "anonymousAuthProvider",
  33489. value: function anonymousAuthProvider() {
  33490. return new et(this.config);
  33491. }
  33492. }, {
  33493. key: "customAuthProvider",
  33494. value: function customAuthProvider() {
  33495. return new tt(this.config);
  33496. }
  33497. }, {
  33498. key: "emailAuthProvider",
  33499. value: function emailAuthProvider() {
  33500. return new nt(this.config);
  33501. }
  33502. }, {
  33503. key: "usernameAuthProvider",
  33504. value: function usernameAuthProvider() {
  33505. return new st(this.config);
  33506. }
  33507. }, {
  33508. key: "signInAnonymously",
  33509. value: function () {
  33510. var _signInAnonymously = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23() {
  33511. return _regenerator.default.wrap(function _callee23$(_context23) {
  33512. while (1) {
  33513. switch (_context23.prev = _context23.next) {
  33514. case 0:
  33515. return _context23.abrupt("return", new et(this.config).signIn());
  33516. case 1:
  33517. case "end":
  33518. return _context23.stop();
  33519. }
  33520. }
  33521. }, _callee23, this);
  33522. }));
  33523. function signInAnonymously() {
  33524. return _signInAnonymously.apply(this, arguments);
  33525. }
  33526. return signInAnonymously;
  33527. }()
  33528. }, {
  33529. key: "signInWithEmailAndPassword",
  33530. value: function () {
  33531. var _signInWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(e, t) {
  33532. return _regenerator.default.wrap(function _callee24$(_context24) {
  33533. while (1) {
  33534. switch (_context24.prev = _context24.next) {
  33535. case 0:
  33536. return _context24.abrupt("return", new nt(this.config).signIn(e, t));
  33537. case 1:
  33538. case "end":
  33539. return _context24.stop();
  33540. }
  33541. }
  33542. }, _callee24, this);
  33543. }));
  33544. function signInWithEmailAndPassword(_x19, _x20) {
  33545. return _signInWithEmailAndPassword.apply(this, arguments);
  33546. }
  33547. return signInWithEmailAndPassword;
  33548. }()
  33549. }, {
  33550. key: "signInWithUsernameAndPassword",
  33551. value: function signInWithUsernameAndPassword(e, t) {
  33552. return new st(this.config).signIn(e, t);
  33553. }
  33554. }, {
  33555. key: "linkAndRetrieveDataWithTicket",
  33556. value: function () {
  33557. var _linkAndRetrieveDataWithTicket2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(e) {
  33558. return _regenerator.default.wrap(function _callee25$(_context25) {
  33559. while (1) {
  33560. switch (_context25.prev = _context25.next) {
  33561. case 0:
  33562. this._anonymousAuthProvider || (this._anonymousAuthProvider = new et(this.config)), Ne(je, this._onAnonymousConverted);
  33563. _context25.next = 3;
  33564. return this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);
  33565. case 3:
  33566. return _context25.abrupt("return", _context25.sent);
  33567. case 4:
  33568. case "end":
  33569. return _context25.stop();
  33570. }
  33571. }
  33572. }, _callee25, this);
  33573. }));
  33574. function linkAndRetrieveDataWithTicket(_x21) {
  33575. return _linkAndRetrieveDataWithTicket2.apply(this, arguments);
  33576. }
  33577. return linkAndRetrieveDataWithTicket;
  33578. }()
  33579. }, {
  33580. key: "signOut",
  33581. value: function () {
  33582. var _signOut = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee26() {
  33583. var _this$_cache$keys10, e, t, n, s, r;
  33584. return _regenerator.default.wrap(function _callee26$(_context26) {
  33585. while (1) {
  33586. switch (_context26.prev = _context26.next) {
  33587. case 0:
  33588. if (!(this.loginType === $e.ANONYMOUS)) {
  33589. _context26.next = 2;
  33590. break;
  33591. }
  33592. throw new te({
  33593. message: "匿名用户不支持登出操作"
  33594. });
  33595. case 2:
  33596. _this$_cache$keys10 = this._cache.keys, e = _this$_cache$keys10.refreshTokenKey, t = _this$_cache$keys10.accessTokenKey, n = _this$_cache$keys10.accessTokenExpireKey, s = this._cache.getStore(e);
  33597. if (s) {
  33598. _context26.next = 5;
  33599. break;
  33600. }
  33601. return _context26.abrupt("return");
  33602. case 5:
  33603. _context26.next = 7;
  33604. return this._request.send("auth.logout", {
  33605. refresh_token: s
  33606. });
  33607. case 7:
  33608. r = _context26.sent;
  33609. return _context26.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.removeStore(n), De(qe), De(Ke, {
  33610. env: this.config.env,
  33611. loginType: $e.NULL,
  33612. persistence: this.config.persistence
  33613. }), r));
  33614. case 9:
  33615. case "end":
  33616. return _context26.stop();
  33617. }
  33618. }
  33619. }, _callee26, this);
  33620. }));
  33621. function signOut() {
  33622. return _signOut.apply(this, arguments);
  33623. }
  33624. return signOut;
  33625. }()
  33626. }, {
  33627. key: "signUpWithEmailAndPassword",
  33628. value: function () {
  33629. var _signUpWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee27(e, t) {
  33630. return _regenerator.default.wrap(function _callee27$(_context27) {
  33631. while (1) {
  33632. switch (_context27.prev = _context27.next) {
  33633. case 0:
  33634. return _context27.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", {
  33635. email: e,
  33636. password: t
  33637. }));
  33638. case 1:
  33639. case "end":
  33640. return _context27.stop();
  33641. }
  33642. }
  33643. }, _callee27, this);
  33644. }));
  33645. function signUpWithEmailAndPassword(_x22, _x23) {
  33646. return _signUpWithEmailAndPassword.apply(this, arguments);
  33647. }
  33648. return signUpWithEmailAndPassword;
  33649. }()
  33650. }, {
  33651. key: "sendPasswordResetEmail",
  33652. value: function () {
  33653. var _sendPasswordResetEmail = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28(e) {
  33654. return _regenerator.default.wrap(function _callee28$(_context28) {
  33655. while (1) {
  33656. switch (_context28.prev = _context28.next) {
  33657. case 0:
  33658. return _context28.abrupt("return", this._request.send("auth.sendPasswordResetEmail", {
  33659. email: e
  33660. }));
  33661. case 1:
  33662. case "end":
  33663. return _context28.stop();
  33664. }
  33665. }
  33666. }, _callee28, this);
  33667. }));
  33668. function sendPasswordResetEmail(_x24) {
  33669. return _sendPasswordResetEmail.apply(this, arguments);
  33670. }
  33671. return sendPasswordResetEmail;
  33672. }()
  33673. }, {
  33674. key: "onLoginStateChanged",
  33675. value: function onLoginStateChanged(e) {
  33676. var _this9 = this;
  33677. Ne(qe, function () {
  33678. var t = _this9.hasLoginState();
  33679. e.call(_this9, t);
  33680. });
  33681. var t = this.hasLoginState();
  33682. e.call(this, t);
  33683. }
  33684. }, {
  33685. key: "onLoginStateExpired",
  33686. value: function onLoginStateExpired(e) {
  33687. Ne(Fe, e.bind(this));
  33688. }
  33689. }, {
  33690. key: "onAccessTokenRefreshed",
  33691. value: function onAccessTokenRefreshed(e) {
  33692. Ne(Be, e.bind(this));
  33693. }
  33694. }, {
  33695. key: "onAnonymousConverted",
  33696. value: function onAnonymousConverted(e) {
  33697. Ne(je, e.bind(this));
  33698. }
  33699. }, {
  33700. key: "onLoginTypeChanged",
  33701. value: function onLoginTypeChanged(e) {
  33702. var _this10 = this;
  33703. Ne(Ke, function () {
  33704. var t = _this10.hasLoginState();
  33705. e.call(_this10, t);
  33706. });
  33707. }
  33708. }, {
  33709. key: "getAccessToken",
  33710. value: function () {
  33711. var _getAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee29() {
  33712. return _regenerator.default.wrap(function _callee29$(_context29) {
  33713. while (1) {
  33714. switch (_context29.prev = _context29.next) {
  33715. case 0:
  33716. _context29.next = 2;
  33717. return this._request.getAccessToken();
  33718. case 2:
  33719. _context29.t0 = _context29.sent.accessToken;
  33720. _context29.t1 = this.config.env;
  33721. return _context29.abrupt("return", {
  33722. accessToken: _context29.t0,
  33723. env: _context29.t1
  33724. });
  33725. case 5:
  33726. case "end":
  33727. return _context29.stop();
  33728. }
  33729. }
  33730. }, _callee29, this);
  33731. }));
  33732. function getAccessToken() {
  33733. return _getAccessToken2.apply(this, arguments);
  33734. }
  33735. return getAccessToken;
  33736. }()
  33737. }, {
  33738. key: "hasLoginState",
  33739. value: function hasLoginState() {
  33740. var e = this._cache.keys.refreshTokenKey;
  33741. return this._cache.getStore(e) ? new Ze(this.config.env) : null;
  33742. }
  33743. }, {
  33744. key: "isUsernameRegistered",
  33745. value: function () {
  33746. var _isUsernameRegistered = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee30(e) {
  33747. var _yield$this$_request$5, t;
  33748. return _regenerator.default.wrap(function _callee30$(_context30) {
  33749. while (1) {
  33750. switch (_context30.prev = _context30.next) {
  33751. case 0:
  33752. if (!("string" != typeof e)) {
  33753. _context30.next = 2;
  33754. break;
  33755. }
  33756. throw new te({
  33757. code: "PARAM_ERROR",
  33758. message: "username must be a string"
  33759. });
  33760. case 2:
  33761. _context30.next = 4;
  33762. return this._request.send("auth.isUsernameRegistered", {
  33763. username: e
  33764. });
  33765. case 4:
  33766. _yield$this$_request$5 = _context30.sent;
  33767. t = _yield$this$_request$5.data;
  33768. return _context30.abrupt("return", t && t.isRegistered);
  33769. case 7:
  33770. case "end":
  33771. return _context30.stop();
  33772. }
  33773. }
  33774. }, _callee30, this);
  33775. }));
  33776. function isUsernameRegistered(_x25) {
  33777. return _isUsernameRegistered.apply(this, arguments);
  33778. }
  33779. return isUsernameRegistered;
  33780. }()
  33781. }, {
  33782. key: "getLoginState",
  33783. value: function getLoginState() {
  33784. return Promise.resolve(this.hasLoginState());
  33785. }
  33786. }, {
  33787. key: "signInWithTicket",
  33788. value: function () {
  33789. var _signInWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee31(e) {
  33790. return _regenerator.default.wrap(function _callee31$(_context31) {
  33791. while (1) {
  33792. switch (_context31.prev = _context31.next) {
  33793. case 0:
  33794. return _context31.abrupt("return", new tt(this.config).signIn(e));
  33795. case 1:
  33796. case "end":
  33797. return _context31.stop();
  33798. }
  33799. }
  33800. }, _callee31, this);
  33801. }));
  33802. function signInWithTicket(_x26) {
  33803. return _signInWithTicket.apply(this, arguments);
  33804. }
  33805. return signInWithTicket;
  33806. }()
  33807. }, {
  33808. key: "shouldRefreshAccessToken",
  33809. value: function shouldRefreshAccessToken(e) {
  33810. this._request._shouldRefreshAccessTokenHook = e.bind(this);
  33811. }
  33812. }, {
  33813. key: "getUserInfo",
  33814. value: function getUserInfo() {
  33815. return this._request.send("auth.getUserInfo", {}).then(function (e) {
  33816. return e.code ? e : _objectSpread(_objectSpread({}, e.data), {}, {
  33817. requestId: e.seqId
  33818. });
  33819. });
  33820. }
  33821. }, {
  33822. key: "getAuthHeader",
  33823. value: function getAuthHeader() {
  33824. var _this$_cache$keys11 = this._cache.keys,
  33825. e = _this$_cache$keys11.refreshTokenKey,
  33826. t = _this$_cache$keys11.accessTokenKey,
  33827. n = this._cache.getStore(e);
  33828. return {
  33829. "x-cloudbase-credentials": this._cache.getStore(t) + "/@@/" + n
  33830. };
  33831. }
  33832. }, {
  33833. key: "_onAnonymousConverted",
  33834. value: function _onAnonymousConverted(e) {
  33835. var t = e.data.env;
  33836. t === this.config.env && this._cache.updatePersistence(this.config.persistence);
  33837. }
  33838. }, {
  33839. key: "_onLoginTypeChanged",
  33840. value: function _onLoginTypeChanged(e) {
  33841. var _e$data = e.data,
  33842. t = _e$data.loginType,
  33843. n = _e$data.persistence,
  33844. s = _e$data.env;
  33845. s === this.config.env && (this._cache.updatePersistence(n), this._cache.setStore(this._cache.keys.loginTypeKey, t));
  33846. }
  33847. }]);
  33848. return rt;
  33849. }();
  33850. var it = function it(e, t) {
  33851. t = t || we();
  33852. var n = Ye(this.config.env),
  33853. s = e.cloudPath,
  33854. r = e.filePath,
  33855. i = e.onUploadProgress,
  33856. _e$fileType = e.fileType,
  33857. o = _e$fileType === void 0 ? "image" : _e$fileType;
  33858. return n.send("storage.getUploadMetadata", {
  33859. path: s
  33860. }).then(function (e) {
  33861. var _e$data2 = e.data,
  33862. a = _e$data2.url,
  33863. c = _e$data2.authorization,
  33864. u = _e$data2.token,
  33865. l = _e$data2.fileId,
  33866. h = _e$data2.cosFileId,
  33867. d = e.requestId,
  33868. p = {
  33869. key: s,
  33870. signature: c,
  33871. "x-cos-meta-fileid": h,
  33872. success_action_status: "201",
  33873. "x-cos-security-token": u
  33874. };
  33875. n.upload({
  33876. url: a,
  33877. data: p,
  33878. file: r,
  33879. name: s,
  33880. fileType: o,
  33881. onUploadProgress: i
  33882. }).then(function (e) {
  33883. 201 === e.statusCode ? t(null, {
  33884. fileID: l,
  33885. requestId: d
  33886. }) : t(new te({
  33887. code: "STORAGE_REQUEST_FAIL",
  33888. message: "STORAGE_REQUEST_FAIL: ".concat(e.data)
  33889. }));
  33890. }).catch(function (e) {
  33891. t(e);
  33892. });
  33893. }).catch(function (e) {
  33894. t(e);
  33895. }), t.promise;
  33896. },
  33897. ot = function ot(e, t) {
  33898. t = t || we();
  33899. var n = Ye(this.config.env),
  33900. s = e.cloudPath;
  33901. return n.send("storage.getUploadMetadata", {
  33902. path: s
  33903. }).then(function (e) {
  33904. t(null, e);
  33905. }).catch(function (e) {
  33906. t(e);
  33907. }), t.promise;
  33908. },
  33909. at = function at(_ref7, t) {
  33910. var e = _ref7.fileList;
  33911. if (t = t || we(), !e || !Array.isArray(e)) return {
  33912. code: "INVALID_PARAM",
  33913. message: "fileList必须是非空的数组"
  33914. };
  33915. var _iterator3 = _createForOfIteratorHelper(e),
  33916. _step3;
  33917. try {
  33918. for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
  33919. var _t8 = _step3.value;
  33920. if (!_t8 || "string" != typeof _t8) return {
  33921. code: "INVALID_PARAM",
  33922. message: "fileList的元素必须是非空的字符串"
  33923. };
  33924. }
  33925. } catch (err) {
  33926. _iterator3.e(err);
  33927. } finally {
  33928. _iterator3.f();
  33929. }
  33930. var n = {
  33931. fileid_list: e
  33932. };
  33933. return Ye(this.config.env).send("storage.batchDeleteFile", n).then(function (e) {
  33934. e.code ? t(null, e) : t(null, {
  33935. fileList: e.data.delete_list,
  33936. requestId: e.requestId
  33937. });
  33938. }).catch(function (e) {
  33939. t(e);
  33940. }), t.promise;
  33941. },
  33942. ct = function ct(_ref8, t) {
  33943. var e = _ref8.fileList;
  33944. t = t || we(), e && Array.isArray(e) || t(null, {
  33945. code: "INVALID_PARAM",
  33946. message: "fileList必须是非空的数组"
  33947. });
  33948. var n = [];
  33949. var _iterator4 = _createForOfIteratorHelper(e),
  33950. _step4;
  33951. try {
  33952. for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
  33953. var _s9 = _step4.value;
  33954. "object" == (0, _typeof2.default)(_s9) ? (_s9.hasOwnProperty("fileID") && _s9.hasOwnProperty("maxAge") || t(null, {
  33955. code: "INVALID_PARAM",
  33956. message: "fileList的元素必须是包含fileID和maxAge的对象"
  33957. }), n.push({
  33958. fileid: _s9.fileID,
  33959. max_age: _s9.maxAge
  33960. })) : "string" == typeof _s9 ? n.push({
  33961. fileid: _s9
  33962. }) : t(null, {
  33963. code: "INVALID_PARAM",
  33964. message: "fileList的元素必须是字符串"
  33965. });
  33966. }
  33967. } catch (err) {
  33968. _iterator4.e(err);
  33969. } finally {
  33970. _iterator4.f();
  33971. }
  33972. var s = {
  33973. file_list: n
  33974. };
  33975. return Ye(this.config.env).send("storage.batchGetDownloadUrl", s).then(function (e) {
  33976. e.code ? t(null, e) : t(null, {
  33977. fileList: e.data.download_list,
  33978. requestId: e.requestId
  33979. });
  33980. }).catch(function (e) {
  33981. t(e);
  33982. }), t.promise;
  33983. },
  33984. ut = /*#__PURE__*/function () {
  33985. var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee32(_ref9, t) {
  33986. var e, n, s, r;
  33987. return _regenerator.default.wrap(function _callee32$(_context32) {
  33988. while (1) {
  33989. switch (_context32.prev = _context32.next) {
  33990. case 0:
  33991. e = _ref9.fileID;
  33992. _context32.next = 3;
  33993. return ct.call(this, {
  33994. fileList: [{
  33995. fileID: e,
  33996. maxAge: 600
  33997. }]
  33998. });
  33999. case 3:
  34000. n = _context32.sent.fileList[0];
  34001. if (!("SUCCESS" !== n.code)) {
  34002. _context32.next = 6;
  34003. break;
  34004. }
  34005. return _context32.abrupt("return", t ? t(n) : new Promise(function (e) {
  34006. e(n);
  34007. }));
  34008. case 6:
  34009. s = Ye(this.config.env);
  34010. r = n.download_url;
  34011. if (!(r = encodeURI(r), !t)) {
  34012. _context32.next = 10;
  34013. break;
  34014. }
  34015. return _context32.abrupt("return", s.download({
  34016. url: r
  34017. }));
  34018. case 10:
  34019. _context32.t0 = t;
  34020. _context32.next = 13;
  34021. return s.download({
  34022. url: r
  34023. });
  34024. case 13:
  34025. _context32.t1 = _context32.sent;
  34026. (0, _context32.t0)(_context32.t1);
  34027. case 15:
  34028. case "end":
  34029. return _context32.stop();
  34030. }
  34031. }
  34032. }, _callee32, this);
  34033. }));
  34034. return function ut(_x27, _x28) {
  34035. return _ref10.apply(this, arguments);
  34036. };
  34037. }(),
  34038. lt = function lt(_ref11, i) {
  34039. var e = _ref11.name,
  34040. t = _ref11.data,
  34041. n = _ref11.query,
  34042. s = _ref11.parse,
  34043. r = _ref11.search;
  34044. var o = i || we();
  34045. var a;
  34046. try {
  34047. a = t ? JSON.stringify(t) : "";
  34048. } catch (e) {
  34049. return Promise.reject(e);
  34050. }
  34051. if (!e) return Promise.reject(new te({
  34052. code: "PARAM_ERROR",
  34053. message: "函数名不能为空"
  34054. }));
  34055. var c = {
  34056. inQuery: n,
  34057. parse: s,
  34058. search: r,
  34059. function_name: e,
  34060. request_data: a
  34061. };
  34062. return Ye(this.config.env).send("functions.invokeFunction", c).then(function (e) {
  34063. if (e.code) o(null, e);else {
  34064. var _t9 = e.data.response_data;
  34065. if (s) o(null, {
  34066. result: _t9,
  34067. requestId: e.requestId
  34068. });else try {
  34069. _t9 = JSON.parse(e.data.response_data), o(null, {
  34070. result: _t9,
  34071. requestId: e.requestId
  34072. });
  34073. } catch (e) {
  34074. o(new te({
  34075. message: "response data must be json"
  34076. }));
  34077. }
  34078. }
  34079. return o.promise;
  34080. }).catch(function (e) {
  34081. o(e);
  34082. }), o.promise;
  34083. },
  34084. ht = {
  34085. timeout: 15e3,
  34086. persistence: "session"
  34087. },
  34088. dt = {};
  34089. var pt = /*#__PURE__*/function () {
  34090. function pt(e) {
  34091. (0, _classCallCheck2.default)(this, pt);
  34092. this.config = e || this.config, this.authObj = void 0;
  34093. }
  34094. (0, _createClass2.default)(pt, [{
  34095. key: "init",
  34096. value: function init(e) {
  34097. switch (ke.adapter || (this.requestClient = new ke.adapter.reqClass({
  34098. timeout: e.timeout || 5e3,
  34099. timeoutMsg: "\u8BF7\u6C42\u5728".concat((e.timeout || 5e3) / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD")
  34100. })), this.config = _objectSpread(_objectSpread({}, ht), e), !0) {
  34101. case this.config.timeout > 6e5:
  34102. console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = 6e5;
  34103. break;
  34104. case this.config.timeout < 100:
  34105. console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100;
  34106. }
  34107. return new pt(this.config);
  34108. }
  34109. }, {
  34110. key: "auth",
  34111. value: function auth() {
  34112. var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  34113. e = _ref12.persistence;
  34114. if (this.authObj) return this.authObj;
  34115. var t = e || ke.adapter.primaryStorage || ht.persistence;
  34116. var n;
  34117. return t !== this.config.persistence && (this.config.persistence = t), function (e) {
  34118. var t = e.env;
  34119. xe[t] = new Ce(e), Oe[t] = new Ce(_objectSpread(_objectSpread({}, e), {}, {
  34120. persistence: "local"
  34121. }));
  34122. }(this.config), n = this.config, Ge[n.env] = new Ve(n), this.authObj = new rt(this.config), this.authObj;
  34123. }
  34124. }, {
  34125. key: "on",
  34126. value: function on(e, t) {
  34127. return Ne.apply(this, [e, t]);
  34128. }
  34129. }, {
  34130. key: "off",
  34131. value: function off(e, t) {
  34132. return Me.apply(this, [e, t]);
  34133. }
  34134. }, {
  34135. key: "callFunction",
  34136. value: function callFunction(e, t) {
  34137. return lt.apply(this, [e, t]);
  34138. }
  34139. }, {
  34140. key: "deleteFile",
  34141. value: function deleteFile(e, t) {
  34142. return at.apply(this, [e, t]);
  34143. }
  34144. }, {
  34145. key: "getTempFileURL",
  34146. value: function getTempFileURL(e, t) {
  34147. return ct.apply(this, [e, t]);
  34148. }
  34149. }, {
  34150. key: "downloadFile",
  34151. value: function downloadFile(e, t) {
  34152. return ut.apply(this, [e, t]);
  34153. }
  34154. }, {
  34155. key: "uploadFile",
  34156. value: function uploadFile(e, t) {
  34157. return it.apply(this, [e, t]);
  34158. }
  34159. }, {
  34160. key: "getUploadMetadata",
  34161. value: function getUploadMetadata(e, t) {
  34162. return ot.apply(this, [e, t]);
  34163. }
  34164. }, {
  34165. key: "registerExtension",
  34166. value: function registerExtension(e) {
  34167. dt[e.name] = e;
  34168. }
  34169. }, {
  34170. key: "invokeExtension",
  34171. value: function () {
  34172. var _invokeExtension = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee33(e, t) {
  34173. var n;
  34174. return _regenerator.default.wrap(function _callee33$(_context33) {
  34175. while (1) {
  34176. switch (_context33.prev = _context33.next) {
  34177. case 0:
  34178. n = dt[e];
  34179. if (n) {
  34180. _context33.next = 3;
  34181. break;
  34182. }
  34183. throw new te({
  34184. message: "\u6269\u5C55".concat(e, " \u5FC5\u987B\u5148\u6CE8\u518C")
  34185. });
  34186. case 3:
  34187. _context33.next = 5;
  34188. return n.invoke(t, this);
  34189. case 5:
  34190. return _context33.abrupt("return", _context33.sent);
  34191. case 6:
  34192. case "end":
  34193. return _context33.stop();
  34194. }
  34195. }
  34196. }, _callee33, this);
  34197. }));
  34198. function invokeExtension(_x29, _x30) {
  34199. return _invokeExtension.apply(this, arguments);
  34200. }
  34201. return invokeExtension;
  34202. }()
  34203. }, {
  34204. key: "useAdapters",
  34205. value: function useAdapters(e) {
  34206. var _ref13 = be(e) || {},
  34207. t = _ref13.adapter,
  34208. n = _ref13.runtime;
  34209. t && (ke.adapter = t), n && (ke.runtime = n);
  34210. }
  34211. }]);
  34212. return pt;
  34213. }();
  34214. var ft = new pt();
  34215. function gt(e, t, n) {
  34216. void 0 === n && (n = {});
  34217. var s = /\?/.test(t),
  34218. r = "";
  34219. for (var i in n) {
  34220. "" === r ? !s && (t += "?") : r += "&", r += i + "=" + encodeURIComponent(n[i]);
  34221. }
  34222. return /^http(s)?:\/\//.test(t += r) ? t : "" + e + t;
  34223. }
  34224. var mt = /*#__PURE__*/function () {
  34225. function mt() {
  34226. (0, _classCallCheck2.default)(this, mt);
  34227. }
  34228. (0, _createClass2.default)(mt, [{
  34229. key: "post",
  34230. value: function post(e) {
  34231. var t = e.url,
  34232. n = e.data,
  34233. s = e.headers;
  34234. return new Promise(function (e, r) {
  34235. ne.request({
  34236. url: gt("https:", t),
  34237. data: n,
  34238. method: "POST",
  34239. header: s,
  34240. success: function success(t) {
  34241. e(t);
  34242. },
  34243. fail: function fail(e) {
  34244. r(e);
  34245. }
  34246. });
  34247. });
  34248. }
  34249. }, {
  34250. key: "upload",
  34251. value: function upload(e) {
  34252. return new Promise(function (t, n) {
  34253. var s = e.url,
  34254. r = e.file,
  34255. i = e.data,
  34256. o = e.headers,
  34257. a = e.fileType,
  34258. c = ne.uploadFile({
  34259. url: gt("https:", s),
  34260. name: "file",
  34261. formData: Object.assign({}, i),
  34262. filePath: r,
  34263. fileType: a,
  34264. header: o,
  34265. success: function success(e) {
  34266. var n = {
  34267. statusCode: e.statusCode,
  34268. data: e.data || {}
  34269. };
  34270. 200 === e.statusCode && i.success_action_status && (n.statusCode = parseInt(i.success_action_status, 10)), t(n);
  34271. },
  34272. fail: function fail(e) {
  34273. n(new Error(e.errMsg || "uploadFile:fail"));
  34274. }
  34275. });
  34276. "function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (t) {
  34277. e.onUploadProgress({
  34278. loaded: t.totalBytesSent,
  34279. total: t.totalBytesExpectedToSend
  34280. });
  34281. });
  34282. });
  34283. }
  34284. }]);
  34285. return mt;
  34286. }();
  34287. var yt = {
  34288. setItem: function setItem(e, t) {
  34289. ne.setStorageSync(e, t);
  34290. },
  34291. getItem: function getItem(e) {
  34292. return ne.getStorageSync(e);
  34293. },
  34294. removeItem: function removeItem(e) {
  34295. ne.removeStorageSync(e);
  34296. },
  34297. clear: function clear() {
  34298. ne.clearStorageSync();
  34299. }
  34300. };
  34301. var _t = {
  34302. genAdapter: function genAdapter() {
  34303. return {
  34304. root: {},
  34305. reqClass: mt,
  34306. localStorage: yt,
  34307. primaryStorage: "local"
  34308. };
  34309. },
  34310. isMatch: function isMatch() {
  34311. return !0;
  34312. },
  34313. runtime: "uni_app"
  34314. };
  34315. ft.useAdapters(_t);
  34316. var wt = ft,
  34317. vt = wt.init;
  34318. wt.init = function (e) {
  34319. e.env = e.spaceId;
  34320. var t = vt.call(this, e);
  34321. t.config.provider = "tencent", t.config.spaceId = e.spaceId;
  34322. var n = t.auth;
  34323. return t.auth = function (e) {
  34324. var t = n.call(this, e);
  34325. return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach(function (e) {
  34326. var n;
  34327. t[e] = (n = t[e], function (e) {
  34328. e = e || {};
  34329. var _ee = ee(e),
  34330. t = _ee.success,
  34331. s = _ee.fail,
  34332. r = _ee.complete;
  34333. if (!(t || s || r)) return n.call(this, e);
  34334. n.call(this, e).then(function (e) {
  34335. t && t(e), r && r(e);
  34336. }, function (e) {
  34337. s && s(e), r && r(e);
  34338. });
  34339. }).bind(t);
  34340. }), t;
  34341. }, t.customAuth = t.auth, t;
  34342. };
  34343. var It = wt;
  34344. var St = /*#__PURE__*/function (_he) {
  34345. (0, _inherits2.default)(St, _he);
  34346. var _super8 = _createSuper(St);
  34347. function St() {
  34348. (0, _classCallCheck2.default)(this, St);
  34349. return _super8.apply(this, arguments);
  34350. }
  34351. (0, _createClass2.default)(St, [{
  34352. key: "getAccessToken",
  34353. value: function getAccessToken() {
  34354. var _this11 = this;
  34355. return new Promise(function (e, t) {
  34356. var n = "Anonymous_Access_token";
  34357. _this11.setAccessToken(n), e(n);
  34358. });
  34359. }
  34360. }, {
  34361. key: "setupRequest",
  34362. value: function setupRequest(e, t) {
  34363. var n = Object.assign({}, e, {
  34364. spaceId: this.config.spaceId,
  34365. timestamp: Date.now()
  34366. }),
  34367. s = {
  34368. "Content-Type": "application/json"
  34369. };
  34370. "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = le.sign(n, this.config.clientSecret);
  34371. var r = ue();
  34372. s["x-client-info"] = encodeURIComponent(JSON.stringify(r));
  34373. var _se = se(),
  34374. i = _se.token;
  34375. return s["x-client-token"] = i, {
  34376. url: this.config.requestUrl,
  34377. method: "POST",
  34378. data: n,
  34379. dataType: "json",
  34380. header: JSON.parse(JSON.stringify(s))
  34381. };
  34382. }
  34383. }, {
  34384. key: "uploadFileToOSS",
  34385. value: function uploadFileToOSS(_ref14) {
  34386. var _this12 = this;
  34387. var e = _ref14.url,
  34388. t = _ref14.formData,
  34389. n = _ref14.name,
  34390. s = _ref14.filePath,
  34391. r = _ref14.fileType,
  34392. i = _ref14.onUploadProgress;
  34393. return new Promise(function (o, a) {
  34394. var c = _this12.adapter.uploadFile({
  34395. url: e,
  34396. formData: t,
  34397. name: n,
  34398. filePath: s,
  34399. fileType: r,
  34400. success: function success(e) {
  34401. e && e.statusCode < 400 ? o(e) : a(new te({
  34402. code: "UPLOAD_FAILED",
  34403. message: "文件上传失败"
  34404. }));
  34405. },
  34406. fail: function fail(e) {
  34407. a(new te({
  34408. code: e.code || "UPLOAD_FAILED",
  34409. message: e.message || e.errMsg || "文件上传失败"
  34410. }));
  34411. }
  34412. });
  34413. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  34414. i({
  34415. loaded: e.totalBytesSent,
  34416. total: e.totalBytesExpectedToSend
  34417. });
  34418. });
  34419. });
  34420. }
  34421. }, {
  34422. key: "uploadFile",
  34423. value: function uploadFile(_ref15) {
  34424. var _this13 = this;
  34425. var e = _ref15.filePath,
  34426. t = _ref15.cloudPath,
  34427. _ref15$fileType = _ref15.fileType,
  34428. n = _ref15$fileType === void 0 ? "image" : _ref15$fileType,
  34429. s = _ref15.onUploadProgress;
  34430. if (!t) throw new te({
  34431. code: "CLOUDPATH_REQUIRED",
  34432. message: "cloudPath不可为空"
  34433. });
  34434. var r;
  34435. return this.getOSSUploadOptionsFromPath({
  34436. cloudPath: t
  34437. }).then(function (t) {
  34438. var _t$result = t.result,
  34439. i = _t$result.url,
  34440. o = _t$result.formData,
  34441. a = _t$result.name;
  34442. r = t.result.fileUrl;
  34443. var c = {
  34444. url: i,
  34445. formData: o,
  34446. name: a,
  34447. filePath: e,
  34448. fileType: n
  34449. };
  34450. return _this13.uploadFileToOSS(Object.assign({}, c, {
  34451. onUploadProgress: s
  34452. }));
  34453. }).then(function () {
  34454. return _this13.reportOSSUpload({
  34455. cloudPath: t
  34456. });
  34457. }).then(function (t) {
  34458. return new Promise(function (n, s) {
  34459. t.success ? n({
  34460. success: !0,
  34461. filePath: e,
  34462. fileID: r
  34463. }) : s(new te({
  34464. code: "UPLOAD_FAILED",
  34465. message: "文件上传失败"
  34466. }));
  34467. });
  34468. });
  34469. }
  34470. }, {
  34471. key: "deleteFile",
  34472. value: function deleteFile(_ref16) {
  34473. var e = _ref16.fileList;
  34474. var t = {
  34475. method: "serverless.file.resource.delete",
  34476. params: JSON.stringify({
  34477. fileList: e
  34478. })
  34479. };
  34480. return this.request(this.setupRequest(t)).then(function (e) {
  34481. if (e.success) return e.result;
  34482. throw new te({
  34483. code: "DELETE_FILE_FAILED",
  34484. message: "删除文件失败"
  34485. });
  34486. });
  34487. }
  34488. }, {
  34489. key: "getTempFileURL",
  34490. value: function getTempFileURL() {
  34491. var _ref17 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  34492. e = _ref17.fileList,
  34493. t = _ref17.maxAge;
  34494. if (!Array.isArray(e) || 0 === e.length) throw new te({
  34495. code: "INVALID_PARAM",
  34496. message: "fileList的元素必须是非空的字符串"
  34497. });
  34498. var n = {
  34499. method: "serverless.file.resource.getTempFileURL",
  34500. params: JSON.stringify({
  34501. fileList: e,
  34502. maxAge: t
  34503. })
  34504. };
  34505. return this.request(this.setupRequest(n)).then(function (e) {
  34506. if (e.success) return {
  34507. fileList: e.result.fileList.map(function (e) {
  34508. return {
  34509. fileID: e.fileID,
  34510. tempFileURL: e.tempFileURL
  34511. };
  34512. })
  34513. };
  34514. throw new te({
  34515. code: "GET_TEMP_FILE_URL_FAILED",
  34516. message: "获取临时文件链接失败"
  34517. });
  34518. });
  34519. }
  34520. }]);
  34521. return St;
  34522. }(he);
  34523. var bt = {
  34524. init: function init(e) {
  34525. var t = new St(e),
  34526. n = {
  34527. signInAnonymously: function signInAnonymously() {
  34528. return t.authorize();
  34529. },
  34530. getLoginState: function getLoginState() {
  34531. return Promise.resolve(!1);
  34532. }
  34533. };
  34534. return t.auth = function () {
  34535. return n;
  34536. }, t.customAuth = t.auth, t;
  34537. }
  34538. },
  34539. kt = n(function (e, t) {
  34540. e.exports = r.enc.Hex;
  34541. });
  34542. function At() {
  34543. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  34544. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  34545. var n = t.data,
  34546. s = t.functionName,
  34547. r = t.method,
  34548. i = t.headers,
  34549. _t$signHeaderKeys = t.signHeaderKeys,
  34550. o = _t$signHeaderKeys === void 0 ? [] : _t$signHeaderKeys,
  34551. a = t.config,
  34552. c = Date.now(),
  34553. u = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (e) {
  34554. var t = 16 * Math.random() | 0;
  34555. return ("x" === e ? t : 3 & t | 8).toString(16);
  34556. }),
  34557. l = Object.assign({}, i, {
  34558. "x-from-app-id": a.appId,
  34559. "x-from-env-id": a.envId,
  34560. "x-to-env-id": a.envId,
  34561. "x-from-instance-id": c,
  34562. "x-from-function-name": s,
  34563. "x-client-timestamp": c,
  34564. "x-alipay-source": "client",
  34565. "x-request-id": u,
  34566. "x-alipay-callid": u
  34567. }),
  34568. h = ["x-from-app-id", "x-from-env-id", "x-to-env-id", "x-from-instance-id", "x-from-function-name", "x-client-timestamp"].concat(o),
  34569. _ref18 = e.split("?") || [],
  34570. _ref19 = (0, _slicedToArray2.default)(_ref18, 2),
  34571. _ref19$ = _ref19[0],
  34572. d = _ref19$ === void 0 ? "" : _ref19$,
  34573. _ref19$2 = _ref19[1],
  34574. p = _ref19$2 === void 0 ? "" : _ref19$2,
  34575. f = function (e) {
  34576. var t = e.signedHeaders.join(";"),
  34577. n = e.signedHeaders.map(function (t) {
  34578. return "".concat(t.toLowerCase(), ":").concat(e.headers[t], "\n");
  34579. }).join(""),
  34580. s = ye(e.body).toString(kt),
  34581. r = "".concat(e.method.toUpperCase(), "\n").concat(e.path, "\n").concat(e.query, "\n").concat(n, "\n").concat(t, "\n").concat(s, "\n"),
  34582. i = ye(r).toString(kt),
  34583. o = "HMAC-SHA256\n".concat(e.timestamp, "\n").concat(i, "\n"),
  34584. a = _e(o, e.secretKey).toString(kt);
  34585. return "HMAC-SHA256 Credential=".concat(e.secretId, ", SignedHeaders=").concat(t, ", Signature=").concat(a);
  34586. }({
  34587. path: d,
  34588. query: p,
  34589. method: r,
  34590. headers: l,
  34591. timestamp: c,
  34592. body: JSON.stringify(n),
  34593. secretId: a.secretId,
  34594. secretKey: a.secretKey,
  34595. signedHeaders: h.sort()
  34596. });
  34597. return {
  34598. url: "".concat(a.endpoint).concat(e.replace(/^\//, "")),
  34599. headers: Object.assign({}, l, {
  34600. Authorization: f
  34601. })
  34602. };
  34603. }
  34604. function Pt(_ref20) {
  34605. var e = _ref20.url,
  34606. t = _ref20.data,
  34607. _ref20$method = _ref20.method,
  34608. n = _ref20$method === void 0 ? "POST" : _ref20$method,
  34609. _ref20$headers = _ref20.headers,
  34610. s = _ref20$headers === void 0 ? {} : _ref20$headers;
  34611. return new Promise(function (r, i) {
  34612. ne.request({
  34613. url: e,
  34614. method: n,
  34615. data: t,
  34616. header: s,
  34617. dataType: "json",
  34618. complete: function complete() {
  34619. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  34620. if (!e.statusCode || e.statusCode >= 400) {
  34621. var _ref21 = e.data || {},
  34622. _t10 = _ref21.errMsg;
  34623. return i(new te({
  34624. code: "SYS_ERR",
  34625. message: _t10 || e.errMsg || "request:fail"
  34626. }));
  34627. }
  34628. r({
  34629. status: e.statusCode,
  34630. data: e.data,
  34631. headers: e.header
  34632. });
  34633. }
  34634. });
  34635. });
  34636. }
  34637. function Tt(e, t) {
  34638. var n = e.path,
  34639. s = e.data,
  34640. _e$method = e.method,
  34641. r = _e$method === void 0 ? "GET" : _e$method,
  34642. _At = At(n, {
  34643. functionName: "",
  34644. data: s,
  34645. method: r,
  34646. headers: {
  34647. "x-alipay-cloud-mode": "oss",
  34648. "x-data-api-type": "oss",
  34649. "x-expire-timestamp": Date.now() + 6e4
  34650. },
  34651. signHeaderKeys: ["x-data-api-type", "x-expire-timestamp"],
  34652. config: t
  34653. }),
  34654. i = _At.url,
  34655. o = _At.headers;
  34656. return Pt({
  34657. url: i,
  34658. data: s,
  34659. method: r,
  34660. headers: o
  34661. }).then(function (e) {
  34662. var t = e.data || {};
  34663. if (!t.success) throw new te({
  34664. code: e.code,
  34665. message: e.message,
  34666. requestId: e.trace_id
  34667. });
  34668. return t.data || {};
  34669. }).catch(function (e) {
  34670. throw new te({
  34671. code: e.errCode,
  34672. message: e.errMsg,
  34673. requestId: e.requestId
  34674. });
  34675. });
  34676. }
  34677. function Ct() {
  34678. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  34679. var t = e.trim().replace(/^cloud:\/\//, ""),
  34680. n = t.indexOf("/");
  34681. if (n <= 0) throw new te({
  34682. code: "INVALID_PARAM",
  34683. message: "fileID不合法"
  34684. });
  34685. var s = t.substring(0, n),
  34686. r = t.substring(n + 1);
  34687. return s !== this.config.envId && console.warn("file ".concat(e, " does not belong to env ").concat(this.config.envId)), r;
  34688. }
  34689. var xt = /*#__PURE__*/function () {
  34690. function xt(e) {
  34691. (0, _classCallCheck2.default)(this, xt);
  34692. ["spaceId", "spaceAppId", "accessKey", "secretKey"].forEach(function (t) {
  34693. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  34694. });
  34695. var t = e.spaceAppId,
  34696. n = e.accessKey,
  34697. s = (0, _objectWithoutProperties2.default)(e, _excluded);
  34698. this.config = Object.assign({}, {
  34699. endpoint: e.endpoint || "https://".concat(e.envId, ".api-hz.cloudbasefunction.cn/"),
  34700. envId: e.spaceId,
  34701. appId: t,
  34702. secretId: n
  34703. }, s);
  34704. }
  34705. (0, _createClass2.default)(xt, [{
  34706. key: "callFunction",
  34707. value: function callFunction(e) {
  34708. return function (e, t) {
  34709. var n = e.name,
  34710. s = e.data,
  34711. r = "POST",
  34712. _At2 = At("/functions/invokeFunction", {
  34713. functionName: n,
  34714. data: s,
  34715. method: r,
  34716. headers: {
  34717. "x-to-function-name": n
  34718. },
  34719. signHeaderKeys: ["x-to-function-name"],
  34720. config: t
  34721. }),
  34722. i = _At2.url,
  34723. o = _At2.headers;
  34724. return Pt({
  34725. url: i,
  34726. data: s,
  34727. method: r,
  34728. headers: o
  34729. }).then(function (e) {
  34730. return e.errCode = 0, e.success = !0, e.requestId = e.requestID || e.requestId, e.result = e.data, delete e.requestID, delete e.data, e;
  34731. }).catch(function (e) {
  34732. throw new te({
  34733. code: e.errCode,
  34734. message: e.errMsg,
  34735. requestId: e.requestId
  34736. });
  34737. });
  34738. }(e, this.config);
  34739. }
  34740. }, {
  34741. key: "uploadFileToOSS",
  34742. value: function uploadFileToOSS(_ref22) {
  34743. var e = _ref22.url,
  34744. t = _ref22.filePath,
  34745. n = _ref22.fileType,
  34746. s = _ref22.formData,
  34747. r = _ref22.onUploadProgress;
  34748. return new Promise(function (i, o) {
  34749. var a = ne.uploadFile({
  34750. url: e,
  34751. filePath: t,
  34752. fileType: n,
  34753. formData: s,
  34754. success: function success(e) {
  34755. e && e.statusCode < 400 ? i(e) : o(new te({
  34756. code: "UPLOAD_FAILED",
  34757. message: "文件上传失败"
  34758. }));
  34759. },
  34760. fail: function fail(e) {
  34761. o(new te({
  34762. code: e.code || "UPLOAD_FAILED",
  34763. message: e.message || e.errMsg || "文件上传失败"
  34764. }));
  34765. }
  34766. });
  34767. "function" == typeof r && a && "function" == typeof a.onProgressUpdate && a.onProgressUpdate(function (e) {
  34768. r({
  34769. loaded: e.totalBytesSent,
  34770. total: e.totalBytesExpectedToSend
  34771. });
  34772. });
  34773. });
  34774. }
  34775. }, {
  34776. key: "uploadFile",
  34777. value: function () {
  34778. var _uploadFile2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee34(_ref23) {
  34779. var e, _ref23$cloudPath, t, _ref23$fileType, n, s, r, i, o, a, c;
  34780. return _regenerator.default.wrap(function _callee34$(_context34) {
  34781. while (1) {
  34782. switch (_context34.prev = _context34.next) {
  34783. case 0:
  34784. e = _ref23.filePath, _ref23$cloudPath = _ref23.cloudPath, t = _ref23$cloudPath === void 0 ? "" : _ref23$cloudPath, _ref23$fileType = _ref23.fileType, n = _ref23$fileType === void 0 ? "image" : _ref23$fileType, s = _ref23.onUploadProgress;
  34785. if (!("string" !== f(t))) {
  34786. _context34.next = 3;
  34787. break;
  34788. }
  34789. throw new te({
  34790. code: "INVALID_PARAM",
  34791. message: "cloudPath必须为字符串类型"
  34792. });
  34793. case 3:
  34794. if (t = t.trim()) {
  34795. _context34.next = 5;
  34796. break;
  34797. }
  34798. throw new te({
  34799. code: "INVALID_PARAM",
  34800. message: "cloudPath不可为空"
  34801. });
  34802. case 5:
  34803. if (!/:\/\//.test(t)) {
  34804. _context34.next = 7;
  34805. break;
  34806. }
  34807. throw new te({
  34808. code: "INVALID_PARAM",
  34809. message: "cloudPath不合法"
  34810. });
  34811. case 7:
  34812. _context34.next = 9;
  34813. return Tt({
  34814. path: "/".concat(t.replace(/^\//, ""), "?post_url")
  34815. }, this.config);
  34816. case 9:
  34817. r = _context34.sent;
  34818. i = r.file_id;
  34819. o = r.upload_url;
  34820. a = r.form_data;
  34821. c = a && a.reduce(function (e, t) {
  34822. return e[t.key] = t.value, e;
  34823. }, {});
  34824. return _context34.abrupt("return", this.uploadFileToOSS({
  34825. url: o,
  34826. filePath: e,
  34827. fileType: n,
  34828. formData: c,
  34829. onUploadProgress: s
  34830. }).then(function () {
  34831. return {
  34832. fileID: i
  34833. };
  34834. }));
  34835. case 15:
  34836. case "end":
  34837. return _context34.stop();
  34838. }
  34839. }
  34840. }, _callee34, this);
  34841. }));
  34842. function uploadFile(_x31) {
  34843. return _uploadFile2.apply(this, arguments);
  34844. }
  34845. return uploadFile;
  34846. }()
  34847. }, {
  34848. key: "getTempFileURL",
  34849. value: function () {
  34850. var _getTempFileURL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee35(_ref24) {
  34851. var _this14 = this;
  34852. var e;
  34853. return _regenerator.default.wrap(function _callee35$(_context35) {
  34854. while (1) {
  34855. switch (_context35.prev = _context35.next) {
  34856. case 0:
  34857. e = _ref24.fileList;
  34858. return _context35.abrupt("return", new Promise(function (t, n) {
  34859. (!e || e.length < 0) && n(new te({
  34860. errCode: "INVALID_PARAM",
  34861. errMsg: "fileList不能为空数组"
  34862. })), e.length > 50 && n(new te({
  34863. errCode: "INVALID_PARAM",
  34864. errMsg: "fileList数组长度不能超过50"
  34865. }));
  34866. var s = [];
  34867. var _iterator5 = _createForOfIteratorHelper(e),
  34868. _step5;
  34869. try {
  34870. for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
  34871. var _t11 = _step5.value;
  34872. "string" !== f(_t11) && n(new te({
  34873. errCode: "INVALID_PARAM",
  34874. errMsg: "fileList的元素必须是非空的字符串"
  34875. }));
  34876. var _e17 = Ct.call(_this14, _t11);
  34877. s.push({
  34878. file_id: _e17,
  34879. expire: 600
  34880. });
  34881. }
  34882. } catch (err) {
  34883. _iterator5.e(err);
  34884. } finally {
  34885. _iterator5.f();
  34886. }
  34887. Tt({
  34888. path: "/?download_url",
  34889. data: {
  34890. file_list: s
  34891. },
  34892. method: "POST"
  34893. }, _this14.config).then(function (e) {
  34894. var _e$file_list = e.file_list,
  34895. n = _e$file_list === void 0 ? [] : _e$file_list;
  34896. t({
  34897. fileList: n.map(function (e) {
  34898. return {
  34899. fileID: e.file_id,
  34900. tempFileURL: e.download_url
  34901. };
  34902. })
  34903. });
  34904. }).catch(function (e) {
  34905. return n(e);
  34906. });
  34907. }));
  34908. case 2:
  34909. case "end":
  34910. return _context35.stop();
  34911. }
  34912. }
  34913. }, _callee35);
  34914. }));
  34915. function getTempFileURL(_x32) {
  34916. return _getTempFileURL.apply(this, arguments);
  34917. }
  34918. return getTempFileURL;
  34919. }()
  34920. }, {
  34921. key: "deleteFile",
  34922. value: function () {
  34923. var _deleteFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee36(_ref25) {
  34924. var _this15 = this;
  34925. var e;
  34926. return _regenerator.default.wrap(function _callee36$(_context36) {
  34927. while (1) {
  34928. switch (_context36.prev = _context36.next) {
  34929. case 0:
  34930. e = _ref25.fileList;
  34931. return _context36.abrupt("return", new Promise(function (t, n) {
  34932. (!e || e.length < 0) && n(new te({
  34933. errCode: "INVALID_PARAM",
  34934. errMsg: "fileList不能为空数组"
  34935. })), e.length > 50 && n(new te({
  34936. errCode: "INVALID_PARAM",
  34937. errMsg: "fileList数组长度不能超过50"
  34938. }));
  34939. var s = [];
  34940. var _iterator6 = _createForOfIteratorHelper(e),
  34941. _step6;
  34942. try {
  34943. for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
  34944. var _t12 = _step6.value;
  34945. "string" !== f(_t12) && n(new te({
  34946. errCode: "INVALID_PARAM",
  34947. errMsg: "fileList的元素必须是非空的字符串"
  34948. })), s.push(Ct.call(_this15, _t12));
  34949. }
  34950. } catch (err) {
  34951. _iterator6.e(err);
  34952. } finally {
  34953. _iterator6.f();
  34954. }
  34955. Tt({
  34956. path: "/?delete",
  34957. data: {
  34958. file_list: s
  34959. },
  34960. method: "POST"
  34961. }, _this15.config).then(function (e) {
  34962. var _e$file_list2 = e.file_list,
  34963. n = _e$file_list2 === void 0 ? [] : _e$file_list2;
  34964. t({
  34965. fileList: n.map(function (e) {
  34966. return {
  34967. fileID: e.file_id,
  34968. tempFileURL: e.download_url
  34969. };
  34970. })
  34971. });
  34972. }).catch(function (e) {
  34973. return n(e);
  34974. });
  34975. }));
  34976. case 2:
  34977. case "end":
  34978. return _context36.stop();
  34979. }
  34980. }
  34981. }, _callee36);
  34982. }));
  34983. function deleteFile(_x33) {
  34984. return _deleteFile.apply(this, arguments);
  34985. }
  34986. return deleteFile;
  34987. }()
  34988. }]);
  34989. return xt;
  34990. }();
  34991. var Ot = {
  34992. init: function init(e) {
  34993. e.envId = e.spaceId, e.provider = "alipay";
  34994. var t = new xt(e);
  34995. return t.auth = function () {
  34996. return {
  34997. signInAnonymously: function signInAnonymously() {
  34998. return Promise.resolve();
  34999. },
  35000. getLoginState: function getLoginState() {
  35001. return Promise.resolve(!0);
  35002. }
  35003. };
  35004. }, t;
  35005. }
  35006. };
  35007. function Et(_ref26) {
  35008. var e = _ref26.data;
  35009. var t;
  35010. t = ue();
  35011. var n = JSON.parse(JSON.stringify(e || {}));
  35012. if (Object.assign(n, {
  35013. clientInfo: t
  35014. }), !n.uniIdToken) {
  35015. var _se2 = se(),
  35016. _e18 = _se2.token;
  35017. _e18 && (n.uniIdToken = _e18);
  35018. }
  35019. return n;
  35020. }
  35021. function Lt() {
  35022. return _Lt.apply(this, arguments);
  35023. }
  35024. function _Lt() {
  35025. _Lt = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee57() {
  35026. var _this28 = this;
  35027. var _ref68,
  35028. e,
  35029. t,
  35030. _this$__dev__,
  35031. n,
  35032. s,
  35033. r,
  35034. i,
  35035. o,
  35036. a,
  35037. _args6 = arguments;
  35038. return _regenerator.default.wrap(function _callee57$(_context57) {
  35039. while (1) {
  35040. switch (_context57.prev = _context57.next) {
  35041. case 0:
  35042. _ref68 = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}, e = _ref68.name, t = _ref68.data;
  35043. _context57.next = 3;
  35044. return this.__dev__.initLocalNetwork();
  35045. case 3:
  35046. _this$__dev__ = this.__dev__, n = _this$__dev__.localAddress, s = _this$__dev__.localPort, r = {
  35047. aliyun: "aliyun",
  35048. tencent: "tcb",
  35049. alipay: "alipay"
  35050. }[this.config.provider], i = this.config.spaceId, o = "http://".concat(n, ":").concat(s, "/system/check-function"), a = "http://".concat(n, ":").concat(s, "/cloudfunctions/").concat(e);
  35051. return _context57.abrupt("return", new Promise(function (t, n) {
  35052. ne.request({
  35053. method: "POST",
  35054. url: o,
  35055. data: {
  35056. name: e,
  35057. platform: P,
  35058. provider: r,
  35059. spaceId: i
  35060. },
  35061. timeout: 3e3,
  35062. success: function success(e) {
  35063. t(e);
  35064. },
  35065. fail: function fail() {
  35066. t({
  35067. data: {
  35068. code: "NETWORK_ERROR",
  35069. message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"
  35070. }
  35071. });
  35072. }
  35073. });
  35074. }).then(function () {
  35075. var _ref69 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  35076. e = _ref69.data;
  35077. var _ref70 = e || {},
  35078. t = _ref70.code,
  35079. n = _ref70.message;
  35080. return {
  35081. code: 0 === t ? 0 : t || "SYS_ERR",
  35082. message: n || "SYS_ERR"
  35083. };
  35084. }).then(function (_ref71) {
  35085. var n = _ref71.code,
  35086. s = _ref71.message;
  35087. if (0 !== n) {
  35088. switch (n) {
  35089. case "MODULE_ENCRYPTED":
  35090. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u4F9D\u8D56\u52A0\u5BC6\u516C\u5171\u6A21\u5757\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  35091. break;
  35092. case "FUNCTION_ENCRYPTED":
  35093. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u5DF2\u52A0\u5BC6\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  35094. break;
  35095. case "ACTION_ENCRYPTED":
  35096. console.error(s || "需要访问加密的uni-clientDB-action,自动切换为云端环境");
  35097. break;
  35098. case "NETWORK_ERROR":
  35099. {
  35100. var _e30 = "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";
  35101. throw console.error(_e30), new Error(_e30);
  35102. }
  35103. case "SWITCH_TO_CLOUD":
  35104. break;
  35105. default:
  35106. {
  35107. var _e31 = "\u68C0\u6D4B\u672C\u5730\u8C03\u8BD5\u670D\u52A1\u51FA\u73B0\u9519\u8BEF\uFF1A".concat(s, "\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u73AF\u5883\u6216\u91CD\u542F\u5BA2\u6237\u7AEF\u518D\u8BD5");
  35108. throw console.error(_e31), new Error(_e31);
  35109. }
  35110. }
  35111. return _this28._callCloudFunction({
  35112. name: e,
  35113. data: t
  35114. });
  35115. }
  35116. return new Promise(function (e, n) {
  35117. var s = Et.call(_this28, {
  35118. data: t
  35119. });
  35120. ne.request({
  35121. method: "POST",
  35122. url: a,
  35123. data: {
  35124. provider: r,
  35125. platform: P,
  35126. param: s
  35127. },
  35128. success: function success() {
  35129. var _ref72 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  35130. t = _ref72.statusCode,
  35131. s = _ref72.data;
  35132. return !t || t >= 400 ? n(new te({
  35133. code: s.code || "SYS_ERR",
  35134. message: s.message || "request:fail"
  35135. })) : e({
  35136. result: s
  35137. });
  35138. },
  35139. fail: function fail(e) {
  35140. n(new te({
  35141. code: e.code || e.errCode || "SYS_ERR",
  35142. message: e.message || e.errMsg || "request:fail"
  35143. }));
  35144. }
  35145. });
  35146. });
  35147. }));
  35148. case 5:
  35149. case "end":
  35150. return _context57.stop();
  35151. }
  35152. }
  35153. }, _callee57, this);
  35154. }));
  35155. return _Lt.apply(this, arguments);
  35156. }
  35157. var Rt = [{
  35158. rule: /fc_function_not_found|FUNCTION_NOT_FOUND/,
  35159. content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",
  35160. mode: "append"
  35161. }];
  35162. var Ut = /[\\^$.*+?()[\]{}|]/g,
  35163. Nt = RegExp(Ut.source);
  35164. function Dt(e, t, n) {
  35165. return e.replace(new RegExp((s = t) && Nt.test(s) ? s.replace(Ut, "\\$&") : s, "g"), n);
  35166. var s;
  35167. }
  35168. var Mt = "none",
  35169. qt = "request",
  35170. Ft = "response",
  35171. Kt = "both";
  35172. var jt = /*#__PURE__*/function () {
  35173. function jt() {
  35174. var _ref27 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  35175. e = _ref27.secretType,
  35176. t = _ref27.uniCloudIns;
  35177. (0, _classCallCheck2.default)(this, jt);
  35178. this.clientType = "", this.secretType = e || Mt, this.uniCloudIns = t;
  35179. var _this$uniCloudIns$con = this.uniCloudIns.config,
  35180. n = _this$uniCloudIns$con.provider,
  35181. s = _this$uniCloudIns$con.spaceId;
  35182. var r;
  35183. this.provider = n, this.spaceId = s, this.scopedGlobalCache = (r = this.uniCloudIns, L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", r.config.spaceId)));
  35184. }
  35185. (0, _createClass2.default)(jt, [{
  35186. key: "getSystemInfo",
  35187. value: function getSystemInfo() {
  35188. return this._systemInfo || (this._systemInfo = ae()), this._systemInfo;
  35189. }
  35190. }, {
  35191. key: "appId",
  35192. get: function get() {
  35193. return this.getSystemInfo().appId;
  35194. }
  35195. }, {
  35196. key: "deviceId",
  35197. get: function get() {
  35198. return this.getSystemInfo().deviceId;
  35199. }
  35200. }, {
  35201. key: "encryptData",
  35202. value: function () {
  35203. var _encryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37(e) {
  35204. return _regenerator.default.wrap(function _callee37$(_context37) {
  35205. while (1) {
  35206. switch (_context37.prev = _context37.next) {
  35207. case 0:
  35208. return _context37.abrupt("return", this.secretType === Mt ? e : this.platformEncryptData(e));
  35209. case 1:
  35210. case "end":
  35211. return _context37.stop();
  35212. }
  35213. }
  35214. }, _callee37, this);
  35215. }));
  35216. function encryptData(_x34) {
  35217. return _encryptData.apply(this, arguments);
  35218. }
  35219. return encryptData;
  35220. }()
  35221. }, {
  35222. key: "decryptResult",
  35223. value: function () {
  35224. var _decryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee38(e) {
  35225. var _ref28, t, n;
  35226. return _regenerator.default.wrap(function _callee38$(_context38) {
  35227. while (1) {
  35228. switch (_context38.prev = _context38.next) {
  35229. case 0:
  35230. if (!(this.secretType === Mt)) {
  35231. _context38.next = 2;
  35232. break;
  35233. }
  35234. return _context38.abrupt("return", e);
  35235. case 2:
  35236. _ref28 = e || {}, t = _ref28.errCode, n = _ref28.content;
  35237. return _context38.abrupt("return", t || !n ? e : this.secretType === qt ? n : this.platformDecryptResult(e));
  35238. case 4:
  35239. case "end":
  35240. return _context38.stop();
  35241. }
  35242. }
  35243. }, _callee38, this);
  35244. }));
  35245. function decryptResult(_x35) {
  35246. return _decryptResult.apply(this, arguments);
  35247. }
  35248. return decryptResult;
  35249. }()
  35250. }, {
  35251. key: "wrapVerifyClientCallFunction",
  35252. value: function wrapVerifyClientCallFunction(e) {
  35253. var t = this;
  35254. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee39() {
  35255. var _ref30,
  35256. n,
  35257. _ref30$data,
  35258. s,
  35259. r,
  35260. _args39 = arguments;
  35261. return _regenerator.default.wrap(function _callee39$(_context39) {
  35262. while (1) {
  35263. switch (_context39.prev = _context39.next) {
  35264. case 0:
  35265. _ref30 = _args39.length > 0 && _args39[0] !== undefined ? _args39[0] : {}, n = _ref30.name, _ref30$data = _ref30.data, s = _ref30$data === void 0 ? {} : _ref30$data;
  35266. _context39.next = 3;
  35267. return t.prepare();
  35268. case 3:
  35269. _context39.next = 5;
  35270. return t.platformGetSignOption();
  35271. case 5:
  35272. (s = JSON.parse(JSON.stringify(s)))._uniCloudOptions = _context39.sent;
  35273. _context39.next = 8;
  35274. return e({
  35275. name: n,
  35276. data: s
  35277. });
  35278. case 8:
  35279. r = _context39.sent;
  35280. _context39.t0 = t.isClientKeyNotFound(r);
  35281. if (!_context39.t0) {
  35282. _context39.next = 19;
  35283. break;
  35284. }
  35285. _context39.next = 13;
  35286. return t.prepare({
  35287. forceUpdate: !0
  35288. });
  35289. case 13:
  35290. _context39.next = 15;
  35291. return t.platformGetSignOption();
  35292. case 15:
  35293. s._uniCloudOptions = _context39.sent;
  35294. _context39.next = 18;
  35295. return e({
  35296. name: n,
  35297. data: s
  35298. });
  35299. case 18:
  35300. r = _context39.sent;
  35301. case 19:
  35302. return _context39.abrupt("return", r);
  35303. case 20:
  35304. case "end":
  35305. return _context39.stop();
  35306. }
  35307. }
  35308. }, _callee39);
  35309. }));
  35310. }
  35311. }, {
  35312. key: "wrapEncryptDataCallFunction",
  35313. value: function wrapEncryptDataCallFunction(e) {
  35314. var t = this;
  35315. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee40() {
  35316. var _ref32,
  35317. n,
  35318. _ref32$data,
  35319. s,
  35320. r,
  35321. i,
  35322. _r3,
  35323. _args40 = arguments;
  35324. return _regenerator.default.wrap(function _callee40$(_context40) {
  35325. while (1) {
  35326. switch (_context40.prev = _context40.next) {
  35327. case 0:
  35328. _ref32 = _args40.length > 0 && _args40[0] !== undefined ? _args40[0] : {}, n = _ref32.name, _ref32$data = _ref32.data, s = _ref32$data === void 0 ? {} : _ref32$data;
  35329. _context40.next = 3;
  35330. return t.prepare();
  35331. case 3:
  35332. _context40.next = 5;
  35333. return t.encryptData(s);
  35334. case 5:
  35335. r = _context40.sent;
  35336. _context40.next = 8;
  35337. return e({
  35338. name: n,
  35339. data: r
  35340. });
  35341. case 8:
  35342. i = _context40.sent;
  35343. if (!t.isClientKeyNotFound(i)) {
  35344. _context40.next = 21;
  35345. break;
  35346. }
  35347. _context40.next = 12;
  35348. return t.prepare({
  35349. forceUpdate: !0
  35350. });
  35351. case 12:
  35352. _context40.next = 14;
  35353. return t.encryptData(s);
  35354. case 14:
  35355. _r3 = _context40.sent;
  35356. _context40.next = 17;
  35357. return t.platformGetSignOption();
  35358. case 17:
  35359. s._uniCloudOptions = _context40.sent;
  35360. _context40.next = 20;
  35361. return e({
  35362. name: n,
  35363. data: _r3
  35364. });
  35365. case 20:
  35366. i = _context40.sent;
  35367. case 21:
  35368. _context40.next = 23;
  35369. return t.decryptResult(i.result);
  35370. case 23:
  35371. i.result = _context40.sent;
  35372. return _context40.abrupt("return", i);
  35373. case 25:
  35374. case "end":
  35375. return _context40.stop();
  35376. }
  35377. }
  35378. }, _callee40);
  35379. }));
  35380. }
  35381. }]);
  35382. return jt;
  35383. }();
  35384. /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
  35385. function Bt(e) {
  35386. return parseInt(e) === e;
  35387. }
  35388. function $t(e) {
  35389. if (!Bt(e.length)) return !1;
  35390. for (var t = 0; t < e.length; t++) {
  35391. if (!Bt(e[t]) || e[t] < 0 || e[t] > 255) return !1;
  35392. }
  35393. return !0;
  35394. }
  35395. function Wt(e, t) {
  35396. if (e.buffer && "Uint8Array" === e.name) return t && (e = e.slice ? e.slice() : Array.prototype.slice.call(e)), e;
  35397. if (Array.isArray(e)) {
  35398. if (!$t(e)) throw new Error("Array contains invalid value: " + e);
  35399. return new Uint8Array(e);
  35400. }
  35401. if (Bt(e.length) && $t(e)) return new Uint8Array(e);
  35402. throw new Error("unsupported array-like object");
  35403. }
  35404. function Ht(e) {
  35405. return new Uint8Array(e);
  35406. }
  35407. function zt(e, t, n, s, r) {
  35408. null == s && null == r || (e = e.slice ? e.slice(s, r) : Array.prototype.slice.call(e, s, r)), t.set(e, n);
  35409. }
  35410. var Jt,
  35411. Vt = {
  35412. toBytes: function toBytes(e) {
  35413. var t = [],
  35414. n = 0;
  35415. for (e = encodeURI(e); n < e.length;) {
  35416. var s = e.charCodeAt(n++);
  35417. 37 === s ? (t.push(parseInt(e.substr(n, 2), 16)), n += 2) : t.push(s);
  35418. }
  35419. return Wt(t);
  35420. },
  35421. fromBytes: function fromBytes(e) {
  35422. for (var t = [], n = 0; n < e.length;) {
  35423. var s = e[n];
  35424. s < 128 ? (t.push(String.fromCharCode(s)), n++) : s > 191 && s < 224 ? (t.push(String.fromCharCode((31 & s) << 6 | 63 & e[n + 1])), n += 2) : (t.push(String.fromCharCode((15 & s) << 12 | (63 & e[n + 1]) << 6 | 63 & e[n + 2])), n += 3);
  35425. }
  35426. return t.join("");
  35427. }
  35428. },
  35429. Gt = (Jt = "0123456789abcdef", {
  35430. toBytes: function toBytes(e) {
  35431. for (var t = [], n = 0; n < e.length; n += 2) {
  35432. t.push(parseInt(e.substr(n, 2), 16));
  35433. }
  35434. return t;
  35435. },
  35436. fromBytes: function fromBytes(e) {
  35437. for (var t = [], n = 0; n < e.length; n++) {
  35438. var s = e[n];
  35439. t.push(Jt[(240 & s) >> 4] + Jt[15 & s]);
  35440. }
  35441. return t.join("");
  35442. }
  35443. }),
  35444. Yt = {
  35445. 16: 10,
  35446. 24: 12,
  35447. 32: 14
  35448. },
  35449. Qt = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145],
  35450. Xt = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22],
  35451. Zt = [82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125],
  35452. en = [3328402341, 4168907908, 4000806809, 4135287693, 4294111757, 3597364157, 3731845041, 2445657428, 1613770832, 33620227, 3462883241, 1445669757, 3892248089, 3050821474, 1303096294, 3967186586, 2412431941, 528646813, 2311702848, 4202528135, 4026202645, 2992200171, 2387036105, 4226871307, 1101901292, 3017069671, 1604494077, 1169141738, 597466303, 1403299063, 3832705686, 2613100635, 1974974402, 3791519004, 1033081774, 1277568618, 1815492186, 2118074177, 4126668546, 2211236943, 1748251740, 1369810420, 3521504564, 4193382664, 3799085459, 2883115123, 1647391059, 706024767, 134480908, 2512897874, 1176707941, 2646852446, 806885416, 932615841, 168101135, 798661301, 235341577, 605164086, 461406363, 3756188221, 3454790438, 1311188841, 2142417613, 3933566367, 302582043, 495158174, 1479289972, 874125870, 907746093, 3698224818, 3025820398, 1537253627, 2756858614, 1983593293, 3084310113, 2108928974, 1378429307, 3722699582, 1580150641, 327451799, 2790478837, 3117535592, 0, 3253595436, 1075847264, 3825007647, 2041688520, 3059440621, 3563743934, 2378943302, 1740553945, 1916352843, 2487896798, 2555137236, 2958579944, 2244988746, 3151024235, 3320835882, 1336584933, 3992714006, 2252555205, 2588757463, 1714631509, 293963156, 2319795663, 3925473552, 67240454, 4269768577, 2689618160, 2017213508, 631218106, 1269344483, 2723238387, 1571005438, 2151694528, 93294474, 1066570413, 563977660, 1882732616, 4059428100, 1673313503, 2008463041, 2950355573, 1109467491, 537923632, 3858759450, 4260623118, 3218264685, 2177748300, 403442708, 638784309, 3287084079, 3193921505, 899127202, 2286175436, 773265209, 2479146071, 1437050866, 4236148354, 2050833735, 3362022572, 3126681063, 840505643, 3866325909, 3227541664, 427917720, 2655997905, 2749160575, 1143087718, 1412049534, 999329963, 193497219, 2353415882, 3354324521, 1807268051, 672404540, 2816401017, 3160301282, 369822493, 2916866934, 3688947771, 1681011286, 1949973070, 336202270, 2454276571, 201721354, 1210328172, 3093060836, 2680341085, 3184776046, 1135389935, 3294782118, 965841320, 831886756, 3554993207, 4068047243, 3588745010, 2345191491, 1849112409, 3664604599, 26054028, 2983581028, 2622377682, 1235855840, 3630984372, 2891339514, 4092916743, 3488279077, 3395642799, 4101667470, 1202630377, 268961816, 1874508501, 4034427016, 1243948399, 1546530418, 941366308, 1470539505, 1941222599, 2546386513, 3421038627, 2715671932, 3899946140, 1042226977, 2521517021, 1639824860, 227249030, 260737669, 3765465232, 2084453954, 1907733956, 3429263018, 2420656344, 100860677, 4160157185, 470683154, 3261161891, 1781871967, 2924959737, 1773779408, 394692241, 2579611992, 974986535, 664706745, 3655459128, 3958962195, 731420851, 571543859, 3530123707, 2849626480, 126783113, 865375399, 765172662, 1008606754, 361203602, 3387549984, 2278477385, 2857719295, 1344809080, 2782912378, 59542671, 1503764984, 160008576, 437062935, 1707065306, 3622233649, 2218934982, 3496503480, 2185314755, 697932208, 1512910199, 504303377, 2075177163, 2824099068, 1841019862, 739644986],
  35453. tn = [2781242211, 2230877308, 2582542199, 2381740923, 234877682, 3184946027, 2984144751, 1418839493, 1348481072, 50462977, 2848876391, 2102799147, 434634494, 1656084439, 3863849899, 2599188086, 1167051466, 2636087938, 1082771913, 2281340285, 368048890, 3954334041, 3381544775, 201060592, 3963727277, 1739838676, 4250903202, 3930435503, 3206782108, 4149453988, 2531553906, 1536934080, 3262494647, 484572669, 2923271059, 1783375398, 1517041206, 1098792767, 49674231, 1334037708, 1550332980, 4098991525, 886171109, 150598129, 2481090929, 1940642008, 1398944049, 1059722517, 201851908, 1385547719, 1699095331, 1587397571, 674240536, 2704774806, 252314885, 3039795866, 151914247, 908333586, 2602270848, 1038082786, 651029483, 1766729511, 3447698098, 2682942837, 454166793, 2652734339, 1951935532, 775166490, 758520603, 3000790638, 4004797018, 4217086112, 4137964114, 1299594043, 1639438038, 3464344499, 2068982057, 1054729187, 1901997871, 2534638724, 4121318227, 1757008337, 0, 750906861, 1614815264, 535035132, 3363418545, 3988151131, 3201591914, 1183697867, 3647454910, 1265776953, 3734260298, 3566750796, 3903871064, 1250283471, 1807470800, 717615087, 3847203498, 384695291, 3313910595, 3617213773, 1432761139, 2484176261, 3481945413, 283769337, 100925954, 2180939647, 4037038160, 1148730428, 3123027871, 3813386408, 4087501137, 4267549603, 3229630528, 2315620239, 2906624658, 3156319645, 1215313976, 82966005, 3747855548, 3245848246, 1974459098, 1665278241, 807407632, 451280895, 251524083, 1841287890, 1283575245, 337120268, 891687699, 801369324, 3787349855, 2721421207, 3431482436, 959321879, 1469301956, 4065699751, 2197585534, 1199193405, 2898814052, 3887750493, 724703513, 2514908019, 2696962144, 2551808385, 3516813135, 2141445340, 1715741218, 2119445034, 2872807568, 2198571144, 3398190662, 700968686, 3547052216, 1009259540, 2041044702, 3803995742, 487983883, 1991105499, 1004265696, 1449407026, 1316239930, 504629770, 3683797321, 168560134, 1816667172, 3837287516, 1570751170, 1857934291, 4014189740, 2797888098, 2822345105, 2754712981, 936633572, 2347923833, 852879335, 1133234376, 1500395319, 3084545389, 2348912013, 1689376213, 3533459022, 3762923945, 3034082412, 4205598294, 133428468, 634383082, 2949277029, 2398386810, 3913789102, 403703816, 3580869306, 2297460856, 1867130149, 1918643758, 607656988, 4049053350, 3346248884, 1368901318, 600565992, 2090982877, 2632479860, 557719327, 3717614411, 3697393085, 2249034635, 2232388234, 2430627952, 1115438654, 3295786421, 2865522278, 3633334344, 84280067, 33027830, 303828494, 2747425121, 1600795957, 4188952407, 3496589753, 2434238086, 1486471617, 658119965, 3106381470, 953803233, 334231800, 3005978776, 857870609, 3151128937, 1890179545, 2298973838, 2805175444, 3056442267, 574365214, 2450884487, 550103529, 1233637070, 4289353045, 2018519080, 2057691103, 2399374476, 4166623649, 2148108681, 387583245, 3664101311, 836232934, 3330556482, 3100665960, 3280093505, 2955516313, 2002398509, 287182607, 3413881008, 4238890068, 3597515707, 975967766],
  35454. nn = [1671808611, 2089089148, 2006576759, 2072901243, 4061003762, 1807603307, 1873927791, 3310653893, 810573872, 16974337, 1739181671, 729634347, 4263110654, 3613570519, 2883997099, 1989864566, 3393556426, 2191335298, 3376449993, 2106063485, 4195741690, 1508618841, 1204391495, 4027317232, 2917941677, 3563566036, 2734514082, 2951366063, 2629772188, 2767672228, 1922491506, 3227229120, 3082974647, 4246528509, 2477669779, 644500518, 911895606, 1061256767, 4144166391, 3427763148, 878471220, 2784252325, 3845444069, 4043897329, 1905517169, 3631459288, 827548209, 356461077, 67897348, 3344078279, 593839651, 3277757891, 405286936, 2527147926, 84871685, 2595565466, 118033927, 305538066, 2157648768, 3795705826, 3945188843, 661212711, 2999812018, 1973414517, 152769033, 2208177539, 745822252, 439235610, 455947803, 1857215598, 1525593178, 2700827552, 1391895634, 994932283, 3596728278, 3016654259, 695947817, 3812548067, 795958831, 2224493444, 1408607827, 3513301457, 0, 3979133421, 543178784, 4229948412, 2982705585, 1542305371, 1790891114, 3410398667, 3201918910, 961245753, 1256100938, 1289001036, 1491644504, 3477767631, 3496721360, 4012557807, 2867154858, 4212583931, 1137018435, 1305975373, 861234739, 2241073541, 1171229253, 4178635257, 33948674, 2139225727, 1357946960, 1011120188, 2679776671, 2833468328, 1374921297, 2751356323, 1086357568, 2408187279, 2460827538, 2646352285, 944271416, 4110742005, 3168756668, 3066132406, 3665145818, 560153121, 271589392, 4279952895, 4077846003, 3530407890, 3444343245, 202643468, 322250259, 3962553324, 1608629855, 2543990167, 1154254916, 389623319, 3294073796, 2817676711, 2122513534, 1028094525, 1689045092, 1575467613, 422261273, 1939203699, 1621147744, 2174228865, 1339137615, 3699352540, 577127458, 712922154, 2427141008, 2290289544, 1187679302, 3995715566, 3100863416, 339486740, 3732514782, 1591917662, 186455563, 3681988059, 3762019296, 844522546, 978220090, 169743370, 1239126601, 101321734, 611076132, 1558493276, 3260915650, 3547250131, 2901361580, 1655096418, 2443721105, 2510565781, 3828863972, 2039214713, 3878868455, 3359869896, 928607799, 1840765549, 2374762893, 3580146133, 1322425422, 2850048425, 1823791212, 1459268694, 4094161908, 3928346602, 1706019429, 2056189050, 2934523822, 135794696, 3134549946, 2022240376, 628050469, 779246638, 472135708, 2800834470, 3032970164, 3327236038, 3894660072, 3715932637, 1956440180, 522272287, 1272813131, 3185336765, 2340818315, 2323976074, 1888542832, 1044544574, 3049550261, 1722469478, 1222152264, 50660867, 4127324150, 236067854, 1638122081, 895445557, 1475980887, 3117443513, 2257655686, 3243809217, 489110045, 2662934430, 3778599393, 4162055160, 2561878936, 288563729, 1773916777, 3648039385, 2391345038, 2493985684, 2612407707, 505560094, 2274497927, 3911240169, 3460925390, 1442818645, 678973480, 3749357023, 2358182796, 2717407649, 2306869641, 219617805, 3218761151, 3862026214, 1120306242, 1756942440, 1103331905, 2578459033, 762796589, 252780047, 2966125488, 1425844308, 3151392187, 372911126],
  35455. sn = [1667474886, 2088535288, 2004326894, 2071694838, 4075949567, 1802223062, 1869591006, 3318043793, 808472672, 16843522, 1734846926, 724270422, 4278065639, 3621216949, 2880169549, 1987484396, 3402253711, 2189597983, 3385409673, 2105378810, 4210693615, 1499065266, 1195886990, 4042263547, 2913856577, 3570689971, 2728590687, 2947541573, 2627518243, 2762274643, 1920112356, 3233831835, 3082273397, 4261223649, 2475929149, 640051788, 909531756, 1061110142, 4160160501, 3435941763, 875846760, 2779116625, 3857003729, 4059105529, 1903268834, 3638064043, 825316194, 353713962, 67374088, 3351728789, 589522246, 3284360861, 404236336, 2526454071, 84217610, 2593830191, 117901582, 303183396, 2155911963, 3806477791, 3958056653, 656894286, 2998062463, 1970642922, 151591698, 2206440989, 741110872, 437923380, 454765878, 1852748508, 1515908788, 2694904667, 1381168804, 993742198, 3604373943, 3014905469, 690584402, 3823320797, 791638366, 2223281939, 1398011302, 3520161977, 0, 3991743681, 538992704, 4244381667, 2981218425, 1532751286, 1785380564, 3419096717, 3200178535, 960056178, 1246420628, 1280103576, 1482221744, 3486468741, 3503319995, 4025428677, 2863326543, 4227536621, 1128514950, 1296947098, 859002214, 2240123921, 1162203018, 4193849577, 33687044, 2139062782, 1347481760, 1010582648, 2678045221, 2829640523, 1364325282, 2745433693, 1077985408, 2408548869, 2459086143, 2644360225, 943212656, 4126475505, 3166494563, 3065430391, 3671750063, 555836226, 269496352, 4294908645, 4092792573, 3537006015, 3452783745, 202118168, 320025894, 3974901699, 1600119230, 2543297077, 1145359496, 387397934, 3301201811, 2812801621, 2122220284, 1027426170, 1684319432, 1566435258, 421079858, 1936954854, 1616945344, 2172753945, 1330631070, 3705438115, 572679748, 707427924, 2425400123, 2290647819, 1179044492, 4008585671, 3099120491, 336870440, 3739122087, 1583276732, 185277718, 3688593069, 3772791771, 842159716, 976899700, 168435220, 1229577106, 101059084, 606366792, 1549591736, 3267517855, 3553849021, 2897014595, 1650632388, 2442242105, 2509612081, 3840161747, 2038008818, 3890688725, 3368567691, 926374254, 1835907034, 2374863873, 3587531953, 1313788572, 2846482505, 1819063512, 1448540844, 4109633523, 3941213647, 1701162954, 2054852340, 2930698567, 134748176, 3132806511, 2021165296, 623210314, 774795868, 471606328, 2795958615, 3031746419, 3334885783, 3907527627, 3722280097, 1953799400, 522133822, 1263263126, 3183336545, 2341176845, 2324333839, 1886425312, 1044267644, 3048588401, 1718004428, 1212733584, 50529542, 4143317495, 235803164, 1633788866, 892690282, 1465383342, 3115962473, 2256965911, 3250673817, 488449850, 2661202215, 3789633753, 4177007595, 2560144171, 286339874, 1768537042, 3654906025, 2391705863, 2492770099, 2610673197, 505291324, 2273808917, 3924369609, 3469625735, 1431699370, 673740880, 3755965093, 2358021891, 2711746649, 2307489801, 218961690, 3217021541, 3873845719, 1111672452, 1751693520, 1094828930, 2576986153, 757954394, 252645662, 2964376443, 1414855848, 3149649517, 370555436],
  35456. rn = [1374988112, 2118214995, 437757123, 975658646, 1001089995, 530400753, 2902087851, 1273168787, 540080725, 2910219766, 2295101073, 4110568485, 1340463100, 3307916247, 641025152, 3043140495, 3736164937, 632953703, 1172967064, 1576976609, 3274667266, 2169303058, 2370213795, 1809054150, 59727847, 361929877, 3211623147, 2505202138, 3569255213, 1484005843, 1239443753, 2395588676, 1975683434, 4102977912, 2572697195, 666464733, 3202437046, 4035489047, 3374361702, 2110667444, 1675577880, 3843699074, 2538681184, 1649639237, 2976151520, 3144396420, 4269907996, 4178062228, 1883793496, 2403728665, 2497604743, 1383856311, 2876494627, 1917518562, 3810496343, 1716890410, 3001755655, 800440835, 2261089178, 3543599269, 807962610, 599762354, 33778362, 3977675356, 2328828971, 2809771154, 4077384432, 1315562145, 1708848333, 101039829, 3509871135, 3299278474, 875451293, 2733856160, 92987698, 2767645557, 193195065, 1080094634, 1584504582, 3178106961, 1042385657, 2531067453, 3711829422, 1306967366, 2438237621, 1908694277, 67556463, 1615861247, 429456164, 3602770327, 2302690252, 1742315127, 2968011453, 126454664, 3877198648, 2043211483, 2709260871, 2084704233, 4169408201, 0, 159417987, 841739592, 504459436, 1817866830, 4245618683, 260388950, 1034867998, 908933415, 168810852, 1750902305, 2606453969, 607530554, 202008497, 2472011535, 3035535058, 463180190, 2160117071, 1641816226, 1517767529, 470948374, 3801332234, 3231722213, 1008918595, 303765277, 235474187, 4069246893, 766945465, 337553864, 1475418501, 2943682380, 4003061179, 2743034109, 4144047775, 1551037884, 1147550661, 1543208500, 2336434550, 3408119516, 3069049960, 3102011747, 3610369226, 1113818384, 328671808, 2227573024, 2236228733, 3535486456, 2935566865, 3341394285, 496906059, 3702665459, 226906860, 2009195472, 733156972, 2842737049, 294930682, 1206477858, 2835123396, 2700099354, 1451044056, 573804783, 2269728455, 3644379585, 2362090238, 2564033334, 2801107407, 2776292904, 3669462566, 1068351396, 742039012, 1350078989, 1784663195, 1417561698, 4136440770, 2430122216, 775550814, 2193862645, 2673705150, 1775276924, 1876241833, 3475313331, 3366754619, 270040487, 3902563182, 3678124923, 3441850377, 1851332852, 3969562369, 2203032232, 3868552805, 2868897406, 566021896, 4011190502, 3135740889, 1248802510, 3936291284, 699432150, 832877231, 708780849, 3332740144, 899835584, 1951317047, 4236429990, 3767586992, 866637845, 4043610186, 1106041591, 2144161806, 395441711, 1984812685, 1139781709, 3433712980, 3835036895, 2664543715, 1282050075, 3240894392, 1181045119, 2640243204, 25965917, 4203181171, 4211818798, 3009879386, 2463879762, 3910161971, 1842759443, 2597806476, 933301370, 1509430414, 3943906441, 3467192302, 3076639029, 3776767469, 2051518780, 2631065433, 1441952575, 404016761, 1942435775, 1408749034, 1610459739, 3745345300, 2017778566, 3400528769, 3110650942, 941896748, 3265478751, 371049330, 3168937228, 675039627, 4279080257, 967311729, 135050206, 3635733660, 1683407248, 2076935265, 3576870512, 1215061108, 3501741890],
  35457. on = [1347548327, 1400783205, 3273267108, 2520393566, 3409685355, 4045380933, 2880240216, 2471224067, 1428173050, 4138563181, 2441661558, 636813900, 4233094615, 3620022987, 2149987652, 2411029155, 1239331162, 1730525723, 2554718734, 3781033664, 46346101, 310463728, 2743944855, 3328955385, 3875770207, 2501218972, 3955191162, 3667219033, 768917123, 3545789473, 692707433, 1150208456, 1786102409, 2029293177, 1805211710, 3710368113, 3065962831, 401639597, 1724457132, 3028143674, 409198410, 2196052529, 1620529459, 1164071807, 3769721975, 2226875310, 486441376, 2499348523, 1483753576, 428819965, 2274680428, 3075636216, 598438867, 3799141122, 1474502543, 711349675, 129166120, 53458370, 2592523643, 2782082824, 4063242375, 2988687269, 3120694122, 1559041666, 730517276, 2460449204, 4042459122, 2706270690, 3446004468, 3573941694, 533804130, 2328143614, 2637442643, 2695033685, 839224033, 1973745387, 957055980, 2856345839, 106852767, 1371368976, 4181598602, 1033297158, 2933734917, 1179510461, 3046200461, 91341917, 1862534868, 4284502037, 605657339, 2547432937, 3431546947, 2003294622, 3182487618, 2282195339, 954669403, 3682191598, 1201765386, 3917234703, 3388507166, 0, 2198438022, 1211247597, 2887651696, 1315723890, 4227665663, 1443857720, 507358933, 657861945, 1678381017, 560487590, 3516619604, 975451694, 2970356327, 261314535, 3535072918, 2652609425, 1333838021, 2724322336, 1767536459, 370938394, 182621114, 3854606378, 1128014560, 487725847, 185469197, 2918353863, 3106780840, 3356761769, 2237133081, 1286567175, 3152976349, 4255350624, 2683765030, 3160175349, 3309594171, 878443390, 1988838185, 3704300486, 1756818940, 1673061617, 3403100636, 272786309, 1075025698, 545572369, 2105887268, 4174560061, 296679730, 1841768865, 1260232239, 4091327024, 3960309330, 3497509347, 1814803222, 2578018489, 4195456072, 575138148, 3299409036, 446754879, 3629546796, 4011996048, 3347532110, 3252238545, 4270639778, 915985419, 3483825537, 681933534, 651868046, 2755636671, 3828103837, 223377554, 2607439820, 1649704518, 3270937875, 3901806776, 1580087799, 4118987695, 3198115200, 2087309459, 2842678573, 3016697106, 1003007129, 2802849917, 1860738147, 2077965243, 164439672, 4100872472, 32283319, 2827177882, 1709610350, 2125135846, 136428751, 3874428392, 3652904859, 3460984630, 3572145929, 3593056380, 2939266226, 824852259, 818324884, 3224740454, 930369212, 2801566410, 2967507152, 355706840, 1257309336, 4148292826, 243256656, 790073846, 2373340630, 1296297904, 1422699085, 3756299780, 3818836405, 457992840, 3099667487, 2135319889, 77422314, 1560382517, 1945798516, 788204353, 1521706781, 1385356242, 870912086, 325965383, 2358957921, 2050466060, 2388260884, 2313884476, 4006521127, 901210569, 3990953189, 1014646705, 1503449823, 1062597235, 2031621326, 3212035895, 3931371469, 1533017514, 350174575, 2256028891, 2177544179, 1052338372, 741876788, 1606591296, 1914052035, 213705253, 2334669897, 1107234197, 1899603969, 3725069491, 2631447780, 2422494913, 1635502980, 1893020342, 1950903388, 1120974935],
  35458. an = [2807058932, 1699970625, 2764249623, 1586903591, 1808481195, 1173430173, 1487645946, 59984867, 4199882800, 1844882806, 1989249228, 1277555970, 3623636965, 3419915562, 1149249077, 2744104290, 1514790577, 459744698, 244860394, 3235995134, 1963115311, 4027744588, 2544078150, 4190530515, 1608975247, 2627016082, 2062270317, 1507497298, 2200818878, 567498868, 1764313568, 3359936201, 2305455554, 2037970062, 1047239e3, 1910319033, 1337376481, 2904027272, 2892417312, 984907214, 1243112415, 830661914, 861968209, 2135253587, 2011214180, 2927934315, 2686254721, 731183368, 1750626376, 4246310725, 1820824798, 4172763771, 3542330227, 48394827, 2404901663, 2871682645, 671593195, 3254988725, 2073724613, 145085239, 2280796200, 2779915199, 1790575107, 2187128086, 472615631, 3029510009, 4075877127, 3802222185, 4107101658, 3201631749, 1646252340, 4270507174, 1402811438, 1436590835, 3778151818, 3950355702, 3963161475, 4020912224, 2667994737, 273792366, 2331590177, 104699613, 95345982, 3175501286, 2377486676, 1560637892, 3564045318, 369057872, 4213447064, 3919042237, 1137477952, 2658625497, 1119727848, 2340947849, 1530455833, 4007360968, 172466556, 266959938, 516552836, 0, 2256734592, 3980931627, 1890328081, 1917742170, 4294704398, 945164165, 3575528878, 958871085, 3647212047, 2787207260, 1423022939, 775562294, 1739656202, 3876557655, 2530391278, 2443058075, 3310321856, 547512796, 1265195639, 437656594, 3121275539, 719700128, 3762502690, 387781147, 218828297, 3350065803, 2830708150, 2848461854, 428169201, 122466165, 3720081049, 1627235199, 648017665, 4122762354, 1002783846, 2117360635, 695634755, 3336358691, 4234721005, 4049844452, 3704280881, 2232435299, 574624663, 287343814, 612205898, 1039717051, 840019705, 2708326185, 793451934, 821288114, 1391201670, 3822090177, 376187827, 3113855344, 1224348052, 1679968233, 2361698556, 1058709744, 752375421, 2431590963, 1321699145, 3519142200, 2734591178, 188127444, 2177869557, 3727205754, 2384911031, 3215212461, 2648976442, 2450346104, 3432737375, 1180849278, 331544205, 3102249176, 4150144569, 2952102595, 2159976285, 2474404304, 766078933, 313773861, 2570832044, 2108100632, 1668212892, 3145456443, 2013908262, 418672217, 3070356634, 2594734927, 1852171925, 3867060991, 3473416636, 3907448597, 2614737639, 919489135, 164948639, 2094410160, 2997825956, 590424639, 2486224549, 1723872674, 3157750862, 3399941250, 3501252752, 3625268135, 2555048196, 3673637356, 1343127501, 4130281361, 3599595085, 2957853679, 1297403050, 81781910, 3051593425, 2283490410, 532201772, 1367295589, 3926170974, 895287692, 1953757831, 1093597963, 492483431, 3528626907, 1446242576, 1192455638, 1636604631, 209336225, 344873464, 1015671571, 669961897, 3375740769, 3857572124, 2973530695, 3747192018, 1933530610, 3464042516, 935293895, 3454686199, 2858115069, 1863638845, 3683022916, 4085369519, 3292445032, 875313188, 1080017571, 3279033885, 621591778, 1233856572, 2504130317, 24197544, 3017672716, 3835484340, 3247465558, 2220981195, 3060847922, 1551124588, 1463996600],
  35459. cn = [4104605777, 1097159550, 396673818, 660510266, 2875968315, 2638606623, 4200115116, 3808662347, 821712160, 1986918061, 3430322568, 38544885, 3856137295, 718002117, 893681702, 1654886325, 2975484382, 3122358053, 3926825029, 4274053469, 796197571, 1290801793, 1184342925, 3556361835, 2405426947, 2459735317, 1836772287, 1381620373, 3196267988, 1948373848, 3764988233, 3385345166, 3263785589, 2390325492, 1480485785, 3111247143, 3780097726, 2293045232, 548169417, 3459953789, 3746175075, 439452389, 1362321559, 1400849762, 1685577905, 1806599355, 2174754046, 137073913, 1214797936, 1174215055, 3731654548, 2079897426, 1943217067, 1258480242, 529487843, 1437280870, 3945269170, 3049390895, 3313212038, 923313619, 679998e3, 3215307299, 57326082, 377642221, 3474729866, 2041877159, 133361907, 1776460110, 3673476453, 96392454, 878845905, 2801699524, 777231668, 4082475170, 2330014213, 4142626212, 2213296395, 1626319424, 1906247262, 1846563261, 562755902, 3708173718, 1040559837, 3871163981, 1418573201, 3294430577, 114585348, 1343618912, 2566595609, 3186202582, 1078185097, 3651041127, 3896688048, 2307622919, 425408743, 3371096953, 2081048481, 1108339068, 2216610296, 0, 2156299017, 736970802, 292596766, 1517440620, 251657213, 2235061775, 2933202493, 758720310, 265905162, 1554391400, 1532285339, 908999204, 174567692, 1474760595, 4002861748, 2610011675, 3234156416, 3693126241, 2001430874, 303699484, 2478443234, 2687165888, 585122620, 454499602, 151849742, 2345119218, 3064510765, 514443284, 4044981591, 1963412655, 2581445614, 2137062819, 19308535, 1928707164, 1715193156, 4219352155, 1126790795, 600235211, 3992742070, 3841024952, 836553431, 1669664834, 2535604243, 3323011204, 1243905413, 3141400786, 4180808110, 698445255, 2653899549, 2989552604, 2253581325, 3252932727, 3004591147, 1891211689, 2487810577, 3915653703, 4237083816, 4030667424, 2100090966, 865136418, 1229899655, 953270745, 3399679628, 3557504664, 4118925222, 2061379749, 3079546586, 2915017791, 983426092, 2022837584, 1607244650, 2118541908, 2366882550, 3635996816, 972512814, 3283088770, 1568718495, 3499326569, 3576539503, 621982671, 2895723464, 410887952, 2623762152, 1002142683, 645401037, 1494807662, 2595684844, 1335535747, 2507040230, 4293295786, 3167684641, 367585007, 3885750714, 1865862730, 2668221674, 2960971305, 2763173681, 1059270954, 2777952454, 2724642869, 1320957812, 2194319100, 2429595872, 2815956275, 77089521, 3973773121, 3444575871, 2448830231, 1305906550, 4021308739, 2857194700, 2516901860, 3518358430, 1787304780, 740276417, 1699839814, 1592394909, 2352307457, 2272556026, 188821243, 1729977011, 3687994002, 274084841, 3594982253, 3613494426, 2701949495, 4162096729, 322734571, 2837966542, 1640576439, 484830689, 1202797690, 3537852828, 4067639125, 349075736, 3342319475, 4157467219, 4255800159, 1030690015, 1155237496, 2951971274, 1757691577, 607398968, 2738905026, 499347990, 3794078908, 1011452712, 227885567, 2818666809, 213114376, 3034881240, 1455525988, 3414450555, 850817237, 1817998408, 3092726480],
  35460. un = [0, 235474187, 470948374, 303765277, 941896748, 908933415, 607530554, 708780849, 1883793496, 2118214995, 1817866830, 1649639237, 1215061108, 1181045119, 1417561698, 1517767529, 3767586992, 4003061179, 4236429990, 4069246893, 3635733660, 3602770327, 3299278474, 3400528769, 2430122216, 2664543715, 2362090238, 2193862645, 2835123396, 2801107407, 3035535058, 3135740889, 3678124923, 3576870512, 3341394285, 3374361702, 3810496343, 3977675356, 4279080257, 4043610186, 2876494627, 2776292904, 3076639029, 3110650942, 2472011535, 2640243204, 2403728665, 2169303058, 1001089995, 899835584, 666464733, 699432150, 59727847, 226906860, 530400753, 294930682, 1273168787, 1172967064, 1475418501, 1509430414, 1942435775, 2110667444, 1876241833, 1641816226, 2910219766, 2743034109, 2976151520, 3211623147, 2505202138, 2606453969, 2302690252, 2269728455, 3711829422, 3543599269, 3240894392, 3475313331, 3843699074, 3943906441, 4178062228, 4144047775, 1306967366, 1139781709, 1374988112, 1610459739, 1975683434, 2076935265, 1775276924, 1742315127, 1034867998, 866637845, 566021896, 800440835, 92987698, 193195065, 429456164, 395441711, 1984812685, 2017778566, 1784663195, 1683407248, 1315562145, 1080094634, 1383856311, 1551037884, 101039829, 135050206, 437757123, 337553864, 1042385657, 807962610, 573804783, 742039012, 2531067453, 2564033334, 2328828971, 2227573024, 2935566865, 2700099354, 3001755655, 3168937228, 3868552805, 3902563182, 4203181171, 4102977912, 3736164937, 3501741890, 3265478751, 3433712980, 1106041591, 1340463100, 1576976609, 1408749034, 2043211483, 2009195472, 1708848333, 1809054150, 832877231, 1068351396, 766945465, 599762354, 159417987, 126454664, 361929877, 463180190, 2709260871, 2943682380, 3178106961, 3009879386, 2572697195, 2538681184, 2236228733, 2336434550, 3509871135, 3745345300, 3441850377, 3274667266, 3910161971, 3877198648, 4110568485, 4211818798, 2597806476, 2497604743, 2261089178, 2295101073, 2733856160, 2902087851, 3202437046, 2968011453, 3936291284, 3835036895, 4136440770, 4169408201, 3535486456, 3702665459, 3467192302, 3231722213, 2051518780, 1951317047, 1716890410, 1750902305, 1113818384, 1282050075, 1584504582, 1350078989, 168810852, 67556463, 371049330, 404016761, 841739592, 1008918595, 775550814, 540080725, 3969562369, 3801332234, 4035489047, 4269907996, 3569255213, 3669462566, 3366754619, 3332740144, 2631065433, 2463879762, 2160117071, 2395588676, 2767645557, 2868897406, 3102011747, 3069049960, 202008497, 33778362, 270040487, 504459436, 875451293, 975658646, 675039627, 641025152, 2084704233, 1917518562, 1615861247, 1851332852, 1147550661, 1248802510, 1484005843, 1451044056, 933301370, 967311729, 733156972, 632953703, 260388950, 25965917, 328671808, 496906059, 1206477858, 1239443753, 1543208500, 1441952575, 2144161806, 1908694277, 1675577880, 1842759443, 3610369226, 3644379585, 3408119516, 3307916247, 4011190502, 3776767469, 4077384432, 4245618683, 2809771154, 2842737049, 3144396420, 3043140495, 2673705150, 2438237621, 2203032232, 2370213795],
  35461. ln = [0, 185469197, 370938394, 487725847, 741876788, 657861945, 975451694, 824852259, 1483753576, 1400783205, 1315723890, 1164071807, 1950903388, 2135319889, 1649704518, 1767536459, 2967507152, 3152976349, 2801566410, 2918353863, 2631447780, 2547432937, 2328143614, 2177544179, 3901806776, 3818836405, 4270639778, 4118987695, 3299409036, 3483825537, 3535072918, 3652904859, 2077965243, 1893020342, 1841768865, 1724457132, 1474502543, 1559041666, 1107234197, 1257309336, 598438867, 681933534, 901210569, 1052338372, 261314535, 77422314, 428819965, 310463728, 3409685355, 3224740454, 3710368113, 3593056380, 3875770207, 3960309330, 4045380933, 4195456072, 2471224067, 2554718734, 2237133081, 2388260884, 3212035895, 3028143674, 2842678573, 2724322336, 4138563181, 4255350624, 3769721975, 3955191162, 3667219033, 3516619604, 3431546947, 3347532110, 2933734917, 2782082824, 3099667487, 3016697106, 2196052529, 2313884476, 2499348523, 2683765030, 1179510461, 1296297904, 1347548327, 1533017514, 1786102409, 1635502980, 2087309459, 2003294622, 507358933, 355706840, 136428751, 53458370, 839224033, 957055980, 605657339, 790073846, 2373340630, 2256028891, 2607439820, 2422494913, 2706270690, 2856345839, 3075636216, 3160175349, 3573941694, 3725069491, 3273267108, 3356761769, 4181598602, 4063242375, 4011996048, 3828103837, 1033297158, 915985419, 730517276, 545572369, 296679730, 446754879, 129166120, 213705253, 1709610350, 1860738147, 1945798516, 2029293177, 1239331162, 1120974935, 1606591296, 1422699085, 4148292826, 4233094615, 3781033664, 3931371469, 3682191598, 3497509347, 3446004468, 3328955385, 2939266226, 2755636671, 3106780840, 2988687269, 2198438022, 2282195339, 2501218972, 2652609425, 1201765386, 1286567175, 1371368976, 1521706781, 1805211710, 1620529459, 2105887268, 1988838185, 533804130, 350174575, 164439672, 46346101, 870912086, 954669403, 636813900, 788204353, 2358957921, 2274680428, 2592523643, 2441661558, 2695033685, 2880240216, 3065962831, 3182487618, 3572145929, 3756299780, 3270937875, 3388507166, 4174560061, 4091327024, 4006521127, 3854606378, 1014646705, 930369212, 711349675, 560487590, 272786309, 457992840, 106852767, 223377554, 1678381017, 1862534868, 1914052035, 2031621326, 1211247597, 1128014560, 1580087799, 1428173050, 32283319, 182621114, 401639597, 486441376, 768917123, 651868046, 1003007129, 818324884, 1503449823, 1385356242, 1333838021, 1150208456, 1973745387, 2125135846, 1673061617, 1756818940, 2970356327, 3120694122, 2802849917, 2887651696, 2637442643, 2520393566, 2334669897, 2149987652, 3917234703, 3799141122, 4284502037, 4100872472, 3309594171, 3460984630, 3545789473, 3629546796, 2050466060, 1899603969, 1814803222, 1730525723, 1443857720, 1560382517, 1075025698, 1260232239, 575138148, 692707433, 878443390, 1062597235, 243256656, 91341917, 409198410, 325965383, 3403100636, 3252238545, 3704300486, 3620022987, 3874428392, 3990953189, 4042459122, 4227665663, 2460449204, 2578018489, 2226875310, 2411029155, 3198115200, 3046200461, 2827177882, 2743944855],
  35462. hn = [0, 218828297, 437656594, 387781147, 875313188, 958871085, 775562294, 590424639, 1750626376, 1699970625, 1917742170, 2135253587, 1551124588, 1367295589, 1180849278, 1265195639, 3501252752, 3720081049, 3399941250, 3350065803, 3835484340, 3919042237, 4270507174, 4085369519, 3102249176, 3051593425, 2734591178, 2952102595, 2361698556, 2177869557, 2530391278, 2614737639, 3145456443, 3060847922, 2708326185, 2892417312, 2404901663, 2187128086, 2504130317, 2555048196, 3542330227, 3727205754, 3375740769, 3292445032, 3876557655, 3926170974, 4246310725, 4027744588, 1808481195, 1723872674, 1910319033, 2094410160, 1608975247, 1391201670, 1173430173, 1224348052, 59984867, 244860394, 428169201, 344873464, 935293895, 984907214, 766078933, 547512796, 1844882806, 1627235199, 2011214180, 2062270317, 1507497298, 1423022939, 1137477952, 1321699145, 95345982, 145085239, 532201772, 313773861, 830661914, 1015671571, 731183368, 648017665, 3175501286, 2957853679, 2807058932, 2858115069, 2305455554, 2220981195, 2474404304, 2658625497, 3575528878, 3625268135, 3473416636, 3254988725, 3778151818, 3963161475, 4213447064, 4130281361, 3599595085, 3683022916, 3432737375, 3247465558, 3802222185, 4020912224, 4172763771, 4122762354, 3201631749, 3017672716, 2764249623, 2848461854, 2331590177, 2280796200, 2431590963, 2648976442, 104699613, 188127444, 472615631, 287343814, 840019705, 1058709744, 671593195, 621591778, 1852171925, 1668212892, 1953757831, 2037970062, 1514790577, 1463996600, 1080017571, 1297403050, 3673637356, 3623636965, 3235995134, 3454686199, 4007360968, 3822090177, 4107101658, 4190530515, 2997825956, 3215212461, 2830708150, 2779915199, 2256734592, 2340947849, 2627016082, 2443058075, 172466556, 122466165, 273792366, 492483431, 1047239e3, 861968209, 612205898, 695634755, 1646252340, 1863638845, 2013908262, 1963115311, 1446242576, 1530455833, 1277555970, 1093597963, 1636604631, 1820824798, 2073724613, 1989249228, 1436590835, 1487645946, 1337376481, 1119727848, 164948639, 81781910, 331544205, 516552836, 1039717051, 821288114, 669961897, 719700128, 2973530695, 3157750862, 2871682645, 2787207260, 2232435299, 2283490410, 2667994737, 2450346104, 3647212047, 3564045318, 3279033885, 3464042516, 3980931627, 3762502690, 4150144569, 4199882800, 3070356634, 3121275539, 2904027272, 2686254721, 2200818878, 2384911031, 2570832044, 2486224549, 3747192018, 3528626907, 3310321856, 3359936201, 3950355702, 3867060991, 4049844452, 4234721005, 1739656202, 1790575107, 2108100632, 1890328081, 1402811438, 1586903591, 1233856572, 1149249077, 266959938, 48394827, 369057872, 418672217, 1002783846, 919489135, 567498868, 752375421, 209336225, 24197544, 376187827, 459744698, 945164165, 895287692, 574624663, 793451934, 1679968233, 1764313568, 2117360635, 1933530610, 1343127501, 1560637892, 1243112415, 1192455638, 3704280881, 3519142200, 3336358691, 3419915562, 3907448597, 3857572124, 4075877127, 4294704398, 3029510009, 3113855344, 2927934315, 2744104290, 2159976285, 2377486676, 2594734927, 2544078150],
  35463. dn = [0, 151849742, 303699484, 454499602, 607398968, 758720310, 908999204, 1059270954, 1214797936, 1097159550, 1517440620, 1400849762, 1817998408, 1699839814, 2118541908, 2001430874, 2429595872, 2581445614, 2194319100, 2345119218, 3034881240, 3186202582, 2801699524, 2951971274, 3635996816, 3518358430, 3399679628, 3283088770, 4237083816, 4118925222, 4002861748, 3885750714, 1002142683, 850817237, 698445255, 548169417, 529487843, 377642221, 227885567, 77089521, 1943217067, 2061379749, 1640576439, 1757691577, 1474760595, 1592394909, 1174215055, 1290801793, 2875968315, 2724642869, 3111247143, 2960971305, 2405426947, 2253581325, 2638606623, 2487810577, 3808662347, 3926825029, 4044981591, 4162096729, 3342319475, 3459953789, 3576539503, 3693126241, 1986918061, 2137062819, 1685577905, 1836772287, 1381620373, 1532285339, 1078185097, 1229899655, 1040559837, 923313619, 740276417, 621982671, 439452389, 322734571, 137073913, 19308535, 3871163981, 4021308739, 4104605777, 4255800159, 3263785589, 3414450555, 3499326569, 3651041127, 2933202493, 2815956275, 3167684641, 3049390895, 2330014213, 2213296395, 2566595609, 2448830231, 1305906550, 1155237496, 1607244650, 1455525988, 1776460110, 1626319424, 2079897426, 1928707164, 96392454, 213114376, 396673818, 514443284, 562755902, 679998e3, 865136418, 983426092, 3708173718, 3557504664, 3474729866, 3323011204, 4180808110, 4030667424, 3945269170, 3794078908, 2507040230, 2623762152, 2272556026, 2390325492, 2975484382, 3092726480, 2738905026, 2857194700, 3973773121, 3856137295, 4274053469, 4157467219, 3371096953, 3252932727, 3673476453, 3556361835, 2763173681, 2915017791, 3064510765, 3215307299, 2156299017, 2307622919, 2459735317, 2610011675, 2081048481, 1963412655, 1846563261, 1729977011, 1480485785, 1362321559, 1243905413, 1126790795, 878845905, 1030690015, 645401037, 796197571, 274084841, 425408743, 38544885, 188821243, 3613494426, 3731654548, 3313212038, 3430322568, 4082475170, 4200115116, 3780097726, 3896688048, 2668221674, 2516901860, 2366882550, 2216610296, 3141400786, 2989552604, 2837966542, 2687165888, 1202797690, 1320957812, 1437280870, 1554391400, 1669664834, 1787304780, 1906247262, 2022837584, 265905162, 114585348, 499347990, 349075736, 736970802, 585122620, 972512814, 821712160, 2595684844, 2478443234, 2293045232, 2174754046, 3196267988, 3079546586, 2895723464, 2777952454, 3537852828, 3687994002, 3234156416, 3385345166, 4142626212, 4293295786, 3841024952, 3992742070, 174567692, 57326082, 410887952, 292596766, 777231668, 660510266, 1011452712, 893681702, 1108339068, 1258480242, 1343618912, 1494807662, 1715193156, 1865862730, 1948373848, 2100090966, 2701949495, 2818666809, 3004591147, 3122358053, 2235061775, 2352307457, 2535604243, 2653899549, 3915653703, 3764988233, 4219352155, 4067639125, 3444575871, 3294430577, 3746175075, 3594982253, 836553431, 953270745, 600235211, 718002117, 367585007, 484830689, 133361907, 251657213, 2041877159, 1891211689, 1806599355, 1654886325, 1568718495, 1418573201, 1335535747, 1184342925];
  35464. function pn(e) {
  35465. for (var t = [], n = 0; n < e.length; n += 4) {
  35466. t.push(e[n] << 24 | e[n + 1] << 16 | e[n + 2] << 8 | e[n + 3]);
  35467. }
  35468. return t;
  35469. }
  35470. var fn = /*#__PURE__*/function () {
  35471. function fn(e) {
  35472. (0, _classCallCheck2.default)(this, fn);
  35473. if (!(this instanceof fn)) throw Error("AES must be instanitated with `new`");
  35474. Object.defineProperty(this, "key", {
  35475. value: Wt(e, !0)
  35476. }), this._prepare();
  35477. }
  35478. (0, _createClass2.default)(fn, [{
  35479. key: "_prepare",
  35480. value: function _prepare() {
  35481. var e = Yt[this.key.length];
  35482. if (null == e) throw new Error("invalid key size (must be 16, 24 or 32 bytes)");
  35483. this._Ke = [], this._Kd = [];
  35484. for (var t = 0; t <= e; t++) {
  35485. this._Ke.push([0, 0, 0, 0]), this._Kd.push([0, 0, 0, 0]);
  35486. }
  35487. var n,
  35488. s = 4 * (e + 1),
  35489. r = this.key.length / 4,
  35490. i = pn(this.key);
  35491. for (t = 0; t < r; t++) {
  35492. n = t >> 2, this._Ke[n][t % 4] = i[t], this._Kd[e - n][t % 4] = i[t];
  35493. }
  35494. for (var o, a = 0, c = r; c < s;) {
  35495. if (o = i[r - 1], i[0] ^= Xt[o >> 16 & 255] << 24 ^ Xt[o >> 8 & 255] << 16 ^ Xt[255 & o] << 8 ^ Xt[o >> 24 & 255] ^ Qt[a] << 24, a += 1, 8 != r) for (t = 1; t < r; t++) {
  35496. i[t] ^= i[t - 1];
  35497. } else {
  35498. for (t = 1; t < r / 2; t++) {
  35499. i[t] ^= i[t - 1];
  35500. }
  35501. o = i[r / 2 - 1], i[r / 2] ^= Xt[255 & o] ^ Xt[o >> 8 & 255] << 8 ^ Xt[o >> 16 & 255] << 16 ^ Xt[o >> 24 & 255] << 24;
  35502. for (t = r / 2 + 1; t < r; t++) {
  35503. i[t] ^= i[t - 1];
  35504. }
  35505. }
  35506. for (t = 0; t < r && c < s;) {
  35507. u = c >> 2, l = c % 4, this._Ke[u][l] = i[t], this._Kd[e - u][l] = i[t++], c++;
  35508. }
  35509. }
  35510. for (var u = 1; u < e; u++) {
  35511. for (var l = 0; l < 4; l++) {
  35512. o = this._Kd[u][l], this._Kd[u][l] = un[o >> 24 & 255] ^ ln[o >> 16 & 255] ^ hn[o >> 8 & 255] ^ dn[255 & o];
  35513. }
  35514. }
  35515. }
  35516. }, {
  35517. key: "encrypt",
  35518. value: function encrypt(e) {
  35519. if (16 != e.length) throw new Error("invalid plaintext size (must be 16 bytes)");
  35520. for (var t = this._Ke.length - 1, n = [0, 0, 0, 0], s = pn(e), r = 0; r < 4; r++) {
  35521. s[r] ^= this._Ke[0][r];
  35522. }
  35523. for (var i = 1; i < t; i++) {
  35524. for (r = 0; r < 4; r++) {
  35525. n[r] = en[s[r] >> 24 & 255] ^ tn[s[(r + 1) % 4] >> 16 & 255] ^ nn[s[(r + 2) % 4] >> 8 & 255] ^ sn[255 & s[(r + 3) % 4]] ^ this._Ke[i][r];
  35526. }
  35527. s = n.slice();
  35528. }
  35529. var o,
  35530. a = Ht(16);
  35531. for (r = 0; r < 4; r++) {
  35532. o = this._Ke[t][r], a[4 * r] = 255 & (Xt[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (Xt[s[(r + 1) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (Xt[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (Xt[255 & s[(r + 3) % 4]] ^ o);
  35533. }
  35534. return a;
  35535. }
  35536. }, {
  35537. key: "decrypt",
  35538. value: function decrypt(e) {
  35539. if (16 != e.length) throw new Error("invalid ciphertext size (must be 16 bytes)");
  35540. for (var t = this._Kd.length - 1, n = [0, 0, 0, 0], s = pn(e), r = 0; r < 4; r++) {
  35541. s[r] ^= this._Kd[0][r];
  35542. }
  35543. for (var i = 1; i < t; i++) {
  35544. for (r = 0; r < 4; r++) {
  35545. n[r] = rn[s[r] >> 24 & 255] ^ on[s[(r + 3) % 4] >> 16 & 255] ^ an[s[(r + 2) % 4] >> 8 & 255] ^ cn[255 & s[(r + 1) % 4]] ^ this._Kd[i][r];
  35546. }
  35547. s = n.slice();
  35548. }
  35549. var o,
  35550. a = Ht(16);
  35551. for (r = 0; r < 4; r++) {
  35552. o = this._Kd[t][r], a[4 * r] = 255 & (Zt[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (Zt[s[(r + 3) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (Zt[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (Zt[255 & s[(r + 1) % 4]] ^ o);
  35553. }
  35554. return a;
  35555. }
  35556. }]);
  35557. return fn;
  35558. }();
  35559. var gn = /*#__PURE__*/function () {
  35560. function gn(e) {
  35561. (0, _classCallCheck2.default)(this, gn);
  35562. if (!(this instanceof gn)) throw Error("AES must be instanitated with `new`");
  35563. this.description = "Electronic Code Block", this.name = "ecb", this._aes = new fn(e);
  35564. }
  35565. (0, _createClass2.default)(gn, [{
  35566. key: "encrypt",
  35567. value: function encrypt(e) {
  35568. if ((e = Wt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  35569. for (var t = Ht(e.length), n = Ht(16), s = 0; s < e.length; s += 16) {
  35570. zt(e, n, 0, s, s + 16), zt(n = this._aes.encrypt(n), t, s);
  35571. }
  35572. return t;
  35573. }
  35574. }, {
  35575. key: "decrypt",
  35576. value: function decrypt(e) {
  35577. if ((e = Wt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  35578. for (var t = Ht(e.length), n = Ht(16), s = 0; s < e.length; s += 16) {
  35579. zt(e, n, 0, s, s + 16), zt(n = this._aes.decrypt(n), t, s);
  35580. }
  35581. return t;
  35582. }
  35583. }]);
  35584. return gn;
  35585. }();
  35586. var mn = /*#__PURE__*/function () {
  35587. function mn(e, t) {
  35588. (0, _classCallCheck2.default)(this, mn);
  35589. if (!(this instanceof mn)) throw Error("AES must be instanitated with `new`");
  35590. if (this.description = "Cipher Block Chaining", this.name = "cbc", t) {
  35591. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  35592. } else t = Ht(16);
  35593. this._lastCipherblock = Wt(t, !0), this._aes = new fn(e);
  35594. }
  35595. (0, _createClass2.default)(mn, [{
  35596. key: "encrypt",
  35597. value: function encrypt(e) {
  35598. if ((e = Wt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  35599. for (var t = Ht(e.length), n = Ht(16), s = 0; s < e.length; s += 16) {
  35600. zt(e, n, 0, s, s + 16);
  35601. for (var r = 0; r < 16; r++) {
  35602. n[r] ^= this._lastCipherblock[r];
  35603. }
  35604. this._lastCipherblock = this._aes.encrypt(n), zt(this._lastCipherblock, t, s);
  35605. }
  35606. return t;
  35607. }
  35608. }, {
  35609. key: "decrypt",
  35610. value: function decrypt(e) {
  35611. if ((e = Wt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  35612. for (var t = Ht(e.length), n = Ht(16), s = 0; s < e.length; s += 16) {
  35613. zt(e, n, 0, s, s + 16), n = this._aes.decrypt(n);
  35614. for (var r = 0; r < 16; r++) {
  35615. t[s + r] = n[r] ^ this._lastCipherblock[r];
  35616. }
  35617. zt(e, this._lastCipherblock, 0, s, s + 16);
  35618. }
  35619. return t;
  35620. }
  35621. }]);
  35622. return mn;
  35623. }();
  35624. var yn = /*#__PURE__*/function () {
  35625. function yn(e, t, n) {
  35626. (0, _classCallCheck2.default)(this, yn);
  35627. if (!(this instanceof yn)) throw Error("AES must be instanitated with `new`");
  35628. if (this.description = "Cipher Feedback", this.name = "cfb", t) {
  35629. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 size)");
  35630. } else t = Ht(16);
  35631. n || (n = 1), this.segmentSize = n, this._shiftRegister = Wt(t, !0), this._aes = new fn(e);
  35632. }
  35633. (0, _createClass2.default)(yn, [{
  35634. key: "encrypt",
  35635. value: function encrypt(e) {
  35636. if (e.length % this.segmentSize != 0) throw new Error("invalid plaintext size (must be segmentSize bytes)");
  35637. for (var t, n = Wt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  35638. t = this._aes.encrypt(this._shiftRegister);
  35639. for (var r = 0; r < this.segmentSize; r++) {
  35640. n[s + r] ^= t[r];
  35641. }
  35642. zt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), zt(n, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  35643. }
  35644. return n;
  35645. }
  35646. }, {
  35647. key: "decrypt",
  35648. value: function decrypt(e) {
  35649. if (e.length % this.segmentSize != 0) throw new Error("invalid ciphertext size (must be segmentSize bytes)");
  35650. for (var t, n = Wt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  35651. t = this._aes.encrypt(this._shiftRegister);
  35652. for (var r = 0; r < this.segmentSize; r++) {
  35653. n[s + r] ^= t[r];
  35654. }
  35655. zt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), zt(e, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  35656. }
  35657. return n;
  35658. }
  35659. }]);
  35660. return yn;
  35661. }();
  35662. var _n = /*#__PURE__*/function () {
  35663. function _n(e, t) {
  35664. (0, _classCallCheck2.default)(this, _n);
  35665. if (!(this instanceof _n)) throw Error("AES must be instanitated with `new`");
  35666. if (this.description = "Output Feedback", this.name = "ofb", t) {
  35667. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  35668. } else t = Ht(16);
  35669. this._lastPrecipher = Wt(t, !0), this._lastPrecipherIndex = 16, this._aes = new fn(e);
  35670. }
  35671. (0, _createClass2.default)(_n, [{
  35672. key: "encrypt",
  35673. value: function encrypt(e) {
  35674. for (var t = Wt(e, !0), n = 0; n < t.length; n++) {
  35675. 16 === this._lastPrecipherIndex && (this._lastPrecipher = this._aes.encrypt(this._lastPrecipher), this._lastPrecipherIndex = 0), t[n] ^= this._lastPrecipher[this._lastPrecipherIndex++];
  35676. }
  35677. return t;
  35678. }
  35679. }, {
  35680. key: "decrypt",
  35681. value: function decrypt(e) {
  35682. return this.encrypt(e);
  35683. }
  35684. }]);
  35685. return _n;
  35686. }();
  35687. var wn = /*#__PURE__*/function () {
  35688. function wn(e) {
  35689. (0, _classCallCheck2.default)(this, wn);
  35690. if (!(this instanceof wn)) throw Error("Counter must be instanitated with `new`");
  35691. 0 === e || e || (e = 1), "number" == typeof e ? (this._counter = Ht(16), this.setValue(e)) : this.setBytes(e);
  35692. }
  35693. (0, _createClass2.default)(wn, [{
  35694. key: "setValue",
  35695. value: function setValue(e) {
  35696. if ("number" != typeof e || parseInt(e) != e) throw new Error("invalid counter value (must be an integer)");
  35697. if (e > Number.MAX_SAFE_INTEGER) throw new Error("integer value out of safe range");
  35698. for (var t = 15; t >= 0; --t) {
  35699. this._counter[t] = e % 256, e = parseInt(e / 256);
  35700. }
  35701. }
  35702. }, {
  35703. key: "setBytes",
  35704. value: function setBytes(e) {
  35705. if (16 != (e = Wt(e, !0)).length) throw new Error("invalid counter bytes size (must be 16 bytes)");
  35706. this._counter = e;
  35707. }
  35708. }, {
  35709. key: "increment",
  35710. value: function increment() {
  35711. for (var e = 15; e >= 0; e--) {
  35712. if (255 !== this._counter[e]) {
  35713. this._counter[e]++;
  35714. break;
  35715. }
  35716. this._counter[e] = 0;
  35717. }
  35718. }
  35719. }]);
  35720. return wn;
  35721. }();
  35722. var vn = /*#__PURE__*/function () {
  35723. function vn(e, t) {
  35724. (0, _classCallCheck2.default)(this, vn);
  35725. if (!(this instanceof vn)) throw Error("AES must be instanitated with `new`");
  35726. this.description = "Counter", this.name = "ctr", t instanceof wn || (t = new wn(t)), this._counter = t, this._remainingCounter = null, this._remainingCounterIndex = 16, this._aes = new fn(e);
  35727. }
  35728. (0, _createClass2.default)(vn, [{
  35729. key: "encrypt",
  35730. value: function encrypt(e) {
  35731. for (var t = Wt(e, !0), n = 0; n < t.length; n++) {
  35732. 16 === this._remainingCounterIndex && (this._remainingCounter = this._aes.encrypt(this._counter._counter), this._remainingCounterIndex = 0, this._counter.increment()), t[n] ^= this._remainingCounter[this._remainingCounterIndex++];
  35733. }
  35734. return t;
  35735. }
  35736. }, {
  35737. key: "decrypt",
  35738. value: function decrypt(e) {
  35739. return this.encrypt(e);
  35740. }
  35741. }]);
  35742. return vn;
  35743. }();
  35744. var In = {
  35745. AES: fn,
  35746. Counter: wn,
  35747. ModeOfOperation: {
  35748. ecb: gn,
  35749. cbc: mn,
  35750. cfb: yn,
  35751. ofb: _n,
  35752. ctr: vn
  35753. },
  35754. utils: {
  35755. hex: Gt,
  35756. utf8: Vt
  35757. },
  35758. padding: {
  35759. pkcs7: {
  35760. pad: function pad(e) {
  35761. var t = 16 - (e = Wt(e, !0)).length % 16,
  35762. n = Ht(e.length + t);
  35763. zt(e, n);
  35764. for (var s = e.length; s < n.length; s++) {
  35765. n[s] = t;
  35766. }
  35767. return n;
  35768. },
  35769. strip: function strip(e) {
  35770. if ((e = Wt(e, !0)).length < 16) throw new Error("PKCS#7 invalid length");
  35771. var t = e[e.length - 1];
  35772. if (t > 16) throw new Error("PKCS#7 padding byte out of range");
  35773. for (var n = e.length - t, s = 0; s < t; s++) {
  35774. if (e[n + s] !== t) throw new Error("PKCS#7 invalid padding byte");
  35775. }
  35776. var r = Ht(n);
  35777. return zt(e, r, 0, 0, n), r;
  35778. }
  35779. }
  35780. },
  35781. _arrayTest: {
  35782. coerceArray: Wt,
  35783. createArray: Ht,
  35784. copyArray: zt
  35785. }
  35786. };
  35787. function Sn(e, t, n) {
  35788. var s = new Uint8Array(uni.base64ToArrayBuffer(t)),
  35789. r = In.utils.utf8.toBytes(n),
  35790. i = In.utils.utf8.toBytes(e),
  35791. o = new In.ModeOfOperation.cbc(s, r),
  35792. a = In.padding.pkcs7.pad(i),
  35793. c = o.encrypt(a);
  35794. return uni.arrayBufferToBase64(c);
  35795. }
  35796. var bn = {
  35797. code: 2e4,
  35798. message: "System error"
  35799. },
  35800. kn = {
  35801. code: 20101,
  35802. message: "Invalid client"
  35803. },
  35804. An = {
  35805. code: 20102,
  35806. message: "Get encrypt key failed"
  35807. },
  35808. Pn = {
  35809. 10001: "Secure network is not supported on current playground or unimpsdk",
  35810. 10003: "Config missing in current app. If the problem pesist, please contact DCloud.",
  35811. 10009: "Encrypt payload failed",
  35812. 10010: "Decrypt response failed"
  35813. };
  35814. function Tn(e) {
  35815. var _ref33 = e || {},
  35816. t = _ref33.errSubject,
  35817. n = _ref33.subject,
  35818. s = _ref33.errCode,
  35819. r = _ref33.errMsg,
  35820. i = _ref33.code,
  35821. o = _ref33.message,
  35822. a = _ref33.cause;
  35823. return new te({
  35824. subject: t || n || "uni-secure-network",
  35825. code: s || i || bn.code,
  35826. message: r || o,
  35827. cause: a
  35828. });
  35829. }
  35830. var Cn,
  35831. xn,
  35832. On = null;
  35833. var En = /*#__PURE__*/function (_jt) {
  35834. (0, _inherits2.default)(En, _jt);
  35835. var _super9 = _createSuper(En);
  35836. function En(e) {
  35837. var _this16;
  35838. (0, _classCallCheck2.default)(this, En);
  35839. _this16 = _super9.call(this, e), _this16.clientType = "mp-weixin", _this16.userEncryptKey = null;
  35840. return _this16;
  35841. }
  35842. (0, _createClass2.default)(En, [{
  35843. key: "isLogin",
  35844. value: function isLogin() {
  35845. return !!this.scopedGlobalCache.mpWeixinCode || !!this.scopedGlobalCache.mpWeixinOpenid;
  35846. }
  35847. }, {
  35848. key: "prepare",
  35849. value: function () {
  35850. var _prepare2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee41() {
  35851. return _regenerator.default.wrap(function _callee41$(_context41) {
  35852. while (1) {
  35853. switch (_context41.prev = _context41.next) {
  35854. case 0:
  35855. if (this.isLogin()) {
  35856. _context41.next = 7;
  35857. break;
  35858. }
  35859. if (this.scopedGlobalCache.initPromise) {
  35860. _context41.next = 3;
  35861. break;
  35862. }
  35863. throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");
  35864. case 3:
  35865. _context41.next = 5;
  35866. return this.scopedGlobalCache.initPromise;
  35867. case 5:
  35868. if (this.isLogin()) {
  35869. _context41.next = 7;
  35870. break;
  35871. }
  35872. throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");
  35873. case 7:
  35874. case "end":
  35875. return _context41.stop();
  35876. }
  35877. }
  35878. }, _callee41, this);
  35879. }));
  35880. function prepare() {
  35881. return _prepare2.apply(this, arguments);
  35882. }
  35883. return prepare;
  35884. }()
  35885. }, {
  35886. key: "getUserEncryptKey",
  35887. value: function () {
  35888. var _getUserEncryptKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
  35889. var _this17 = this;
  35890. var e;
  35891. return _regenerator.default.wrap(function _callee42$(_context42) {
  35892. while (1) {
  35893. switch (_context42.prev = _context42.next) {
  35894. case 0:
  35895. if (!this.userEncryptKey) {
  35896. _context42.next = 2;
  35897. break;
  35898. }
  35899. return _context42.abrupt("return", this.userEncryptKey);
  35900. case 2:
  35901. if (!(On && On.expireTime)) {
  35902. _context42.next = 6;
  35903. break;
  35904. }
  35905. e = Date.now();
  35906. if (!(On.expireTime - e > 0)) {
  35907. _context42.next = 6;
  35908. break;
  35909. }
  35910. return _context42.abrupt("return", (this.userEncryptKey = On, this.userEncryptKey));
  35911. case 6:
  35912. return _context42.abrupt("return", new Promise(function (e, t) {
  35913. uni.getUserCryptoManager().getLatestUserKey({
  35914. success: function success(t) {
  35915. On = t, _this17.userEncryptKey = t, e(_this17.userEncryptKey);
  35916. },
  35917. fail: function fail(e) {
  35918. t(Tn(_objectSpread(_objectSpread({}, An), {}, {
  35919. cause: e
  35920. })));
  35921. }
  35922. });
  35923. }));
  35924. case 7:
  35925. case "end":
  35926. return _context42.stop();
  35927. }
  35928. }
  35929. }, _callee42, this);
  35930. }));
  35931. function getUserEncryptKey() {
  35932. return _getUserEncryptKey.apply(this, arguments);
  35933. }
  35934. return getUserEncryptKey;
  35935. }()
  35936. }, {
  35937. key: "getWxAppId",
  35938. value: function getWxAppId() {
  35939. return wx.getAccountInfoSync().miniProgram.appId;
  35940. }
  35941. }, {
  35942. key: "platformGetSignOption",
  35943. value: function () {
  35944. var _platformGetSignOption = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee43() {
  35945. var _yield$this$getUserEn, e, t, n;
  35946. return _regenerator.default.wrap(function _callee43$(_context43) {
  35947. while (1) {
  35948. switch (_context43.prev = _context43.next) {
  35949. case 0:
  35950. _context43.next = 2;
  35951. return this.getUserEncryptKey();
  35952. case 2:
  35953. _yield$this$getUserEn = _context43.sent;
  35954. e = _yield$this$getUserEn.encryptKey;
  35955. t = _yield$this$getUserEn.iv;
  35956. n = _yield$this$getUserEn.version;
  35957. return _context43.abrupt("return", {
  35958. verifyClientSign: Sn(JSON.stringify({
  35959. data: JSON.stringify({}),
  35960. appId: this.appId,
  35961. deviceId: this.deviceId,
  35962. wxAppId: this.getWxAppId(),
  35963. simulator: "devtools" === ae().platform,
  35964. timestamp: Date.now()
  35965. }), e, t),
  35966. encryptKeyId: n,
  35967. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  35968. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  35969. });
  35970. case 7:
  35971. case "end":
  35972. return _context43.stop();
  35973. }
  35974. }
  35975. }, _callee43, this);
  35976. }));
  35977. function platformGetSignOption() {
  35978. return _platformGetSignOption.apply(this, arguments);
  35979. }
  35980. return platformGetSignOption;
  35981. }()
  35982. }, {
  35983. key: "platformEncryptData",
  35984. value: function () {
  35985. var _platformEncryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee44(e) {
  35986. var _yield$this$getUserEn2, t, n, s, r;
  35987. return _regenerator.default.wrap(function _callee44$(_context44) {
  35988. while (1) {
  35989. switch (_context44.prev = _context44.next) {
  35990. case 0:
  35991. _context44.next = 2;
  35992. return this.getUserEncryptKey();
  35993. case 2:
  35994. _yield$this$getUserEn2 = _context44.sent;
  35995. t = _yield$this$getUserEn2.encryptKey;
  35996. n = _yield$this$getUserEn2.iv;
  35997. s = _yield$this$getUserEn2.version;
  35998. r = {
  35999. secretType: this.secretType,
  36000. encryptKeyId: s,
  36001. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  36002. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  36003. };
  36004. return _context44.abrupt("return", this.secretType === Ft ? {
  36005. content: e,
  36006. _uniCloudOptions: r
  36007. } : {
  36008. content: Sn(JSON.stringify({
  36009. data: JSON.stringify(e),
  36010. appId: this.appId,
  36011. deviceId: this.deviceId,
  36012. wxAppId: this.getWxAppId(),
  36013. simulator: "devtools" === ae().platform,
  36014. timestamp: Date.now()
  36015. }), t, n),
  36016. _uniCloudOptions: r
  36017. });
  36018. case 8:
  36019. case "end":
  36020. return _context44.stop();
  36021. }
  36022. }
  36023. }, _callee44, this);
  36024. }));
  36025. function platformEncryptData(_x36) {
  36026. return _platformEncryptData.apply(this, arguments);
  36027. }
  36028. return platformEncryptData;
  36029. }()
  36030. }, {
  36031. key: "platformDecryptResult",
  36032. value: function () {
  36033. var _platformDecryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee45(e) {
  36034. var t, _yield$this$getUserEn3, n, s;
  36035. return _regenerator.default.wrap(function _callee45$(_context45) {
  36036. while (1) {
  36037. switch (_context45.prev = _context45.next) {
  36038. case 0:
  36039. t = e.content;
  36040. _context45.next = 3;
  36041. return this.getUserEncryptKey();
  36042. case 3:
  36043. _yield$this$getUserEn3 = _context45.sent;
  36044. n = _yield$this$getUserEn3.encryptKey;
  36045. s = _yield$this$getUserEn3.iv;
  36046. return _context45.abrupt("return", JSON.parse(function (e, t, n) {
  36047. var s = new Uint8Array(uni.base64ToArrayBuffer(e)),
  36048. r = new Uint8Array(uni.base64ToArrayBuffer(t)),
  36049. i = In.utils.utf8.toBytes(n),
  36050. o = new In.ModeOfOperation.cbc(r, i),
  36051. a = In.padding.pkcs7.strip(o.decrypt(s));
  36052. return In.utils.utf8.fromBytes(a);
  36053. }(t, n, s)));
  36054. case 7:
  36055. case "end":
  36056. return _context45.stop();
  36057. }
  36058. }
  36059. }, _callee45, this);
  36060. }));
  36061. function platformDecryptResult(_x37) {
  36062. return _platformDecryptResult.apply(this, arguments);
  36063. }
  36064. return platformDecryptResult;
  36065. }()
  36066. }, {
  36067. key: "isClientKeyNotFound",
  36068. value: function isClientKeyNotFound() {
  36069. return !1;
  36070. }
  36071. }]);
  36072. return En;
  36073. }(jt);
  36074. function Ln(e) {
  36075. var t = ["hasClientKey", "encryptGetClientKeyPayload", "setClientKey", "encrypt", "decrypt"],
  36076. n = {};
  36077. var _loop = function _loop(_s10) {
  36078. var r = t[_s10];
  36079. n[r] = function () {
  36080. for (var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++) {
  36081. t[_key] = arguments[_key];
  36082. }
  36083. return new Promise(function (n, s) {
  36084. "function" == typeof e[r] ? e[r].apply(e, t.concat([function () {
  36085. var _ref34 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36086. e = _ref34.type,
  36087. t = _ref34.data,
  36088. r = _ref34.errCode,
  36089. i = _ref34.errMsg,
  36090. o = _ref34.errSubject,
  36091. a = _ref34.message;
  36092. "success" === e ? n(t) : s(Tn({
  36093. errCode: r,
  36094. errMsg: Pn[r] || i || a,
  36095. errSubject: o
  36096. }));
  36097. }])) : s(Tn({
  36098. message: "请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"
  36099. }));
  36100. });
  36101. };
  36102. };
  36103. for (var _s10 = 0; _s10 < t.length; _s10++) {
  36104. _loop(_s10);
  36105. }
  36106. return n;
  36107. }
  36108. var Rn = /*#__PURE__*/function (_jt2) {
  36109. (0, _inherits2.default)(Rn, _jt2);
  36110. var _super10 = _createSuper(Rn);
  36111. function Rn(e) {
  36112. var _this18;
  36113. (0, _classCallCheck2.default)(this, Rn);
  36114. _this18 = _super10.call(this, e), _this18.clientType = "app", _this18.appUtils = _objectSpread({}, Ln(uni.requireNativePlugin("plus"))), _this18.systemInfo = Cn || (Cn = ae());
  36115. return _this18;
  36116. }
  36117. (0, _createClass2.default)(Rn, [{
  36118. key: "hasClientKey",
  36119. value: function () {
  36120. var _hasClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee46() {
  36121. return _regenerator.default.wrap(function _callee46$(_context46) {
  36122. while (1) {
  36123. switch (_context46.prev = _context46.next) {
  36124. case 0:
  36125. _context46.next = 2;
  36126. return this.appUtils.hasClientKey({
  36127. provider: this.provider,
  36128. spaceId: this.spaceId
  36129. });
  36130. case 2:
  36131. this._hasClientKey = _context46.sent;
  36132. return _context46.abrupt("return", this._hasClientKey);
  36133. case 4:
  36134. case "end":
  36135. return _context46.stop();
  36136. }
  36137. }
  36138. }, _callee46, this);
  36139. }));
  36140. function hasClientKey() {
  36141. return _hasClientKey.apply(this, arguments);
  36142. }
  36143. return hasClientKey;
  36144. }()
  36145. }, {
  36146. key: "getAppClientKey",
  36147. value: function () {
  36148. var _getAppClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee47() {
  36149. var _yield$this$appUtils$, e, t, n, s, r;
  36150. return _regenerator.default.wrap(function _callee47$(_context47) {
  36151. while (1) {
  36152. switch (_context47.prev = _context47.next) {
  36153. case 0:
  36154. _context47.next = 2;
  36155. return this.appUtils.encryptGetClientKeyPayload({
  36156. data: JSON.stringify({})
  36157. });
  36158. case 2:
  36159. _yield$this$appUtils$ = _context47.sent;
  36160. e = _yield$this$appUtils$.data;
  36161. t = _yield$this$appUtils$.key;
  36162. _context47.next = 7;
  36163. return this.uniCloudIns.callFunction({
  36164. name: "DCloud-clientDB",
  36165. data: {
  36166. redirectTo: "encryption",
  36167. action: "getAppClientKey",
  36168. data: e,
  36169. key: t
  36170. }
  36171. });
  36172. case 7:
  36173. _context47.t0 = _context47.sent.result;
  36174. if (_context47.t0) {
  36175. _context47.next = 10;
  36176. break;
  36177. }
  36178. _context47.t0 = {};
  36179. case 10:
  36180. n = _context47.t0;
  36181. if (!(0 !== n.errCode)) {
  36182. _context47.next = 13;
  36183. break;
  36184. }
  36185. throw function (e) {
  36186. return new te({
  36187. subject: e.errSubject || "uni-secure-network",
  36188. code: e.errCode || e.code || bn.code,
  36189. message: e.errMsg || e.message
  36190. });
  36191. }(n);
  36192. case 13:
  36193. s = n.clientKey, r = n.key;
  36194. _context47.next = 16;
  36195. return this.appUtils.setClientKey({
  36196. provider: this.provider,
  36197. spaceId: this.spaceId,
  36198. clientKey: s,
  36199. key: r
  36200. });
  36201. case 16:
  36202. case "end":
  36203. return _context47.stop();
  36204. }
  36205. }
  36206. }, _callee47, this);
  36207. }));
  36208. function getAppClientKey() {
  36209. return _getAppClientKey.apply(this, arguments);
  36210. }
  36211. return getAppClientKey;
  36212. }()
  36213. }, {
  36214. key: "ensureClientKey",
  36215. value: function () {
  36216. var _ensureClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee48() {
  36217. var _this19 = this;
  36218. var _ref35,
  36219. _ref35$forceUpdate,
  36220. e,
  36221. _args48 = arguments;
  36222. return _regenerator.default.wrap(function _callee48$(_context48) {
  36223. while (1) {
  36224. switch (_context48.prev = _context48.next) {
  36225. case 0:
  36226. _ref35 = _args48.length > 0 && _args48[0] !== undefined ? _args48[0] : {}, _ref35$forceUpdate = _ref35.forceUpdate, e = _ref35$forceUpdate === void 0 ? !1 : _ref35$forceUpdate;
  36227. _context48.t1 = !0;
  36228. _context48.next = 4;
  36229. return this.hasClientKey();
  36230. case 4:
  36231. _context48.t2 = _context48.sent;
  36232. _context48.t0 = _context48.t1 !== _context48.t2;
  36233. if (_context48.t0) {
  36234. _context48.next = 8;
  36235. break;
  36236. }
  36237. _context48.t0 = e;
  36238. case 8:
  36239. if (!_context48.t0) {
  36240. _context48.next = 10;
  36241. break;
  36242. }
  36243. return _context48.abrupt("return", (e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus === h || !e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus !== p || (this.scopedGlobalCache.initPromise = this.getAppClientKey(), this.scopedGlobalCache.initPromise.then(function (e) {
  36244. _this19.scopedGlobalCache.initStatus = d;
  36245. }).catch(function (e) {
  36246. throw _this19.scopedGlobalCache.initStatus = p, e;
  36247. }), this.scopedGlobalCache.initStatus = h), this.scopedGlobalCache.initPromise));
  36248. case 10:
  36249. case "end":
  36250. return _context48.stop();
  36251. }
  36252. }
  36253. }, _callee48, this);
  36254. }));
  36255. function ensureClientKey() {
  36256. return _ensureClientKey.apply(this, arguments);
  36257. }
  36258. return ensureClientKey;
  36259. }()
  36260. }, {
  36261. key: "prepare",
  36262. value: function () {
  36263. var _prepare3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee49() {
  36264. var _ref36,
  36265. _ref36$forceUpdate,
  36266. e,
  36267. _args49 = arguments;
  36268. return _regenerator.default.wrap(function _callee49$(_context49) {
  36269. while (1) {
  36270. switch (_context49.prev = _context49.next) {
  36271. case 0:
  36272. _ref36 = _args49.length > 0 && _args49[0] !== undefined ? _args49[0] : {}, _ref36$forceUpdate = _ref36.forceUpdate, e = _ref36$forceUpdate === void 0 ? !1 : _ref36$forceUpdate;
  36273. _context49.next = 3;
  36274. return this.ensureClientKey({
  36275. forceUpdate: e
  36276. });
  36277. case 3:
  36278. case "end":
  36279. return _context49.stop();
  36280. }
  36281. }
  36282. }, _callee49, this);
  36283. }));
  36284. function prepare() {
  36285. return _prepare3.apply(this, arguments);
  36286. }
  36287. return prepare;
  36288. }()
  36289. }, {
  36290. key: "platformGetSignOption",
  36291. value: function () {
  36292. var _platformGetSignOption2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee50() {
  36293. var _yield$this$appUtils$2, e, t;
  36294. return _regenerator.default.wrap(function _callee50$(_context50) {
  36295. while (1) {
  36296. switch (_context50.prev = _context50.next) {
  36297. case 0:
  36298. _context50.next = 2;
  36299. return this.appUtils.encrypt({
  36300. provider: this.provider,
  36301. spaceId: this.spaceId,
  36302. data: JSON.stringify({})
  36303. });
  36304. case 2:
  36305. _yield$this$appUtils$2 = _context50.sent;
  36306. e = _yield$this$appUtils$2.data;
  36307. t = _yield$this$appUtils$2.key;
  36308. return _context50.abrupt("return", {
  36309. verifyClientSign: e,
  36310. encryptKeyId: t
  36311. });
  36312. case 6:
  36313. case "end":
  36314. return _context50.stop();
  36315. }
  36316. }
  36317. }, _callee50, this);
  36318. }));
  36319. function platformGetSignOption() {
  36320. return _platformGetSignOption2.apply(this, arguments);
  36321. }
  36322. return platformGetSignOption;
  36323. }()
  36324. }, {
  36325. key: "platformEncryptData",
  36326. value: function () {
  36327. var _platformEncryptData2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee51(e) {
  36328. var _yield$this$appUtils$3, t, n, s;
  36329. return _regenerator.default.wrap(function _callee51$(_context51) {
  36330. while (1) {
  36331. switch (_context51.prev = _context51.next) {
  36332. case 0:
  36333. _context51.next = 2;
  36334. return this.appUtils.encrypt({
  36335. provider: this.provider,
  36336. spaceId: this.spaceId,
  36337. data: JSON.stringify(e)
  36338. });
  36339. case 2:
  36340. _yield$this$appUtils$3 = _context51.sent;
  36341. t = _yield$this$appUtils$3.data;
  36342. n = _yield$this$appUtils$3.key;
  36343. s = {
  36344. secretType: this.secretType,
  36345. encryptKeyId: n
  36346. };
  36347. return _context51.abrupt("return", this.secretType === Ft ? {
  36348. content: e,
  36349. _uniCloudOptions: s
  36350. } : {
  36351. content: t,
  36352. _uniCloudOptions: s
  36353. });
  36354. case 7:
  36355. case "end":
  36356. return _context51.stop();
  36357. }
  36358. }
  36359. }, _callee51, this);
  36360. }));
  36361. function platformEncryptData(_x38) {
  36362. return _platformEncryptData2.apply(this, arguments);
  36363. }
  36364. return platformEncryptData;
  36365. }()
  36366. }, {
  36367. key: "platformDecryptResult",
  36368. value: function () {
  36369. var _platformDecryptResult2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee52(e) {
  36370. var t, _e$_uniCloudOptions, n, s, r;
  36371. return _regenerator.default.wrap(function _callee52$(_context52) {
  36372. while (1) {
  36373. switch (_context52.prev = _context52.next) {
  36374. case 0:
  36375. t = e.content;
  36376. _e$_uniCloudOptions = e._uniCloudOptions;
  36377. n = _e$_uniCloudOptions === void 0 ? {} : _e$_uniCloudOptions;
  36378. s = n.encryptKeyId;
  36379. _context52.next = 6;
  36380. return this.appUtils.decrypt({
  36381. provider: this.provider,
  36382. spaceId: this.spaceId,
  36383. data: t,
  36384. key: s
  36385. });
  36386. case 6:
  36387. r = _context52.sent;
  36388. return _context52.abrupt("return", JSON.parse(r.data));
  36389. case 8:
  36390. case "end":
  36391. return _context52.stop();
  36392. }
  36393. }
  36394. }, _callee52, this);
  36395. }));
  36396. function platformDecryptResult(_x39) {
  36397. return _platformDecryptResult2.apply(this, arguments);
  36398. }
  36399. return platformDecryptResult;
  36400. }()
  36401. }, {
  36402. key: "isClientKeyNotFound",
  36403. value: function isClientKeyNotFound() {
  36404. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  36405. var t = e.result || {};
  36406. return 70009 === t.errCode && "uni-secure-network" === t.errSubject;
  36407. }
  36408. }]);
  36409. return Rn;
  36410. }(jt);
  36411. function Un() {
  36412. var _ref37 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36413. e = _ref37.secretType;
  36414. return e === qt || e === Ft || e === Kt;
  36415. }
  36416. function Nn() {
  36417. var _ref38 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36418. e = _ref38.name,
  36419. _ref38$data = _ref38.data,
  36420. t = _ref38$data === void 0 ? {} : _ref38$data;
  36421. return "app" === P && "DCloud-clientDB" === e && "encryption" === t.redirectTo && "getAppClientKey" === t.action;
  36422. }
  36423. function Dn() {
  36424. var _ref39 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36425. e = _ref39.provider,
  36426. t = _ref39.spaceId,
  36427. n = _ref39.functionName;
  36428. var _ae = ae(),
  36429. s = _ae.appId,
  36430. r = _ae.uniPlatform,
  36431. i = _ae.osName;
  36432. var o = r;
  36433. "app" === r && (o = i);
  36434. var a = function () {
  36435. var _ref40 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36436. e = _ref40.provider,
  36437. t = _ref40.spaceId;
  36438. var n = A;
  36439. if (!n) return {};
  36440. e = function (e) {
  36441. return "tencent" === e ? "tcb" : e;
  36442. }(e);
  36443. var s = n.find(function (n) {
  36444. return n.provider === e && n.spaceId === t;
  36445. });
  36446. return s && s.config;
  36447. }({
  36448. provider: e,
  36449. spaceId: t
  36450. });
  36451. if (!a || !a.accessControl || !a.accessControl.enable) return !1;
  36452. var c = a.accessControl.function || {},
  36453. u = Object.keys(c);
  36454. if (0 === u.length) return !0;
  36455. var l = function (e, t) {
  36456. var n, s, r;
  36457. for (var _i2 = 0; _i2 < e.length; _i2++) {
  36458. var _o2 = e[_i2];
  36459. _o2 !== t ? "*" !== _o2 ? _o2.split(",").map(function (e) {
  36460. return e.trim();
  36461. }).indexOf(t) > -1 && (s = _o2) : r = _o2 : n = _o2;
  36462. }
  36463. return n || s || r;
  36464. }(u, n);
  36465. if (!l) return !1;
  36466. if ((c[l] || []).find(function () {
  36467. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  36468. return e.appId === s && (e.platform || "").toLowerCase() === o.toLowerCase();
  36469. })) return !0;
  36470. throw console.error("\u6B64\u5E94\u7528[appId: ".concat(s, ", platform: ").concat(o, "]\u4E0D\u5728\u4E91\u7AEF\u914D\u7F6E\u7684\u5141\u8BB8\u8BBF\u95EE\u7684\u5E94\u7528\u5217\u8868\u5185\uFF0C\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")), Tn(kn);
  36471. }
  36472. function Mn(_ref41) {
  36473. var e = _ref41.functionName,
  36474. t = _ref41.result,
  36475. n = _ref41.logPvd;
  36476. if (S && this.__dev__.debugLog && t && t.requestId) {
  36477. var _s11 = JSON.stringify({
  36478. spaceId: this.config.spaceId,
  36479. functionName: e,
  36480. requestId: t.requestId
  36481. });
  36482. console.log("[".concat(n, "-request]").concat(_s11, "[/").concat(n, "-request]"));
  36483. }
  36484. }
  36485. function qn(e) {
  36486. var t = e.callFunction,
  36487. n = function n(_n7) {
  36488. var _this20 = this;
  36489. var s = _n7.name;
  36490. _n7.data = Et.call(e, {
  36491. data: _n7.data
  36492. });
  36493. var r = {
  36494. aliyun: "aliyun",
  36495. tencent: "tcb",
  36496. tcb: "tcb",
  36497. alipay: "alipay"
  36498. }[this.config.provider],
  36499. i = Un(_n7),
  36500. o = Nn(_n7),
  36501. a = i || o;
  36502. return t.call(this, _n7).then(function (e) {
  36503. return e.errCode = 0, !a && Mn.call(_this20, {
  36504. functionName: s,
  36505. result: e,
  36506. logPvd: r
  36507. }), Promise.resolve(e);
  36508. }, function (e) {
  36509. return !a && Mn.call(_this20, {
  36510. functionName: s,
  36511. result: e,
  36512. logPvd: r
  36513. }), e && e.message && (e.message = function () {
  36514. var _ref42 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36515. _ref42$message = _ref42.message,
  36516. e = _ref42$message === void 0 ? "" : _ref42$message,
  36517. _ref42$extraInfo = _ref42.extraInfo,
  36518. t = _ref42$extraInfo === void 0 ? {} : _ref42$extraInfo,
  36519. _ref42$formatter = _ref42.formatter,
  36520. n = _ref42$formatter === void 0 ? [] : _ref42$formatter;
  36521. for (var _s12 = 0; _s12 < n.length; _s12++) {
  36522. var _n$_s = n[_s12],
  36523. _r4 = _n$_s.rule,
  36524. _i3 = _n$_s.content,
  36525. _o3 = _n$_s.mode,
  36526. _a = e.match(_r4);
  36527. if (!_a) continue;
  36528. var _c = _i3;
  36529. for (var _e19 = 1; _e19 < _a.length; _e19++) {
  36530. _c = Dt(_c, "{$".concat(_e19, "}"), _a[_e19]);
  36531. }
  36532. for (var _e20 in t) {
  36533. _c = Dt(_c, "{".concat(_e20, "}"), t[_e20]);
  36534. }
  36535. return "replace" === _o3 ? _c : e + _c;
  36536. }
  36537. return e;
  36538. }({
  36539. message: "[".concat(_n7.name, "]: ").concat(e.message),
  36540. formatter: Rt,
  36541. extraInfo: {
  36542. functionName: s
  36543. }
  36544. })), Promise.reject(e);
  36545. });
  36546. };
  36547. e.callFunction = function (t) {
  36548. var _e$config = e.config,
  36549. s = _e$config.provider,
  36550. r = _e$config.spaceId,
  36551. i = t.name;
  36552. var o, a;
  36553. if (t.data = t.data || {}, S && e.__dev__.debugInfo && !e.__dev__.debugInfo.forceRemote && C ? (e._callCloudFunction || (e._callCloudFunction = n, e._callLocalFunction = Lt), o = Lt) : o = n, o = o.bind(e), Nn(t)) a = n.call(e, t);else if (function (_ref43) {
  36554. var e = _ref43.name,
  36555. _ref43$data = _ref43.data,
  36556. t = _ref43$data === void 0 ? {} : _ref43$data;
  36557. return "mp-weixin" === P && "uni-id-co" === e && "secureNetworkHandshakeByWeixin" === t.method;
  36558. }(t)) a = o.call(e, t);else if (Un(t)) {
  36559. a = new xn({
  36560. secretType: t.secretType,
  36561. uniCloudIns: e
  36562. }).wrapEncryptDataCallFunction(n.bind(e))(t);
  36563. } else if (Dn({
  36564. provider: s,
  36565. spaceId: r,
  36566. functionName: i
  36567. })) {
  36568. a = new xn({
  36569. secretType: t.secretType,
  36570. uniCloudIns: e
  36571. }).wrapVerifyClientCallFunction(n.bind(e))(t);
  36572. } else a = o(t);
  36573. return Object.defineProperty(a, "result", {
  36574. get: function get() {
  36575. return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {};
  36576. }
  36577. }), a;
  36578. };
  36579. }
  36580. xn = "mp-weixin" !== P && "app" !== P ? /*#__PURE__*/function () {
  36581. function _class2() {
  36582. (0, _classCallCheck2.default)(this, _class2);
  36583. throw Tn({
  36584. message: "Platform ".concat(P, " is not supported by secure network")
  36585. });
  36586. }
  36587. return (0, _createClass2.default)(_class2);
  36588. }() : k ? "mp-weixin" === P ? En : Rn : /*#__PURE__*/function () {
  36589. function _class3() {
  36590. (0, _classCallCheck2.default)(this, _class3);
  36591. throw Tn({
  36592. message: "Platform ".concat(P, " is not enabled, please check whether secure network module is enabled in your manifest.json")
  36593. });
  36594. }
  36595. return (0, _createClass2.default)(_class3);
  36596. }();
  36597. var Fn = Symbol("CLIENT_DB_INTERNAL");
  36598. function Kn(e, t) {
  36599. return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = Fn, e.inspect = null, e.__ob__ = void 0, new Proxy(e, {
  36600. get: function get(e, n, s) {
  36601. if ("_uniClient" === n) return null;
  36602. if ("symbol" == (0, _typeof2.default)(n)) return e[n];
  36603. if (n in e || "string" != typeof n) {
  36604. var _t13 = e[n];
  36605. return "function" == typeof _t13 ? _t13.bind(e) : _t13;
  36606. }
  36607. return t.get(e, n, s);
  36608. }
  36609. });
  36610. }
  36611. function jn(e) {
  36612. return {
  36613. on: function on(t, n) {
  36614. e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);
  36615. },
  36616. off: function off(t, n) {
  36617. e[t] = e[t] || [];
  36618. var s = e[t].indexOf(n);
  36619. -1 !== s && e[t].splice(s, 1);
  36620. }
  36621. };
  36622. }
  36623. var Bn = ["db.Geo", "db.command", "command.aggregate"];
  36624. function $n(e, t) {
  36625. return Bn.indexOf("".concat(e, ".").concat(t)) > -1;
  36626. }
  36627. function Wn(e) {
  36628. switch (f(e)) {
  36629. case "array":
  36630. return e.map(function (e) {
  36631. return Wn(e);
  36632. });
  36633. case "object":
  36634. return e._internalType === Fn || Object.keys(e).forEach(function (t) {
  36635. e[t] = Wn(e[t]);
  36636. }), e;
  36637. case "regexp":
  36638. return {
  36639. $regexp: {
  36640. source: e.source,
  36641. flags: e.flags
  36642. }
  36643. };
  36644. case "date":
  36645. return {
  36646. $date: e.toISOString()
  36647. };
  36648. default:
  36649. return e;
  36650. }
  36651. }
  36652. function Hn(e) {
  36653. return e && e.content && e.content.$method;
  36654. }
  36655. var zn = /*#__PURE__*/function () {
  36656. function zn(e, t, n) {
  36657. (0, _classCallCheck2.default)(this, zn);
  36658. this.content = e, this.prevStage = t || null, this.udb = null, this._database = n;
  36659. }
  36660. (0, _createClass2.default)(zn, [{
  36661. key: "toJSON",
  36662. value: function toJSON() {
  36663. var e = this;
  36664. var t = [e.content];
  36665. for (; e.prevStage;) {
  36666. e = e.prevStage, t.push(e.content);
  36667. }
  36668. return {
  36669. $db: t.reverse().map(function (e) {
  36670. return {
  36671. $method: e.$method,
  36672. $param: Wn(e.$param)
  36673. };
  36674. })
  36675. };
  36676. }
  36677. }, {
  36678. key: "toString",
  36679. value: function toString() {
  36680. return JSON.stringify(this.toJSON());
  36681. }
  36682. }, {
  36683. key: "getAction",
  36684. value: function getAction() {
  36685. var e = this.toJSON().$db.find(function (e) {
  36686. return "action" === e.$method;
  36687. });
  36688. return e && e.$param && e.$param[0];
  36689. }
  36690. }, {
  36691. key: "getCommand",
  36692. value: function getCommand() {
  36693. return {
  36694. $db: this.toJSON().$db.filter(function (e) {
  36695. return "action" !== e.$method;
  36696. })
  36697. };
  36698. }
  36699. }, {
  36700. key: "isAggregate",
  36701. get: function get() {
  36702. var e = this;
  36703. for (; e;) {
  36704. var t = Hn(e),
  36705. _n8 = Hn(e.prevStage);
  36706. if ("aggregate" === t && "collection" === _n8 || "pipeline" === t) return !0;
  36707. e = e.prevStage;
  36708. }
  36709. return !1;
  36710. }
  36711. }, {
  36712. key: "isCommand",
  36713. get: function get() {
  36714. var e = this;
  36715. for (; e;) {
  36716. if ("command" === Hn(e)) return !0;
  36717. e = e.prevStage;
  36718. }
  36719. return !1;
  36720. }
  36721. }, {
  36722. key: "isAggregateCommand",
  36723. get: function get() {
  36724. var e = this;
  36725. for (; e;) {
  36726. var t = Hn(e),
  36727. _n9 = Hn(e.prevStage);
  36728. if ("aggregate" === t && "command" === _n9) return !0;
  36729. e = e.prevStage;
  36730. }
  36731. return !1;
  36732. }
  36733. }, {
  36734. key: "getNextStageFn",
  36735. value: function getNextStageFn(e) {
  36736. var t = this;
  36737. return function () {
  36738. return Jn({
  36739. $method: e,
  36740. $param: Wn(Array.from(arguments))
  36741. }, t, t._database);
  36742. };
  36743. }
  36744. }, {
  36745. key: "count",
  36746. get: function get() {
  36747. return this.isAggregate ? this.getNextStageFn("count") : function () {
  36748. return this._send("count", Array.from(arguments));
  36749. };
  36750. }
  36751. }, {
  36752. key: "remove",
  36753. get: function get() {
  36754. return this.isCommand ? this.getNextStageFn("remove") : function () {
  36755. return this._send("remove", Array.from(arguments));
  36756. };
  36757. }
  36758. }, {
  36759. key: "get",
  36760. value: function get() {
  36761. return this._send("get", Array.from(arguments));
  36762. }
  36763. }, {
  36764. key: "add",
  36765. get: function get() {
  36766. return this.isCommand ? this.getNextStageFn("add") : function () {
  36767. return this._send("add", Array.from(arguments));
  36768. };
  36769. }
  36770. }, {
  36771. key: "update",
  36772. value: function update() {
  36773. return this._send("update", Array.from(arguments));
  36774. }
  36775. }, {
  36776. key: "end",
  36777. value: function end() {
  36778. return this._send("end", Array.from(arguments));
  36779. }
  36780. }, {
  36781. key: "set",
  36782. get: function get() {
  36783. return this.isCommand ? this.getNextStageFn("set") : function () {
  36784. throw new Error("JQL禁止使用set方法");
  36785. };
  36786. }
  36787. }, {
  36788. key: "_send",
  36789. value: function _send(e, t) {
  36790. var n = this.getAction(),
  36791. s = this.getCommand();
  36792. if (s.$db.push({
  36793. $method: e,
  36794. $param: Wn(t)
  36795. }), S) {
  36796. var _e21 = s.$db.find(function (e) {
  36797. return "collection" === e.$method;
  36798. }),
  36799. _t14 = _e21 && _e21.$param;
  36800. _t14 && 1 === _t14.length && "string" == typeof _e21.$param[0] && _e21.$param[0].indexOf(",") > -1 && console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。");
  36801. }
  36802. return this._database._callCloudFunction({
  36803. action: n,
  36804. command: s
  36805. });
  36806. }
  36807. }]);
  36808. return zn;
  36809. }();
  36810. function Jn(e, t, n) {
  36811. return Kn(new zn(e, t, n), {
  36812. get: function get(e, t) {
  36813. var s = "db";
  36814. return e && e.content && (s = e.content.$method), $n(s, t) ? Jn({
  36815. $method: t
  36816. }, e, n) : function () {
  36817. return Jn({
  36818. $method: t,
  36819. $param: Wn(Array.from(arguments))
  36820. }, e, n);
  36821. };
  36822. }
  36823. });
  36824. }
  36825. function Vn(_ref44) {
  36826. var e = _ref44.path,
  36827. t = _ref44.method;
  36828. return /*#__PURE__*/function () {
  36829. function _class4() {
  36830. (0, _classCallCheck2.default)(this, _class4);
  36831. this.param = Array.from(arguments);
  36832. }
  36833. (0, _createClass2.default)(_class4, [{
  36834. key: "toJSON",
  36835. value: function toJSON() {
  36836. return {
  36837. $newDb: [].concat((0, _toConsumableArray2.default)(e.map(function (e) {
  36838. return {
  36839. $method: e
  36840. };
  36841. })), [{
  36842. $method: t,
  36843. $param: this.param
  36844. }])
  36845. };
  36846. }
  36847. }, {
  36848. key: "toString",
  36849. value: function toString() {
  36850. return JSON.stringify(this.toJSON());
  36851. }
  36852. }]);
  36853. return _class4;
  36854. }();
  36855. }
  36856. function Gn(e) {
  36857. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  36858. return Kn(new e(t), {
  36859. get: function get(e, t) {
  36860. return $n("db", t) ? Jn({
  36861. $method: t
  36862. }, null, e) : function () {
  36863. return Jn({
  36864. $method: t,
  36865. $param: Wn(Array.from(arguments))
  36866. }, null, e);
  36867. };
  36868. }
  36869. });
  36870. }
  36871. var Yn = /*#__PURE__*/function (_ref45) {
  36872. (0, _inherits2.default)(Yn, _ref45);
  36873. var _super11 = _createSuper(Yn);
  36874. function Yn() {
  36875. (0, _classCallCheck2.default)(this, Yn);
  36876. return _super11.apply(this, arguments);
  36877. }
  36878. (0, _createClass2.default)(Yn, [{
  36879. key: "_parseResult",
  36880. value: function _parseResult(e) {
  36881. return this._isJQL ? e.result : e;
  36882. }
  36883. }, {
  36884. key: "_callCloudFunction",
  36885. value: function _callCloudFunction(_ref46) {
  36886. var _this21 = this;
  36887. var e = _ref46.action,
  36888. t = _ref46.command,
  36889. n = _ref46.multiCommand,
  36890. s = _ref46.queryList;
  36891. function r(e, t) {
  36892. if (n && s) for (var _n10 = 0; _n10 < s.length; _n10++) {
  36893. var _r5 = s[_n10];
  36894. _r5.udb && "function" == typeof _r5.udb.setResult && (t ? _r5.udb.setResult(t) : _r5.udb.setResult(e.result.dataList[_n10]));
  36895. }
  36896. }
  36897. var i = this,
  36898. o = this._isJQL ? "databaseForJQL" : "database";
  36899. function a(e) {
  36900. return i._callback("error", [e]), M(q(o, "fail"), e).then(function () {
  36901. return M(q(o, "complete"), e);
  36902. }).then(function () {
  36903. return r(null, e), Y(j, {
  36904. type: W,
  36905. content: e
  36906. }), Promise.reject(e);
  36907. });
  36908. }
  36909. var c = M(q(o, "invoke")),
  36910. u = this._uniClient;
  36911. return c.then(function () {
  36912. return u.callFunction({
  36913. name: "DCloud-clientDB",
  36914. type: l,
  36915. data: {
  36916. action: e,
  36917. command: t,
  36918. multiCommand: n
  36919. }
  36920. });
  36921. }).then(function (e) {
  36922. var _e$result = e.result,
  36923. t = _e$result.code,
  36924. n = _e$result.message,
  36925. s = _e$result.token,
  36926. c = _e$result.tokenExpired,
  36927. _e$result$systemInfo = _e$result.systemInfo,
  36928. u = _e$result$systemInfo === void 0 ? [] : _e$result$systemInfo;
  36929. if (u) for (var _e22 = 0; _e22 < u.length; _e22++) {
  36930. var _u$_e = u[_e22],
  36931. _t15 = _u$_e.level,
  36932. _n11 = _u$_e.message,
  36933. _s13 = _u$_e.detail,
  36934. _r6 = console["app" === P && "warn" === _t15 ? "error" : _t15] || console.log;
  36935. var _i4 = "[System Info]" + _n11;
  36936. _s13 && (_i4 = "".concat(_i4, "\n\u8BE6\u7EC6\u4FE1\u606F\uFF1A").concat(_s13)), _r6(_i4);
  36937. }
  36938. if (t) {
  36939. return a(new te({
  36940. code: t,
  36941. message: n,
  36942. requestId: e.requestId
  36943. }));
  36944. }
  36945. e.result.errCode = e.result.errCode || e.result.code, e.result.errMsg = e.result.errMsg || e.result.message, s && c && (re({
  36946. token: s,
  36947. tokenExpired: c
  36948. }), _this21._callbackAuth("refreshToken", [{
  36949. token: s,
  36950. tokenExpired: c
  36951. }]), _this21._callback("refreshToken", [{
  36952. token: s,
  36953. tokenExpired: c
  36954. }]), Y($, {
  36955. token: s,
  36956. tokenExpired: c
  36957. }));
  36958. var l = [{
  36959. prop: "affectedDocs",
  36960. tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"
  36961. }, {
  36962. prop: "code",
  36963. tips: "code不再推荐使用,请使用errCode替代"
  36964. }, {
  36965. prop: "message",
  36966. tips: "message不再推荐使用,请使用errMsg替代"
  36967. }];
  36968. var _loop2 = function _loop2(_t16) {
  36969. var _l$_t = l[_t16],
  36970. n = _l$_t.prop,
  36971. s = _l$_t.tips;
  36972. if (n in e.result) {
  36973. var _t17 = e.result[n];
  36974. Object.defineProperty(e.result, n, {
  36975. get: function get() {
  36976. return console.warn(s), _t17;
  36977. }
  36978. });
  36979. }
  36980. };
  36981. for (var _t16 = 0; _t16 < l.length; _t16++) {
  36982. _loop2(_t16);
  36983. }
  36984. return function (e) {
  36985. return M(q(o, "success"), e).then(function () {
  36986. return M(q(o, "complete"), e);
  36987. }).then(function () {
  36988. r(e, null);
  36989. var t = i._parseResult(e);
  36990. return Y(j, {
  36991. type: W,
  36992. content: t
  36993. }), Promise.resolve(t);
  36994. });
  36995. }(e);
  36996. }, function (e) {
  36997. /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");
  36998. return a(new te({
  36999. code: e.code || "SYSTEM_ERROR",
  37000. message: e.message,
  37001. requestId: e.requestId
  37002. }));
  37003. });
  37004. }
  37005. }]);
  37006. return Yn;
  37007. }( /*#__PURE__*/function () {
  37008. function _class5() {
  37009. var _ref47 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  37010. _ref47$uniClient = _ref47.uniClient,
  37011. e = _ref47$uniClient === void 0 ? {} : _ref47$uniClient,
  37012. _ref47$isJQL = _ref47.isJQL,
  37013. t = _ref47$isJQL === void 0 ? !1 : _ref47$isJQL;
  37014. (0, _classCallCheck2.default)(this, _class5);
  37015. this._uniClient = e, this._authCallBacks = {}, this._dbCallBacks = {}, e._isDefault && (this._dbCallBacks = L("_globalUniCloudDatabaseCallback")), t || (this.auth = jn(this._authCallBacks)), this._isJQL = t, Object.assign(this, jn(this._dbCallBacks)), this.env = Kn({}, {
  37016. get: function get(e, t) {
  37017. return {
  37018. $env: t
  37019. };
  37020. }
  37021. }), this.Geo = Kn({}, {
  37022. get: function get(e, t) {
  37023. return Vn({
  37024. path: ["Geo"],
  37025. method: t
  37026. });
  37027. }
  37028. }), this.serverDate = Vn({
  37029. path: [],
  37030. method: "serverDate"
  37031. }), this.RegExp = Vn({
  37032. path: [],
  37033. method: "RegExp"
  37034. });
  37035. }
  37036. (0, _createClass2.default)(_class5, [{
  37037. key: "getCloudEnv",
  37038. value: function getCloudEnv(e) {
  37039. if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");
  37040. return {
  37041. $env: e.replace("$cloudEnv_", "")
  37042. };
  37043. }
  37044. }, {
  37045. key: "_callback",
  37046. value: function _callback(e, t) {
  37047. var n = this._dbCallBacks;
  37048. n[e] && n[e].forEach(function (e) {
  37049. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  37050. });
  37051. }
  37052. }, {
  37053. key: "_callbackAuth",
  37054. value: function _callbackAuth(e, t) {
  37055. var n = this._authCallBacks;
  37056. n[e] && n[e].forEach(function (e) {
  37057. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  37058. });
  37059. }
  37060. }, {
  37061. key: "multiSend",
  37062. value: function multiSend() {
  37063. var e = Array.from(arguments),
  37064. t = e.map(function (e) {
  37065. var t = e.getAction(),
  37066. n = e.getCommand();
  37067. if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");
  37068. return {
  37069. action: t,
  37070. command: n
  37071. };
  37072. });
  37073. return this._callCloudFunction({
  37074. multiCommand: t,
  37075. queryList: e
  37076. });
  37077. }
  37078. }]);
  37079. return _class5;
  37080. }());
  37081. var Qn = "token无效,跳转登录页面",
  37082. Xn = "token过期,跳转登录页面",
  37083. Zn = {
  37084. TOKEN_INVALID_TOKEN_EXPIRED: Xn,
  37085. TOKEN_INVALID_INVALID_CLIENTID: Qn,
  37086. TOKEN_INVALID: Qn,
  37087. TOKEN_INVALID_WRONG_TOKEN: Qn,
  37088. TOKEN_INVALID_ANONYMOUS_USER: Qn
  37089. },
  37090. es = {
  37091. "uni-id-token-expired": Xn,
  37092. "uni-id-check-token-failed": Qn,
  37093. "uni-id-token-not-exist": Qn,
  37094. "uni-id-check-device-feature-failed": Qn
  37095. };
  37096. function ts(e, t) {
  37097. var n = "";
  37098. return n = e ? "".concat(e, "/").concat(t) : t, n.replace(/^\//, "");
  37099. }
  37100. function ns() {
  37101. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  37102. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
  37103. var n = [],
  37104. s = [];
  37105. return e.forEach(function (e) {
  37106. !0 === e.needLogin ? n.push(ts(t, e.path)) : !1 === e.needLogin && s.push(ts(t, e.path));
  37107. }), {
  37108. needLoginPage: n,
  37109. notNeedLoginPage: s
  37110. };
  37111. }
  37112. function ss(e) {
  37113. return e.split("?")[0].replace(/^\//, "");
  37114. }
  37115. function rs() {
  37116. return function (e) {
  37117. var t = e && e.$page && e.$page.fullPath || "";
  37118. return t ? ("/" !== t.charAt(0) && (t = "/" + t), t) : t;
  37119. }(function () {
  37120. var e = getCurrentPages();
  37121. return e[e.length - 1];
  37122. }());
  37123. }
  37124. function is() {
  37125. return ss(rs());
  37126. }
  37127. function os() {
  37128. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  37129. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  37130. if (!e) return !1;
  37131. if (!(t && t.list && t.list.length)) return !1;
  37132. var n = t.list,
  37133. s = ss(e);
  37134. return n.some(function (e) {
  37135. return e.pagePath === s;
  37136. });
  37137. }
  37138. var as = !!_pages.default.uniIdRouter;
  37139. var _ref48 = function () {
  37140. var _ref29 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _pages.default,
  37141. _ref29$pages = _ref29.pages,
  37142. t = _ref29$pages === void 0 ? [] : _ref29$pages,
  37143. _ref29$subPackages = _ref29.subPackages,
  37144. n = _ref29$subPackages === void 0 ? [] : _ref29$subPackages,
  37145. _ref29$uniIdRouter = _ref29.uniIdRouter,
  37146. s = _ref29$uniIdRouter === void 0 ? {} : _ref29$uniIdRouter,
  37147. _ref29$tabBar = _ref29.tabBar,
  37148. r = _ref29$tabBar === void 0 ? {} : _ref29$tabBar;
  37149. var i = s.loginPage,
  37150. _s$needLogin = s.needLogin,
  37151. o = _s$needLogin === void 0 ? [] : _s$needLogin,
  37152. _s$resToLogin = s.resToLogin,
  37153. a = _s$resToLogin === void 0 ? !0 : _s$resToLogin,
  37154. _ns = ns(t),
  37155. c = _ns.needLoginPage,
  37156. u = _ns.notNeedLoginPage,
  37157. _ref31 = function () {
  37158. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  37159. var t = [],
  37160. n = [];
  37161. return e.forEach(function (e) {
  37162. var s = e.root,
  37163. _e$pages = e.pages,
  37164. r = _e$pages === void 0 ? [] : _e$pages,
  37165. _ns2 = ns(r, s),
  37166. i = _ns2.needLoginPage,
  37167. o = _ns2.notNeedLoginPage;
  37168. t.push.apply(t, (0, _toConsumableArray2.default)(i)), n.push.apply(n, (0, _toConsumableArray2.default)(o));
  37169. }), {
  37170. needLoginPage: t,
  37171. notNeedLoginPage: n
  37172. };
  37173. }(n),
  37174. l = _ref31.needLoginPage,
  37175. h = _ref31.notNeedLoginPage;
  37176. return {
  37177. loginPage: i,
  37178. routerNeedLogin: o,
  37179. resToLogin: a,
  37180. needLoginPage: [].concat((0, _toConsumableArray2.default)(c), (0, _toConsumableArray2.default)(l)),
  37181. notNeedLoginPage: [].concat((0, _toConsumableArray2.default)(u), (0, _toConsumableArray2.default)(h)),
  37182. loginPageInTabBar: os(i, r)
  37183. };
  37184. }(),
  37185. cs = _ref48.loginPage,
  37186. us = _ref48.routerNeedLogin,
  37187. ls = _ref48.resToLogin,
  37188. hs = _ref48.needLoginPage,
  37189. ds = _ref48.notNeedLoginPage,
  37190. ps = _ref48.loginPageInTabBar;
  37191. if (hs.indexOf(cs) > -1) throw new Error("Login page [".concat(cs, "] should not be \"needLogin\", please check your pages.json"));
  37192. function fs(e) {
  37193. var t = is();
  37194. if ("/" === e.charAt(0)) return e;
  37195. var _e$split = e.split("?"),
  37196. _e$split2 = (0, _slicedToArray2.default)(_e$split, 2),
  37197. n = _e$split2[0],
  37198. s = _e$split2[1],
  37199. r = n.replace(/^\//, "").split("/"),
  37200. i = t.split("/");
  37201. i.pop();
  37202. for (var _e23 = 0; _e23 < r.length; _e23++) {
  37203. var _t18 = r[_e23];
  37204. ".." === _t18 ? i.pop() : "." !== _t18 && i.push(_t18);
  37205. }
  37206. return "" === i[0] && i.shift(), "/" + i.join("/") + (s ? "?" + s : "");
  37207. }
  37208. function gs(e) {
  37209. var t = ss(fs(e));
  37210. return !(ds.indexOf(t) > -1) && (hs.indexOf(t) > -1 || us.some(function (t) {
  37211. return function (e, t) {
  37212. return new RegExp(t).test(e);
  37213. }(e, t);
  37214. }));
  37215. }
  37216. function ms(_ref49) {
  37217. var e = _ref49.redirect;
  37218. var t = ss(e),
  37219. n = ss(cs);
  37220. return is() !== n && t !== n;
  37221. }
  37222. function ys() {
  37223. var _ref50 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  37224. e = _ref50.api,
  37225. t = _ref50.redirect;
  37226. if (!t || !ms({
  37227. redirect: t
  37228. })) return;
  37229. var n = function (e, t) {
  37230. return "/" !== e.charAt(0) && (e = "/" + e), t ? e.indexOf("?") > -1 ? e + "&uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e + "?uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e;
  37231. }(cs, t);
  37232. ps ? "navigateTo" !== e && "redirectTo" !== e || (e = "switchTab") : "switchTab" === e && (e = "navigateTo");
  37233. var s = {
  37234. navigateTo: uni.navigateTo,
  37235. redirectTo: uni.redirectTo,
  37236. switchTab: uni.switchTab,
  37237. reLaunch: uni.reLaunch
  37238. };
  37239. setTimeout(function () {
  37240. s[e]({
  37241. url: n
  37242. });
  37243. });
  37244. }
  37245. function _s() {
  37246. var _ref51 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  37247. e = _ref51.url;
  37248. var t = {
  37249. abortLoginPageJump: !1,
  37250. autoToLoginPage: !1
  37251. },
  37252. n = function () {
  37253. var _se3 = se(),
  37254. e = _se3.token,
  37255. t = _se3.tokenExpired;
  37256. var n;
  37257. if (e) {
  37258. if (t < Date.now()) {
  37259. var _e24 = "uni-id-token-expired";
  37260. n = {
  37261. errCode: _e24,
  37262. errMsg: es[_e24]
  37263. };
  37264. }
  37265. } else {
  37266. var _e25 = "uni-id-check-token-failed";
  37267. n = {
  37268. errCode: _e25,
  37269. errMsg: es[_e25]
  37270. };
  37271. }
  37272. return n;
  37273. }();
  37274. if (gs(e) && n) {
  37275. n.uniIdRedirectUrl = e;
  37276. if (J(B).length > 0) return setTimeout(function () {
  37277. Y(B, n);
  37278. }, 0), t.abortLoginPageJump = !0, t;
  37279. t.autoToLoginPage = !0;
  37280. }
  37281. return t;
  37282. }
  37283. function ws() {
  37284. !function () {
  37285. var e = rs(),
  37286. _s14 = _s({
  37287. url: e
  37288. }),
  37289. t = _s14.abortLoginPageJump,
  37290. n = _s14.autoToLoginPage;
  37291. t || n && ys({
  37292. api: "redirectTo",
  37293. redirect: e
  37294. });
  37295. }();
  37296. var e = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
  37297. var _loop3 = function _loop3(_t19) {
  37298. var n = e[_t19];
  37299. uni.addInterceptor(n, {
  37300. invoke: function invoke(e) {
  37301. var _s15 = _s({
  37302. url: e.url
  37303. }),
  37304. t = _s15.abortLoginPageJump,
  37305. s = _s15.autoToLoginPage;
  37306. return t ? e : s ? (ys({
  37307. api: n,
  37308. redirect: fs(e.url)
  37309. }), !1) : e;
  37310. }
  37311. });
  37312. };
  37313. for (var _t19 = 0; _t19 < e.length; _t19++) {
  37314. _loop3(_t19);
  37315. }
  37316. }
  37317. function vs() {
  37318. this.onResponse(function (e) {
  37319. var t = e.type,
  37320. n = e.content;
  37321. var s = !1;
  37322. switch (t) {
  37323. case "cloudobject":
  37324. s = function (e) {
  37325. if ("object" != (0, _typeof2.default)(e)) return !1;
  37326. var _ref52 = e || {},
  37327. t = _ref52.errCode;
  37328. return t in es;
  37329. }(n);
  37330. break;
  37331. case "clientdb":
  37332. s = function (e) {
  37333. if ("object" != (0, _typeof2.default)(e)) return !1;
  37334. var _ref53 = e || {},
  37335. t = _ref53.errCode;
  37336. return t in Zn;
  37337. }(n);
  37338. }
  37339. s && function () {
  37340. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  37341. var t = J(B);
  37342. Z().then(function () {
  37343. var n = rs();
  37344. if (n && ms({
  37345. redirect: n
  37346. })) return t.length > 0 ? Y(B, Object.assign({
  37347. uniIdRedirectUrl: n
  37348. }, e)) : void (cs && ys({
  37349. api: "navigateTo",
  37350. redirect: n
  37351. }));
  37352. });
  37353. }(n);
  37354. });
  37355. }
  37356. function Is(e) {
  37357. !function (e) {
  37358. e.onResponse = function (e) {
  37359. V(j, e);
  37360. }, e.offResponse = function (e) {
  37361. G(j, e);
  37362. };
  37363. }(e), function (e) {
  37364. e.onNeedLogin = function (e) {
  37365. V(B, e);
  37366. }, e.offNeedLogin = function (e) {
  37367. G(B, e);
  37368. }, as && (L("_globalUniCloudStatus").needLoginInit || (L("_globalUniCloudStatus").needLoginInit = !0, Z().then(function () {
  37369. ws.call(e);
  37370. }), ls && vs.call(e)));
  37371. }(e), function (e) {
  37372. e.onRefreshToken = function (e) {
  37373. V($, e);
  37374. }, e.offRefreshToken = function (e) {
  37375. G($, e);
  37376. };
  37377. }(e);
  37378. }
  37379. var Ss;
  37380. var bs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  37381. ks = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  37382. function As() {
  37383. var e = se().token || "",
  37384. t = e.split(".");
  37385. if (!e || 3 !== t.length) return {
  37386. uid: null,
  37387. role: [],
  37388. permission: [],
  37389. tokenExpired: 0
  37390. };
  37391. var n;
  37392. try {
  37393. n = JSON.parse((s = t[1], decodeURIComponent(Ss(s).split("").map(function (e) {
  37394. return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
  37395. }).join(""))));
  37396. } catch (e) {
  37397. throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);
  37398. }
  37399. var s;
  37400. return n.tokenExpired = 1e3 * n.exp, delete n.exp, delete n.iat, n;
  37401. }
  37402. Ss = "function" != typeof atob ? function (e) {
  37403. if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !ks.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  37404. var t;
  37405. e += "==".slice(2 - (3 & e.length));
  37406. for (var n, s, r = "", i = 0; i < e.length;) {
  37407. t = bs.indexOf(e.charAt(i++)) << 18 | bs.indexOf(e.charAt(i++)) << 12 | (n = bs.indexOf(e.charAt(i++))) << 6 | (s = bs.indexOf(e.charAt(i++))), r += 64 === n ? String.fromCharCode(t >> 16 & 255) : 64 === s ? String.fromCharCode(t >> 16 & 255, t >> 8 & 255) : String.fromCharCode(t >> 16 & 255, t >> 8 & 255, 255 & t);
  37408. }
  37409. return r;
  37410. } : atob;
  37411. var Ps = n(function (e, t) {
  37412. Object.defineProperty(t, "__esModule", {
  37413. value: !0
  37414. });
  37415. var n = "chooseAndUploadFile:ok",
  37416. s = "chooseAndUploadFile:fail";
  37417. function r(e, t) {
  37418. return e.tempFiles.forEach(function (e, n) {
  37419. e.name || (e.name = e.path.substring(e.path.lastIndexOf("/") + 1)), t && (e.fileType = t), e.cloudPath = Date.now() + "_" + n + e.name.substring(e.name.lastIndexOf("."));
  37420. }), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function (e) {
  37421. return e.path;
  37422. })), e;
  37423. }
  37424. function i(e, t, _ref54) {
  37425. var s = _ref54.onChooseFile,
  37426. r = _ref54.onUploadProgress;
  37427. return t.then(function (e) {
  37428. if (s) {
  37429. var _t20 = s(e);
  37430. if (void 0 !== _t20) return Promise.resolve(_t20).then(function (t) {
  37431. return void 0 === t ? e : t;
  37432. });
  37433. }
  37434. return e;
  37435. }).then(function (t) {
  37436. return !1 === t ? {
  37437. errMsg: n,
  37438. tempFilePaths: [],
  37439. tempFiles: []
  37440. } : function (e, t) {
  37441. var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5;
  37442. var r = arguments.length > 3 ? arguments[3] : undefined;
  37443. (t = Object.assign({}, t)).errMsg = n;
  37444. var i = t.tempFiles,
  37445. o = i.length;
  37446. var a = 0;
  37447. return new Promise(function (n) {
  37448. for (; a < s;) {
  37449. c();
  37450. }
  37451. function c() {
  37452. var s = a++;
  37453. if (s >= o) return void (!i.find(function (e) {
  37454. return !e.url && !e.errMsg;
  37455. }) && n(t));
  37456. var u = i[s];
  37457. e.uploadFile({
  37458. filePath: u.path,
  37459. cloudPath: u.cloudPath,
  37460. fileType: u.fileType,
  37461. cloudPathAsRealPath: u.cloudPathAsRealPath,
  37462. onUploadProgress: function onUploadProgress(e) {
  37463. e.index = s, e.tempFile = u, e.tempFilePath = u.path, r && r(e);
  37464. }
  37465. }).then(function (e) {
  37466. u.url = e.fileID, s < o && c();
  37467. }).catch(function (e) {
  37468. u.errMsg = e.errMsg || e.message, s < o && c();
  37469. });
  37470. }
  37471. });
  37472. }(e, t, 5, r);
  37473. });
  37474. }
  37475. t.initChooseAndUploadFile = function (e) {
  37476. return function () {
  37477. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  37478. type: "all"
  37479. };
  37480. return "image" === t.type ? i(e, function (e) {
  37481. var t = e.count,
  37482. n = e.sizeType,
  37483. _e$sourceType = e.sourceType,
  37484. i = _e$sourceType === void 0 ? ["album", "camera"] : _e$sourceType,
  37485. o = e.extension;
  37486. return new Promise(function (e, a) {
  37487. uni.chooseImage({
  37488. count: t,
  37489. sizeType: n,
  37490. sourceType: i,
  37491. extension: o,
  37492. success: function success(t) {
  37493. e(r(t, "image"));
  37494. },
  37495. fail: function fail(e) {
  37496. a({
  37497. errMsg: e.errMsg.replace("chooseImage:fail", s)
  37498. });
  37499. }
  37500. });
  37501. });
  37502. }(t), t) : "video" === t.type ? i(e, function (e) {
  37503. var t = e.camera,
  37504. n = e.compressed,
  37505. i = e.maxDuration,
  37506. _e$sourceType2 = e.sourceType,
  37507. o = _e$sourceType2 === void 0 ? ["album", "camera"] : _e$sourceType2,
  37508. a = e.extension;
  37509. return new Promise(function (e, c) {
  37510. uni.chooseVideo({
  37511. camera: t,
  37512. compressed: n,
  37513. maxDuration: i,
  37514. sourceType: o,
  37515. extension: a,
  37516. success: function success(t) {
  37517. var n = t.tempFilePath,
  37518. s = t.duration,
  37519. i = t.size,
  37520. o = t.height,
  37521. a = t.width;
  37522. e(r({
  37523. errMsg: "chooseVideo:ok",
  37524. tempFilePaths: [n],
  37525. tempFiles: [{
  37526. name: t.tempFile && t.tempFile.name || "",
  37527. path: n,
  37528. size: i,
  37529. type: t.tempFile && t.tempFile.type || "",
  37530. width: a,
  37531. height: o,
  37532. duration: s,
  37533. fileType: "video",
  37534. cloudPath: ""
  37535. }]
  37536. }, "video"));
  37537. },
  37538. fail: function fail(e) {
  37539. c({
  37540. errMsg: e.errMsg.replace("chooseVideo:fail", s)
  37541. });
  37542. }
  37543. });
  37544. });
  37545. }(t), t) : i(e, function (e) {
  37546. var t = e.count,
  37547. n = e.extension;
  37548. return new Promise(function (e, i) {
  37549. var o = uni.chooseFile;
  37550. if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (o = wx.chooseMessageFile), "function" != typeof o) return i({
  37551. errMsg: s + " 请指定 type 类型,该平台仅支持选择 image 或 video。"
  37552. });
  37553. o({
  37554. type: "all",
  37555. count: t,
  37556. extension: n,
  37557. success: function success(t) {
  37558. e(r(t));
  37559. },
  37560. fail: function fail(e) {
  37561. i({
  37562. errMsg: e.errMsg.replace("chooseFile:fail", s)
  37563. });
  37564. }
  37565. });
  37566. });
  37567. }(t), t);
  37568. };
  37569. };
  37570. }),
  37571. Ts = t(Ps);
  37572. var Cs = "manual";
  37573. function xs(e) {
  37574. return {
  37575. props: {
  37576. localdata: {
  37577. type: Array,
  37578. default: function _default() {
  37579. return [];
  37580. }
  37581. },
  37582. options: {
  37583. type: [Object, Array],
  37584. default: function _default() {
  37585. return {};
  37586. }
  37587. },
  37588. spaceInfo: {
  37589. type: Object,
  37590. default: function _default() {
  37591. return {};
  37592. }
  37593. },
  37594. collection: {
  37595. type: [String, Array],
  37596. default: ""
  37597. },
  37598. action: {
  37599. type: String,
  37600. default: ""
  37601. },
  37602. field: {
  37603. type: String,
  37604. default: ""
  37605. },
  37606. orderby: {
  37607. type: String,
  37608. default: ""
  37609. },
  37610. where: {
  37611. type: [String, Object],
  37612. default: ""
  37613. },
  37614. pageData: {
  37615. type: String,
  37616. default: "add"
  37617. },
  37618. pageCurrent: {
  37619. type: Number,
  37620. default: 1
  37621. },
  37622. pageSize: {
  37623. type: Number,
  37624. default: 20
  37625. },
  37626. getcount: {
  37627. type: [Boolean, String],
  37628. default: !1
  37629. },
  37630. gettree: {
  37631. type: [Boolean, String],
  37632. default: !1
  37633. },
  37634. gettreepath: {
  37635. type: [Boolean, String],
  37636. default: !1
  37637. },
  37638. startwith: {
  37639. type: String,
  37640. default: ""
  37641. },
  37642. limitlevel: {
  37643. type: Number,
  37644. default: 10
  37645. },
  37646. groupby: {
  37647. type: String,
  37648. default: ""
  37649. },
  37650. groupField: {
  37651. type: String,
  37652. default: ""
  37653. },
  37654. distinct: {
  37655. type: [Boolean, String],
  37656. default: !1
  37657. },
  37658. foreignKey: {
  37659. type: String,
  37660. default: ""
  37661. },
  37662. loadtime: {
  37663. type: String,
  37664. default: "auto"
  37665. },
  37666. manual: {
  37667. type: Boolean,
  37668. default: !1
  37669. }
  37670. },
  37671. data: function data() {
  37672. return {
  37673. mixinDatacomLoading: !1,
  37674. mixinDatacomHasMore: !1,
  37675. mixinDatacomResData: [],
  37676. mixinDatacomErrorMessage: "",
  37677. mixinDatacomPage: {}
  37678. };
  37679. },
  37680. created: function created() {
  37681. var _this22 = this;
  37682. this.mixinDatacomPage = {
  37683. current: this.pageCurrent,
  37684. size: this.pageSize,
  37685. count: 0
  37686. }, this.$watch(function () {
  37687. var e = [];
  37688. return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {
  37689. e.push(_this22[t]);
  37690. }), e;
  37691. }, function (e, t) {
  37692. if (_this22.loadtime === Cs) return;
  37693. var n = !1;
  37694. var s = [];
  37695. for (var _r7 = 2; _r7 < e.length; _r7++) {
  37696. e[_r7] !== t[_r7] && (s.push(e[_r7]), n = !0);
  37697. }
  37698. e[0] !== t[0] && (_this22.mixinDatacomPage.current = _this22.pageCurrent), _this22.mixinDatacomPage.size = _this22.pageSize, _this22.onMixinDatacomPropsChange(n, s);
  37699. });
  37700. },
  37701. methods: {
  37702. onMixinDatacomPropsChange: function onMixinDatacomPropsChange(e, t) {},
  37703. mixinDatacomEasyGet: function mixinDatacomEasyGet() {
  37704. var _this23 = this;
  37705. var _ref55 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  37706. _ref55$getone = _ref55.getone,
  37707. e = _ref55$getone === void 0 ? !1 : _ref55$getone,
  37708. t = _ref55.success,
  37709. n = _ref55.fail;
  37710. this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", this.mixinDatacomGet().then(function (n) {
  37711. _this23.mixinDatacomLoading = !1;
  37712. var _n$result = n.result,
  37713. s = _n$result.data,
  37714. r = _n$result.count;
  37715. _this23.getcount && (_this23.mixinDatacomPage.count = r), _this23.mixinDatacomHasMore = s.length < _this23.pageSize;
  37716. var i = e ? s.length ? s[0] : void 0 : s;
  37717. _this23.mixinDatacomResData = i, t && t(i);
  37718. }).catch(function (e) {
  37719. _this23.mixinDatacomLoading = !1, _this23.mixinDatacomErrorMessage = e, n && n(e);
  37720. }));
  37721. },
  37722. mixinDatacomGet: function mixinDatacomGet() {
  37723. var _n12;
  37724. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  37725. var n = e.database(this.spaceInfo);
  37726. var s = t.action || this.action;
  37727. s && (n = n.action(s));
  37728. var r = t.collection || this.collection;
  37729. n = Array.isArray(r) ? (_n12 = n).collection.apply(_n12, (0, _toConsumableArray2.default)(r)) : n.collection(r);
  37730. var i = t.where || this.where;
  37731. i && Object.keys(i).length && (n = n.where(i));
  37732. var o = t.field || this.field;
  37733. o && (n = n.field(o));
  37734. var a = t.foreignKey || this.foreignKey;
  37735. a && (n = n.foreignKey(a));
  37736. var c = t.groupby || this.groupby;
  37737. c && (n = n.groupBy(c));
  37738. var u = t.groupField || this.groupField;
  37739. u && (n = n.groupField(u));
  37740. !0 === (void 0 !== t.distinct ? t.distinct : this.distinct) && (n = n.distinct());
  37741. var l = t.orderby || this.orderby;
  37742. l && (n = n.orderBy(l));
  37743. var h = void 0 !== t.pageCurrent ? t.pageCurrent : this.mixinDatacomPage.current,
  37744. d = void 0 !== t.pageSize ? t.pageSize : this.mixinDatacomPage.size,
  37745. p = void 0 !== t.getcount ? t.getcount : this.getcount,
  37746. f = void 0 !== t.gettree ? t.gettree : this.gettree,
  37747. g = void 0 !== t.gettreepath ? t.gettreepath : this.gettreepath,
  37748. m = {
  37749. getCount: p
  37750. },
  37751. y = {
  37752. limitLevel: void 0 !== t.limitlevel ? t.limitlevel : this.limitlevel,
  37753. startWith: void 0 !== t.startwith ? t.startwith : this.startwith
  37754. };
  37755. return f && (m.getTree = y), g && (m.getTreePath = y), n = n.skip(d * (h - 1)).limit(d).get(m), n;
  37756. }
  37757. }
  37758. };
  37759. }
  37760. function Os(e) {
  37761. return function (t) {
  37762. var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  37763. n = function (e) {
  37764. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  37765. return e.customUI = t.customUI || e.customUI, e.parseSystemError = t.parseSystemError || e.parseSystemError, Object.assign(e.loadingOptions, t.loadingOptions), Object.assign(e.errorOptions, t.errorOptions), "object" == (0, _typeof2.default)(t.secretMethods) && (e.secretMethods = t.secretMethods), e;
  37766. }({
  37767. customUI: !1,
  37768. loadingOptions: {
  37769. title: "加载中...",
  37770. mask: !0
  37771. },
  37772. errorOptions: {
  37773. type: "modal",
  37774. retry: !1
  37775. }
  37776. }, n);
  37777. var _n13 = n,
  37778. s = _n13.customUI,
  37779. r = _n13.loadingOptions,
  37780. i = _n13.errorOptions,
  37781. o = _n13.parseSystemError,
  37782. a = !s;
  37783. return new Proxy({}, {
  37784. get: function get(s, c) {
  37785. return function () {
  37786. var _ref56 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  37787. e = _ref56.fn,
  37788. t = _ref56.interceptorName,
  37789. n = _ref56.getCallbackArgs;
  37790. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee53() {
  37791. var _len2,
  37792. s,
  37793. _key2,
  37794. r,
  37795. i,
  37796. o,
  37797. _args = arguments;
  37798. return _regenerator.default.wrap(function _callee53$(_context53) {
  37799. while (1) {
  37800. switch (_context53.prev = _context53.next) {
  37801. case 0:
  37802. for (_len2 = _args.length, s = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  37803. s[_key2] = _args[_key2];
  37804. }
  37805. r = n ? n({
  37806. params: s
  37807. }) : {};
  37808. _context53.prev = 2;
  37809. _context53.next = 5;
  37810. return M(q(t, "invoke"), _objectSpread({}, r));
  37811. case 5:
  37812. _context53.next = 7;
  37813. return e.apply(void 0, s);
  37814. case 7:
  37815. i = _context53.sent;
  37816. _context53.next = 10;
  37817. return M(q(t, "success"), _objectSpread(_objectSpread({}, r), {}, {
  37818. result: i
  37819. }));
  37820. case 10:
  37821. return _context53.abrupt("return", i);
  37822. case 13:
  37823. _context53.prev = 13;
  37824. _context53.t0 = _context53["catch"](2);
  37825. o = _context53.t0;
  37826. _context53.next = 18;
  37827. return M(q(t, "fail"), _objectSpread(_objectSpread({}, r), {}, {
  37828. error: o
  37829. }));
  37830. case 18:
  37831. throw o;
  37832. case 19:
  37833. _context53.prev = 19;
  37834. _context53.next = 22;
  37835. return M(q(t, "complete"), o ? _objectSpread(_objectSpread({}, r), {}, {
  37836. error: o
  37837. }) : _objectSpread(_objectSpread({}, r), {}, {
  37838. result: i
  37839. }));
  37840. case 22:
  37841. return _context53.finish(19);
  37842. case 23:
  37843. case "end":
  37844. return _context53.stop();
  37845. }
  37846. }
  37847. }, _callee53, null, [[2, 13, 19, 23]]);
  37848. }));
  37849. }({
  37850. fn: function () {
  37851. var _s16 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee55() {
  37852. var h,
  37853. _len3,
  37854. l,
  37855. _key3,
  37856. d,
  37857. p,
  37858. _ref58,
  37859. f,
  37860. g,
  37861. m,
  37862. y,
  37863. _e26,
  37864. _yield,
  37865. _t21,
  37866. _n14,
  37867. _args4 = arguments;
  37868. return _regenerator.default.wrap(function _callee55$(_context55) {
  37869. while (1) {
  37870. switch (_context55.prev = _context55.next) {
  37871. case 0:
  37872. a && uni.showLoading({
  37873. title: r.title,
  37874. mask: r.mask
  37875. });
  37876. for (_len3 = _args4.length, l = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  37877. l[_key3] = _args4[_key3];
  37878. }
  37879. d = {
  37880. name: t,
  37881. type: u,
  37882. data: {
  37883. method: c,
  37884. params: l
  37885. }
  37886. };
  37887. "object" == (0, _typeof2.default)(n.secretMethods) && function (e, t) {
  37888. var n = t.data.method,
  37889. s = e.secretMethods || {},
  37890. r = s[n] || s["*"];
  37891. r && (t.secretType = r);
  37892. }(n, d);
  37893. p = !1;
  37894. _context55.prev = 5;
  37895. _context55.next = 8;
  37896. return e.callFunction(d);
  37897. case 8:
  37898. h = _context55.sent;
  37899. _context55.next = 14;
  37900. break;
  37901. case 11:
  37902. _context55.prev = 11;
  37903. _context55.t0 = _context55["catch"](5);
  37904. p = !0, h = {
  37905. result: new te(_context55.t0)
  37906. };
  37907. case 14:
  37908. _ref58 = h.result || {}, f = _ref58.errSubject, g = _ref58.errCode, m = _ref58.errMsg, y = _ref58.newToken;
  37909. if (!(a && uni.hideLoading(), y && y.token && y.tokenExpired && (re(y), Y($, _objectSpread({}, y))), g)) {
  37910. _context55.next = 39;
  37911. break;
  37912. }
  37913. _e26 = m;
  37914. if (!(p && o)) {
  37915. _context55.next = 24;
  37916. break;
  37917. }
  37918. _context55.next = 20;
  37919. return o({
  37920. objectName: t,
  37921. methodName: c,
  37922. params: l,
  37923. errSubject: f,
  37924. errCode: g,
  37925. errMsg: m
  37926. });
  37927. case 20:
  37928. _context55.t1 = _context55.sent.errMsg;
  37929. if (_context55.t1) {
  37930. _context55.next = 23;
  37931. break;
  37932. }
  37933. _context55.t1 = m;
  37934. case 23:
  37935. _e26 = _context55.t1;
  37936. case 24:
  37937. if (!a) {
  37938. _context55.next = 37;
  37939. break;
  37940. }
  37941. if (!("toast" === i.type)) {
  37942. _context55.next = 29;
  37943. break;
  37944. }
  37945. uni.showToast({
  37946. title: _e26,
  37947. icon: "none"
  37948. });
  37949. _context55.next = 37;
  37950. break;
  37951. case 29:
  37952. if (!("modal" !== i.type)) {
  37953. _context55.next = 31;
  37954. break;
  37955. }
  37956. throw new Error("Invalid errorOptions.type: ".concat(i.type));
  37957. case 31:
  37958. _context55.next = 33;
  37959. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee54() {
  37960. var _ref60,
  37961. e,
  37962. t,
  37963. n,
  37964. s,
  37965. r,
  37966. _args2 = arguments;
  37967. return _regenerator.default.wrap(function _callee54$(_context54) {
  37968. while (1) {
  37969. switch (_context54.prev = _context54.next) {
  37970. case 0:
  37971. _ref60 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, e = _ref60.title, t = _ref60.content, n = _ref60.showCancel, s = _ref60.cancelText, r = _ref60.confirmText;
  37972. return _context54.abrupt("return", new Promise(function (i, o) {
  37973. uni.showModal({
  37974. title: e,
  37975. content: t,
  37976. showCancel: n,
  37977. cancelText: s,
  37978. confirmText: r,
  37979. success: function success(e) {
  37980. i(e);
  37981. },
  37982. fail: function fail() {
  37983. i({
  37984. confirm: !1,
  37985. cancel: !0
  37986. });
  37987. }
  37988. });
  37989. }));
  37990. case 2:
  37991. case "end":
  37992. return _context54.stop();
  37993. }
  37994. }
  37995. }, _callee54);
  37996. }))({
  37997. title: "提示",
  37998. content: _e26,
  37999. showCancel: i.retry,
  38000. cancelText: "取消",
  38001. confirmText: i.retry ? "重试" : "确定"
  38002. });
  38003. case 33:
  38004. _yield = _context55.sent;
  38005. _t21 = _yield.confirm;
  38006. if (!(i.retry && _t21)) {
  38007. _context55.next = 37;
  38008. break;
  38009. }
  38010. return _context55.abrupt("return", s.apply(void 0, l));
  38011. case 37:
  38012. _n14 = new te({
  38013. subject: f,
  38014. code: g,
  38015. message: m,
  38016. requestId: h.requestId
  38017. });
  38018. throw _n14.detail = h.result, Y(j, {
  38019. type: z,
  38020. content: _n14
  38021. }), _n14;
  38022. case 39:
  38023. return _context55.abrupt("return", (Y(j, {
  38024. type: z,
  38025. content: h.result
  38026. }), h.result));
  38027. case 40:
  38028. case "end":
  38029. return _context55.stop();
  38030. }
  38031. }
  38032. }, _callee55, null, [[5, 11]]);
  38033. }));
  38034. function s() {
  38035. return _s16.apply(this, arguments);
  38036. }
  38037. return s;
  38038. }(),
  38039. interceptorName: "callObject",
  38040. getCallbackArgs: function getCallbackArgs() {
  38041. var _ref61 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  38042. e = _ref61.params;
  38043. return {
  38044. objectName: t,
  38045. methodName: c,
  38046. params: e
  38047. };
  38048. }
  38049. });
  38050. }
  38051. });
  38052. };
  38053. }
  38054. function Es(e) {
  38055. return L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", e.config.spaceId));
  38056. }
  38057. function Ls() {
  38058. return _Ls.apply(this, arguments);
  38059. }
  38060. function _Ls() {
  38061. _Ls = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee58() {
  38062. var _ref73,
  38063. e,
  38064. _ref73$callLoginByWei,
  38065. t,
  38066. n,
  38067. s,
  38068. r,
  38069. _args7 = arguments;
  38070. return _regenerator.default.wrap(function _callee58$(_context58) {
  38071. while (1) {
  38072. switch (_context58.prev = _context58.next) {
  38073. case 0:
  38074. _ref73 = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {}, e = _ref73.openid, _ref73$callLoginByWei = _ref73.callLoginByWeixin, t = _ref73$callLoginByWei === void 0 ? !1 : _ref73$callLoginByWei;
  38075. n = Es(this);
  38076. if (!("mp-weixin" !== P)) {
  38077. _context58.next = 4;
  38078. break;
  38079. }
  38080. throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(P, "`"));
  38081. case 4:
  38082. if (!(e && t)) {
  38083. _context58.next = 6;
  38084. break;
  38085. }
  38086. throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");
  38087. case 6:
  38088. if (!e) {
  38089. _context58.next = 8;
  38090. break;
  38091. }
  38092. return _context58.abrupt("return", (n.mpWeixinOpenid = e, {}));
  38093. case 8:
  38094. _context58.next = 10;
  38095. return new Promise(function (e, t) {
  38096. uni.login({
  38097. success: function success(t) {
  38098. e(t.code);
  38099. },
  38100. fail: function fail(e) {
  38101. t(new Error(e.errMsg));
  38102. }
  38103. });
  38104. });
  38105. case 10:
  38106. s = _context58.sent;
  38107. r = this.importObject("uni-id-co", {
  38108. customUI: !0
  38109. });
  38110. _context58.next = 14;
  38111. return r.secureNetworkHandshakeByWeixin({
  38112. code: s,
  38113. callLoginByWeixin: t
  38114. });
  38115. case 14:
  38116. n.mpWeixinCode = s;
  38117. return _context58.abrupt("return", {
  38118. code: s
  38119. });
  38120. case 16:
  38121. case "end":
  38122. return _context58.stop();
  38123. }
  38124. }
  38125. }, _callee58, this);
  38126. }));
  38127. return _Ls.apply(this, arguments);
  38128. }
  38129. function Rs(_x40) {
  38130. return _Rs.apply(this, arguments);
  38131. }
  38132. function _Rs() {
  38133. _Rs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee59(e) {
  38134. var t;
  38135. return _regenerator.default.wrap(function _callee59$(_context59) {
  38136. while (1) {
  38137. switch (_context59.prev = _context59.next) {
  38138. case 0:
  38139. t = Es(this);
  38140. return _context59.abrupt("return", (t.initPromise || (t.initPromise = Ls.call(this, e)), t.initPromise));
  38141. case 2:
  38142. case "end":
  38143. return _context59.stop();
  38144. }
  38145. }
  38146. }, _callee59, this);
  38147. }));
  38148. return _Rs.apply(this, arguments);
  38149. }
  38150. function Us(e) {
  38151. return function () {
  38152. var _ref62 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  38153. t = _ref62.openid,
  38154. _ref62$callLoginByWei = _ref62.callLoginByWeixin,
  38155. n = _ref62$callLoginByWei === void 0 ? !1 : _ref62$callLoginByWei;
  38156. return Rs.call(e, {
  38157. openid: t,
  38158. callLoginByWeixin: n
  38159. });
  38160. };
  38161. }
  38162. function Ns(e) {
  38163. var t = {
  38164. getSystemInfo: uni.getSystemInfo,
  38165. getPushClientId: uni.getPushClientId
  38166. };
  38167. return function (n) {
  38168. return new Promise(function (s, r) {
  38169. t[e](_objectSpread(_objectSpread({}, n), {}, {
  38170. success: function success(e) {
  38171. s(e);
  38172. },
  38173. fail: function fail(e) {
  38174. r(e);
  38175. }
  38176. }));
  38177. });
  38178. };
  38179. }
  38180. var Ds = /*#__PURE__*/function (_ref63) {
  38181. (0, _inherits2.default)(Ds, _ref63);
  38182. var _super12 = _createSuper(Ds);
  38183. function Ds() {
  38184. var _this24;
  38185. (0, _classCallCheck2.default)(this, Ds);
  38186. _this24 = _super12.call(this), _this24._uniPushMessageCallback = _this24._receivePushMessage.bind((0, _assertThisInitialized2.default)(_this24)), _this24._currentMessageId = -1, _this24._payloadQueue = [];
  38187. return _this24;
  38188. }
  38189. (0, _createClass2.default)(Ds, [{
  38190. key: "init",
  38191. value: function init() {
  38192. var _this25 = this;
  38193. return Promise.all([Ns("getSystemInfo")(), Ns("getPushClientId")()]).then(function () {
  38194. var _ref64 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [],
  38195. _ref65 = (0, _slicedToArray2.default)(_ref64, 2),
  38196. _ref65$ = _ref65[0];
  38197. _ref65$ = _ref65$ === void 0 ? {} : _ref65$;
  38198. var e = _ref65$.appId,
  38199. _ref65$2 = _ref65[1];
  38200. _ref65$2 = _ref65$2 === void 0 ? {} : _ref65$2;
  38201. var t = _ref65$2.cid;
  38202. if (!e) throw new Error("Invalid appId, please check the manifest.json file");
  38203. if (!t) throw new Error("Invalid push client id");
  38204. _this25._appId = e, _this25._pushClientId = t, _this25._seqId = Date.now() + "-" + Math.floor(9e5 * Math.random() + 1e5), _this25.emit("open"), _this25._initMessageListener();
  38205. }, function (e) {
  38206. throw _this25.emit("error", e), _this25.close(), e;
  38207. });
  38208. }
  38209. }, {
  38210. key: "open",
  38211. value: function () {
  38212. var _open = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee56() {
  38213. return _regenerator.default.wrap(function _callee56$(_context56) {
  38214. while (1) {
  38215. switch (_context56.prev = _context56.next) {
  38216. case 0:
  38217. return _context56.abrupt("return", this.init());
  38218. case 1:
  38219. case "end":
  38220. return _context56.stop();
  38221. }
  38222. }
  38223. }, _callee56, this);
  38224. }));
  38225. function open() {
  38226. return _open.apply(this, arguments);
  38227. }
  38228. return open;
  38229. }()
  38230. }, {
  38231. key: "_isUniCloudSSE",
  38232. value: function _isUniCloudSSE(e) {
  38233. if ("receive" !== e.type) return !1;
  38234. var t = e && e.data && e.data.payload;
  38235. return !(!t || "UNI_CLOUD_SSE" !== t.channel || t.seqId !== this._seqId);
  38236. }
  38237. }, {
  38238. key: "_receivePushMessage",
  38239. value: function _receivePushMessage(e) {
  38240. if (!this._isUniCloudSSE(e)) return;
  38241. var t = e && e.data && e.data.payload,
  38242. n = t.action,
  38243. s = t.messageId,
  38244. r = t.message;
  38245. this._payloadQueue.push({
  38246. action: n,
  38247. messageId: s,
  38248. message: r
  38249. }), this._consumMessage();
  38250. }
  38251. }, {
  38252. key: "_consumMessage",
  38253. value: function _consumMessage() {
  38254. var _this26 = this;
  38255. for (;;) {
  38256. var _e27 = this._payloadQueue.find(function (e) {
  38257. return e.messageId === _this26._currentMessageId + 1;
  38258. });
  38259. if (!_e27) break;
  38260. this._currentMessageId++, this._parseMessagePayload(_e27);
  38261. }
  38262. }
  38263. }, {
  38264. key: "_parseMessagePayload",
  38265. value: function _parseMessagePayload(e) {
  38266. var t = e.action,
  38267. n = e.messageId,
  38268. s = e.message;
  38269. "end" === t ? this._end({
  38270. messageId: n,
  38271. message: s
  38272. }) : "message" === t && this._appendMessage({
  38273. messageId: n,
  38274. message: s
  38275. });
  38276. }
  38277. }, {
  38278. key: "_appendMessage",
  38279. value: function _appendMessage() {
  38280. var _ref66 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  38281. e = _ref66.messageId,
  38282. t = _ref66.message;
  38283. this.emit("message", t);
  38284. }
  38285. }, {
  38286. key: "_end",
  38287. value: function _end() {
  38288. var _ref67 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  38289. e = _ref67.messageId,
  38290. t = _ref67.message;
  38291. this.emit("end", t), this.close();
  38292. }
  38293. }, {
  38294. key: "_initMessageListener",
  38295. value: function _initMessageListener() {
  38296. uni.onPushMessage(this._uniPushMessageCallback);
  38297. }
  38298. }, {
  38299. key: "_destroy",
  38300. value: function _destroy() {
  38301. uni.offPushMessage(this._uniPushMessageCallback);
  38302. }
  38303. }, {
  38304. key: "toJSON",
  38305. value: function toJSON() {
  38306. return {
  38307. appId: this._appId,
  38308. pushClientId: this._pushClientId,
  38309. seqId: this._seqId
  38310. };
  38311. }
  38312. }, {
  38313. key: "close",
  38314. value: function close() {
  38315. this._destroy(), this.emit("close");
  38316. }
  38317. }]);
  38318. return Ds;
  38319. }( /*#__PURE__*/function () {
  38320. function _class6() {
  38321. (0, _classCallCheck2.default)(this, _class6);
  38322. this._callback = {};
  38323. }
  38324. (0, _createClass2.default)(_class6, [{
  38325. key: "addListener",
  38326. value: function addListener(e, t) {
  38327. this._callback[e] || (this._callback[e] = []), this._callback[e].push(t);
  38328. }
  38329. }, {
  38330. key: "on",
  38331. value: function on(e, t) {
  38332. return this.addListener(e, t);
  38333. }
  38334. }, {
  38335. key: "removeListener",
  38336. value: function removeListener(e, t) {
  38337. if (!t) throw new Error('The "listener" argument must be of type function. Received undefined');
  38338. var n = this._callback[e];
  38339. if (!n) return;
  38340. var s = function (e, t) {
  38341. for (var _n15 = e.length - 1; _n15 >= 0; _n15--) {
  38342. if (e[_n15] === t) return _n15;
  38343. }
  38344. return -1;
  38345. }(n, t);
  38346. n.splice(s, 1);
  38347. }
  38348. }, {
  38349. key: "off",
  38350. value: function off(e, t) {
  38351. return this.removeListener(e, t);
  38352. }
  38353. }, {
  38354. key: "removeAllListener",
  38355. value: function removeAllListener(e) {
  38356. delete this._callback[e];
  38357. }
  38358. }, {
  38359. key: "emit",
  38360. value: function emit(e) {
  38361. var n = this._callback[e];
  38362. for (var _len4 = arguments.length, t = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
  38363. t[_key4 - 1] = arguments[_key4];
  38364. }
  38365. if (n) for (var _e28 = 0; _e28 < n.length; _e28++) {
  38366. n[_e28].apply(n, t);
  38367. }
  38368. }
  38369. }]);
  38370. return _class6;
  38371. }());
  38372. function Ms(_x41, _x42) {
  38373. return _Ms.apply(this, arguments);
  38374. }
  38375. function _Ms() {
  38376. _Ms = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee60(e, t) {
  38377. var n, _e32, s;
  38378. return _regenerator.default.wrap(function _callee60$(_context60) {
  38379. while (1) {
  38380. switch (_context60.prev = _context60.next) {
  38381. case 0:
  38382. n = "http://".concat(e, ":").concat(t, "/system/ping");
  38383. _context60.prev = 1;
  38384. _context60.next = 4;
  38385. return s = {
  38386. url: n,
  38387. timeout: 500
  38388. }, new Promise(function (e, t) {
  38389. ne.request(_objectSpread(_objectSpread({}, s), {}, {
  38390. success: function success(t) {
  38391. e(t);
  38392. },
  38393. fail: function fail(e) {
  38394. t(e);
  38395. }
  38396. }));
  38397. });
  38398. case 4:
  38399. _e32 = _context60.sent;
  38400. return _context60.abrupt("return", !(!_e32.data || 0 !== _e32.data.code));
  38401. case 8:
  38402. _context60.prev = 8;
  38403. _context60.t0 = _context60["catch"](1);
  38404. return _context60.abrupt("return", !1);
  38405. case 11:
  38406. case "end":
  38407. return _context60.stop();
  38408. }
  38409. }
  38410. }, _callee60, null, [[1, 8]]);
  38411. }));
  38412. return _Ms.apply(this, arguments);
  38413. }
  38414. function qs(_x43) {
  38415. return _qs.apply(this, arguments);
  38416. }
  38417. function _qs() {
  38418. _qs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee62(e) {
  38419. var _ae2, _e33, _t23, t, _t$debugInfo, n, s, _yield2, r, i, o;
  38420. return _regenerator.default.wrap(function _callee62$(_context62) {
  38421. while (1) {
  38422. switch (_context62.prev = _context62.next) {
  38423. case 0:
  38424. if (S) {
  38425. _context62.next = 2;
  38426. break;
  38427. }
  38428. return _context62.abrupt("return", Promise.resolve());
  38429. case 2:
  38430. if ("app" === P) {
  38431. _ae2 = ae(), _e33 = _ae2.osName, _t23 = _ae2.osVersion;
  38432. "ios" === _e33 && function (e) {
  38433. if (!e || "string" != typeof e) return 0;
  38434. var t = e.match(/^(\d+)./);
  38435. return t && t[1] ? parseInt(t[1]) : 0;
  38436. }(_t23) >= 14 && console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发模式生效,发行模式会连接uniCloud云端服务)");
  38437. }
  38438. t = e.__dev__;
  38439. if (t.debugInfo) {
  38440. _context62.next = 6;
  38441. break;
  38442. }
  38443. return _context62.abrupt("return");
  38444. case 6:
  38445. _t$debugInfo = t.debugInfo;
  38446. n = _t$debugInfo.address;
  38447. s = _t$debugInfo.servePort;
  38448. _context62.next = 11;
  38449. return function () {
  38450. var _ref74 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee61(e, t) {
  38451. var n, _s17, _r8;
  38452. return _regenerator.default.wrap(function _callee61$(_context61) {
  38453. while (1) {
  38454. switch (_context61.prev = _context61.next) {
  38455. case 0:
  38456. _s17 = 0;
  38457. case 1:
  38458. if (!(_s17 < e.length)) {
  38459. _context61.next = 11;
  38460. break;
  38461. }
  38462. _r8 = e[_s17];
  38463. _context61.next = 5;
  38464. return Ms(_r8, t);
  38465. case 5:
  38466. if (!_context61.sent) {
  38467. _context61.next = 8;
  38468. break;
  38469. }
  38470. n = _r8;
  38471. return _context61.abrupt("break", 11);
  38472. case 8:
  38473. _s17++;
  38474. _context61.next = 1;
  38475. break;
  38476. case 11:
  38477. return _context61.abrupt("return", {
  38478. address: n,
  38479. port: t
  38480. });
  38481. case 12:
  38482. case "end":
  38483. return _context61.stop();
  38484. }
  38485. }
  38486. }, _callee61);
  38487. }));
  38488. return function (_x44, _x45) {
  38489. return _ref74.apply(this, arguments);
  38490. };
  38491. }()(n, s);
  38492. case 11:
  38493. _yield2 = _context62.sent;
  38494. r = _yield2.address;
  38495. if (!r) {
  38496. _context62.next = 15;
  38497. break;
  38498. }
  38499. return _context62.abrupt("return", (t.localAddress = r, void (t.localPort = s)));
  38500. case 15:
  38501. i = console["app" === P ? "error" : "warn"];
  38502. o = "";
  38503. if (!("remote" === t.debugInfo.initialLaunchType ? (t.debugInfo.forceRemote = !0, o = "当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。") : o = "无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。", o += "\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数", "web" === P && (o += "\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"), 0 === P.indexOf("mp-") && (o += "\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"), !t.debugInfo.forceRemote)) {
  38504. _context62.next = 19;
  38505. break;
  38506. }
  38507. throw new Error(o);
  38508. case 19:
  38509. i(o);
  38510. case 20:
  38511. case "end":
  38512. return _context62.stop();
  38513. }
  38514. }
  38515. }, _callee62);
  38516. }));
  38517. return _qs.apply(this, arguments);
  38518. }
  38519. function Fs(e) {
  38520. e._initPromiseHub || (e._initPromiseHub = new v({
  38521. createPromise: function createPromise() {
  38522. var t = Promise.resolve();
  38523. var n;
  38524. n = 1, t = new Promise(function (e) {
  38525. setTimeout(function () {
  38526. e();
  38527. }, n);
  38528. });
  38529. var s = e.auth();
  38530. return t.then(function () {
  38531. return s.getLoginState();
  38532. }).then(function (e) {
  38533. return e ? Promise.resolve() : s.signInAnonymously();
  38534. });
  38535. }
  38536. }));
  38537. }
  38538. var Ks = {
  38539. tcb: It,
  38540. tencent: It,
  38541. aliyun: de,
  38542. private: bt,
  38543. alipay: Ot
  38544. };
  38545. var js = new ( /*#__PURE__*/function () {
  38546. function _class7() {
  38547. (0, _classCallCheck2.default)(this, _class7);
  38548. }
  38549. (0, _createClass2.default)(_class7, [{
  38550. key: "init",
  38551. value: function init(e) {
  38552. var t = {};
  38553. var n = Ks[e.provider];
  38554. if (!n) throw new Error("未提供正确的provider参数");
  38555. t = n.init(e), S && function (e) {
  38556. if (!S) return;
  38557. var t = {};
  38558. e.__dev__ = t, t.debugLog = S && ("web" === P && navigator.userAgent.indexOf("HBuilderX") > 0 || "app" === P);
  38559. var n = T;
  38560. n && !n.code && (t.debugInfo = n);
  38561. var s = new v({
  38562. createPromise: function createPromise() {
  38563. return qs(e);
  38564. }
  38565. });
  38566. t.initLocalNetwork = function () {
  38567. return s.exec();
  38568. };
  38569. }(t), Fs(t), qn(t), function (e) {
  38570. var t = e.uploadFile;
  38571. e.uploadFile = function (e) {
  38572. return t.call(this, e);
  38573. };
  38574. }(t), function (e) {
  38575. e.database = function (t) {
  38576. if (t && Object.keys(t).length > 0) return e.init(t).database();
  38577. if (this._database) return this._database;
  38578. var n = Gn(Yn, {
  38579. uniClient: e
  38580. });
  38581. return this._database = n, n;
  38582. }, e.databaseForJQL = function (t) {
  38583. if (t && Object.keys(t).length > 0) return e.init(t).databaseForJQL();
  38584. if (this._databaseForJQL) return this._databaseForJQL;
  38585. var n = Gn(Yn, {
  38586. uniClient: e,
  38587. isJQL: !0
  38588. });
  38589. return this._databaseForJQL = n, n;
  38590. };
  38591. }(t), function (e) {
  38592. e.getCurrentUserInfo = As, e.chooseAndUploadFile = Ts.initChooseAndUploadFile(e), Object.assign(e, {
  38593. get mixinDatacom() {
  38594. return xs(e);
  38595. }
  38596. }), e.SSEChannel = Ds, e.initSecureNetworkByWeixin = Us(e), e.importObject = Os(e);
  38597. }(t);
  38598. return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach(function (e) {
  38599. if (!t[e]) return;
  38600. var n = t[e];
  38601. t[e] = function () {
  38602. return n.apply(t, Array.from(arguments));
  38603. }, t[e] = function (e, t) {
  38604. return function (n) {
  38605. var _this27 = this;
  38606. var s = !1;
  38607. if ("callFunction" === t) {
  38608. var _e29 = n && n.type || c;
  38609. s = _e29 !== c;
  38610. }
  38611. var r = "callFunction" === t && !s,
  38612. i = this._initPromiseHub.exec();
  38613. n = n || {};
  38614. var _ee2 = ee(n),
  38615. o = _ee2.success,
  38616. a = _ee2.fail,
  38617. u = _ee2.complete,
  38618. l = i.then(function () {
  38619. return s ? Promise.resolve() : M(q(t, "invoke"), n);
  38620. }).then(function () {
  38621. return e.call(_this27, n);
  38622. }).then(function (e) {
  38623. return s ? Promise.resolve(e) : M(q(t, "success"), e).then(function () {
  38624. return M(q(t, "complete"), e);
  38625. }).then(function () {
  38626. return r && Y(j, {
  38627. type: H,
  38628. content: e
  38629. }), Promise.resolve(e);
  38630. });
  38631. }, function (e) {
  38632. return s ? Promise.reject(e) : M(q(t, "fail"), e).then(function () {
  38633. return M(q(t, "complete"), e);
  38634. }).then(function () {
  38635. return Y(j, {
  38636. type: H,
  38637. content: e
  38638. }), Promise.reject(e);
  38639. });
  38640. });
  38641. if (!(o || a || u)) return l;
  38642. l.then(function (e) {
  38643. o && o(e), u && u(e), r && Y(j, {
  38644. type: H,
  38645. content: e
  38646. });
  38647. }, function (e) {
  38648. a && a(e), u && u(e), r && Y(j, {
  38649. type: H,
  38650. content: e
  38651. });
  38652. });
  38653. };
  38654. }(t[e], e).bind(t);
  38655. }), t.init = this.init, t;
  38656. }
  38657. }]);
  38658. return _class7;
  38659. }())();
  38660. (function () {
  38661. var e = C;
  38662. var t = {};
  38663. if (e && 1 === e.length) t = e[0], js = js.init(t), js._isDefault = !0;else {
  38664. var _t22 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject"];
  38665. var _n16;
  38666. _n16 = e && e.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : x ? "应用未关联服务空间,请在uniCloud目录右键关联服务空间" : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间", _t22.forEach(function (e) {
  38667. js[e] = function () {
  38668. return console.error(_n16), Promise.reject(new te({
  38669. code: "SYS_ERR",
  38670. message: _n16
  38671. }));
  38672. };
  38673. });
  38674. }
  38675. Object.assign(js, {
  38676. get mixinDatacom() {
  38677. return xs(js);
  38678. }
  38679. }), Is(js), js.addInterceptor = N, js.removeInterceptor = D, js.interceptObject = F, S && "web" === P && (window.uniCloud = js);
  38680. })();
  38681. var Bs = js;
  38682. exports.default = Bs;
  38683. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3), __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  38684. /***/ }),
  38685. /* 472 */
  38686. /*!**********************************************************************!*\
  38687. !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  38688. \**********************************************************************/
  38689. /*! no static exports found */
  38690. /***/ (function(module, exports) {
  38691. function _assertThisInitialized(self) {
  38692. if (self === void 0) {
  38693. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  38694. }
  38695. return self;
  38696. }
  38697. module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
  38698. /***/ }),
  38699. /* 473 */
  38700. /*!************************************************************************!*\
  38701. !*** ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***!
  38702. \************************************************************************/
  38703. /*! no static exports found */
  38704. /***/ (function(module, exports, __webpack_require__) {
  38705. var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ 474);
  38706. function _objectWithoutProperties(source, excluded) {
  38707. if (source == null) return {};
  38708. var target = objectWithoutPropertiesLoose(source, excluded);
  38709. var key, i;
  38710. if (Object.getOwnPropertySymbols) {
  38711. var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
  38712. for (i = 0; i < sourceSymbolKeys.length; i++) {
  38713. key = sourceSymbolKeys[i];
  38714. if (excluded.indexOf(key) >= 0) continue;
  38715. if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
  38716. target[key] = source[key];
  38717. }
  38718. }
  38719. return target;
  38720. }
  38721. module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
  38722. /***/ }),
  38723. /* 474 */
  38724. /*!*****************************************************************************!*\
  38725. !*** ./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***!
  38726. \*****************************************************************************/
  38727. /*! no static exports found */
  38728. /***/ (function(module, exports) {
  38729. function _objectWithoutPropertiesLoose(source, excluded) {
  38730. if (source == null) return {};
  38731. var target = {};
  38732. var sourceKeys = Object.keys(source);
  38733. var key, i;
  38734. for (i = 0; i < sourceKeys.length; i++) {
  38735. key = sourceKeys[i];
  38736. if (excluded.indexOf(key) >= 0) continue;
  38737. target[key] = source[key];
  38738. }
  38739. return target;
  38740. }
  38741. module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
  38742. /***/ }),
  38743. /* 475 */
  38744. /*!*********************************************************!*\
  38745. !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  38746. \*********************************************************/
  38747. /*! no static exports found */
  38748. /***/ (function(module, exports, __webpack_require__) {
  38749. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  38750. function _inherits(subClass, superClass) {
  38751. if (typeof superClass !== "function" && superClass !== null) {
  38752. throw new TypeError("Super expression must either be null or a function");
  38753. }
  38754. subClass.prototype = Object.create(superClass && superClass.prototype, {
  38755. constructor: {
  38756. value: subClass,
  38757. writable: true,
  38758. configurable: true
  38759. }
  38760. });
  38761. Object.defineProperty(subClass, "prototype", {
  38762. writable: false
  38763. });
  38764. if (superClass) setPrototypeOf(subClass, superClass);
  38765. }
  38766. module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
  38767. /***/ }),
  38768. /* 476 */
  38769. /*!**************************************************************************!*\
  38770. !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  38771. \**************************************************************************/
  38772. /*! no static exports found */
  38773. /***/ (function(module, exports, __webpack_require__) {
  38774. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  38775. var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 472);
  38776. function _possibleConstructorReturn(self, call) {
  38777. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  38778. return call;
  38779. } else if (call !== void 0) {
  38780. throw new TypeError("Derived constructors may only return object or undefined");
  38781. }
  38782. return assertThisInitialized(self);
  38783. }
  38784. module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
  38785. /***/ }),
  38786. /* 477 */
  38787. /*!***************************************************************!*\
  38788. !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  38789. \***************************************************************/
  38790. /*! no static exports found */
  38791. /***/ (function(module, exports) {
  38792. function _getPrototypeOf(o) {
  38793. module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  38794. return o.__proto__ || Object.getPrototypeOf(o);
  38795. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  38796. return _getPrototypeOf(o);
  38797. }
  38798. module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  38799. /***/ }),
  38800. /* 478 */
  38801. /*!****************************************************************!*\
  38802. !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
  38803. \****************************************************************/
  38804. /*! no static exports found */
  38805. /***/ (function(module, exports, __webpack_require__) {
  38806. var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ 477);
  38807. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  38808. var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ 479);
  38809. var construct = __webpack_require__(/*! ./construct.js */ 15);
  38810. function _wrapNativeSuper(Class) {
  38811. var _cache = typeof Map === "function" ? new Map() : undefined;
  38812. module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
  38813. if (Class === null || !isNativeFunction(Class)) return Class;
  38814. if (typeof Class !== "function") {
  38815. throw new TypeError("Super expression must either be null or a function");
  38816. }
  38817. if (typeof _cache !== "undefined") {
  38818. if (_cache.has(Class)) return _cache.get(Class);
  38819. _cache.set(Class, Wrapper);
  38820. }
  38821. function Wrapper() {
  38822. return construct(Class, arguments, getPrototypeOf(this).constructor);
  38823. }
  38824. Wrapper.prototype = Object.create(Class.prototype, {
  38825. constructor: {
  38826. value: Wrapper,
  38827. enumerable: false,
  38828. writable: true,
  38829. configurable: true
  38830. }
  38831. });
  38832. return setPrototypeOf(Wrapper, Class);
  38833. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  38834. return _wrapNativeSuper(Class);
  38835. }
  38836. module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
  38837. /***/ }),
  38838. /* 479 */
  38839. /*!*****************************************************************!*\
  38840. !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
  38841. \*****************************************************************/
  38842. /*! no static exports found */
  38843. /***/ (function(module, exports) {
  38844. function _isNativeFunction(fn) {
  38845. return Function.toString.call(fn).indexOf("[native code]") !== -1;
  38846. }
  38847. module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
  38848. /***/ }),
  38849. /* 480 */
  38850. /*!******************************************************************!*\
  38851. !*** D:/SWS_New/sws_new/pages.json?{"type":"origin-pages-json"} ***!
  38852. \******************************************************************/
  38853. /*! no static exports found */
  38854. /***/ (function(module, exports, __webpack_require__) {
  38855. "use strict";
  38856. Object.defineProperty(exports, "__esModule", {
  38857. value: true
  38858. });
  38859. exports.default = void 0;
  38860. var _default = {
  38861. "pages": [{
  38862. "path": "pages/index/index",
  38863. "style": {}
  38864. }, {
  38865. "path": "pages/message/index",
  38866. "style": {
  38867. "navigationBarTitleText": "肾友知识"
  38868. }
  38869. }, {
  38870. "path": "pages/my/index",
  38871. "style": {
  38872. "navigationBarTitleText": "我的"
  38873. }
  38874. }, {
  38875. "path": "pages/Health_monitor/index",
  38876. "style": {
  38877. "navigationBarTitleText": "我的健康设备"
  38878. }
  38879. }, {
  38880. "path": "pages/Health_monitor/urinometer",
  38881. "style": {
  38882. "navigationBarTitleText": "领透尿检仪"
  38883. }
  38884. }, {
  38885. "path": "pages/my/personage",
  38886. "style": {
  38887. "navigationBarTitleText": "个人信息"
  38888. }
  38889. }, {
  38890. "path": "pages/Health_record/index",
  38891. "style": {
  38892. "navigationBarTitleText": "基本信息完善"
  38893. }
  38894. }, {
  38895. "path": "pages/Health_record/disease",
  38896. "style": {
  38897. "navigationBarTitleText": "基本信息完善",
  38898. "enablePullDownRefresh": false
  38899. }
  38900. }, {
  38901. "path": "pages/Health_record/creatinine",
  38902. "style": {
  38903. "navigationBarTitleText": "基本信息完善",
  38904. "enablePullDownRefresh": false
  38905. }
  38906. }, {
  38907. "path": "pages/Health_record/albumen",
  38908. "style": {
  38909. "navigationBarTitleText": "基本信息完善",
  38910. "enablePullDownRefresh": false
  38911. }
  38912. }, {
  38913. "path": "pages/Health_record/renal",
  38914. "style": {
  38915. "navigationBarTitleText": "基本信息完善",
  38916. "enablePullDownRefresh": false
  38917. }
  38918. }, {
  38919. "path": "pages/Health_record/archives",
  38920. "style": {
  38921. "navigationBarTitleText": "个人信息",
  38922. "enablePullDownRefresh": false
  38923. }
  38924. }, {
  38925. "path": "pages/Health_monitor/components/network",
  38926. "style": {
  38927. "navigationBarTitleText": "配置网络",
  38928. "enablePullDownRefresh": false
  38929. }
  38930. }, {
  38931. "path": "pages/addPatient/index",
  38932. "style": {
  38933. "navigationBarTitleText": "添加就诊人"
  38934. }
  38935. }, {
  38936. "path": "pages/userBinding/index",
  38937. "style": {
  38938. "navigationBarTitleText": "用户绑定"
  38939. }
  38940. }, {
  38941. "path": "pages/inspection_new/detail",
  38942. "style": {
  38943. "navigationBarTitleText": "检查报告详情"
  38944. }
  38945. }, {
  38946. "path": "pages/inspection_new/index",
  38947. "style": {
  38948. "navigationBarTitleText": "检查报告",
  38949. "enablePullDownRefresh": true,
  38950. "onReachBottomDistance": 50
  38951. }
  38952. }, {
  38953. "path": "pages/dialysis/index",
  38954. "style": {
  38955. "navigationBarTitleText": "我的透析"
  38956. }
  38957. }, {
  38958. "path": "pages/shop/index",
  38959. "style": {
  38960. "navigationBarTitleText": "圣卫士商城"
  38961. }
  38962. }, {
  38963. "path": "pages/code/index",
  38964. "style": {
  38965. "navigationBarTitleText": "我的签到"
  38966. }
  38967. }, {
  38968. "path": "pages/noDialysis/index",
  38969. "style": {
  38970. "navigationBarTitleText": "透析签到"
  38971. }
  38972. }, {
  38973. "path": "pages/Patient/List",
  38974. "style": {
  38975. "navigationBarTitleText": "我的就诊人"
  38976. }
  38977. }, {
  38978. "path": "pages/Patient/detail",
  38979. "style": {
  38980. "navigationBarTitleText": "就诊人详情"
  38981. }
  38982. }],
  38983. "globalStyle": {
  38984. "navigationBarTextStyle": "black",
  38985. "navigationBarBackgroundColor": "#F8F8F8",
  38986. "backgroundColor": "#F8F8F8",
  38987. "usingComponents": {
  38988. "van-button": "/wxcomponents/vant/dist/button/index",
  38989. "van-toast": "/wxcomponents/vant/dist/toast/index",
  38990. "van-tab": "/wxcomponents/vant/dist/tab/index",
  38991. "van-tabs": "/wxcomponents/vant/dist/tabs/index",
  38992. "van-grid": "/wxcomponents/vant/dist/grid/index",
  38993. "van-grid-item": "/wxcomponents/vant/dist/grid-item/index",
  38994. "van-radio-group": "/wxcomponents/vant/dist/radio-group/index",
  38995. "van-radio": "/wxcomponents/vant/dist/radio/index",
  38996. "van-datetime-picker": "/wxcomponents/vant/dist/datetime-picker/index",
  38997. "van-checkbox-group": "/wxcomponents/vant/dist/checkbox-group/index",
  38998. "van-checkbox": "/wxcomponents/vant/dist/checkbox/index",
  38999. "van-cell": "/wxcomponents/vant/dist/cell/index",
  39000. "van-cell-group": "/wxcomponents/vant/dist/cell-group/index",
  39001. "van-field": "/wxcomponents/vant/dist/field/index",
  39002. "van-popup": "/wxcomponents/vant/dist/popup/index",
  39003. "van-search": "/wxcomponents/vant/dist/search/index"
  39004. }
  39005. },
  39006. "tabBar": {
  39007. "color": "#a9b7b7",
  39008. "selectedColor": "#11cd6e",
  39009. "borderStyle": "black",
  39010. "list": [{
  39011. "selectedIconPath": "static/images/homeAct.png",
  39012. "iconPath": "static/images/home.png",
  39013. "pagePath": "pages/index/index",
  39014. "text": "首页"
  39015. }, {
  39016. "selectedIconPath": "static/images/infoAct.png",
  39017. "iconPath": "static/images/info.png",
  39018. "pagePath": "pages/message/index",
  39019. "text": "发现"
  39020. }, {
  39021. "selectedIconPath": "static/images/storeAct.png",
  39022. "iconPath": "static/images/store.png",
  39023. "pagePath": "pages/shop/index",
  39024. "text": "商城"
  39025. }, {
  39026. "selectedIconPath": "static/images/meAct.png",
  39027. "iconPath": "static/images/mine.png",
  39028. "pagePath": "pages/my/index",
  39029. "text": "我的"
  39030. }]
  39031. },
  39032. "subPackages": [{
  39033. "root": "subpackagesA",
  39034. "pages": [{
  39035. "path": "pages/advancePay/index",
  39036. "style": {
  39037. "navigationBarTitleText": "预交金查询"
  39038. }
  39039. }, {
  39040. "path": "pages/advancePay/details",
  39041. "style": {
  39042. "navigationBarTitleText": "明细查询"
  39043. }
  39044. }, {
  39045. "path": "pages/PhysicalSigns/index",
  39046. "style": {
  39047. "navigationBarTitleText": "体征报告"
  39048. }
  39049. }, {
  39050. "path": "pages/medicalRecord/index",
  39051. "style": {
  39052. "navigationBarTitleText": "就诊人病历"
  39053. }
  39054. }]
  39055. }]
  39056. };
  39057. exports.default = _default;
  39058. /***/ }),
  39059. /* 481 */
  39060. /*!*****************************************************!*\
  39061. !*** D:/SWS_New/sws_new/pages.json?{"type":"stat"} ***!
  39062. \*****************************************************/
  39063. /*! no static exports found */
  39064. /***/ (function(module, exports, __webpack_require__) {
  39065. "use strict";
  39066. Object.defineProperty(exports, "__esModule", {
  39067. value: true
  39068. });
  39069. exports.default = void 0;
  39070. var _default = {
  39071. "appid": "__UNI__7D5316C"
  39072. };
  39073. exports.default = _default;
  39074. /***/ }),
  39075. /* 482 */,
  39076. /* 483 */,
  39077. /* 484 */,
  39078. /* 485 */,
  39079. /* 486 */,
  39080. /* 487 */,
  39081. /* 488 */,
  39082. /* 489 */,
  39083. /* 490 */,
  39084. /* 491 */,
  39085. /* 492 */,
  39086. /* 493 */,
  39087. /* 494 */,
  39088. /* 495 */,
  39089. /* 496 */,
  39090. /* 497 */,
  39091. /* 498 */,
  39092. /* 499 */,
  39093. /* 500 */,
  39094. /* 501 */,
  39095. /* 502 */,
  39096. /* 503 */,
  39097. /* 504 */,
  39098. /* 505 */,
  39099. /* 506 */,
  39100. /* 507 */,
  39101. /* 508 */,
  39102. /* 509 */,
  39103. /* 510 */,
  39104. /* 511 */,
  39105. /* 512 */,
  39106. /* 513 */,
  39107. /* 514 */,
  39108. /* 515 */,
  39109. /* 516 */,
  39110. /* 517 */,
  39111. /* 518 */,
  39112. /* 519 */,
  39113. /* 520 */,
  39114. /* 521 */
  39115. /*!******************************************************************************!*\
  39116. !*** D:/SWS_New/sws_new/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  39117. \******************************************************************************/
  39118. /*! no static exports found */
  39119. /***/ (function(module, exports, __webpack_require__) {
  39120. "use strict";
  39121. Object.defineProperty(exports, "__esModule", {
  39122. value: true
  39123. });
  39124. exports.default = void 0;
  39125. var _default = {
  39126. "id": "2852637",
  39127. "name": "uniui图标库",
  39128. "font_family": "uniicons",
  39129. "css_prefix_text": "uniui-",
  39130. "description": "",
  39131. "glyphs": [{
  39132. "icon_id": "25027049",
  39133. "name": "yanse",
  39134. "font_class": "color",
  39135. "unicode": "e6cf",
  39136. "unicode_decimal": 59087
  39137. }, {
  39138. "icon_id": "25027048",
  39139. "name": "wallet",
  39140. "font_class": "wallet",
  39141. "unicode": "e6b1",
  39142. "unicode_decimal": 59057
  39143. }, {
  39144. "icon_id": "25015720",
  39145. "name": "settings-filled",
  39146. "font_class": "settings-filled",
  39147. "unicode": "e6ce",
  39148. "unicode_decimal": 59086
  39149. }, {
  39150. "icon_id": "25015434",
  39151. "name": "shimingrenzheng-filled",
  39152. "font_class": "auth-filled",
  39153. "unicode": "e6cc",
  39154. "unicode_decimal": 59084
  39155. }, {
  39156. "icon_id": "24934246",
  39157. "name": "shop-filled",
  39158. "font_class": "shop-filled",
  39159. "unicode": "e6cd",
  39160. "unicode_decimal": 59085
  39161. }, {
  39162. "icon_id": "24934159",
  39163. "name": "staff-filled-01",
  39164. "font_class": "staff-filled",
  39165. "unicode": "e6cb",
  39166. "unicode_decimal": 59083
  39167. }, {
  39168. "icon_id": "24932461",
  39169. "name": "VIP-filled",
  39170. "font_class": "vip-filled",
  39171. "unicode": "e6c6",
  39172. "unicode_decimal": 59078
  39173. }, {
  39174. "icon_id": "24932462",
  39175. "name": "plus_circle_fill",
  39176. "font_class": "plus-filled",
  39177. "unicode": "e6c7",
  39178. "unicode_decimal": 59079
  39179. }, {
  39180. "icon_id": "24932463",
  39181. "name": "folder_add-filled",
  39182. "font_class": "folder-add-filled",
  39183. "unicode": "e6c8",
  39184. "unicode_decimal": 59080
  39185. }, {
  39186. "icon_id": "24932464",
  39187. "name": "yanse-filled",
  39188. "font_class": "color-filled",
  39189. "unicode": "e6c9",
  39190. "unicode_decimal": 59081
  39191. }, {
  39192. "icon_id": "24932465",
  39193. "name": "tune-filled",
  39194. "font_class": "tune-filled",
  39195. "unicode": "e6ca",
  39196. "unicode_decimal": 59082
  39197. }, {
  39198. "icon_id": "24932455",
  39199. "name": "a-rilidaka-filled",
  39200. "font_class": "calendar-filled",
  39201. "unicode": "e6c0",
  39202. "unicode_decimal": 59072
  39203. }, {
  39204. "icon_id": "24932456",
  39205. "name": "notification-filled",
  39206. "font_class": "notification-filled",
  39207. "unicode": "e6c1",
  39208. "unicode_decimal": 59073
  39209. }, {
  39210. "icon_id": "24932457",
  39211. "name": "wallet-filled",
  39212. "font_class": "wallet-filled",
  39213. "unicode": "e6c2",
  39214. "unicode_decimal": 59074
  39215. }, {
  39216. "icon_id": "24932458",
  39217. "name": "paihangbang-filled",
  39218. "font_class": "medal-filled",
  39219. "unicode": "e6c3",
  39220. "unicode_decimal": 59075
  39221. }, {
  39222. "icon_id": "24932459",
  39223. "name": "gift-filled",
  39224. "font_class": "gift-filled",
  39225. "unicode": "e6c4",
  39226. "unicode_decimal": 59076
  39227. }, {
  39228. "icon_id": "24932460",
  39229. "name": "fire-filled",
  39230. "font_class": "fire-filled",
  39231. "unicode": "e6c5",
  39232. "unicode_decimal": 59077
  39233. }, {
  39234. "icon_id": "24928001",
  39235. "name": "refreshempty",
  39236. "font_class": "refreshempty",
  39237. "unicode": "e6bf",
  39238. "unicode_decimal": 59071
  39239. }, {
  39240. "icon_id": "24926853",
  39241. "name": "location-ellipse",
  39242. "font_class": "location-filled",
  39243. "unicode": "e6af",
  39244. "unicode_decimal": 59055
  39245. }, {
  39246. "icon_id": "24926735",
  39247. "name": "person-filled",
  39248. "font_class": "person-filled",
  39249. "unicode": "e69d",
  39250. "unicode_decimal": 59037
  39251. }, {
  39252. "icon_id": "24926703",
  39253. "name": "personadd-filled",
  39254. "font_class": "personadd-filled",
  39255. "unicode": "e698",
  39256. "unicode_decimal": 59032
  39257. }, {
  39258. "icon_id": "24923351",
  39259. "name": "back",
  39260. "font_class": "back",
  39261. "unicode": "e6b9",
  39262. "unicode_decimal": 59065
  39263. }, {
  39264. "icon_id": "24923352",
  39265. "name": "forward",
  39266. "font_class": "forward",
  39267. "unicode": "e6ba",
  39268. "unicode_decimal": 59066
  39269. }, {
  39270. "icon_id": "24923353",
  39271. "name": "arrowthinright",
  39272. "font_class": "arrow-right",
  39273. "unicode": "e6bb",
  39274. "unicode_decimal": 59067
  39275. }, {
  39276. "icon_id": "24923353",
  39277. "name": "arrowthinright",
  39278. "font_class": "arrowthinright",
  39279. "unicode": "e6bb",
  39280. "unicode_decimal": 59067
  39281. }, {
  39282. "icon_id": "24923354",
  39283. "name": "arrowthinleft",
  39284. "font_class": "arrow-left",
  39285. "unicode": "e6bc",
  39286. "unicode_decimal": 59068
  39287. }, {
  39288. "icon_id": "24923354",
  39289. "name": "arrowthinleft",
  39290. "font_class": "arrowthinleft",
  39291. "unicode": "e6bc",
  39292. "unicode_decimal": 59068
  39293. }, {
  39294. "icon_id": "24923355",
  39295. "name": "arrowthinup",
  39296. "font_class": "arrow-up",
  39297. "unicode": "e6bd",
  39298. "unicode_decimal": 59069
  39299. }, {
  39300. "icon_id": "24923355",
  39301. "name": "arrowthinup",
  39302. "font_class": "arrowthinup",
  39303. "unicode": "e6bd",
  39304. "unicode_decimal": 59069
  39305. }, {
  39306. "icon_id": "24923356",
  39307. "name": "arrowthindown",
  39308. "font_class": "arrow-down",
  39309. "unicode": "e6be",
  39310. "unicode_decimal": 59070
  39311. }, {
  39312. "icon_id": "24923356",
  39313. "name": "arrowthindown",
  39314. "font_class": "arrowthindown",
  39315. "unicode": "e6be",
  39316. "unicode_decimal": 59070
  39317. }, {
  39318. "icon_id": "24923349",
  39319. "name": "arrowdown",
  39320. "font_class": "bottom",
  39321. "unicode": "e6b8",
  39322. "unicode_decimal": 59064
  39323. }, {
  39324. "icon_id": "24923349",
  39325. "name": "arrowdown",
  39326. "font_class": "arrowdown",
  39327. "unicode": "e6b8",
  39328. "unicode_decimal": 59064
  39329. }, {
  39330. "icon_id": "24923346",
  39331. "name": "arrowright",
  39332. "font_class": "right",
  39333. "unicode": "e6b5",
  39334. "unicode_decimal": 59061
  39335. }, {
  39336. "icon_id": "24923346",
  39337. "name": "arrowright",
  39338. "font_class": "arrowright",
  39339. "unicode": "e6b5",
  39340. "unicode_decimal": 59061
  39341. }, {
  39342. "icon_id": "24923347",
  39343. "name": "arrowup",
  39344. "font_class": "top",
  39345. "unicode": "e6b6",
  39346. "unicode_decimal": 59062
  39347. }, {
  39348. "icon_id": "24923347",
  39349. "name": "arrowup",
  39350. "font_class": "arrowup",
  39351. "unicode": "e6b6",
  39352. "unicode_decimal": 59062
  39353. }, {
  39354. "icon_id": "24923348",
  39355. "name": "arrowleft",
  39356. "font_class": "left",
  39357. "unicode": "e6b7",
  39358. "unicode_decimal": 59063
  39359. }, {
  39360. "icon_id": "24923348",
  39361. "name": "arrowleft",
  39362. "font_class": "arrowleft",
  39363. "unicode": "e6b7",
  39364. "unicode_decimal": 59063
  39365. }, {
  39366. "icon_id": "24923334",
  39367. "name": "eye",
  39368. "font_class": "eye",
  39369. "unicode": "e651",
  39370. "unicode_decimal": 58961
  39371. }, {
  39372. "icon_id": "24923335",
  39373. "name": "eye-filled",
  39374. "font_class": "eye-filled",
  39375. "unicode": "e66a",
  39376. "unicode_decimal": 58986
  39377. }, {
  39378. "icon_id": "24923336",
  39379. "name": "eye-slash",
  39380. "font_class": "eye-slash",
  39381. "unicode": "e6b3",
  39382. "unicode_decimal": 59059
  39383. }, {
  39384. "icon_id": "24923337",
  39385. "name": "eye-slash-filled",
  39386. "font_class": "eye-slash-filled",
  39387. "unicode": "e6b4",
  39388. "unicode_decimal": 59060
  39389. }, {
  39390. "icon_id": "24923305",
  39391. "name": "info-filled",
  39392. "font_class": "info-filled",
  39393. "unicode": "e649",
  39394. "unicode_decimal": 58953
  39395. }, {
  39396. "icon_id": "24923299",
  39397. "name": "reload-01",
  39398. "font_class": "reload",
  39399. "unicode": "e6b2",
  39400. "unicode_decimal": 59058
  39401. }, {
  39402. "icon_id": "24923195",
  39403. "name": "mic_slash_fill",
  39404. "font_class": "micoff-filled",
  39405. "unicode": "e6b0",
  39406. "unicode_decimal": 59056
  39407. }, {
  39408. "icon_id": "24923165",
  39409. "name": "map-pin-ellipse",
  39410. "font_class": "map-pin-ellipse",
  39411. "unicode": "e6ac",
  39412. "unicode_decimal": 59052
  39413. }, {
  39414. "icon_id": "24923166",
  39415. "name": "map-pin",
  39416. "font_class": "map-pin",
  39417. "unicode": "e6ad",
  39418. "unicode_decimal": 59053
  39419. }, {
  39420. "icon_id": "24923167",
  39421. "name": "location",
  39422. "font_class": "location",
  39423. "unicode": "e6ae",
  39424. "unicode_decimal": 59054
  39425. }, {
  39426. "icon_id": "24923064",
  39427. "name": "starhalf",
  39428. "font_class": "starhalf",
  39429. "unicode": "e683",
  39430. "unicode_decimal": 59011
  39431. }, {
  39432. "icon_id": "24923065",
  39433. "name": "star",
  39434. "font_class": "star",
  39435. "unicode": "e688",
  39436. "unicode_decimal": 59016
  39437. }, {
  39438. "icon_id": "24923066",
  39439. "name": "star-filled",
  39440. "font_class": "star-filled",
  39441. "unicode": "e68f",
  39442. "unicode_decimal": 59023
  39443. }, {
  39444. "icon_id": "24899646",
  39445. "name": "a-rilidaka",
  39446. "font_class": "calendar",
  39447. "unicode": "e6a0",
  39448. "unicode_decimal": 59040
  39449. }, {
  39450. "icon_id": "24899647",
  39451. "name": "fire",
  39452. "font_class": "fire",
  39453. "unicode": "e6a1",
  39454. "unicode_decimal": 59041
  39455. }, {
  39456. "icon_id": "24899648",
  39457. "name": "paihangbang",
  39458. "font_class": "medal",
  39459. "unicode": "e6a2",
  39460. "unicode_decimal": 59042
  39461. }, {
  39462. "icon_id": "24899649",
  39463. "name": "font",
  39464. "font_class": "font",
  39465. "unicode": "e6a3",
  39466. "unicode_decimal": 59043
  39467. }, {
  39468. "icon_id": "24899650",
  39469. "name": "gift",
  39470. "font_class": "gift",
  39471. "unicode": "e6a4",
  39472. "unicode_decimal": 59044
  39473. }, {
  39474. "icon_id": "24899651",
  39475. "name": "link",
  39476. "font_class": "link",
  39477. "unicode": "e6a5",
  39478. "unicode_decimal": 59045
  39479. }, {
  39480. "icon_id": "24899652",
  39481. "name": "notification",
  39482. "font_class": "notification",
  39483. "unicode": "e6a6",
  39484. "unicode_decimal": 59046
  39485. }, {
  39486. "icon_id": "24899653",
  39487. "name": "staff",
  39488. "font_class": "staff",
  39489. "unicode": "e6a7",
  39490. "unicode_decimal": 59047
  39491. }, {
  39492. "icon_id": "24899654",
  39493. "name": "VIP",
  39494. "font_class": "vip",
  39495. "unicode": "e6a8",
  39496. "unicode_decimal": 59048
  39497. }, {
  39498. "icon_id": "24899655",
  39499. "name": "folder_add",
  39500. "font_class": "folder-add",
  39501. "unicode": "e6a9",
  39502. "unicode_decimal": 59049
  39503. }, {
  39504. "icon_id": "24899656",
  39505. "name": "tune",
  39506. "font_class": "tune",
  39507. "unicode": "e6aa",
  39508. "unicode_decimal": 59050
  39509. }, {
  39510. "icon_id": "24899657",
  39511. "name": "shimingrenzheng",
  39512. "font_class": "auth",
  39513. "unicode": "e6ab",
  39514. "unicode_decimal": 59051
  39515. }, {
  39516. "icon_id": "24899565",
  39517. "name": "person",
  39518. "font_class": "person",
  39519. "unicode": "e699",
  39520. "unicode_decimal": 59033
  39521. }, {
  39522. "icon_id": "24899566",
  39523. "name": "email-filled",
  39524. "font_class": "email-filled",
  39525. "unicode": "e69a",
  39526. "unicode_decimal": 59034
  39527. }, {
  39528. "icon_id": "24899567",
  39529. "name": "phone-filled",
  39530. "font_class": "phone-filled",
  39531. "unicode": "e69b",
  39532. "unicode_decimal": 59035
  39533. }, {
  39534. "icon_id": "24899568",
  39535. "name": "phone",
  39536. "font_class": "phone",
  39537. "unicode": "e69c",
  39538. "unicode_decimal": 59036
  39539. }, {
  39540. "icon_id": "24899570",
  39541. "name": "email",
  39542. "font_class": "email",
  39543. "unicode": "e69e",
  39544. "unicode_decimal": 59038
  39545. }, {
  39546. "icon_id": "24899571",
  39547. "name": "personadd",
  39548. "font_class": "personadd",
  39549. "unicode": "e69f",
  39550. "unicode_decimal": 59039
  39551. }, {
  39552. "icon_id": "24899558",
  39553. "name": "chatboxes-filled",
  39554. "font_class": "chatboxes-filled",
  39555. "unicode": "e692",
  39556. "unicode_decimal": 59026
  39557. }, {
  39558. "icon_id": "24899559",
  39559. "name": "contact",
  39560. "font_class": "contact",
  39561. "unicode": "e693",
  39562. "unicode_decimal": 59027
  39563. }, {
  39564. "icon_id": "24899560",
  39565. "name": "chatbubble-filled",
  39566. "font_class": "chatbubble-filled",
  39567. "unicode": "e694",
  39568. "unicode_decimal": 59028
  39569. }, {
  39570. "icon_id": "24899561",
  39571. "name": "contact-filled",
  39572. "font_class": "contact-filled",
  39573. "unicode": "e695",
  39574. "unicode_decimal": 59029
  39575. }, {
  39576. "icon_id": "24899562",
  39577. "name": "chatboxes",
  39578. "font_class": "chatboxes",
  39579. "unicode": "e696",
  39580. "unicode_decimal": 59030
  39581. }, {
  39582. "icon_id": "24899563",
  39583. "name": "chatbubble",
  39584. "font_class": "chatbubble",
  39585. "unicode": "e697",
  39586. "unicode_decimal": 59031
  39587. }, {
  39588. "icon_id": "24881290",
  39589. "name": "upload-filled",
  39590. "font_class": "upload-filled",
  39591. "unicode": "e68e",
  39592. "unicode_decimal": 59022
  39593. }, {
  39594. "icon_id": "24881292",
  39595. "name": "upload",
  39596. "font_class": "upload",
  39597. "unicode": "e690",
  39598. "unicode_decimal": 59024
  39599. }, {
  39600. "icon_id": "24881293",
  39601. "name": "weixin",
  39602. "font_class": "weixin",
  39603. "unicode": "e691",
  39604. "unicode_decimal": 59025
  39605. }, {
  39606. "icon_id": "24881274",
  39607. "name": "compose",
  39608. "font_class": "compose",
  39609. "unicode": "e67f",
  39610. "unicode_decimal": 59007
  39611. }, {
  39612. "icon_id": "24881275",
  39613. "name": "qq",
  39614. "font_class": "qq",
  39615. "unicode": "e680",
  39616. "unicode_decimal": 59008
  39617. }, {
  39618. "icon_id": "24881276",
  39619. "name": "download-filled",
  39620. "font_class": "download-filled",
  39621. "unicode": "e681",
  39622. "unicode_decimal": 59009
  39623. }, {
  39624. "icon_id": "24881277",
  39625. "name": "pengyouquan",
  39626. "font_class": "pyq",
  39627. "unicode": "e682",
  39628. "unicode_decimal": 59010
  39629. }, {
  39630. "icon_id": "24881279",
  39631. "name": "sound",
  39632. "font_class": "sound",
  39633. "unicode": "e684",
  39634. "unicode_decimal": 59012
  39635. }, {
  39636. "icon_id": "24881280",
  39637. "name": "trash-filled",
  39638. "font_class": "trash-filled",
  39639. "unicode": "e685",
  39640. "unicode_decimal": 59013
  39641. }, {
  39642. "icon_id": "24881281",
  39643. "name": "sound-filled",
  39644. "font_class": "sound-filled",
  39645. "unicode": "e686",
  39646. "unicode_decimal": 59014
  39647. }, {
  39648. "icon_id": "24881282",
  39649. "name": "trash",
  39650. "font_class": "trash",
  39651. "unicode": "e687",
  39652. "unicode_decimal": 59015
  39653. }, {
  39654. "icon_id": "24881284",
  39655. "name": "videocam-filled",
  39656. "font_class": "videocam-filled",
  39657. "unicode": "e689",
  39658. "unicode_decimal": 59017
  39659. }, {
  39660. "icon_id": "24881285",
  39661. "name": "spinner-cycle",
  39662. "font_class": "spinner-cycle",
  39663. "unicode": "e68a",
  39664. "unicode_decimal": 59018
  39665. }, {
  39666. "icon_id": "24881286",
  39667. "name": "weibo",
  39668. "font_class": "weibo",
  39669. "unicode": "e68b",
  39670. "unicode_decimal": 59019
  39671. }, {
  39672. "icon_id": "24881288",
  39673. "name": "videocam",
  39674. "font_class": "videocam",
  39675. "unicode": "e68c",
  39676. "unicode_decimal": 59020
  39677. }, {
  39678. "icon_id": "24881289",
  39679. "name": "download",
  39680. "font_class": "download",
  39681. "unicode": "e68d",
  39682. "unicode_decimal": 59021
  39683. }, {
  39684. "icon_id": "24879601",
  39685. "name": "help",
  39686. "font_class": "help",
  39687. "unicode": "e679",
  39688. "unicode_decimal": 59001
  39689. }, {
  39690. "icon_id": "24879602",
  39691. "name": "navigate-filled",
  39692. "font_class": "navigate-filled",
  39693. "unicode": "e67a",
  39694. "unicode_decimal": 59002
  39695. }, {
  39696. "icon_id": "24879603",
  39697. "name": "plusempty",
  39698. "font_class": "plusempty",
  39699. "unicode": "e67b",
  39700. "unicode_decimal": 59003
  39701. }, {
  39702. "icon_id": "24879604",
  39703. "name": "smallcircle",
  39704. "font_class": "smallcircle",
  39705. "unicode": "e67c",
  39706. "unicode_decimal": 59004
  39707. }, {
  39708. "icon_id": "24879605",
  39709. "name": "minus-filled",
  39710. "font_class": "minus-filled",
  39711. "unicode": "e67d",
  39712. "unicode_decimal": 59005
  39713. }, {
  39714. "icon_id": "24879606",
  39715. "name": "micoff",
  39716. "font_class": "micoff",
  39717. "unicode": "e67e",
  39718. "unicode_decimal": 59006
  39719. }, {
  39720. "icon_id": "24879588",
  39721. "name": "closeempty",
  39722. "font_class": "closeempty",
  39723. "unicode": "e66c",
  39724. "unicode_decimal": 58988
  39725. }, {
  39726. "icon_id": "24879589",
  39727. "name": "clear",
  39728. "font_class": "clear",
  39729. "unicode": "e66d",
  39730. "unicode_decimal": 58989
  39731. }, {
  39732. "icon_id": "24879590",
  39733. "name": "navigate",
  39734. "font_class": "navigate",
  39735. "unicode": "e66e",
  39736. "unicode_decimal": 58990
  39737. }, {
  39738. "icon_id": "24879591",
  39739. "name": "minus",
  39740. "font_class": "minus",
  39741. "unicode": "e66f",
  39742. "unicode_decimal": 58991
  39743. }, {
  39744. "icon_id": "24879592",
  39745. "name": "image",
  39746. "font_class": "image",
  39747. "unicode": "e670",
  39748. "unicode_decimal": 58992
  39749. }, {
  39750. "icon_id": "24879593",
  39751. "name": "mic",
  39752. "font_class": "mic",
  39753. "unicode": "e671",
  39754. "unicode_decimal": 58993
  39755. }, {
  39756. "icon_id": "24879594",
  39757. "name": "paperplane",
  39758. "font_class": "paperplane",
  39759. "unicode": "e672",
  39760. "unicode_decimal": 58994
  39761. }, {
  39762. "icon_id": "24879595",
  39763. "name": "close",
  39764. "font_class": "close",
  39765. "unicode": "e673",
  39766. "unicode_decimal": 58995
  39767. }, {
  39768. "icon_id": "24879596",
  39769. "name": "help-filled",
  39770. "font_class": "help-filled",
  39771. "unicode": "e674",
  39772. "unicode_decimal": 58996
  39773. }, {
  39774. "icon_id": "24879597",
  39775. "name": "plus-filled",
  39776. "font_class": "paperplane-filled",
  39777. "unicode": "e675",
  39778. "unicode_decimal": 58997
  39779. }, {
  39780. "icon_id": "24879598",
  39781. "name": "plus",
  39782. "font_class": "plus",
  39783. "unicode": "e676",
  39784. "unicode_decimal": 58998
  39785. }, {
  39786. "icon_id": "24879599",
  39787. "name": "mic-filled",
  39788. "font_class": "mic-filled",
  39789. "unicode": "e677",
  39790. "unicode_decimal": 58999
  39791. }, {
  39792. "icon_id": "24879600",
  39793. "name": "image-filled",
  39794. "font_class": "image-filled",
  39795. "unicode": "e678",
  39796. "unicode_decimal": 59000
  39797. }, {
  39798. "icon_id": "24855900",
  39799. "name": "locked-filled",
  39800. "font_class": "locked-filled",
  39801. "unicode": "e668",
  39802. "unicode_decimal": 58984
  39803. }, {
  39804. "icon_id": "24855901",
  39805. "name": "info",
  39806. "font_class": "info",
  39807. "unicode": "e669",
  39808. "unicode_decimal": 58985
  39809. }, {
  39810. "icon_id": "24855903",
  39811. "name": "locked",
  39812. "font_class": "locked",
  39813. "unicode": "e66b",
  39814. "unicode_decimal": 58987
  39815. }, {
  39816. "icon_id": "24855884",
  39817. "name": "camera-filled",
  39818. "font_class": "camera-filled",
  39819. "unicode": "e658",
  39820. "unicode_decimal": 58968
  39821. }, {
  39822. "icon_id": "24855885",
  39823. "name": "chat-filled",
  39824. "font_class": "chat-filled",
  39825. "unicode": "e659",
  39826. "unicode_decimal": 58969
  39827. }, {
  39828. "icon_id": "24855886",
  39829. "name": "camera",
  39830. "font_class": "camera",
  39831. "unicode": "e65a",
  39832. "unicode_decimal": 58970
  39833. }, {
  39834. "icon_id": "24855887",
  39835. "name": "circle",
  39836. "font_class": "circle",
  39837. "unicode": "e65b",
  39838. "unicode_decimal": 58971
  39839. }, {
  39840. "icon_id": "24855888",
  39841. "name": "checkmarkempty",
  39842. "font_class": "checkmarkempty",
  39843. "unicode": "e65c",
  39844. "unicode_decimal": 58972
  39845. }, {
  39846. "icon_id": "24855889",
  39847. "name": "chat",
  39848. "font_class": "chat",
  39849. "unicode": "e65d",
  39850. "unicode_decimal": 58973
  39851. }, {
  39852. "icon_id": "24855890",
  39853. "name": "circle-filled",
  39854. "font_class": "circle-filled",
  39855. "unicode": "e65e",
  39856. "unicode_decimal": 58974
  39857. }, {
  39858. "icon_id": "24855891",
  39859. "name": "flag",
  39860. "font_class": "flag",
  39861. "unicode": "e65f",
  39862. "unicode_decimal": 58975
  39863. }, {
  39864. "icon_id": "24855892",
  39865. "name": "flag-filled",
  39866. "font_class": "flag-filled",
  39867. "unicode": "e660",
  39868. "unicode_decimal": 58976
  39869. }, {
  39870. "icon_id": "24855893",
  39871. "name": "gear-filled",
  39872. "font_class": "gear-filled",
  39873. "unicode": "e661",
  39874. "unicode_decimal": 58977
  39875. }, {
  39876. "icon_id": "24855894",
  39877. "name": "home",
  39878. "font_class": "home",
  39879. "unicode": "e662",
  39880. "unicode_decimal": 58978
  39881. }, {
  39882. "icon_id": "24855895",
  39883. "name": "home-filled",
  39884. "font_class": "home-filled",
  39885. "unicode": "e663",
  39886. "unicode_decimal": 58979
  39887. }, {
  39888. "icon_id": "24855896",
  39889. "name": "gear",
  39890. "font_class": "gear",
  39891. "unicode": "e664",
  39892. "unicode_decimal": 58980
  39893. }, {
  39894. "icon_id": "24855897",
  39895. "name": "smallcircle-filled",
  39896. "font_class": "smallcircle-filled",
  39897. "unicode": "e665",
  39898. "unicode_decimal": 58981
  39899. }, {
  39900. "icon_id": "24855898",
  39901. "name": "map-filled",
  39902. "font_class": "map-filled",
  39903. "unicode": "e666",
  39904. "unicode_decimal": 58982
  39905. }, {
  39906. "icon_id": "24855899",
  39907. "name": "map",
  39908. "font_class": "map",
  39909. "unicode": "e667",
  39910. "unicode_decimal": 58983
  39911. }, {
  39912. "icon_id": "24855825",
  39913. "name": "refresh-filled",
  39914. "font_class": "refresh-filled",
  39915. "unicode": "e656",
  39916. "unicode_decimal": 58966
  39917. }, {
  39918. "icon_id": "24855826",
  39919. "name": "refresh",
  39920. "font_class": "refresh",
  39921. "unicode": "e657",
  39922. "unicode_decimal": 58967
  39923. }, {
  39924. "icon_id": "24855808",
  39925. "name": "cloud-upload",
  39926. "font_class": "cloud-upload",
  39927. "unicode": "e645",
  39928. "unicode_decimal": 58949
  39929. }, {
  39930. "icon_id": "24855809",
  39931. "name": "cloud-download-filled",
  39932. "font_class": "cloud-download-filled",
  39933. "unicode": "e646",
  39934. "unicode_decimal": 58950
  39935. }, {
  39936. "icon_id": "24855810",
  39937. "name": "cloud-download",
  39938. "font_class": "cloud-download",
  39939. "unicode": "e647",
  39940. "unicode_decimal": 58951
  39941. }, {
  39942. "icon_id": "24855811",
  39943. "name": "cloud-upload-filled",
  39944. "font_class": "cloud-upload-filled",
  39945. "unicode": "e648",
  39946. "unicode_decimal": 58952
  39947. }, {
  39948. "icon_id": "24855813",
  39949. "name": "redo",
  39950. "font_class": "redo",
  39951. "unicode": "e64a",
  39952. "unicode_decimal": 58954
  39953. }, {
  39954. "icon_id": "24855814",
  39955. "name": "images-filled",
  39956. "font_class": "images-filled",
  39957. "unicode": "e64b",
  39958. "unicode_decimal": 58955
  39959. }, {
  39960. "icon_id": "24855815",
  39961. "name": "undo-filled",
  39962. "font_class": "undo-filled",
  39963. "unicode": "e64c",
  39964. "unicode_decimal": 58956
  39965. }, {
  39966. "icon_id": "24855816",
  39967. "name": "more",
  39968. "font_class": "more",
  39969. "unicode": "e64d",
  39970. "unicode_decimal": 58957
  39971. }, {
  39972. "icon_id": "24855817",
  39973. "name": "more-filled",
  39974. "font_class": "more-filled",
  39975. "unicode": "e64e",
  39976. "unicode_decimal": 58958
  39977. }, {
  39978. "icon_id": "24855818",
  39979. "name": "undo",
  39980. "font_class": "undo",
  39981. "unicode": "e64f",
  39982. "unicode_decimal": 58959
  39983. }, {
  39984. "icon_id": "24855819",
  39985. "name": "images",
  39986. "font_class": "images",
  39987. "unicode": "e650",
  39988. "unicode_decimal": 58960
  39989. }, {
  39990. "icon_id": "24855821",
  39991. "name": "paperclip",
  39992. "font_class": "paperclip",
  39993. "unicode": "e652",
  39994. "unicode_decimal": 58962
  39995. }, {
  39996. "icon_id": "24855822",
  39997. "name": "settings",
  39998. "font_class": "settings",
  39999. "unicode": "e653",
  40000. "unicode_decimal": 58963
  40001. }, {
  40002. "icon_id": "24855823",
  40003. "name": "search",
  40004. "font_class": "search",
  40005. "unicode": "e654",
  40006. "unicode_decimal": 58964
  40007. }, {
  40008. "icon_id": "24855824",
  40009. "name": "redo-filled",
  40010. "font_class": "redo-filled",
  40011. "unicode": "e655",
  40012. "unicode_decimal": 58965
  40013. }, {
  40014. "icon_id": "24841702",
  40015. "name": "list",
  40016. "font_class": "list",
  40017. "unicode": "e644",
  40018. "unicode_decimal": 58948
  40019. }, {
  40020. "icon_id": "24841489",
  40021. "name": "mail-open-filled",
  40022. "font_class": "mail-open-filled",
  40023. "unicode": "e63a",
  40024. "unicode_decimal": 58938
  40025. }, {
  40026. "icon_id": "24841491",
  40027. "name": "hand-thumbsdown-filled",
  40028. "font_class": "hand-down-filled",
  40029. "unicode": "e63c",
  40030. "unicode_decimal": 58940
  40031. }, {
  40032. "icon_id": "24841492",
  40033. "name": "hand-thumbsdown",
  40034. "font_class": "hand-down",
  40035. "unicode": "e63d",
  40036. "unicode_decimal": 58941
  40037. }, {
  40038. "icon_id": "24841493",
  40039. "name": "hand-thumbsup-filled",
  40040. "font_class": "hand-up-filled",
  40041. "unicode": "e63e",
  40042. "unicode_decimal": 58942
  40043. }, {
  40044. "icon_id": "24841494",
  40045. "name": "hand-thumbsup",
  40046. "font_class": "hand-up",
  40047. "unicode": "e63f",
  40048. "unicode_decimal": 58943
  40049. }, {
  40050. "icon_id": "24841496",
  40051. "name": "heart-filled",
  40052. "font_class": "heart-filled",
  40053. "unicode": "e641",
  40054. "unicode_decimal": 58945
  40055. }, {
  40056. "icon_id": "24841498",
  40057. "name": "mail-open",
  40058. "font_class": "mail-open",
  40059. "unicode": "e643",
  40060. "unicode_decimal": 58947
  40061. }, {
  40062. "icon_id": "24841488",
  40063. "name": "heart",
  40064. "font_class": "heart",
  40065. "unicode": "e639",
  40066. "unicode_decimal": 58937
  40067. }, {
  40068. "icon_id": "24839963",
  40069. "name": "loop",
  40070. "font_class": "loop",
  40071. "unicode": "e633",
  40072. "unicode_decimal": 58931
  40073. }, {
  40074. "icon_id": "24839866",
  40075. "name": "pulldown",
  40076. "font_class": "pulldown",
  40077. "unicode": "e632",
  40078. "unicode_decimal": 58930
  40079. }, {
  40080. "icon_id": "24813798",
  40081. "name": "scan",
  40082. "font_class": "scan",
  40083. "unicode": "e62a",
  40084. "unicode_decimal": 58922
  40085. }, {
  40086. "icon_id": "24813786",
  40087. "name": "bars",
  40088. "font_class": "bars",
  40089. "unicode": "e627",
  40090. "unicode_decimal": 58919
  40091. }, {
  40092. "icon_id": "24813788",
  40093. "name": "cart-filled",
  40094. "font_class": "cart-filled",
  40095. "unicode": "e629",
  40096. "unicode_decimal": 58921
  40097. }, {
  40098. "icon_id": "24813790",
  40099. "name": "checkbox",
  40100. "font_class": "checkbox",
  40101. "unicode": "e62b",
  40102. "unicode_decimal": 58923
  40103. }, {
  40104. "icon_id": "24813791",
  40105. "name": "checkbox-filled",
  40106. "font_class": "checkbox-filled",
  40107. "unicode": "e62c",
  40108. "unicode_decimal": 58924
  40109. }, {
  40110. "icon_id": "24813794",
  40111. "name": "shop",
  40112. "font_class": "shop",
  40113. "unicode": "e62f",
  40114. "unicode_decimal": 58927
  40115. }, {
  40116. "icon_id": "24813795",
  40117. "name": "headphones",
  40118. "font_class": "headphones",
  40119. "unicode": "e630",
  40120. "unicode_decimal": 58928
  40121. }, {
  40122. "icon_id": "24813796",
  40123. "name": "cart",
  40124. "font_class": "cart",
  40125. "unicode": "e631",
  40126. "unicode_decimal": 58929
  40127. }]
  40128. };
  40129. exports.default = _default;
  40130. /***/ }),
  40131. /* 522 */,
  40132. /* 523 */,
  40133. /* 524 */,
  40134. /* 525 */,
  40135. /* 526 */,
  40136. /* 527 */,
  40137. /* 528 */,
  40138. /* 529 */
  40139. /*!*************************************************************************************************!*\
  40140. !*** D:/SWS_New/sws_new/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js ***!
  40141. \*************************************************************************************************/
  40142. /*! no static exports found */
  40143. /***/ (function(module, exports, __webpack_require__) {
  40144. "use strict";
  40145. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  40146. Object.defineProperty(exports, "__esModule", {
  40147. value: true
  40148. });
  40149. exports.default = void 0;
  40150. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  40151. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  40152. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  40153. var Calendar = /*#__PURE__*/function () {
  40154. function Calendar() {
  40155. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  40156. date = _ref.date,
  40157. selected = _ref.selected,
  40158. startDate = _ref.startDate,
  40159. endDate = _ref.endDate,
  40160. range = _ref.range;
  40161. (0, _classCallCheck2.default)(this, Calendar);
  40162. // 当前日期
  40163. this.date = this.getDate(new Date()); // 当前初入日期
  40164. // 打点信息
  40165. this.selected = selected || [];
  40166. // 范围开始
  40167. this.startDate = startDate;
  40168. // 范围结束
  40169. this.endDate = endDate;
  40170. this.range = range;
  40171. // 多选状态
  40172. this.cleanMultipleStatus();
  40173. // 每周日期
  40174. this.weeks = {};
  40175. // this._getWeek(this.date.fullDate)
  40176. // this.multipleStatus = multipleStatus
  40177. this.lastHover = false;
  40178. }
  40179. /**
  40180. * 设置日期
  40181. * @param {Object} date
  40182. */
  40183. (0, _createClass2.default)(Calendar, [{
  40184. key: "setDate",
  40185. value: function setDate(date) {
  40186. this.selectDate = this.getDate(date);
  40187. this._getWeek(this.selectDate.fullDate);
  40188. }
  40189. /**
  40190. * 清理多选状态
  40191. */
  40192. }, {
  40193. key: "cleanMultipleStatus",
  40194. value: function cleanMultipleStatus() {
  40195. this.multipleStatus = {
  40196. before: '',
  40197. after: '',
  40198. data: []
  40199. };
  40200. }
  40201. /**
  40202. * 重置开始日期
  40203. */
  40204. }, {
  40205. key: "resetSatrtDate",
  40206. value: function resetSatrtDate(startDate) {
  40207. // 范围开始
  40208. this.startDate = startDate;
  40209. }
  40210. /**
  40211. * 重置结束日期
  40212. */
  40213. }, {
  40214. key: "resetEndDate",
  40215. value: function resetEndDate(endDate) {
  40216. // 范围结束
  40217. this.endDate = endDate;
  40218. }
  40219. /**
  40220. * 获取任意时间
  40221. */
  40222. }, {
  40223. key: "getDate",
  40224. value: function getDate(date) {
  40225. var AddDayCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  40226. var str = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
  40227. if (!date) {
  40228. date = new Date();
  40229. }
  40230. if ((0, _typeof2.default)(date) !== 'object') {
  40231. date = date.replace(/-/g, '/');
  40232. }
  40233. var dd = new Date(date);
  40234. switch (str) {
  40235. case 'day':
  40236. dd.setDate(dd.getDate() + AddDayCount); // 获取AddDayCount天后的日期
  40237. break;
  40238. case 'month':
  40239. if (dd.getDate() === 31) {
  40240. dd.setDate(dd.getDate() + AddDayCount);
  40241. } else {
  40242. dd.setMonth(dd.getMonth() + AddDayCount); // 获取AddDayCount天后的日期
  40243. }
  40244. break;
  40245. case 'year':
  40246. dd.setFullYear(dd.getFullYear() + AddDayCount); // 获取AddDayCount天后的日期
  40247. break;
  40248. }
  40249. var y = dd.getFullYear();
  40250. var m = dd.getMonth() + 1 < 10 ? '0' + (dd.getMonth() + 1) : dd.getMonth() + 1; // 获取当前月份的日期,不足10补0
  40251. var d = dd.getDate() < 10 ? '0' + dd.getDate() : dd.getDate(); // 获取当前几号,不足10补0
  40252. return {
  40253. fullDate: y + '-' + m + '-' + d,
  40254. year: y,
  40255. month: m,
  40256. date: d,
  40257. day: dd.getDay()
  40258. };
  40259. }
  40260. /**
  40261. * 获取上月剩余天数
  40262. */
  40263. }, {
  40264. key: "_getLastMonthDays",
  40265. value: function _getLastMonthDays(firstDay, full) {
  40266. var dateArr = [];
  40267. for (var i = firstDay; i > 0; i--) {
  40268. var beforeDate = new Date(full.year, full.month - 1, -i + 1).getDate();
  40269. dateArr.push({
  40270. date: beforeDate,
  40271. month: full.month - 1,
  40272. disable: true
  40273. });
  40274. }
  40275. return dateArr;
  40276. }
  40277. /**
  40278. * 获取本月天数
  40279. */
  40280. }, {
  40281. key: "_currentMonthDys",
  40282. value: function _currentMonthDys(dateData, full) {
  40283. var _this = this;
  40284. var dateArr = [];
  40285. var fullDate = this.date.fullDate;
  40286. var _loop = function _loop(i) {
  40287. var isinfo = false;
  40288. var nowDate = full.year + '-' + (full.month < 10 ? full.month : full.month) + '-' + (i < 10 ? '0' + i : i);
  40289. // 是否今天
  40290. var isDay = fullDate === nowDate;
  40291. // 获取打点信息
  40292. var info = _this.selected && _this.selected.find(function (item) {
  40293. if (_this.dateEqual(nowDate, item.date)) {
  40294. return item;
  40295. }
  40296. });
  40297. // 日期禁用
  40298. var disableBefore = true;
  40299. var disableAfter = true;
  40300. if (_this.startDate) {
  40301. // let dateCompBefore = this.dateCompare(this.startDate, fullDate)
  40302. // disableBefore = this.dateCompare(dateCompBefore ? this.startDate : fullDate, nowDate)
  40303. disableBefore = _this.dateCompare(_this.startDate, nowDate);
  40304. }
  40305. if (_this.endDate) {
  40306. // let dateCompAfter = this.dateCompare(fullDate, this.endDate)
  40307. // disableAfter = this.dateCompare(nowDate, dateCompAfter ? this.endDate : fullDate)
  40308. disableAfter = _this.dateCompare(nowDate, _this.endDate);
  40309. }
  40310. var multiples = _this.multipleStatus.data;
  40311. var checked = false;
  40312. var multiplesStatus = -1;
  40313. if (_this.range) {
  40314. if (multiples) {
  40315. multiplesStatus = multiples.findIndex(function (item) {
  40316. return _this.dateEqual(item, nowDate);
  40317. });
  40318. }
  40319. if (multiplesStatus !== -1) {
  40320. checked = true;
  40321. }
  40322. }
  40323. var data = {
  40324. fullDate: nowDate,
  40325. year: full.year,
  40326. date: i,
  40327. multiple: _this.range ? checked : false,
  40328. beforeMultiple: _this.isLogicBefore(nowDate, _this.multipleStatus.before, _this.multipleStatus.after),
  40329. afterMultiple: _this.isLogicAfter(nowDate, _this.multipleStatus.before, _this.multipleStatus.after),
  40330. month: full.month,
  40331. disable: !(disableBefore && disableAfter),
  40332. isDay: isDay,
  40333. userChecked: false
  40334. };
  40335. if (info) {
  40336. data.extraInfo = info;
  40337. }
  40338. dateArr.push(data);
  40339. };
  40340. for (var i = 1; i <= dateData; i++) {
  40341. _loop(i);
  40342. }
  40343. return dateArr;
  40344. }
  40345. /**
  40346. * 获取下月天数
  40347. */
  40348. }, {
  40349. key: "_getNextMonthDays",
  40350. value: function _getNextMonthDays(surplus, full) {
  40351. var dateArr = [];
  40352. for (var i = 1; i < surplus + 1; i++) {
  40353. dateArr.push({
  40354. date: i,
  40355. month: Number(full.month) + 1,
  40356. disable: true
  40357. });
  40358. }
  40359. return dateArr;
  40360. }
  40361. /**
  40362. * 获取当前日期详情
  40363. * @param {Object} date
  40364. */
  40365. }, {
  40366. key: "getInfo",
  40367. value: function getInfo(date) {
  40368. var _this2 = this;
  40369. if (!date) {
  40370. date = new Date();
  40371. }
  40372. var dateInfo = this.canlender.find(function (item) {
  40373. return item.fullDate === _this2.getDate(date).fullDate;
  40374. });
  40375. return dateInfo;
  40376. }
  40377. /**
  40378. * 比较时间大小
  40379. */
  40380. }, {
  40381. key: "dateCompare",
  40382. value: function dateCompare(startDate, endDate) {
  40383. // 计算截止时间
  40384. startDate = new Date(startDate.replace('-', '/').replace('-', '/'));
  40385. // 计算详细项的截止时间
  40386. endDate = new Date(endDate.replace('-', '/').replace('-', '/'));
  40387. if (startDate <= endDate) {
  40388. return true;
  40389. } else {
  40390. return false;
  40391. }
  40392. }
  40393. /**
  40394. * 比较时间是否相等
  40395. */
  40396. }, {
  40397. key: "dateEqual",
  40398. value: function dateEqual(before, after) {
  40399. // 计算截止时间
  40400. before = new Date(before.replace('-', '/').replace('-', '/'));
  40401. // 计算详细项的截止时间
  40402. after = new Date(after.replace('-', '/').replace('-', '/'));
  40403. if (before.getTime() - after.getTime() === 0) {
  40404. return true;
  40405. } else {
  40406. return false;
  40407. }
  40408. }
  40409. /**
  40410. * 比较真实起始日期
  40411. */
  40412. }, {
  40413. key: "isLogicBefore",
  40414. value: function isLogicBefore(currentDay, before, after) {
  40415. var logicBefore = before;
  40416. if (before && after) {
  40417. logicBefore = this.dateCompare(before, after) ? before : after;
  40418. }
  40419. return this.dateEqual(logicBefore, currentDay);
  40420. }
  40421. }, {
  40422. key: "isLogicAfter",
  40423. value: function isLogicAfter(currentDay, before, after) {
  40424. var logicAfter = after;
  40425. if (before && after) {
  40426. logicAfter = this.dateCompare(before, after) ? after : before;
  40427. }
  40428. return this.dateEqual(logicAfter, currentDay);
  40429. }
  40430. /**
  40431. * 获取日期范围内所有日期
  40432. * @param {Object} begin
  40433. * @param {Object} end
  40434. */
  40435. }, {
  40436. key: "geDateAll",
  40437. value: function geDateAll(begin, end) {
  40438. var arr = [];
  40439. var ab = begin.split('-');
  40440. var ae = end.split('-');
  40441. var db = new Date();
  40442. db.setFullYear(ab[0], ab[1] - 1, ab[2]);
  40443. var de = new Date();
  40444. de.setFullYear(ae[0], ae[1] - 1, ae[2]);
  40445. var unixDb = db.getTime() - 24 * 60 * 60 * 1000;
  40446. var unixDe = de.getTime() - 24 * 60 * 60 * 1000;
  40447. for (var k = unixDb; k <= unixDe;) {
  40448. k = k + 24 * 60 * 60 * 1000;
  40449. arr.push(this.getDate(new Date(parseInt(k))).fullDate);
  40450. }
  40451. return arr;
  40452. }
  40453. /**
  40454. * 获取多选状态
  40455. */
  40456. }, {
  40457. key: "setMultiple",
  40458. value: function setMultiple(fullDate) {
  40459. var _this$multipleStatus = this.multipleStatus,
  40460. before = _this$multipleStatus.before,
  40461. after = _this$multipleStatus.after;
  40462. if (!this.range) return;
  40463. if (before && after) {
  40464. if (!this.lastHover) {
  40465. this.lastHover = true;
  40466. return;
  40467. }
  40468. this.multipleStatus.before = fullDate;
  40469. this.multipleStatus.after = '';
  40470. this.multipleStatus.data = [];
  40471. this.multipleStatus.fulldate = '';
  40472. this.lastHover = false;
  40473. } else {
  40474. if (!before) {
  40475. this.multipleStatus.before = fullDate;
  40476. this.lastHover = false;
  40477. } else {
  40478. this.multipleStatus.after = fullDate;
  40479. if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  40480. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  40481. } else {
  40482. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  40483. }
  40484. this.lastHover = true;
  40485. }
  40486. }
  40487. this._getWeek(fullDate);
  40488. }
  40489. /**
  40490. * 鼠标 hover 更新多选状态
  40491. */
  40492. }, {
  40493. key: "setHoverMultiple",
  40494. value: function setHoverMultiple(fullDate) {
  40495. var _this$multipleStatus2 = this.multipleStatus,
  40496. before = _this$multipleStatus2.before,
  40497. after = _this$multipleStatus2.after;
  40498. if (!this.range) return;
  40499. if (this.lastHover) return;
  40500. if (!before) {
  40501. this.multipleStatus.before = fullDate;
  40502. } else {
  40503. this.multipleStatus.after = fullDate;
  40504. if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  40505. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  40506. } else {
  40507. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  40508. }
  40509. }
  40510. this._getWeek(fullDate);
  40511. }
  40512. /**
  40513. * 更新默认值多选状态
  40514. */
  40515. }, {
  40516. key: "setDefaultMultiple",
  40517. value: function setDefaultMultiple(before, after) {
  40518. this.multipleStatus.before = before;
  40519. this.multipleStatus.after = after;
  40520. if (before && after) {
  40521. if (this.dateCompare(before, after)) {
  40522. this.multipleStatus.data = this.geDateAll(before, after);
  40523. this._getWeek(after);
  40524. } else {
  40525. this.multipleStatus.data = this.geDateAll(after, before);
  40526. this._getWeek(before);
  40527. }
  40528. }
  40529. }
  40530. /**
  40531. * 获取每周数据
  40532. * @param {Object} dateData
  40533. */
  40534. }, {
  40535. key: "_getWeek",
  40536. value: function _getWeek(dateData) {
  40537. var _this$getDate = this.getDate(dateData),
  40538. fullDate = _this$getDate.fullDate,
  40539. year = _this$getDate.year,
  40540. month = _this$getDate.month,
  40541. date = _this$getDate.date,
  40542. day = _this$getDate.day;
  40543. var firstDay = new Date(year, month - 1, 1).getDay();
  40544. var currentDay = new Date(year, month, 0).getDate();
  40545. var dates = {
  40546. lastMonthDays: this._getLastMonthDays(firstDay, this.getDate(dateData)),
  40547. // 上个月末尾几天
  40548. currentMonthDys: this._currentMonthDys(currentDay, this.getDate(dateData)),
  40549. // 本月天数
  40550. nextMonthDays: [],
  40551. // 下个月开始几天
  40552. weeks: []
  40553. };
  40554. var canlender = [];
  40555. var surplus = 42 - (dates.lastMonthDays.length + dates.currentMonthDys.length);
  40556. dates.nextMonthDays = this._getNextMonthDays(surplus, this.getDate(dateData));
  40557. canlender = canlender.concat(dates.lastMonthDays, dates.currentMonthDys, dates.nextMonthDays);
  40558. var weeks = {};
  40559. // 拼接数组 上个月开始几天 + 本月天数+ 下个月开始几天
  40560. for (var i = 0; i < canlender.length; i++) {
  40561. if (i % 7 === 0) {
  40562. weeks[parseInt(i / 7)] = new Array(7);
  40563. }
  40564. weeks[parseInt(i / 7)][i % 7] = canlender[i];
  40565. }
  40566. this.canlender = canlender;
  40567. this.weeks = weeks;
  40568. }
  40569. //静态方法
  40570. // static init(date) {
  40571. // if (!this.instance) {
  40572. // this.instance = new Calendar(date);
  40573. // }
  40574. // return this.instance;
  40575. // }
  40576. }]);
  40577. return Calendar;
  40578. }();
  40579. var _default = Calendar;
  40580. exports.default = _default;
  40581. /***/ }),
  40582. /* 530 */,
  40583. /* 531 */,
  40584. /* 532 */,
  40585. /* 533 */,
  40586. /* 534 */,
  40587. /* 535 */,
  40588. /* 536 */,
  40589. /* 537 */,
  40590. /* 538 */,
  40591. /* 539 */,
  40592. /* 540 */,
  40593. /* 541 */,
  40594. /* 542 */,
  40595. /* 543 */,
  40596. /* 544 */
  40597. /*!***********************************************************************************!*\
  40598. !*** D:/SWS_New/sws_new/uni_modules/qiun-data-charts/js_sdk/u-charts/u-charts.js ***!
  40599. \***********************************************************************************/
  40600. /*! no static exports found */
  40601. /***/ (function(module, exports, __webpack_require__) {
  40602. "use strict";
  40603. /*
  40604. * uCharts (R)
  40605. * 高性能跨平台图表库,支持H5、APP、小程序(微信/支付宝/百度/头条/QQ/360/快手)、Vue、Taro等支持canvas的框架平台
  40606. * Copyright (C) 2018-2022 QIUN (R) 秋云 https://www.ucharts.cn All rights reserved.
  40607. * Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  40608. * 复制使用请保留本段注释,感谢支持开源!
  40609. *
  40610. * uCharts (R) 官方网站
  40611. * https://www.uCharts.cn
  40612. *
  40613. * 开源地址:
  40614. * https://gitee.com/uCharts/uCharts
  40615. *
  40616. * uni-app插件市场地址:
  40617. * http://ext.dcloud.net.cn/plugin?id=271
  40618. *
  40619. */
  40620. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  40621. Object.defineProperty(exports, "__esModule", {
  40622. value: true
  40623. });
  40624. exports.default = void 0;
  40625. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  40626. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  40627. var config = {
  40628. version: 'v2.4.4-20221102',
  40629. yAxisWidth: 15,
  40630. xAxisHeight: 22,
  40631. xAxisTextPadding: 3,
  40632. padding: [10, 10, 10, 10],
  40633. pixelRatio: 1,
  40634. rotate: false,
  40635. fontSize: 13,
  40636. fontColor: '#666666',
  40637. dataPointShape: ['circle', 'circle', 'circle', 'circle'],
  40638. color: ['#1890FF', '#91CB74', '#FAC858', '#EE6666', '#73C0DE', '#3CA272', '#FC8452', '#9A60B4', '#ea7ccc'],
  40639. linearColor: ['#0EE2F8', '#2BDCA8', '#FA7D8D', '#EB88E2', '#2AE3A0', '#0EE2F8', '#EB88E2', '#6773E3', '#F78A85'],
  40640. pieChartLinePadding: 15,
  40641. pieChartTextPadding: 5,
  40642. titleFontSize: 20,
  40643. subtitleFontSize: 15,
  40644. toolTipPadding: 3,
  40645. toolTipBackground: '#000000',
  40646. toolTipOpacity: 0.7,
  40647. toolTipLineHeight: 20,
  40648. radarLabelTextMargin: 13
  40649. };
  40650. var assign = function assign(target) {
  40651. for (var _len2 = arguments.length, varArgs = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  40652. varArgs[_key2 - 1] = arguments[_key2];
  40653. }
  40654. if (target == null) {
  40655. throw new TypeError('[uCharts] Cannot convert undefined or null to object');
  40656. }
  40657. if (!varArgs || varArgs.length <= 0) {
  40658. return target;
  40659. }
  40660. // 深度合并对象
  40661. function deepAssign(obj1, obj2) {
  40662. for (var key in obj2) {
  40663. obj1[key] = obj1[key] && obj1[key].toString() === "[object Object]" ? deepAssign(obj1[key], obj2[key]) : obj1[key] = obj2[key];
  40664. }
  40665. return obj1;
  40666. }
  40667. varArgs.forEach(function (val) {
  40668. target = deepAssign(target, val);
  40669. });
  40670. return target;
  40671. };
  40672. var util = {
  40673. toFixed: function toFixed(num, limit) {
  40674. limit = limit || 2;
  40675. if (this.isFloat(num)) {
  40676. num = num.toFixed(limit);
  40677. }
  40678. return num;
  40679. },
  40680. isFloat: function isFloat(num) {
  40681. return num % 1 !== 0;
  40682. },
  40683. approximatelyEqual: function approximatelyEqual(num1, num2) {
  40684. return Math.abs(num1 - num2) < 1e-10;
  40685. },
  40686. isSameSign: function isSameSign(num1, num2) {
  40687. return Math.abs(num1) === num1 && Math.abs(num2) === num2 || Math.abs(num1) !== num1 && Math.abs(num2) !== num2;
  40688. },
  40689. isSameXCoordinateArea: function isSameXCoordinateArea(p1, p2) {
  40690. return this.isSameSign(p1.x, p2.x);
  40691. },
  40692. isCollision: function isCollision(obj1, obj2) {
  40693. obj1.end = {};
  40694. obj1.end.x = obj1.start.x + obj1.width;
  40695. obj1.end.y = obj1.start.y - obj1.height;
  40696. obj2.end = {};
  40697. obj2.end.x = obj2.start.x + obj2.width;
  40698. obj2.end.y = obj2.start.y - obj2.height;
  40699. var flag = obj2.start.x > obj1.end.x || obj2.end.x < obj1.start.x || obj2.end.y > obj1.start.y || obj2.start.y < obj1.end.y;
  40700. return !flag;
  40701. }
  40702. };
  40703. //兼容H5点击事件
  40704. function getH5Offset(e) {
  40705. e.mp = {
  40706. changedTouches: []
  40707. };
  40708. e.mp.changedTouches.push({
  40709. x: e.offsetX,
  40710. y: e.offsetY
  40711. });
  40712. return e;
  40713. }
  40714. // hex 转 rgba
  40715. function hexToRgb(hexValue, opc) {
  40716. var rgx = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
  40717. var hex = hexValue.replace(rgx, function (m, r, g, b) {
  40718. return r + r + g + g + b + b;
  40719. });
  40720. var rgb = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
  40721. var r = parseInt(rgb[1], 16);
  40722. var g = parseInt(rgb[2], 16);
  40723. var b = parseInt(rgb[3], 16);
  40724. return 'rgba(' + r + ',' + g + ',' + b + ',' + opc + ')';
  40725. }
  40726. function findRange(num, type, limit) {
  40727. if (isNaN(num)) {
  40728. throw new Error('[uCharts] series数据需为Number格式');
  40729. }
  40730. limit = limit || 10;
  40731. type = type ? type : 'upper';
  40732. var multiple = 1;
  40733. while (limit < 1) {
  40734. limit *= 10;
  40735. multiple *= 10;
  40736. }
  40737. if (type === 'upper') {
  40738. num = Math.ceil(num * multiple);
  40739. } else {
  40740. num = Math.floor(num * multiple);
  40741. }
  40742. while (num % limit !== 0) {
  40743. if (type === 'upper') {
  40744. if (num == num + 1) {
  40745. //修复数据值过大num++无效的bug by 向日葵 @xrk_jy
  40746. break;
  40747. }
  40748. num++;
  40749. } else {
  40750. num--;
  40751. }
  40752. }
  40753. return num / multiple;
  40754. }
  40755. function calCandleMA(dayArr, nameArr, colorArr, kdata) {
  40756. var seriesTemp = [];
  40757. for (var k = 0; k < dayArr.length; k++) {
  40758. var seriesItem = {
  40759. data: [],
  40760. name: nameArr[k],
  40761. color: colorArr[k]
  40762. };
  40763. for (var i = 0, len = kdata.length; i < len; i++) {
  40764. if (i < dayArr[k]) {
  40765. seriesItem.data.push(null);
  40766. continue;
  40767. }
  40768. var sum = 0;
  40769. for (var j = 0; j < dayArr[k]; j++) {
  40770. sum += kdata[i - j][1];
  40771. }
  40772. seriesItem.data.push(+(sum / dayArr[k]).toFixed(3));
  40773. }
  40774. seriesTemp.push(seriesItem);
  40775. }
  40776. return seriesTemp;
  40777. }
  40778. function calValidDistance(self, distance, chartData, config, opts) {
  40779. var dataChartAreaWidth = opts.width - opts.area[1] - opts.area[3];
  40780. var dataChartWidth = chartData.eachSpacing * (opts.chartData.xAxisData.xAxisPoints.length - 1);
  40781. if (opts.type == 'mount' && opts.extra && opts.extra.mount && opts.extra.mount.widthRatio && opts.extra.mount.widthRatio > 1) {
  40782. if (opts.extra.mount.widthRatio > 2) opts.extra.mount.widthRatio = 2;
  40783. dataChartWidth += (opts.extra.mount.widthRatio - 1) * chartData.eachSpacing;
  40784. }
  40785. var validDistance = distance;
  40786. if (distance >= 0) {
  40787. validDistance = 0;
  40788. self.uevent.trigger('scrollLeft');
  40789. self.scrollOption.position = 'left';
  40790. opts.xAxis.scrollPosition = 'left';
  40791. } else if (Math.abs(distance) >= dataChartWidth - dataChartAreaWidth) {
  40792. validDistance = dataChartAreaWidth - dataChartWidth;
  40793. self.uevent.trigger('scrollRight');
  40794. self.scrollOption.position = 'right';
  40795. opts.xAxis.scrollPosition = 'right';
  40796. } else {
  40797. self.scrollOption.position = distance;
  40798. opts.xAxis.scrollPosition = distance;
  40799. }
  40800. return validDistance;
  40801. }
  40802. function isInAngleRange(angle, startAngle, endAngle) {
  40803. function adjust(angle) {
  40804. while (angle < 0) {
  40805. angle += 2 * Math.PI;
  40806. }
  40807. while (angle > 2 * Math.PI) {
  40808. angle -= 2 * Math.PI;
  40809. }
  40810. return angle;
  40811. }
  40812. angle = adjust(angle);
  40813. startAngle = adjust(startAngle);
  40814. endAngle = adjust(endAngle);
  40815. if (startAngle > endAngle) {
  40816. endAngle += 2 * Math.PI;
  40817. if (angle < startAngle) {
  40818. angle += 2 * Math.PI;
  40819. }
  40820. }
  40821. return angle >= startAngle && angle <= endAngle;
  40822. }
  40823. function createCurveControlPoints(points, i) {
  40824. function isNotMiddlePoint(points, i) {
  40825. if (points[i - 1] && points[i + 1]) {
  40826. return points[i].y >= Math.max(points[i - 1].y, points[i + 1].y) || points[i].y <= Math.min(points[i - 1].y, points[i + 1].y);
  40827. } else {
  40828. return false;
  40829. }
  40830. }
  40831. function isNotMiddlePointX(points, i) {
  40832. if (points[i - 1] && points[i + 1]) {
  40833. return points[i].x >= Math.max(points[i - 1].x, points[i + 1].x) || points[i].x <= Math.min(points[i - 1].x, points[i + 1].x);
  40834. } else {
  40835. return false;
  40836. }
  40837. }
  40838. var a = 0.2;
  40839. var b = 0.2;
  40840. var pAx = null;
  40841. var pAy = null;
  40842. var pBx = null;
  40843. var pBy = null;
  40844. if (i < 1) {
  40845. pAx = points[0].x + (points[1].x - points[0].x) * a;
  40846. pAy = points[0].y + (points[1].y - points[0].y) * a;
  40847. } else {
  40848. pAx = points[i].x + (points[i + 1].x - points[i - 1].x) * a;
  40849. pAy = points[i].y + (points[i + 1].y - points[i - 1].y) * a;
  40850. }
  40851. if (i > points.length - 3) {
  40852. var last = points.length - 1;
  40853. pBx = points[last].x - (points[last].x - points[last - 1].x) * b;
  40854. pBy = points[last].y - (points[last].y - points[last - 1].y) * b;
  40855. } else {
  40856. pBx = points[i + 1].x - (points[i + 2].x - points[i].x) * b;
  40857. pBy = points[i + 1].y - (points[i + 2].y - points[i].y) * b;
  40858. }
  40859. if (isNotMiddlePoint(points, i + 1)) {
  40860. pBy = points[i + 1].y;
  40861. }
  40862. if (isNotMiddlePoint(points, i)) {
  40863. pAy = points[i].y;
  40864. }
  40865. if (isNotMiddlePointX(points, i + 1)) {
  40866. pBx = points[i + 1].x;
  40867. }
  40868. if (isNotMiddlePointX(points, i)) {
  40869. pAx = points[i].x;
  40870. }
  40871. if (pAy >= Math.max(points[i].y, points[i + 1].y) || pAy <= Math.min(points[i].y, points[i + 1].y)) {
  40872. pAy = points[i].y;
  40873. }
  40874. if (pBy >= Math.max(points[i].y, points[i + 1].y) || pBy <= Math.min(points[i].y, points[i + 1].y)) {
  40875. pBy = points[i + 1].y;
  40876. }
  40877. if (pAx >= Math.max(points[i].x, points[i + 1].x) || pAx <= Math.min(points[i].x, points[i + 1].x)) {
  40878. pAx = points[i].x;
  40879. }
  40880. if (pBx >= Math.max(points[i].x, points[i + 1].x) || pBx <= Math.min(points[i].x, points[i + 1].x)) {
  40881. pBx = points[i + 1].x;
  40882. }
  40883. return {
  40884. ctrA: {
  40885. x: pAx,
  40886. y: pAy
  40887. },
  40888. ctrB: {
  40889. x: pBx,
  40890. y: pBy
  40891. }
  40892. };
  40893. }
  40894. function convertCoordinateOrigin(x, y, center) {
  40895. return {
  40896. x: center.x + x,
  40897. y: center.y - y
  40898. };
  40899. }
  40900. function avoidCollision(obj, target) {
  40901. if (target) {
  40902. // is collision test
  40903. while (util.isCollision(obj, target)) {
  40904. if (obj.start.x > 0) {
  40905. obj.start.y--;
  40906. } else if (obj.start.x < 0) {
  40907. obj.start.y++;
  40908. } else {
  40909. if (obj.start.y > 0) {
  40910. obj.start.y++;
  40911. } else {
  40912. obj.start.y--;
  40913. }
  40914. }
  40915. }
  40916. }
  40917. return obj;
  40918. }
  40919. function fixPieSeries(series, opts, config) {
  40920. var pieSeriesArr = [];
  40921. if (series.length > 0 && series[0].data.constructor.toString().indexOf('Array') > -1) {
  40922. opts._pieSeries_ = series;
  40923. var oldseries = series[0].data;
  40924. for (var i = 0; i < oldseries.length; i++) {
  40925. oldseries[i].formatter = series[0].formatter;
  40926. oldseries[i].data = oldseries[i].value;
  40927. pieSeriesArr.push(oldseries[i]);
  40928. }
  40929. opts.series = pieSeriesArr;
  40930. } else {
  40931. pieSeriesArr = series;
  40932. }
  40933. return pieSeriesArr;
  40934. }
  40935. function fillSeries(series, opts, config) {
  40936. var index = 0;
  40937. for (var i = 0; i < series.length; i++) {
  40938. var item = series[i];
  40939. if (!item.color) {
  40940. item.color = config.color[index];
  40941. index = (index + 1) % config.color.length;
  40942. }
  40943. if (!item.linearIndex) {
  40944. item.linearIndex = i;
  40945. }
  40946. if (!item.index) {
  40947. item.index = 0;
  40948. }
  40949. if (!item.type) {
  40950. item.type = opts.type;
  40951. }
  40952. if (typeof item.show == "undefined") {
  40953. item.show = true;
  40954. }
  40955. if (!item.type) {
  40956. item.type = opts.type;
  40957. }
  40958. if (!item.pointShape) {
  40959. item.pointShape = "circle";
  40960. }
  40961. if (!item.legendShape) {
  40962. switch (item.type) {
  40963. case 'line':
  40964. item.legendShape = "line";
  40965. break;
  40966. case 'column':
  40967. case 'bar':
  40968. item.legendShape = "rect";
  40969. break;
  40970. case 'area':
  40971. case 'mount':
  40972. item.legendShape = "triangle";
  40973. break;
  40974. default:
  40975. item.legendShape = "circle";
  40976. }
  40977. }
  40978. }
  40979. return series;
  40980. }
  40981. function fillCustomColor(linearType, customColor, series, config) {
  40982. var newcolor = customColor || [];
  40983. if (linearType == 'custom' && newcolor.length == 0) {
  40984. newcolor = config.linearColor;
  40985. }
  40986. if (linearType == 'custom' && newcolor.length < series.length) {
  40987. var chazhi = series.length - newcolor.length;
  40988. for (var i = 0; i < chazhi; i++) {
  40989. newcolor.push(config.linearColor[(i + 1) % config.linearColor.length]);
  40990. }
  40991. }
  40992. return newcolor;
  40993. }
  40994. function getDataRange(minData, maxData) {
  40995. var limit = 0;
  40996. var range = maxData - minData;
  40997. if (range >= 10000) {
  40998. limit = 1000;
  40999. } else if (range >= 1000) {
  41000. limit = 100;
  41001. } else if (range >= 100) {
  41002. limit = 10;
  41003. } else if (range >= 10) {
  41004. limit = 5;
  41005. } else if (range >= 1) {
  41006. limit = 1;
  41007. } else if (range >= 0.1) {
  41008. limit = 0.1;
  41009. } else if (range >= 0.01) {
  41010. limit = 0.01;
  41011. } else if (range >= 0.001) {
  41012. limit = 0.001;
  41013. } else if (range >= 0.0001) {
  41014. limit = 0.0001;
  41015. } else if (range >= 0.00001) {
  41016. limit = 0.00001;
  41017. } else {
  41018. limit = 0.000001;
  41019. }
  41020. return {
  41021. minRange: findRange(minData, 'lower', limit),
  41022. maxRange: findRange(maxData, 'upper', limit)
  41023. };
  41024. }
  41025. function measureText(text, fontSize, context) {
  41026. var width = 0;
  41027. text = String(text);
  41028. if (context !== false && context !== undefined && context.setFontSize && context.measureText) {
  41029. context.setFontSize(fontSize);
  41030. return context.measureText(text).width;
  41031. } else {
  41032. var text = text.split('');
  41033. for (var i = 0; i < text.length; i++) {
  41034. var item = text[i];
  41035. if (/[a-zA-Z]/.test(item)) {
  41036. width += 7;
  41037. } else if (/[0-9]/.test(item)) {
  41038. width += 5.5;
  41039. } else if (/\./.test(item)) {
  41040. width += 2.7;
  41041. } else if (/-/.test(item)) {
  41042. width += 3.25;
  41043. } else if (/:/.test(item)) {
  41044. width += 2.5;
  41045. } else if (/[\u4e00-\u9fa5]/.test(item)) {
  41046. width += 10;
  41047. } else if (/\(|\)/.test(item)) {
  41048. width += 3.73;
  41049. } else if (/\s/.test(item)) {
  41050. width += 2.5;
  41051. } else if (/%/.test(item)) {
  41052. width += 8;
  41053. } else {
  41054. width += 10;
  41055. }
  41056. }
  41057. return width * fontSize / 10;
  41058. }
  41059. }
  41060. function dataCombine(series) {
  41061. return series.reduce(function (a, b) {
  41062. return (a.data ? a.data : a).concat(b.data);
  41063. }, []);
  41064. }
  41065. function dataCombineStack(series, len) {
  41066. var sum = new Array(len);
  41067. for (var j = 0; j < sum.length; j++) {
  41068. sum[j] = 0;
  41069. }
  41070. for (var i = 0; i < series.length; i++) {
  41071. for (var j = 0; j < sum.length; j++) {
  41072. sum[j] += series[i].data[j];
  41073. }
  41074. }
  41075. return series.reduce(function (a, b) {
  41076. return (a.data ? a.data : a).concat(b.data).concat(sum);
  41077. }, []);
  41078. }
  41079. function getTouches(touches, opts, e) {
  41080. var x, y;
  41081. if (touches.clientX) {
  41082. if (opts.rotate) {
  41083. y = opts.height - touches.clientX * opts.pix;
  41084. x = (touches.pageY - e.currentTarget.offsetTop - opts.height / opts.pix / 2 * (opts.pix - 1)) * opts.pix;
  41085. } else {
  41086. x = touches.clientX * opts.pix;
  41087. y = (touches.pageY - e.currentTarget.offsetTop - opts.height / opts.pix / 2 * (opts.pix - 1)) * opts.pix;
  41088. }
  41089. } else {
  41090. if (opts.rotate) {
  41091. y = opts.height - touches.x * opts.pix;
  41092. x = touches.y * opts.pix;
  41093. } else {
  41094. x = touches.x * opts.pix;
  41095. y = touches.y * opts.pix;
  41096. }
  41097. }
  41098. return {
  41099. x: x,
  41100. y: y
  41101. };
  41102. }
  41103. function getSeriesDataItem(series, index, group) {
  41104. var data = [];
  41105. var newSeries = [];
  41106. var indexIsArr = index.constructor.toString().indexOf('Array') > -1;
  41107. if (indexIsArr) {
  41108. var tempSeries = filterSeries(series);
  41109. for (var i = 0; i < group.length; i++) {
  41110. newSeries.push(tempSeries[group[i]]);
  41111. }
  41112. } else {
  41113. newSeries = series;
  41114. }
  41115. ;
  41116. for (var _i = 0; _i < newSeries.length; _i++) {
  41117. var item = newSeries[_i];
  41118. var tmpindex = -1;
  41119. if (indexIsArr) {
  41120. tmpindex = index[_i];
  41121. } else {
  41122. tmpindex = index;
  41123. }
  41124. if (item.data[tmpindex] !== null && typeof item.data[tmpindex] !== 'undefined' && item.show) {
  41125. var seriesItem = {};
  41126. seriesItem.color = item.color;
  41127. seriesItem.type = item.type;
  41128. seriesItem.style = item.style;
  41129. seriesItem.pointShape = item.pointShape;
  41130. seriesItem.disableLegend = item.disableLegend;
  41131. seriesItem.name = item.name;
  41132. seriesItem.show = item.show;
  41133. seriesItem.data = item.formatter ? item.formatter(item.data[tmpindex]) : item.data[tmpindex];
  41134. data.push(seriesItem);
  41135. }
  41136. }
  41137. return data;
  41138. }
  41139. function getMaxTextListLength(list, fontSize, context) {
  41140. var lengthList = list.map(function (item) {
  41141. return measureText(item, fontSize, context);
  41142. });
  41143. return Math.max.apply(null, lengthList);
  41144. }
  41145. function getRadarCoordinateSeries(length) {
  41146. var eachAngle = 2 * Math.PI / length;
  41147. var CoordinateSeries = [];
  41148. for (var i = 0; i < length; i++) {
  41149. CoordinateSeries.push(eachAngle * i);
  41150. }
  41151. return CoordinateSeries.map(function (item) {
  41152. return -1 * item + Math.PI / 2;
  41153. });
  41154. }
  41155. function getToolTipData(seriesData, opts, index, group, categories) {
  41156. var option = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
  41157. var calPoints = opts.chartData.calPoints ? opts.chartData.calPoints : [];
  41158. var points = {};
  41159. if (group.length > 0) {
  41160. var filterPoints = [];
  41161. for (var i = 0; i < group.length; i++) {
  41162. filterPoints.push(calPoints[group[i]]);
  41163. }
  41164. points = filterPoints[0][index[0]];
  41165. } else {
  41166. for (var _i2 = 0; _i2 < calPoints.length; _i2++) {
  41167. if (calPoints[_i2][index]) {
  41168. points = calPoints[_i2][index];
  41169. break;
  41170. }
  41171. }
  41172. }
  41173. ;
  41174. var textList = seriesData.map(function (item) {
  41175. var titleText = null;
  41176. if (opts.categories && opts.categories.length > 0) {
  41177. titleText = categories[index];
  41178. }
  41179. ;
  41180. return {
  41181. text: option.formatter ? option.formatter(item, titleText, index, opts) : item.name + ': ' + item.data,
  41182. color: item.color
  41183. };
  41184. });
  41185. var offset = {
  41186. x: Math.round(points.x),
  41187. y: Math.round(points.y)
  41188. };
  41189. return {
  41190. textList: textList,
  41191. offset: offset
  41192. };
  41193. }
  41194. function getMixToolTipData(seriesData, opts, index, categories) {
  41195. var option = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
  41196. var points = opts.chartData.xAxisPoints[index] + opts.chartData.eachSpacing / 2;
  41197. var textList = seriesData.map(function (item) {
  41198. return {
  41199. text: option.formatter ? option.formatter(item, categories[index], index, opts) : item.name + ': ' + item.data,
  41200. color: item.color,
  41201. disableLegend: item.disableLegend ? true : false
  41202. };
  41203. });
  41204. textList = textList.filter(function (item) {
  41205. if (item.disableLegend !== true) {
  41206. return item;
  41207. }
  41208. });
  41209. var offset = {
  41210. x: Math.round(points),
  41211. y: 0
  41212. };
  41213. return {
  41214. textList: textList,
  41215. offset: offset
  41216. };
  41217. }
  41218. function getCandleToolTipData(series, seriesData, opts, index, categories, extra) {
  41219. var option = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : {};
  41220. var calPoints = opts.chartData.calPoints;
  41221. var upColor = extra.color.upFill;
  41222. var downColor = extra.color.downFill;
  41223. //颜色顺序为开盘,收盘,最低,最高
  41224. var color = [upColor, upColor, downColor, upColor];
  41225. var textList = [];
  41226. seriesData.map(function (item) {
  41227. if (index == 0) {
  41228. if (item.data[1] - item.data[0] < 0) {
  41229. color[1] = downColor;
  41230. } else {
  41231. color[1] = upColor;
  41232. }
  41233. } else {
  41234. if (item.data[0] < series[index - 1][1]) {
  41235. color[0] = downColor;
  41236. }
  41237. if (item.data[1] < item.data[0]) {
  41238. color[1] = downColor;
  41239. }
  41240. if (item.data[2] > series[index - 1][1]) {
  41241. color[2] = upColor;
  41242. }
  41243. if (item.data[3] < series[index - 1][1]) {
  41244. color[3] = downColor;
  41245. }
  41246. }
  41247. var text1 = {
  41248. text: '开盘:' + item.data[0],
  41249. color: color[0]
  41250. };
  41251. var text2 = {
  41252. text: '收盘:' + item.data[1],
  41253. color: color[1]
  41254. };
  41255. var text3 = {
  41256. text: '最低:' + item.data[2],
  41257. color: color[2]
  41258. };
  41259. var text4 = {
  41260. text: '最高:' + item.data[3],
  41261. color: color[3]
  41262. };
  41263. textList.push(text1, text2, text3, text4);
  41264. });
  41265. var validCalPoints = [];
  41266. var offset = {
  41267. x: 0,
  41268. y: 0
  41269. };
  41270. for (var i = 0; i < calPoints.length; i++) {
  41271. var points = calPoints[i];
  41272. if (typeof points[index] !== 'undefined' && points[index] !== null) {
  41273. validCalPoints.push(points[index]);
  41274. }
  41275. }
  41276. offset.x = Math.round(validCalPoints[0][0].x);
  41277. return {
  41278. textList: textList,
  41279. offset: offset
  41280. };
  41281. }
  41282. function filterSeries(series) {
  41283. var tempSeries = [];
  41284. for (var i = 0; i < series.length; i++) {
  41285. if (series[i].show == true) {
  41286. tempSeries.push(series[i]);
  41287. }
  41288. }
  41289. return tempSeries;
  41290. }
  41291. function findCurrentIndex(currentPoints, calPoints, opts, config) {
  41292. var offset = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
  41293. var current = {
  41294. index: -1,
  41295. group: []
  41296. };
  41297. var spacing = opts.chartData.eachSpacing / 2;
  41298. var xAxisPoints = [];
  41299. if (calPoints && calPoints.length > 0) {
  41300. if (!opts.categories) {
  41301. spacing = 0;
  41302. } else {
  41303. for (var i = 1; i < opts.chartData.xAxisPoints.length; i++) {
  41304. xAxisPoints.push(opts.chartData.xAxisPoints[i] - spacing);
  41305. }
  41306. if ((opts.type == 'line' || opts.type == 'area') && opts.xAxis.boundaryGap == 'justify') {
  41307. xAxisPoints = opts.chartData.xAxisPoints;
  41308. }
  41309. }
  41310. if (isInExactChartArea(currentPoints, opts, config)) {
  41311. if (!opts.categories) {
  41312. var timePoints = Array(calPoints.length);
  41313. for (var _i3 = 0; _i3 < calPoints.length; _i3++) {
  41314. timePoints[_i3] = Array(calPoints[_i3].length);
  41315. for (var j = 0; j < calPoints[_i3].length; j++) {
  41316. timePoints[_i3][j] = Math.abs(calPoints[_i3][j].x - currentPoints.x);
  41317. }
  41318. }
  41319. ;
  41320. var pointValue = Array(timePoints.length);
  41321. var pointIndex = Array(timePoints.length);
  41322. for (var _i4 = 0; _i4 < timePoints.length; _i4++) {
  41323. pointValue[_i4] = Math.min.apply(null, timePoints[_i4]);
  41324. pointIndex[_i4] = timePoints[_i4].indexOf(pointValue[_i4]);
  41325. }
  41326. var minValue = Math.min.apply(null, pointValue);
  41327. current.index = [];
  41328. for (var _i5 = 0; _i5 < pointValue.length; _i5++) {
  41329. if (pointValue[_i5] == minValue) {
  41330. current.group.push(_i5);
  41331. current.index.push(pointIndex[_i5]);
  41332. }
  41333. }
  41334. ;
  41335. } else {
  41336. xAxisPoints.forEach(function (item, index) {
  41337. if (currentPoints.x + offset + spacing > item) {
  41338. current.index = index;
  41339. }
  41340. });
  41341. }
  41342. }
  41343. }
  41344. return current;
  41345. }
  41346. function findBarChartCurrentIndex(currentPoints, calPoints, opts, config) {
  41347. var offset = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
  41348. var current = {
  41349. index: -1,
  41350. group: []
  41351. };
  41352. var spacing = opts.chartData.eachSpacing / 2;
  41353. var yAxisPoints = opts.chartData.yAxisPoints;
  41354. if (calPoints && calPoints.length > 0) {
  41355. if (isInExactChartArea(currentPoints, opts, config)) {
  41356. yAxisPoints.forEach(function (item, index) {
  41357. if (currentPoints.y + offset + spacing > item) {
  41358. current.index = index;
  41359. }
  41360. });
  41361. }
  41362. }
  41363. return current;
  41364. }
  41365. function findLegendIndex(currentPoints, legendData, opts) {
  41366. var currentIndex = -1;
  41367. var gap = 0;
  41368. if (isInExactLegendArea(currentPoints, legendData.area)) {
  41369. var points = legendData.points;
  41370. var index = -1;
  41371. for (var i = 0, len = points.length; i < len; i++) {
  41372. var item = points[i];
  41373. for (var j = 0; j < item.length; j++) {
  41374. index += 1;
  41375. var area = item[j]['area'];
  41376. if (area && currentPoints.x > area[0] - gap && currentPoints.x < area[2] + gap && currentPoints.y > area[1] - gap && currentPoints.y < area[3] + gap) {
  41377. currentIndex = index;
  41378. break;
  41379. }
  41380. }
  41381. }
  41382. return currentIndex;
  41383. }
  41384. return currentIndex;
  41385. }
  41386. function isInExactLegendArea(currentPoints, area) {
  41387. return currentPoints.x > area.start.x && currentPoints.x < area.end.x && currentPoints.y > area.start.y && currentPoints.y < area.end.y;
  41388. }
  41389. function isInExactChartArea(currentPoints, opts, config) {
  41390. return currentPoints.x <= opts.width - opts.area[1] + 10 && currentPoints.x >= opts.area[3] - 10 && currentPoints.y >= opts.area[0] && currentPoints.y <= opts.height - opts.area[2];
  41391. }
  41392. function findRadarChartCurrentIndex(currentPoints, radarData, count) {
  41393. var eachAngleArea = 2 * Math.PI / count;
  41394. var currentIndex = -1;
  41395. if (isInExactPieChartArea(currentPoints, radarData.center, radarData.radius)) {
  41396. var fixAngle = function fixAngle(angle) {
  41397. if (angle < 0) {
  41398. angle += 2 * Math.PI;
  41399. }
  41400. if (angle > 2 * Math.PI) {
  41401. angle -= 2 * Math.PI;
  41402. }
  41403. return angle;
  41404. };
  41405. var angle = Math.atan2(radarData.center.y - currentPoints.y, currentPoints.x - radarData.center.x);
  41406. angle = -1 * angle;
  41407. if (angle < 0) {
  41408. angle += 2 * Math.PI;
  41409. }
  41410. var angleList = radarData.angleList.map(function (item) {
  41411. item = fixAngle(-1 * item);
  41412. return item;
  41413. });
  41414. angleList.forEach(function (item, index) {
  41415. var rangeStart = fixAngle(item - eachAngleArea / 2);
  41416. var rangeEnd = fixAngle(item + eachAngleArea / 2);
  41417. if (rangeEnd < rangeStart) {
  41418. rangeEnd += 2 * Math.PI;
  41419. }
  41420. if (angle >= rangeStart && angle <= rangeEnd || angle + 2 * Math.PI >= rangeStart && angle + 2 * Math.PI <= rangeEnd) {
  41421. currentIndex = index;
  41422. }
  41423. });
  41424. }
  41425. return currentIndex;
  41426. }
  41427. function findFunnelChartCurrentIndex(currentPoints, funnelData) {
  41428. var currentIndex = -1;
  41429. for (var i = 0, len = funnelData.series.length; i < len; i++) {
  41430. var item = funnelData.series[i];
  41431. if (currentPoints.x > item.funnelArea[0] && currentPoints.x < item.funnelArea[2] && currentPoints.y > item.funnelArea[1] && currentPoints.y < item.funnelArea[3]) {
  41432. currentIndex = i;
  41433. break;
  41434. }
  41435. }
  41436. return currentIndex;
  41437. }
  41438. function findWordChartCurrentIndex(currentPoints, wordData) {
  41439. var currentIndex = -1;
  41440. for (var i = 0, len = wordData.length; i < len; i++) {
  41441. var item = wordData[i];
  41442. if (currentPoints.x > item.area[0] && currentPoints.x < item.area[2] && currentPoints.y > item.area[1] && currentPoints.y < item.area[3]) {
  41443. currentIndex = i;
  41444. break;
  41445. }
  41446. }
  41447. return currentIndex;
  41448. }
  41449. function findMapChartCurrentIndex(currentPoints, opts) {
  41450. var currentIndex = -1;
  41451. var cData = opts.chartData.mapData;
  41452. var data = opts.series;
  41453. var tmp = pointToCoordinate(currentPoints.y, currentPoints.x, cData.bounds, cData.scale, cData.xoffset, cData.yoffset);
  41454. var poi = [tmp.x, tmp.y];
  41455. for (var i = 0, len = data.length; i < len; i++) {
  41456. var item = data[i].geometry.coordinates;
  41457. if (isPoiWithinPoly(poi, item, opts.chartData.mapData.mercator)) {
  41458. currentIndex = i;
  41459. break;
  41460. }
  41461. }
  41462. return currentIndex;
  41463. }
  41464. function findRoseChartCurrentIndex(currentPoints, pieData, opts) {
  41465. var currentIndex = -1;
  41466. var series = getRoseDataPoints(opts._series_, opts.extra.rose.type, pieData.radius, pieData.radius);
  41467. if (pieData && pieData.center && isInExactPieChartArea(currentPoints, pieData.center, pieData.radius)) {
  41468. var angle = Math.atan2(pieData.center.y - currentPoints.y, currentPoints.x - pieData.center.x);
  41469. angle = -angle;
  41470. if (opts.extra.rose && opts.extra.rose.offsetAngle) {
  41471. angle = angle - opts.extra.rose.offsetAngle * Math.PI / 180;
  41472. }
  41473. for (var i = 0, len = series.length; i < len; i++) {
  41474. if (isInAngleRange(angle, series[i]._start_, series[i]._start_ + series[i]._rose_proportion_ * 2 * Math.PI)) {
  41475. currentIndex = i;
  41476. break;
  41477. }
  41478. }
  41479. }
  41480. return currentIndex;
  41481. }
  41482. function findPieChartCurrentIndex(currentPoints, pieData, opts) {
  41483. var currentIndex = -1;
  41484. var series = getPieDataPoints(pieData.series);
  41485. if (pieData && pieData.center && isInExactPieChartArea(currentPoints, pieData.center, pieData.radius)) {
  41486. var angle = Math.atan2(pieData.center.y - currentPoints.y, currentPoints.x - pieData.center.x);
  41487. angle = -angle;
  41488. if (opts.extra.pie && opts.extra.pie.offsetAngle) {
  41489. angle = angle - opts.extra.pie.offsetAngle * Math.PI / 180;
  41490. }
  41491. if (opts.extra.ring && opts.extra.ring.offsetAngle) {
  41492. angle = angle - opts.extra.ring.offsetAngle * Math.PI / 180;
  41493. }
  41494. for (var i = 0, len = series.length; i < len; i++) {
  41495. if (isInAngleRange(angle, series[i]._start_, series[i]._start_ + series[i]._proportion_ * 2 * Math.PI)) {
  41496. currentIndex = i;
  41497. break;
  41498. }
  41499. }
  41500. }
  41501. return currentIndex;
  41502. }
  41503. function isInExactPieChartArea(currentPoints, center, radius) {
  41504. return Math.pow(currentPoints.x - center.x, 2) + Math.pow(currentPoints.y - center.y, 2) <= Math.pow(radius, 2);
  41505. }
  41506. function splitPoints(points, eachSeries) {
  41507. var newPoints = [];
  41508. var items = [];
  41509. points.forEach(function (item, index) {
  41510. if (eachSeries.connectNulls) {
  41511. if (item !== null) {
  41512. items.push(item);
  41513. }
  41514. } else {
  41515. if (item !== null) {
  41516. items.push(item);
  41517. } else {
  41518. if (items.length) {
  41519. newPoints.push(items);
  41520. }
  41521. items = [];
  41522. }
  41523. }
  41524. });
  41525. if (items.length) {
  41526. newPoints.push(items);
  41527. }
  41528. return newPoints;
  41529. }
  41530. function calLegendData(series, opts, config, chartData, context) {
  41531. var legendData = {
  41532. area: {
  41533. start: {
  41534. x: 0,
  41535. y: 0
  41536. },
  41537. end: {
  41538. x: 0,
  41539. y: 0
  41540. },
  41541. width: 0,
  41542. height: 0,
  41543. wholeWidth: 0,
  41544. wholeHeight: 0
  41545. },
  41546. points: [],
  41547. widthArr: [],
  41548. heightArr: []
  41549. };
  41550. if (opts.legend.show === false) {
  41551. chartData.legendData = legendData;
  41552. return legendData;
  41553. }
  41554. var padding = opts.legend.padding * opts.pix;
  41555. var margin = opts.legend.margin * opts.pix;
  41556. var fontSize = opts.legend.fontSize ? opts.legend.fontSize * opts.pix : config.fontSize;
  41557. var shapeWidth = 15 * opts.pix;
  41558. var shapeRight = 5 * opts.pix;
  41559. var lineHeight = Math.max(opts.legend.lineHeight * opts.pix, fontSize);
  41560. if (opts.legend.position == 'top' || opts.legend.position == 'bottom') {
  41561. var legendList = [];
  41562. var widthCount = 0;
  41563. var widthCountArr = [];
  41564. var currentRow = [];
  41565. for (var i = 0; i < series.length; i++) {
  41566. var item = series[i];
  41567. var legendText = item.legendText ? item.legendText : item.name;
  41568. var itemWidth = shapeWidth + shapeRight + measureText(legendText || 'undefined', fontSize, context) + opts.legend.itemGap * opts.pix;
  41569. if (widthCount + itemWidth > opts.width - opts.area[1] - opts.area[3]) {
  41570. legendList.push(currentRow);
  41571. widthCountArr.push(widthCount - opts.legend.itemGap * opts.pix);
  41572. widthCount = itemWidth;
  41573. currentRow = [item];
  41574. } else {
  41575. widthCount += itemWidth;
  41576. currentRow.push(item);
  41577. }
  41578. }
  41579. if (currentRow.length) {
  41580. legendList.push(currentRow);
  41581. widthCountArr.push(widthCount - opts.legend.itemGap * opts.pix);
  41582. legendData.widthArr = widthCountArr;
  41583. var legendWidth = Math.max.apply(null, widthCountArr);
  41584. switch (opts.legend.float) {
  41585. case 'left':
  41586. legendData.area.start.x = opts.area[3];
  41587. legendData.area.end.x = opts.area[3] + legendWidth + 2 * padding;
  41588. break;
  41589. case 'right':
  41590. legendData.area.start.x = opts.width - opts.area[1] - legendWidth - 2 * padding;
  41591. legendData.area.end.x = opts.width - opts.area[1];
  41592. break;
  41593. default:
  41594. legendData.area.start.x = (opts.width - legendWidth) / 2 - padding;
  41595. legendData.area.end.x = (opts.width + legendWidth) / 2 + padding;
  41596. }
  41597. legendData.area.width = legendWidth + 2 * padding;
  41598. legendData.area.wholeWidth = legendWidth + 2 * padding;
  41599. legendData.area.height = legendList.length * lineHeight + 2 * padding;
  41600. legendData.area.wholeHeight = legendList.length * lineHeight + 2 * padding + 2 * margin;
  41601. legendData.points = legendList;
  41602. }
  41603. } else {
  41604. var len = series.length;
  41605. var maxHeight = opts.height - opts.area[0] - opts.area[2] - 2 * margin - 2 * padding;
  41606. var maxLength = Math.min(Math.floor(maxHeight / lineHeight), len);
  41607. legendData.area.height = maxLength * lineHeight + padding * 2;
  41608. legendData.area.wholeHeight = maxLength * lineHeight + padding * 2;
  41609. switch (opts.legend.float) {
  41610. case 'top':
  41611. legendData.area.start.y = opts.area[0] + margin;
  41612. legendData.area.end.y = opts.area[0] + margin + legendData.area.height;
  41613. break;
  41614. case 'bottom':
  41615. legendData.area.start.y = opts.height - opts.area[2] - margin - legendData.area.height;
  41616. legendData.area.end.y = opts.height - opts.area[2] - margin;
  41617. break;
  41618. default:
  41619. legendData.area.start.y = (opts.height - legendData.area.height) / 2;
  41620. legendData.area.end.y = (opts.height + legendData.area.height) / 2;
  41621. }
  41622. var lineNum = len % maxLength === 0 ? len / maxLength : Math.floor(len / maxLength + 1);
  41623. var _currentRow = [];
  41624. for (var _i6 = 0; _i6 < lineNum; _i6++) {
  41625. var temp = series.slice(_i6 * maxLength, _i6 * maxLength + maxLength);
  41626. _currentRow.push(temp);
  41627. }
  41628. legendData.points = _currentRow;
  41629. if (_currentRow.length) {
  41630. for (var _i7 = 0; _i7 < _currentRow.length; _i7++) {
  41631. var _item = _currentRow[_i7];
  41632. var maxWidth = 0;
  41633. for (var j = 0; j < _item.length; j++) {
  41634. var _itemWidth = shapeWidth + shapeRight + measureText(_item[j].name || 'undefined', fontSize, context) + opts.legend.itemGap * opts.pix;
  41635. if (_itemWidth > maxWidth) {
  41636. maxWidth = _itemWidth;
  41637. }
  41638. }
  41639. legendData.widthArr.push(maxWidth);
  41640. legendData.heightArr.push(_item.length * lineHeight + padding * 2);
  41641. }
  41642. var _legendWidth = 0;
  41643. for (var _i8 = 0; _i8 < legendData.widthArr.length; _i8++) {
  41644. _legendWidth += legendData.widthArr[_i8];
  41645. }
  41646. legendData.area.width = _legendWidth - opts.legend.itemGap * opts.pix + 2 * padding;
  41647. legendData.area.wholeWidth = legendData.area.width + padding;
  41648. }
  41649. }
  41650. switch (opts.legend.position) {
  41651. case 'top':
  41652. legendData.area.start.y = opts.area[0] + margin;
  41653. legendData.area.end.y = opts.area[0] + margin + legendData.area.height;
  41654. break;
  41655. case 'bottom':
  41656. legendData.area.start.y = opts.height - opts.area[2] - legendData.area.height - margin;
  41657. legendData.area.end.y = opts.height - opts.area[2] - margin;
  41658. break;
  41659. case 'left':
  41660. legendData.area.start.x = opts.area[3];
  41661. legendData.area.end.x = opts.area[3] + legendData.area.width;
  41662. break;
  41663. case 'right':
  41664. legendData.area.start.x = opts.width - opts.area[1] - legendData.area.width;
  41665. legendData.area.end.x = opts.width - opts.area[1];
  41666. break;
  41667. }
  41668. chartData.legendData = legendData;
  41669. return legendData;
  41670. }
  41671. function calCategoriesData(categories, opts, config, eachSpacing, context) {
  41672. var result = {
  41673. angle: 0,
  41674. xAxisHeight: config.xAxisHeight
  41675. };
  41676. var fontSize = opts.xAxis.fontSize * opts.pix || config.fontSize;
  41677. var categoriesTextLenth = categories.map(function (item, index) {
  41678. var xitem = opts.xAxis.formatter ? opts.xAxis.formatter(item, index, opts) : item;
  41679. return measureText(String(xitem), fontSize, context);
  41680. });
  41681. var maxTextLength = Math.max.apply(this, categoriesTextLenth);
  41682. if (opts.xAxis.rotateLabel == true) {
  41683. result.angle = opts.xAxis.rotateAngle * Math.PI / 180;
  41684. var tempHeight = 2 * config.xAxisTextPadding + Math.abs(maxTextLength * Math.sin(result.angle));
  41685. tempHeight = tempHeight < fontSize + 2 * config.xAxisTextPadding ? tempHeight + 2 * config.xAxisTextPadding : tempHeight;
  41686. if (opts.enableScroll == true && opts.xAxis.scrollShow == true) {
  41687. tempHeight += 12 * opts.pix;
  41688. }
  41689. result.xAxisHeight = tempHeight;
  41690. }
  41691. if (opts.xAxis.disabled) {
  41692. result.xAxisHeight = 0;
  41693. }
  41694. return result;
  41695. }
  41696. function getXAxisTextList(series, opts, config, stack) {
  41697. var index = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : -1;
  41698. var data;
  41699. if (stack == 'stack') {
  41700. data = dataCombineStack(series, opts.categories.length);
  41701. } else {
  41702. data = dataCombine(series);
  41703. }
  41704. var sorted = [];
  41705. // remove null from data
  41706. data = data.filter(function (item) {
  41707. //return item !== null;
  41708. if ((0, _typeof2.default)(item) === 'object' && item !== null) {
  41709. if (item.constructor.toString().indexOf('Array') > -1) {
  41710. return item !== null;
  41711. } else {
  41712. return item.value !== null;
  41713. }
  41714. } else {
  41715. return item !== null;
  41716. }
  41717. });
  41718. data.map(function (item) {
  41719. if ((0, _typeof2.default)(item) === 'object') {
  41720. if (item.constructor.toString().indexOf('Array') > -1) {
  41721. if (opts.type == 'candle') {
  41722. item.map(function (subitem) {
  41723. sorted.push(subitem);
  41724. });
  41725. } else {
  41726. sorted.push(item[0]);
  41727. }
  41728. } else {
  41729. sorted.push(item.value);
  41730. }
  41731. } else {
  41732. sorted.push(item);
  41733. }
  41734. });
  41735. var minData = 0;
  41736. var maxData = 0;
  41737. if (sorted.length > 0) {
  41738. minData = Math.min.apply(this, sorted);
  41739. maxData = Math.max.apply(this, sorted);
  41740. }
  41741. //为了兼容v1.9.0之前的项目
  41742. if (index > -1) {
  41743. if (typeof opts.xAxis.data[index].min === 'number') {
  41744. minData = Math.min(opts.xAxis.data[index].min, minData);
  41745. }
  41746. if (typeof opts.xAxis.data[index].max === 'number') {
  41747. maxData = Math.max(opts.xAxis.data[index].max, maxData);
  41748. }
  41749. } else {
  41750. if (typeof opts.xAxis.min === 'number') {
  41751. minData = Math.min(opts.xAxis.min, minData);
  41752. }
  41753. if (typeof opts.xAxis.max === 'number') {
  41754. maxData = Math.max(opts.xAxis.max, maxData);
  41755. }
  41756. }
  41757. if (minData === maxData) {
  41758. var rangeSpan = maxData || 10;
  41759. maxData += rangeSpan;
  41760. }
  41761. //var dataRange = getDataRange(minData, maxData);
  41762. var minRange = minData;
  41763. var maxRange = maxData;
  41764. var range = [];
  41765. var eachRange = (maxRange - minRange) / opts.xAxis.splitNumber;
  41766. for (var i = 0; i <= opts.xAxis.splitNumber; i++) {
  41767. range.push(minRange + eachRange * i);
  41768. }
  41769. return range;
  41770. }
  41771. function calXAxisData(series, opts, config, context) {
  41772. //堆叠图重算Y轴
  41773. var columnstyle = assign({}, {
  41774. type: ""
  41775. }, opts.extra.bar);
  41776. var result = {
  41777. angle: 0,
  41778. xAxisHeight: config.xAxisHeight
  41779. };
  41780. result.ranges = getXAxisTextList(series, opts, config, columnstyle.type);
  41781. result.rangesFormat = result.ranges.map(function (item) {
  41782. //item = opts.xAxis.formatter ? opts.xAxis.formatter(item) : util.toFixed(item, 2);
  41783. item = util.toFixed(item, 2);
  41784. return item;
  41785. });
  41786. var xAxisScaleValues = result.ranges.map(function (item) {
  41787. // 如果刻度值是浮点数,则保留两位小数
  41788. item = util.toFixed(item, 2);
  41789. // 若有自定义格式则调用自定义的格式化函数
  41790. //item = opts.xAxis.formatter ? opts.xAxis.formatter(Number(item)) : item;
  41791. return item;
  41792. });
  41793. result = Object.assign(result, getXAxisPoints(xAxisScaleValues, opts, config));
  41794. // 计算X轴刻度的属性譬如每个刻度的间隔,刻度的起始点\结束点以及总长
  41795. var eachSpacing = result.eachSpacing;
  41796. var textLength = xAxisScaleValues.map(function (item) {
  41797. return measureText(item, opts.xAxis.fontSize * opts.pix || config.fontSize, context);
  41798. });
  41799. // get max length of categories text
  41800. var maxTextLength = Math.max.apply(this, textLength);
  41801. // 如果刻度值文本内容过长,则将其逆时针旋转45°
  41802. if (maxTextLength + 2 * config.xAxisTextPadding > eachSpacing) {
  41803. result.angle = 45 * Math.PI / 180;
  41804. result.xAxisHeight = 2 * config.xAxisTextPadding + maxTextLength * Math.sin(result.angle);
  41805. }
  41806. if (opts.xAxis.disabled === true) {
  41807. result.xAxisHeight = 0;
  41808. }
  41809. return result;
  41810. }
  41811. function getRadarDataPoints(angleList, center, radius, series, opts) {
  41812. var process = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1;
  41813. var radarOption = opts.extra.radar || {};
  41814. radarOption.max = radarOption.max || 0;
  41815. var maxData = Math.max(radarOption.max, Math.max.apply(null, dataCombine(series)));
  41816. var data = [];
  41817. var _loop2 = function _loop2(i) {
  41818. var each = series[i];
  41819. var listItem = {};
  41820. listItem.color = each.color;
  41821. listItem.legendShape = each.legendShape;
  41822. listItem.pointShape = each.pointShape;
  41823. listItem.data = [];
  41824. each.data.forEach(function (item, index) {
  41825. var tmp = {};
  41826. tmp.angle = angleList[index];
  41827. tmp.proportion = item / maxData;
  41828. tmp.value = item;
  41829. tmp.position = convertCoordinateOrigin(radius * tmp.proportion * process * Math.cos(tmp.angle), radius * tmp.proportion * process * Math.sin(tmp.angle), center);
  41830. listItem.data.push(tmp);
  41831. });
  41832. data.push(listItem);
  41833. };
  41834. for (var i = 0; i < series.length; i++) {
  41835. _loop2(i);
  41836. }
  41837. return data;
  41838. }
  41839. function getPieDataPoints(series, radius) {
  41840. var process = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
  41841. var count = 0;
  41842. var _start_ = 0;
  41843. for (var i = 0; i < series.length; i++) {
  41844. var item = series[i];
  41845. item.data = item.data === null ? 0 : item.data;
  41846. count += item.data;
  41847. }
  41848. for (var _i9 = 0; _i9 < series.length; _i9++) {
  41849. var _item2 = series[_i9];
  41850. _item2.data = _item2.data === null ? 0 : _item2.data;
  41851. if (count === 0) {
  41852. _item2._proportion_ = 1 / series.length * process;
  41853. } else {
  41854. _item2._proportion_ = _item2.data / count * process;
  41855. }
  41856. _item2._radius_ = radius;
  41857. }
  41858. for (var _i10 = 0; _i10 < series.length; _i10++) {
  41859. var _item3 = series[_i10];
  41860. _item3._start_ = _start_;
  41861. _start_ += 2 * _item3._proportion_ * Math.PI;
  41862. }
  41863. return series;
  41864. }
  41865. function getFunnelDataPoints(series, radius, option, eachSpacing) {
  41866. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  41867. for (var i = 0; i < series.length; i++) {
  41868. if (option.type == 'funnel') {
  41869. series[i].radius = series[i].data / series[0].data * radius * process;
  41870. } else {
  41871. series[i].radius = eachSpacing * (series.length - i) / (eachSpacing * series.length) * radius * process;
  41872. }
  41873. series[i]._proportion_ = series[i].data / series[0].data;
  41874. }
  41875. // if(option.type !== 'pyramid'){
  41876. // series.reverse();
  41877. // }
  41878. return series;
  41879. }
  41880. function getRoseDataPoints(series, type, minRadius, radius) {
  41881. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  41882. var count = 0;
  41883. var _start_ = 0;
  41884. var dataArr = [];
  41885. for (var i = 0; i < series.length; i++) {
  41886. var item = series[i];
  41887. item.data = item.data === null ? 0 : item.data;
  41888. count += item.data;
  41889. dataArr.push(item.data);
  41890. }
  41891. var minData = Math.min.apply(null, dataArr);
  41892. var maxData = Math.max.apply(null, dataArr);
  41893. var radiusLength = radius - minRadius;
  41894. for (var _i11 = 0; _i11 < series.length; _i11++) {
  41895. var _item4 = series[_i11];
  41896. _item4.data = _item4.data === null ? 0 : _item4.data;
  41897. if (count === 0) {
  41898. _item4._proportion_ = 1 / series.length * process;
  41899. _item4._rose_proportion_ = 1 / series.length * process;
  41900. } else {
  41901. _item4._proportion_ = _item4.data / count * process;
  41902. if (type == 'area') {
  41903. _item4._rose_proportion_ = 1 / series.length * process;
  41904. } else {
  41905. _item4._rose_proportion_ = _item4.data / count * process;
  41906. }
  41907. }
  41908. _item4._radius_ = minRadius + radiusLength * ((_item4.data - minData) / (maxData - minData)) || radius;
  41909. }
  41910. for (var _i12 = 0; _i12 < series.length; _i12++) {
  41911. var _item5 = series[_i12];
  41912. _item5._start_ = _start_;
  41913. _start_ += 2 * _item5._rose_proportion_ * Math.PI;
  41914. }
  41915. return series;
  41916. }
  41917. function getArcbarDataPoints(series, arcbarOption) {
  41918. var process = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
  41919. if (process == 1) {
  41920. process = 0.999999;
  41921. }
  41922. for (var i = 0; i < series.length; i++) {
  41923. var item = series[i];
  41924. item.data = item.data === null ? 0 : item.data;
  41925. var totalAngle = void 0;
  41926. if (arcbarOption.type == 'circle') {
  41927. totalAngle = 2;
  41928. } else {
  41929. if (arcbarOption.direction == 'ccw') {
  41930. if (arcbarOption.startAngle < arcbarOption.endAngle) {
  41931. totalAngle = 2 + arcbarOption.startAngle - arcbarOption.endAngle;
  41932. } else {
  41933. totalAngle = arcbarOption.startAngle - arcbarOption.endAngle;
  41934. }
  41935. } else {
  41936. if (arcbarOption.endAngle < arcbarOption.startAngle) {
  41937. totalAngle = 2 + arcbarOption.endAngle - arcbarOption.startAngle;
  41938. } else {
  41939. totalAngle = arcbarOption.startAngle - arcbarOption.endAngle;
  41940. }
  41941. }
  41942. }
  41943. item._proportion_ = totalAngle * item.data * process + arcbarOption.startAngle;
  41944. if (arcbarOption.direction == 'ccw') {
  41945. item._proportion_ = arcbarOption.startAngle - totalAngle * item.data * process;
  41946. }
  41947. if (item._proportion_ >= 2) {
  41948. item._proportion_ = item._proportion_ % 2;
  41949. }
  41950. }
  41951. return series;
  41952. }
  41953. function getGaugeArcbarDataPoints(series, arcbarOption) {
  41954. var process = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
  41955. if (process == 1) {
  41956. process = 0.999999;
  41957. }
  41958. for (var i = 0; i < series.length; i++) {
  41959. var item = series[i];
  41960. item.data = item.data === null ? 0 : item.data;
  41961. var totalAngle = void 0;
  41962. if (arcbarOption.type == 'circle') {
  41963. totalAngle = 2;
  41964. } else {
  41965. if (arcbarOption.endAngle < arcbarOption.startAngle) {
  41966. totalAngle = 2 + arcbarOption.endAngle - arcbarOption.startAngle;
  41967. } else {
  41968. totalAngle = arcbarOption.startAngle - arcbarOption.endAngle;
  41969. }
  41970. }
  41971. item._proportion_ = totalAngle * item.data * process + arcbarOption.startAngle;
  41972. if (item._proportion_ >= 2) {
  41973. item._proportion_ = item._proportion_ % 2;
  41974. }
  41975. }
  41976. return series;
  41977. }
  41978. function getGaugeAxisPoints(categories, startAngle, endAngle) {
  41979. var totalAngle = startAngle - endAngle + 1;
  41980. var tempStartAngle = startAngle;
  41981. for (var i = 0; i < categories.length; i++) {
  41982. categories[i].value = categories[i].value === null ? 0 : categories[i].value;
  41983. categories[i]._startAngle_ = tempStartAngle;
  41984. categories[i]._endAngle_ = totalAngle * categories[i].value + startAngle;
  41985. if (categories[i]._endAngle_ >= 2) {
  41986. categories[i]._endAngle_ = categories[i]._endAngle_ % 2;
  41987. }
  41988. tempStartAngle = categories[i]._endAngle_;
  41989. }
  41990. return categories;
  41991. }
  41992. function getGaugeDataPoints(series, categories, gaugeOption) {
  41993. var process = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
  41994. for (var i = 0; i < series.length; i++) {
  41995. var item = series[i];
  41996. item.data = item.data === null ? 0 : item.data;
  41997. if (gaugeOption.pointer.color == 'auto') {
  41998. for (var _i13 = 0; _i13 < categories.length; _i13++) {
  41999. if (item.data <= categories[_i13].value) {
  42000. item.color = categories[_i13].color;
  42001. break;
  42002. }
  42003. }
  42004. } else {
  42005. item.color = gaugeOption.pointer.color;
  42006. }
  42007. var totalAngle = gaugeOption.startAngle - gaugeOption.endAngle + 1;
  42008. item._endAngle_ = totalAngle * item.data + gaugeOption.startAngle;
  42009. item._oldAngle_ = gaugeOption.oldAngle;
  42010. if (gaugeOption.oldAngle < gaugeOption.endAngle) {
  42011. item._oldAngle_ += 2;
  42012. }
  42013. if (item.data >= gaugeOption.oldData) {
  42014. item._proportion_ = (item._endAngle_ - item._oldAngle_) * process + gaugeOption.oldAngle;
  42015. } else {
  42016. item._proportion_ = item._oldAngle_ - (item._oldAngle_ - item._endAngle_) * process;
  42017. }
  42018. if (item._proportion_ >= 2) {
  42019. item._proportion_ = item._proportion_ % 2;
  42020. }
  42021. }
  42022. return series;
  42023. }
  42024. function getPieTextMaxLength(series, config, context, opts) {
  42025. series = getPieDataPoints(series);
  42026. var maxLength = 0;
  42027. for (var i = 0; i < series.length; i++) {
  42028. var item = series[i];
  42029. var text = item.formatter ? item.formatter(+item._proportion_.toFixed(2)) : util.toFixed(item._proportion_ * 100) + '%';
  42030. maxLength = Math.max(maxLength, measureText(text, item.textSize * opts.pix || config.fontSize, context));
  42031. }
  42032. return maxLength;
  42033. }
  42034. function fixColumeData(points, eachSpacing, columnLen, index, config, opts) {
  42035. return points.map(function (item) {
  42036. if (item === null) {
  42037. return null;
  42038. }
  42039. var seriesGap = 0;
  42040. var categoryGap = 0;
  42041. if (opts.type == 'mix') {
  42042. seriesGap = opts.extra.mix.column.seriesGap * opts.pix || 0;
  42043. categoryGap = opts.extra.mix.column.categoryGap * opts.pix || 0;
  42044. } else {
  42045. seriesGap = opts.extra.column.seriesGap * opts.pix || 0;
  42046. categoryGap = opts.extra.column.categoryGap * opts.pix || 0;
  42047. }
  42048. seriesGap = Math.min(seriesGap, eachSpacing / columnLen);
  42049. categoryGap = Math.min(categoryGap, eachSpacing / columnLen);
  42050. item.width = Math.ceil((eachSpacing - 2 * categoryGap - seriesGap * (columnLen - 1)) / columnLen);
  42051. if (opts.extra.mix && opts.extra.mix.column.width && +opts.extra.mix.column.width > 0) {
  42052. item.width = Math.min(item.width, +opts.extra.mix.column.width * opts.pix);
  42053. }
  42054. if (opts.extra.column && opts.extra.column.width && +opts.extra.column.width > 0) {
  42055. item.width = Math.min(item.width, +opts.extra.column.width * opts.pix);
  42056. }
  42057. if (item.width <= 0) {
  42058. item.width = 1;
  42059. }
  42060. item.x += (index + 0.5 - columnLen / 2) * (item.width + seriesGap);
  42061. return item;
  42062. });
  42063. }
  42064. function fixBarData(points, eachSpacing, columnLen, index, config, opts) {
  42065. return points.map(function (item) {
  42066. if (item === null) {
  42067. return null;
  42068. }
  42069. var seriesGap = 0;
  42070. var categoryGap = 0;
  42071. seriesGap = opts.extra.bar.seriesGap * opts.pix || 0;
  42072. categoryGap = opts.extra.bar.categoryGap * opts.pix || 0;
  42073. seriesGap = Math.min(seriesGap, eachSpacing / columnLen);
  42074. categoryGap = Math.min(categoryGap, eachSpacing / columnLen);
  42075. item.width = Math.ceil((eachSpacing - 2 * categoryGap - seriesGap * (columnLen - 1)) / columnLen);
  42076. if (opts.extra.bar && opts.extra.bar.width && +opts.extra.bar.width > 0) {
  42077. item.width = Math.min(item.width, +opts.extra.bar.width * opts.pix);
  42078. }
  42079. if (item.width <= 0) {
  42080. item.width = 1;
  42081. }
  42082. item.y += (index + 0.5 - columnLen / 2) * (item.width + seriesGap);
  42083. return item;
  42084. });
  42085. }
  42086. function fixColumeMeterData(points, eachSpacing, columnLen, index, config, opts, border) {
  42087. var categoryGap = opts.extra.column.categoryGap * opts.pix || 0;
  42088. return points.map(function (item) {
  42089. if (item === null) {
  42090. return null;
  42091. }
  42092. item.width = eachSpacing - 2 * categoryGap;
  42093. if (opts.extra.column && opts.extra.column.width && +opts.extra.column.width > 0) {
  42094. item.width = Math.min(item.width, +opts.extra.column.width * opts.pix);
  42095. }
  42096. if (index > 0) {
  42097. item.width -= border;
  42098. }
  42099. return item;
  42100. });
  42101. }
  42102. function fixColumeStackData(points, eachSpacing, columnLen, index, config, opts, series) {
  42103. var categoryGap = opts.extra.column.categoryGap * opts.pix || 0;
  42104. return points.map(function (item, indexn) {
  42105. if (item === null) {
  42106. return null;
  42107. }
  42108. item.width = Math.ceil(eachSpacing - 2 * categoryGap);
  42109. if (opts.extra.column && opts.extra.column.width && +opts.extra.column.width > 0) {
  42110. item.width = Math.min(item.width, +opts.extra.column.width * opts.pix);
  42111. }
  42112. if (item.width <= 0) {
  42113. item.width = 1;
  42114. }
  42115. return item;
  42116. });
  42117. }
  42118. function fixBarStackData(points, eachSpacing, columnLen, index, config, opts, series) {
  42119. var categoryGap = opts.extra.bar.categoryGap * opts.pix || 0;
  42120. return points.map(function (item, indexn) {
  42121. if (item === null) {
  42122. return null;
  42123. }
  42124. item.width = Math.ceil(eachSpacing - 2 * categoryGap);
  42125. if (opts.extra.bar && opts.extra.bar.width && +opts.extra.bar.width > 0) {
  42126. item.width = Math.min(item.width, +opts.extra.bar.width * opts.pix);
  42127. }
  42128. if (item.width <= 0) {
  42129. item.width = 1;
  42130. }
  42131. return item;
  42132. });
  42133. }
  42134. function getXAxisPoints(categories, opts, config) {
  42135. var spacingValid = opts.width - opts.area[1] - opts.area[3];
  42136. var dataCount = opts.enableScroll ? Math.min(opts.xAxis.itemCount, categories.length) : categories.length;
  42137. if ((opts.type == 'line' || opts.type == 'area' || opts.type == 'scatter' || opts.type == 'bubble' || opts.type == 'bar') && dataCount > 1 && opts.xAxis.boundaryGap == 'justify') {
  42138. dataCount -= 1;
  42139. }
  42140. var widthRatio = 0;
  42141. if (opts.type == 'mount' && opts.extra && opts.extra.mount && opts.extra.mount.widthRatio && opts.extra.mount.widthRatio > 1) {
  42142. if (opts.extra.mount.widthRatio > 2) opts.extra.mount.widthRatio = 2;
  42143. widthRatio = opts.extra.mount.widthRatio - 1;
  42144. dataCount += widthRatio;
  42145. }
  42146. var eachSpacing = spacingValid / dataCount;
  42147. var xAxisPoints = [];
  42148. var startX = opts.area[3];
  42149. var endX = opts.width - opts.area[1];
  42150. categories.forEach(function (item, index) {
  42151. xAxisPoints.push(startX + widthRatio / 2 * eachSpacing + index * eachSpacing);
  42152. });
  42153. if (opts.xAxis.boundaryGap !== 'justify') {
  42154. if (opts.enableScroll === true) {
  42155. xAxisPoints.push(startX + widthRatio * eachSpacing + categories.length * eachSpacing);
  42156. } else {
  42157. xAxisPoints.push(endX);
  42158. }
  42159. }
  42160. return {
  42161. xAxisPoints: xAxisPoints,
  42162. startX: startX,
  42163. endX: endX,
  42164. eachSpacing: eachSpacing
  42165. };
  42166. }
  42167. function getCandleDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config) {
  42168. var process = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 1;
  42169. var points = [];
  42170. var validHeight = opts.height - opts.area[0] - opts.area[2];
  42171. data.forEach(function (item, index) {
  42172. if (item === null) {
  42173. points.push(null);
  42174. } else {
  42175. var cPoints = [];
  42176. item.forEach(function (items, indexs) {
  42177. var point = {};
  42178. point.x = xAxisPoints[index] + Math.round(eachSpacing / 2);
  42179. var value = items.value || items;
  42180. var height = validHeight * (value - minRange) / (maxRange - minRange);
  42181. height *= process;
  42182. point.y = opts.height - Math.round(height) - opts.area[2];
  42183. cPoints.push(point);
  42184. });
  42185. points.push(cPoints);
  42186. }
  42187. });
  42188. return points;
  42189. }
  42190. function getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config) {
  42191. var process = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 1;
  42192. var boundaryGap = 'center';
  42193. if (opts.type == 'line' || opts.type == 'area' || opts.type == 'scatter' || opts.type == 'bubble') {
  42194. boundaryGap = opts.xAxis.boundaryGap;
  42195. }
  42196. var points = [];
  42197. var validHeight = opts.height - opts.area[0] - opts.area[2];
  42198. var validWidth = opts.width - opts.area[1] - opts.area[3];
  42199. data.forEach(function (item, index) {
  42200. if (item === null) {
  42201. points.push(null);
  42202. } else {
  42203. var point = {};
  42204. point.color = item.color;
  42205. point.x = xAxisPoints[index];
  42206. var value = item;
  42207. if ((0, _typeof2.default)(item) === 'object' && item !== null) {
  42208. if (item.constructor.toString().indexOf('Array') > -1) {
  42209. var xranges, xminRange, xmaxRange;
  42210. xranges = [].concat(opts.chartData.xAxisData.ranges);
  42211. xminRange = xranges.shift();
  42212. xmaxRange = xranges.pop();
  42213. value = item[1];
  42214. point.x = opts.area[3] + validWidth * (item[0] - xminRange) / (xmaxRange - xminRange);
  42215. if (opts.type == 'bubble') {
  42216. point.r = item[2];
  42217. point.t = item[3];
  42218. }
  42219. } else {
  42220. value = item.value;
  42221. }
  42222. }
  42223. if (boundaryGap == 'center') {
  42224. point.x += eachSpacing / 2;
  42225. }
  42226. var height = validHeight * (value - minRange) / (maxRange - minRange);
  42227. height *= process;
  42228. point.y = opts.height - height - opts.area[2];
  42229. points.push(point);
  42230. }
  42231. });
  42232. return points;
  42233. }
  42234. function getMountDataPoints(series, minRange, maxRange, xAxisPoints, eachSpacing, opts, mountOption) {
  42235. var process = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 1;
  42236. var points = [];
  42237. var validHeight = opts.height - opts.area[0] - opts.area[2];
  42238. var validWidth = opts.width - opts.area[1] - opts.area[3];
  42239. var mountWidth = eachSpacing * mountOption.widthRatio;
  42240. series.forEach(function (item, index) {
  42241. if (item === null) {
  42242. points.push(null);
  42243. } else {
  42244. var point = {};
  42245. point.color = item.color;
  42246. point.x = xAxisPoints[index];
  42247. point.x += eachSpacing / 2;
  42248. var value = item.data;
  42249. var height = validHeight * (value - minRange) / (maxRange - minRange);
  42250. height *= process;
  42251. point.y = opts.height - height - opts.area[2];
  42252. point.value = value;
  42253. point.width = mountWidth;
  42254. points.push(point);
  42255. }
  42256. });
  42257. return points;
  42258. }
  42259. function getBarDataPoints(data, minRange, maxRange, yAxisPoints, eachSpacing, opts, config) {
  42260. var process = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 1;
  42261. var points = [];
  42262. var validHeight = opts.height - opts.area[0] - opts.area[2];
  42263. var validWidth = opts.width - opts.area[1] - opts.area[3];
  42264. data.forEach(function (item, index) {
  42265. if (item === null) {
  42266. points.push(null);
  42267. } else {
  42268. var point = {};
  42269. point.color = item.color;
  42270. point.y = yAxisPoints[index];
  42271. var value = item;
  42272. if ((0, _typeof2.default)(item) === 'object' && item !== null) {
  42273. value = item.value;
  42274. }
  42275. var height = validWidth * (value - minRange) / (maxRange - minRange);
  42276. height *= process;
  42277. point.height = height;
  42278. point.value = value;
  42279. point.x = height + opts.area[3];
  42280. points.push(point);
  42281. }
  42282. });
  42283. return points;
  42284. }
  42285. function getStackDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, seriesIndex, stackSeries) {
  42286. var process = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : 1;
  42287. var points = [];
  42288. var validHeight = opts.height - opts.area[0] - opts.area[2];
  42289. data.forEach(function (item, index) {
  42290. if (item === null) {
  42291. points.push(null);
  42292. } else {
  42293. var point = {};
  42294. point.color = item.color;
  42295. point.x = xAxisPoints[index] + Math.round(eachSpacing / 2);
  42296. if (seriesIndex > 0) {
  42297. var value = 0;
  42298. for (var i = 0; i <= seriesIndex; i++) {
  42299. value += stackSeries[i].data[index];
  42300. }
  42301. var value0 = value - item;
  42302. var height = validHeight * (value - minRange) / (maxRange - minRange);
  42303. var height0 = validHeight * (value0 - minRange) / (maxRange - minRange);
  42304. } else {
  42305. var value = item;
  42306. if ((0, _typeof2.default)(item) === 'object' && item !== null) {
  42307. value = item.value;
  42308. }
  42309. var height = validHeight * (value - minRange) / (maxRange - minRange);
  42310. var height0 = 0;
  42311. }
  42312. var heightc = height0;
  42313. height *= process;
  42314. heightc *= process;
  42315. point.y = opts.height - Math.round(height) - opts.area[2];
  42316. point.y0 = opts.height - Math.round(heightc) - opts.area[2];
  42317. points.push(point);
  42318. }
  42319. });
  42320. return points;
  42321. }
  42322. function getBarStackDataPoints(data, minRange, maxRange, yAxisPoints, eachSpacing, opts, config, seriesIndex, stackSeries) {
  42323. var process = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : 1;
  42324. var points = [];
  42325. var validHeight = opts.width - opts.area[1] - opts.area[3];
  42326. data.forEach(function (item, index) {
  42327. if (item === null) {
  42328. points.push(null);
  42329. } else {
  42330. var point = {};
  42331. point.color = item.color;
  42332. point.y = yAxisPoints[index];
  42333. if (seriesIndex > 0) {
  42334. var value = 0;
  42335. for (var i = 0; i <= seriesIndex; i++) {
  42336. value += stackSeries[i].data[index];
  42337. }
  42338. var value0 = value - item;
  42339. var height = validHeight * (value - minRange) / (maxRange - minRange);
  42340. var height0 = validHeight * (value0 - minRange) / (maxRange - minRange);
  42341. } else {
  42342. var value = item;
  42343. if ((0, _typeof2.default)(item) === 'object' && item !== null) {
  42344. value = item.value;
  42345. }
  42346. var height = validHeight * (value - minRange) / (maxRange - minRange);
  42347. var height0 = 0;
  42348. }
  42349. var heightc = height0;
  42350. height *= process;
  42351. heightc *= process;
  42352. point.height = height - heightc;
  42353. point.x = opts.area[3] + height;
  42354. point.x0 = opts.area[3] + heightc;
  42355. points.push(point);
  42356. }
  42357. });
  42358. return points;
  42359. }
  42360. function getYAxisTextList(series, opts, config, stack, yData) {
  42361. var index = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : -1;
  42362. var data;
  42363. if (stack == 'stack') {
  42364. data = dataCombineStack(series, opts.categories.length);
  42365. } else {
  42366. data = dataCombine(series);
  42367. }
  42368. var sorted = [];
  42369. // remove null from data
  42370. data = data.filter(function (item) {
  42371. //return item !== null;
  42372. if ((0, _typeof2.default)(item) === 'object' && item !== null) {
  42373. if (item.constructor.toString().indexOf('Array') > -1) {
  42374. return item !== null;
  42375. } else {
  42376. return item.value !== null;
  42377. }
  42378. } else {
  42379. return item !== null;
  42380. }
  42381. });
  42382. data.map(function (item) {
  42383. if ((0, _typeof2.default)(item) === 'object') {
  42384. if (item.constructor.toString().indexOf('Array') > -1) {
  42385. if (opts.type == 'candle') {
  42386. item.map(function (subitem) {
  42387. sorted.push(subitem);
  42388. });
  42389. } else {
  42390. sorted.push(item[1]);
  42391. }
  42392. } else {
  42393. sorted.push(item.value);
  42394. }
  42395. } else {
  42396. sorted.push(item);
  42397. }
  42398. });
  42399. var minData = yData.min || 0;
  42400. var maxData = yData.max || 0;
  42401. if (sorted.length > 0) {
  42402. minData = Math.min.apply(this, sorted);
  42403. maxData = Math.max.apply(this, sorted);
  42404. }
  42405. if (minData === maxData) {
  42406. if (maxData == 0) {
  42407. maxData = 10;
  42408. } else {
  42409. minData = 0;
  42410. }
  42411. }
  42412. var dataRange = getDataRange(minData, maxData);
  42413. var minRange = yData.min === undefined || yData.min === null ? dataRange.minRange : yData.min;
  42414. var maxRange = yData.max === undefined || yData.max === null ? dataRange.maxRange : yData.max;
  42415. var eachRange = (maxRange - minRange) / opts.yAxis.splitNumber;
  42416. var range = [];
  42417. for (var i = 0; i <= opts.yAxis.splitNumber; i++) {
  42418. range.push(minRange + eachRange * i);
  42419. }
  42420. return range.reverse();
  42421. }
  42422. function calYAxisData(series, opts, config, context) {
  42423. //堆叠图重算Y轴
  42424. var columnstyle = assign({}, {
  42425. type: ""
  42426. }, opts.extra.column);
  42427. //如果是多Y轴,重新计算
  42428. var YLength = opts.yAxis.data.length;
  42429. var newSeries = new Array(YLength);
  42430. if (YLength > 0) {
  42431. for (var i = 0; i < YLength; i++) {
  42432. newSeries[i] = [];
  42433. for (var j = 0; j < series.length; j++) {
  42434. if (series[j].index == i) {
  42435. newSeries[i].push(series[j]);
  42436. }
  42437. }
  42438. }
  42439. var rangesArr = new Array(YLength);
  42440. var rangesFormatArr = new Array(YLength);
  42441. var yAxisWidthArr = new Array(YLength);
  42442. var _loop3 = function _loop3(_i14) {
  42443. var yData = opts.yAxis.data[_i14];
  42444. //如果总开关不显示,强制每个Y轴为不显示
  42445. if (opts.yAxis.disabled == true) {
  42446. yData.disabled = true;
  42447. }
  42448. if (yData.type === 'categories') {
  42449. if (!yData.formatter) {
  42450. yData.formatter = function (val, index, opts) {
  42451. return val + (yData.unit || '');
  42452. };
  42453. }
  42454. yData.categories = yData.categories || opts.categories;
  42455. rangesArr[_i14] = yData.categories;
  42456. } else {
  42457. if (!yData.formatter) {
  42458. yData.formatter = function (val, index, opts) {
  42459. return util.toFixed(val, yData.tofix || 0) + (yData.unit || '');
  42460. };
  42461. }
  42462. rangesArr[_i14] = getYAxisTextList(newSeries[_i14], opts, config, columnstyle.type, yData, _i14);
  42463. }
  42464. var yAxisFontSizes = yData.fontSize * opts.pix || config.fontSize;
  42465. yAxisWidthArr[_i14] = {
  42466. position: yData.position ? yData.position : 'left',
  42467. width: 0
  42468. };
  42469. rangesFormatArr[_i14] = rangesArr[_i14].map(function (items, index) {
  42470. items = yData.formatter(items, index, opts);
  42471. yAxisWidthArr[_i14].width = Math.max(yAxisWidthArr[_i14].width, measureText(items, yAxisFontSizes, context) + 5);
  42472. return items;
  42473. });
  42474. var calibration = yData.calibration ? 4 * opts.pix : 0;
  42475. yAxisWidthArr[_i14].width += calibration + 3 * opts.pix;
  42476. if (yData.disabled === true) {
  42477. yAxisWidthArr[_i14].width = 0;
  42478. }
  42479. };
  42480. for (var _i14 = 0; _i14 < YLength; _i14++) {
  42481. _loop3(_i14);
  42482. }
  42483. } else {
  42484. var rangesArr = new Array(1);
  42485. var rangesFormatArr = new Array(1);
  42486. var yAxisWidthArr = new Array(1);
  42487. if (opts.type === 'bar') {
  42488. rangesArr[0] = opts.categories;
  42489. } else {
  42490. rangesArr[0] = getYAxisTextList(series, opts, config, columnstyle.type, {});
  42491. }
  42492. yAxisWidthArr[0] = {
  42493. position: 'left',
  42494. width: 0
  42495. };
  42496. if (opts.yAxis.disabled === true) {
  42497. yAxisWidthArr[0] = {
  42498. position: 'left',
  42499. width: 0
  42500. };
  42501. opts.yAxis.data[0] = {
  42502. disabled: true
  42503. };
  42504. } else {
  42505. opts.yAxis.data[0] = {
  42506. disabled: false,
  42507. position: 'left',
  42508. max: opts.yAxis.max,
  42509. min: opts.yAxis.min,
  42510. formatter: function formatter(val, index, opts) {
  42511. return val;
  42512. }
  42513. };
  42514. if (opts.type === 'bar') {
  42515. opts.yAxis.data[0].categories = opts.categories;
  42516. opts.yAxis.data[0].type = 'categories';
  42517. }
  42518. }
  42519. var yAxisFontSize = opts.yAxis.fontSize * opts.pix || config.fontSize;
  42520. rangesFormatArr[0] = rangesArr[0].map(function (item, index) {
  42521. item = opts.yAxis.data[0].formatter(item, index, opts);
  42522. yAxisWidthArr[0].width = Math.max(yAxisWidthArr[0].width, measureText(item, yAxisFontSize, context) + 5);
  42523. return item;
  42524. });
  42525. yAxisWidthArr[0].width += 3 * opts.pix;
  42526. }
  42527. return {
  42528. rangesFormat: rangesFormatArr,
  42529. ranges: rangesArr,
  42530. yAxisWidth: yAxisWidthArr
  42531. };
  42532. }
  42533. function calTooltipYAxisData(point, series, opts, config, eachSpacing) {
  42534. var ranges = [].concat(opts.chartData.yAxisData.ranges);
  42535. var spacingValid = opts.height - opts.area[0] - opts.area[2];
  42536. var minAxis = opts.area[0];
  42537. var items = [];
  42538. for (var i = 0; i < ranges.length; i++) {
  42539. var maxVal = Math.max.apply(this, ranges[i]);
  42540. var minVal = Math.min.apply(this, ranges[i]);
  42541. var item = maxVal - (maxVal - minVal) * (point - minAxis) / spacingValid;
  42542. item = opts.yAxis.data && opts.yAxis.data[i].formatter ? opts.yAxis.data[i].formatter(item, i, opts) : item.toFixed(0);
  42543. items.push(String(item));
  42544. }
  42545. return items;
  42546. }
  42547. function calMarkLineData(points, opts) {
  42548. var minRange, maxRange;
  42549. var spacingValid = opts.height - opts.area[0] - opts.area[2];
  42550. for (var i = 0; i < points.length; i++) {
  42551. points[i].yAxisIndex = points[i].yAxisIndex ? points[i].yAxisIndex : 0;
  42552. var range = [].concat(opts.chartData.yAxisData.ranges[points[i].yAxisIndex]);
  42553. minRange = range.pop();
  42554. maxRange = range.shift();
  42555. var height = spacingValid * (points[i].value - minRange) / (maxRange - minRange);
  42556. points[i].y = opts.height - Math.round(height) - opts.area[2];
  42557. }
  42558. return points;
  42559. }
  42560. function contextRotate(context, opts) {
  42561. if (opts.rotateLock !== true) {
  42562. context.translate(opts.height, 0);
  42563. context.rotate(90 * Math.PI / 180);
  42564. } else if (opts._rotate_ !== true) {
  42565. context.translate(opts.height, 0);
  42566. context.rotate(90 * Math.PI / 180);
  42567. opts._rotate_ = true;
  42568. }
  42569. }
  42570. function drawPointShape(points, color, shape, context, opts) {
  42571. context.beginPath();
  42572. if (opts.dataPointShapeType == 'hollow') {
  42573. context.setStrokeStyle(color);
  42574. context.setFillStyle(opts.background);
  42575. context.setLineWidth(2 * opts.pix);
  42576. } else {
  42577. context.setStrokeStyle("#ffffff");
  42578. context.setFillStyle(color);
  42579. context.setLineWidth(1 * opts.pix);
  42580. }
  42581. if (shape === 'diamond') {
  42582. points.forEach(function (item, index) {
  42583. if (item !== null) {
  42584. context.moveTo(item.x, item.y - 4.5);
  42585. context.lineTo(item.x - 4.5, item.y);
  42586. context.lineTo(item.x, item.y + 4.5);
  42587. context.lineTo(item.x + 4.5, item.y);
  42588. context.lineTo(item.x, item.y - 4.5);
  42589. }
  42590. });
  42591. } else if (shape === 'circle') {
  42592. points.forEach(function (item, index) {
  42593. if (item !== null) {
  42594. context.moveTo(item.x + 2.5 * opts.pix, item.y);
  42595. context.arc(item.x, item.y, 3 * opts.pix, 0, 2 * Math.PI, false);
  42596. }
  42597. });
  42598. } else if (shape === 'square') {
  42599. points.forEach(function (item, index) {
  42600. if (item !== null) {
  42601. context.moveTo(item.x - 3.5, item.y - 3.5);
  42602. context.rect(item.x - 3.5, item.y - 3.5, 7, 7);
  42603. }
  42604. });
  42605. } else if (shape === 'triangle') {
  42606. points.forEach(function (item, index) {
  42607. if (item !== null) {
  42608. context.moveTo(item.x, item.y - 4.5);
  42609. context.lineTo(item.x - 4.5, item.y + 4.5);
  42610. context.lineTo(item.x + 4.5, item.y + 4.5);
  42611. context.lineTo(item.x, item.y - 4.5);
  42612. }
  42613. });
  42614. } else if (shape === 'none') {
  42615. return;
  42616. }
  42617. context.closePath();
  42618. context.fill();
  42619. context.stroke();
  42620. }
  42621. function drawRingTitle(opts, config, context, center) {
  42622. var titlefontSize = opts.title.fontSize || config.titleFontSize;
  42623. var subtitlefontSize = opts.subtitle.fontSize || config.subtitleFontSize;
  42624. var title = opts.title.name || '';
  42625. var subtitle = opts.subtitle.name || '';
  42626. var titleFontColor = opts.title.color || opts.fontColor;
  42627. var subtitleFontColor = opts.subtitle.color || opts.fontColor;
  42628. var titleHeight = title ? titlefontSize : 0;
  42629. var subtitleHeight = subtitle ? subtitlefontSize : 0;
  42630. var margin = 5;
  42631. if (subtitle) {
  42632. var textWidth = measureText(subtitle, subtitlefontSize * opts.pix, context);
  42633. var startX = center.x - textWidth / 2 + (opts.subtitle.offsetX || 0) * opts.pix;
  42634. var startY = center.y + subtitlefontSize * opts.pix / 2 + (opts.subtitle.offsetY || 0) * opts.pix;
  42635. if (title) {
  42636. startY += (titleHeight * opts.pix + margin) / 2;
  42637. }
  42638. context.beginPath();
  42639. context.setFontSize(subtitlefontSize * opts.pix);
  42640. context.setFillStyle(subtitleFontColor);
  42641. context.fillText(subtitle, startX, startY);
  42642. context.closePath();
  42643. context.stroke();
  42644. }
  42645. if (title) {
  42646. var _textWidth = measureText(title, titlefontSize * opts.pix, context);
  42647. var _startX = center.x - _textWidth / 2 + (opts.title.offsetX || 0);
  42648. var _startY = center.y + titlefontSize * opts.pix / 2 + (opts.title.offsetY || 0) * opts.pix;
  42649. if (subtitle) {
  42650. _startY -= (subtitleHeight * opts.pix + margin) / 2;
  42651. }
  42652. context.beginPath();
  42653. context.setFontSize(titlefontSize * opts.pix);
  42654. context.setFillStyle(titleFontColor);
  42655. context.fillText(title, _startX, _startY);
  42656. context.closePath();
  42657. context.stroke();
  42658. }
  42659. }
  42660. function drawPointText(points, series, config, context, opts) {
  42661. // 绘制数据文案
  42662. var data = series.data;
  42663. var textOffset = series.textOffset ? series.textOffset : 0;
  42664. points.forEach(function (item, index) {
  42665. if (item !== null) {
  42666. context.beginPath();
  42667. var fontSize = series.textSize ? series.textSize * opts.pix : config.fontSize;
  42668. context.setFontSize(fontSize);
  42669. context.setFillStyle(series.textColor || opts.fontColor);
  42670. var value = data[index];
  42671. if ((0, _typeof2.default)(data[index]) === 'object' && data[index] !== null) {
  42672. if (data[index].constructor.toString().indexOf('Array') > -1) {
  42673. value = data[index][1];
  42674. } else {
  42675. value = data[index].value;
  42676. }
  42677. }
  42678. var formatVal = series.formatter ? series.formatter(value, index, series, opts) : value;
  42679. context.setTextAlign('center');
  42680. context.fillText(String(formatVal), item.x, item.y - 4 + textOffset * opts.pix);
  42681. context.closePath();
  42682. context.stroke();
  42683. context.setTextAlign('left');
  42684. }
  42685. });
  42686. }
  42687. function drawMountPointText(points, series, config, context, opts) {
  42688. // 绘制数据文案
  42689. var data = series.data;
  42690. var textOffset = series.textOffset ? series.textOffset : 0;
  42691. points.forEach(function (item, index) {
  42692. if (item !== null) {
  42693. context.beginPath();
  42694. var fontSize = series[index].textSize ? series[index].textSize * opts.pix : config.fontSize;
  42695. context.setFontSize(fontSize);
  42696. context.setFillStyle(series[index].textColor || opts.fontColor);
  42697. var value = item.value;
  42698. var formatVal = series[index].formatter ? series[index].formatter(value, index, series, opts) : value;
  42699. context.setTextAlign('center');
  42700. context.fillText(String(formatVal), item.x, item.y - 4 + textOffset * opts.pix);
  42701. context.closePath();
  42702. context.stroke();
  42703. context.setTextAlign('left');
  42704. }
  42705. });
  42706. }
  42707. function drawBarPointText(points, series, config, context, opts) {
  42708. // 绘制数据文案
  42709. var data = series.data;
  42710. var textOffset = series.textOffset ? series.textOffset : 0;
  42711. points.forEach(function (item, index) {
  42712. if (item !== null) {
  42713. context.beginPath();
  42714. var fontSize = series.textSize ? series.textSize * opts.pix : config.fontSize;
  42715. context.setFontSize(fontSize);
  42716. context.setFillStyle(series.textColor || opts.fontColor);
  42717. var value = data[index];
  42718. if ((0, _typeof2.default)(data[index]) === 'object' && data[index] !== null) {
  42719. value = data[index].value;
  42720. }
  42721. var formatVal = series.formatter ? series.formatter(value, index, series, opts) : value;
  42722. context.setTextAlign('left');
  42723. context.fillText(String(formatVal), item.x + 4 * opts.pix, item.y + fontSize / 2 - 3);
  42724. context.closePath();
  42725. context.stroke();
  42726. }
  42727. });
  42728. }
  42729. function drawGaugeLabel(gaugeOption, radius, centerPosition, opts, config, context) {
  42730. radius -= gaugeOption.width / 2 + gaugeOption.labelOffset * opts.pix;
  42731. radius = radius < 10 ? 10 : radius;
  42732. var totalAngle = gaugeOption.startAngle - gaugeOption.endAngle + 1;
  42733. var splitAngle = totalAngle / gaugeOption.splitLine.splitNumber;
  42734. var totalNumber = gaugeOption.endNumber - gaugeOption.startNumber;
  42735. var splitNumber = totalNumber / gaugeOption.splitLine.splitNumber;
  42736. var nowAngle = gaugeOption.startAngle;
  42737. var nowNumber = gaugeOption.startNumber;
  42738. for (var i = 0; i < gaugeOption.splitLine.splitNumber + 1; i++) {
  42739. var pos = {
  42740. x: radius * Math.cos(nowAngle * Math.PI),
  42741. y: radius * Math.sin(nowAngle * Math.PI)
  42742. };
  42743. var labelText = gaugeOption.formatter ? gaugeOption.formatter(nowNumber, i, opts) : nowNumber;
  42744. pos.x += centerPosition.x - measureText(labelText, config.fontSize, context) / 2;
  42745. pos.y += centerPosition.y;
  42746. var startX = pos.x;
  42747. var startY = pos.y;
  42748. context.beginPath();
  42749. context.setFontSize(config.fontSize);
  42750. context.setFillStyle(gaugeOption.labelColor || opts.fontColor);
  42751. context.fillText(labelText, startX, startY + config.fontSize / 2);
  42752. context.closePath();
  42753. context.stroke();
  42754. nowAngle += splitAngle;
  42755. if (nowAngle >= 2) {
  42756. nowAngle = nowAngle % 2;
  42757. }
  42758. nowNumber += splitNumber;
  42759. }
  42760. }
  42761. function drawRadarLabel(angleList, radius, centerPosition, opts, config, context) {
  42762. var radarOption = opts.extra.radar || {};
  42763. angleList.forEach(function (angle, index) {
  42764. if (radarOption.labelPointShow === true && opts.categories[index] !== '') {
  42765. var posPoint = {
  42766. x: radius * Math.cos(angle),
  42767. y: radius * Math.sin(angle)
  42768. };
  42769. var posPointAxis = convertCoordinateOrigin(posPoint.x, posPoint.y, centerPosition);
  42770. context.setFillStyle(radarOption.labelPointColor);
  42771. context.beginPath();
  42772. context.arc(posPointAxis.x, posPointAxis.y, radarOption.labelPointRadius * opts.pix, 0, 2 * Math.PI, false);
  42773. context.closePath();
  42774. context.fill();
  42775. }
  42776. var pos = {
  42777. x: (radius + config.radarLabelTextMargin * opts.pix) * Math.cos(angle),
  42778. y: (radius + config.radarLabelTextMargin * opts.pix) * Math.sin(angle)
  42779. };
  42780. var posRelativeCanvas = convertCoordinateOrigin(pos.x, pos.y, centerPosition);
  42781. var startX = posRelativeCanvas.x;
  42782. var startY = posRelativeCanvas.y;
  42783. if (util.approximatelyEqual(pos.x, 0)) {
  42784. startX -= measureText(opts.categories[index] || '', config.fontSize, context) / 2;
  42785. } else if (pos.x < 0) {
  42786. startX -= measureText(opts.categories[index] || '', config.fontSize, context);
  42787. }
  42788. context.beginPath();
  42789. context.setFontSize(config.fontSize);
  42790. context.setFillStyle(radarOption.labelColor || opts.fontColor);
  42791. context.fillText(opts.categories[index] || '', startX, startY + config.fontSize / 2);
  42792. context.closePath();
  42793. context.stroke();
  42794. });
  42795. }
  42796. function drawPieText(series, opts, config, context, radius, center) {
  42797. var lineRadius = config.pieChartLinePadding;
  42798. var textObjectCollection = [];
  42799. var lastTextObject = null;
  42800. var seriesConvert = series.map(function (item, index) {
  42801. var text = item.formatter ? item.formatter(item, index, series, opts) : util.toFixed(item._proportion_.toFixed(4) * 100) + '%';
  42802. text = item.labelText ? item.labelText : text;
  42803. var arc = 2 * Math.PI - (item._start_ + 2 * Math.PI * item._proportion_ / 2);
  42804. if (item._rose_proportion_) {
  42805. arc = 2 * Math.PI - (item._start_ + 2 * Math.PI * item._rose_proportion_ / 2);
  42806. }
  42807. var color = item.color;
  42808. var radius = item._radius_;
  42809. return {
  42810. arc: arc,
  42811. text: text,
  42812. color: color,
  42813. radius: radius,
  42814. textColor: item.textColor,
  42815. textSize: item.textSize,
  42816. labelShow: item.labelShow
  42817. };
  42818. });
  42819. for (var i = 0; i < seriesConvert.length; i++) {
  42820. var item = seriesConvert[i];
  42821. // line end
  42822. var orginX1 = Math.cos(item.arc) * (item.radius + lineRadius);
  42823. var orginY1 = Math.sin(item.arc) * (item.radius + lineRadius);
  42824. // line start
  42825. var orginX2 = Math.cos(item.arc) * item.radius;
  42826. var orginY2 = Math.sin(item.arc) * item.radius;
  42827. // text start
  42828. var orginX3 = orginX1 >= 0 ? orginX1 + config.pieChartTextPadding : orginX1 - config.pieChartTextPadding;
  42829. var orginY3 = orginY1;
  42830. var textWidth = measureText(item.text, item.textSize * opts.pix || config.fontSize, context);
  42831. var startY = orginY3;
  42832. if (lastTextObject && util.isSameXCoordinateArea(lastTextObject.start, {
  42833. x: orginX3
  42834. })) {
  42835. if (orginX3 > 0) {
  42836. startY = Math.min(orginY3, lastTextObject.start.y);
  42837. } else if (orginX1 < 0) {
  42838. startY = Math.max(orginY3, lastTextObject.start.y);
  42839. } else {
  42840. if (orginY3 > 0) {
  42841. startY = Math.max(orginY3, lastTextObject.start.y);
  42842. } else {
  42843. startY = Math.min(orginY3, lastTextObject.start.y);
  42844. }
  42845. }
  42846. }
  42847. if (orginX3 < 0) {
  42848. orginX3 -= textWidth;
  42849. }
  42850. var textObject = {
  42851. lineStart: {
  42852. x: orginX2,
  42853. y: orginY2
  42854. },
  42855. lineEnd: {
  42856. x: orginX1,
  42857. y: orginY1
  42858. },
  42859. start: {
  42860. x: orginX3,
  42861. y: startY
  42862. },
  42863. width: textWidth,
  42864. height: config.fontSize,
  42865. text: item.text,
  42866. color: item.color,
  42867. textColor: item.textColor,
  42868. textSize: item.textSize
  42869. };
  42870. lastTextObject = avoidCollision(textObject, lastTextObject);
  42871. textObjectCollection.push(lastTextObject);
  42872. }
  42873. for (var _i15 = 0; _i15 < textObjectCollection.length; _i15++) {
  42874. if (seriesConvert[_i15].labelShow === false) {
  42875. continue;
  42876. }
  42877. var _item6 = textObjectCollection[_i15];
  42878. var lineStartPoistion = convertCoordinateOrigin(_item6.lineStart.x, _item6.lineStart.y, center);
  42879. var lineEndPoistion = convertCoordinateOrigin(_item6.lineEnd.x, _item6.lineEnd.y, center);
  42880. var textPosition = convertCoordinateOrigin(_item6.start.x, _item6.start.y, center);
  42881. context.setLineWidth(1 * opts.pix);
  42882. context.setFontSize(_item6.textSize * opts.pix || config.fontSize);
  42883. context.beginPath();
  42884. context.setStrokeStyle(_item6.color);
  42885. context.setFillStyle(_item6.color);
  42886. context.moveTo(lineStartPoistion.x, lineStartPoistion.y);
  42887. var curveStartX = _item6.start.x < 0 ? textPosition.x + _item6.width : textPosition.x;
  42888. var textStartX = _item6.start.x < 0 ? textPosition.x - 5 : textPosition.x + 5;
  42889. context.quadraticCurveTo(lineEndPoistion.x, lineEndPoistion.y, curveStartX, textPosition.y);
  42890. context.moveTo(lineStartPoistion.x, lineStartPoistion.y);
  42891. context.stroke();
  42892. context.closePath();
  42893. context.beginPath();
  42894. context.moveTo(textPosition.x + _item6.width, textPosition.y);
  42895. context.arc(curveStartX, textPosition.y, 2 * opts.pix, 0, 2 * Math.PI);
  42896. context.closePath();
  42897. context.fill();
  42898. context.beginPath();
  42899. context.setFontSize(_item6.textSize * opts.pix || config.fontSize);
  42900. context.setFillStyle(_item6.textColor || opts.fontColor);
  42901. context.fillText(_item6.text, textStartX, textPosition.y + 3);
  42902. context.closePath();
  42903. context.stroke();
  42904. context.closePath();
  42905. }
  42906. }
  42907. function drawToolTipSplitLine(offsetX, opts, config, context) {
  42908. var toolTipOption = opts.extra.tooltip || {};
  42909. toolTipOption.gridType = toolTipOption.gridType == undefined ? 'solid' : toolTipOption.gridType;
  42910. toolTipOption.dashLength = toolTipOption.dashLength == undefined ? 4 : toolTipOption.dashLength;
  42911. var startY = opts.area[0];
  42912. var endY = opts.height - opts.area[2];
  42913. if (toolTipOption.gridType == 'dash') {
  42914. context.setLineDash([toolTipOption.dashLength, toolTipOption.dashLength]);
  42915. }
  42916. context.setStrokeStyle(toolTipOption.gridColor || '#cccccc');
  42917. context.setLineWidth(1 * opts.pix);
  42918. context.beginPath();
  42919. context.moveTo(offsetX, startY);
  42920. context.lineTo(offsetX, endY);
  42921. context.stroke();
  42922. context.setLineDash([]);
  42923. if (toolTipOption.xAxisLabel) {
  42924. var labelText = opts.categories[opts.tooltip.index];
  42925. context.setFontSize(config.fontSize);
  42926. var textWidth = measureText(labelText, config.fontSize, context);
  42927. var textX = offsetX - 0.5 * textWidth;
  42928. var textY = endY + 2 * opts.pix;
  42929. context.beginPath();
  42930. context.setFillStyle(hexToRgb(toolTipOption.labelBgColor || config.toolTipBackground, toolTipOption.labelBgOpacity || config.toolTipOpacity));
  42931. context.setStrokeStyle(toolTipOption.labelBgColor || config.toolTipBackground);
  42932. context.setLineWidth(1 * opts.pix);
  42933. context.rect(textX - config.toolTipPadding, textY, textWidth + 2 * config.toolTipPadding, config.fontSize + 2 * config.toolTipPadding);
  42934. context.closePath();
  42935. context.stroke();
  42936. context.fill();
  42937. context.beginPath();
  42938. context.setFontSize(config.fontSize);
  42939. context.setFillStyle(toolTipOption.labelFontColor || opts.fontColor);
  42940. context.fillText(String(labelText), textX, textY + config.toolTipPadding + config.fontSize);
  42941. context.closePath();
  42942. context.stroke();
  42943. }
  42944. }
  42945. function drawMarkLine(opts, config, context) {
  42946. var markLineOption = assign({}, {
  42947. type: 'solid',
  42948. dashLength: 4,
  42949. data: []
  42950. }, opts.extra.markLine);
  42951. var startX = opts.area[3];
  42952. var endX = opts.width - opts.area[1];
  42953. var points = calMarkLineData(markLineOption.data, opts);
  42954. for (var i = 0; i < points.length; i++) {
  42955. var item = assign({}, {
  42956. lineColor: '#DE4A42',
  42957. showLabel: false,
  42958. labelFontColor: '#666666',
  42959. labelBgColor: '#DFE8FF',
  42960. labelBgOpacity: 0.8,
  42961. labelAlign: 'left',
  42962. labelOffsetX: 0,
  42963. labelOffsetY: 0
  42964. }, points[i]);
  42965. if (markLineOption.type == 'dash') {
  42966. context.setLineDash([markLineOption.dashLength, markLineOption.dashLength]);
  42967. }
  42968. context.setStrokeStyle(item.lineColor);
  42969. context.setLineWidth(1 * opts.pix);
  42970. context.beginPath();
  42971. context.moveTo(startX, item.y);
  42972. context.lineTo(endX, item.y);
  42973. context.stroke();
  42974. context.setLineDash([]);
  42975. if (item.showLabel) {
  42976. var labelText = item.labelText ? item.labelText : item.value;
  42977. context.setFontSize(config.fontSize);
  42978. var textWidth = measureText(labelText, config.fontSize, context);
  42979. var bgWidth = textWidth + config.toolTipPadding * 2;
  42980. var bgStartX = item.labelAlign == 'left' ? opts.area[3] - bgWidth : opts.width - opts.area[1];
  42981. bgStartX += item.labelOffsetX;
  42982. var bgStartY = item.y - 0.5 * config.fontSize - config.toolTipPadding;
  42983. bgStartY += item.labelOffsetY;
  42984. var textX = bgStartX + config.toolTipPadding;
  42985. var textY = item.y;
  42986. context.setFillStyle(hexToRgb(item.labelBgColor, item.labelBgOpacity));
  42987. context.setStrokeStyle(item.labelBgColor);
  42988. context.setLineWidth(1 * opts.pix);
  42989. context.beginPath();
  42990. context.rect(bgStartX, bgStartY, bgWidth, config.fontSize + 2 * config.toolTipPadding);
  42991. context.closePath();
  42992. context.stroke();
  42993. context.fill();
  42994. context.setFontSize(config.fontSize);
  42995. context.setTextAlign('left');
  42996. context.setFillStyle(item.labelFontColor);
  42997. context.fillText(String(labelText), textX, bgStartY + config.fontSize + config.toolTipPadding / 2);
  42998. context.stroke();
  42999. context.setTextAlign('left');
  43000. }
  43001. }
  43002. }
  43003. function drawToolTipHorizentalLine(opts, config, context, eachSpacing, xAxisPoints) {
  43004. var toolTipOption = assign({}, {
  43005. gridType: 'solid',
  43006. dashLength: 4
  43007. }, opts.extra.tooltip);
  43008. var startX = opts.area[3];
  43009. var endX = opts.width - opts.area[1];
  43010. if (toolTipOption.gridType == 'dash') {
  43011. context.setLineDash([toolTipOption.dashLength, toolTipOption.dashLength]);
  43012. }
  43013. context.setStrokeStyle(toolTipOption.gridColor || '#cccccc');
  43014. context.setLineWidth(1 * opts.pix);
  43015. context.beginPath();
  43016. context.moveTo(startX, opts.tooltip.offset.y);
  43017. context.lineTo(endX, opts.tooltip.offset.y);
  43018. context.stroke();
  43019. context.setLineDash([]);
  43020. if (toolTipOption.yAxisLabel) {
  43021. var labelText = calTooltipYAxisData(opts.tooltip.offset.y, opts.series, opts, config, eachSpacing);
  43022. var widthArr = opts.chartData.yAxisData.yAxisWidth;
  43023. var tStartLeft = opts.area[3];
  43024. var tStartRight = opts.width - opts.area[1];
  43025. for (var i = 0; i < labelText.length; i++) {
  43026. context.setFontSize(config.fontSize);
  43027. var textWidth = measureText(labelText[i], config.fontSize, context);
  43028. var bgStartX = void 0,
  43029. bgEndX = void 0,
  43030. bgWidth = void 0;
  43031. if (widthArr[i].position == 'left') {
  43032. bgStartX = tStartLeft - (textWidth + config.toolTipPadding * 2) - 2 * opts.pix;
  43033. bgEndX = Math.max(bgStartX, bgStartX + textWidth + config.toolTipPadding * 2);
  43034. } else {
  43035. bgStartX = tStartRight + 2 * opts.pix;
  43036. bgEndX = Math.max(bgStartX + widthArr[i].width, bgStartX + textWidth + config.toolTipPadding * 2);
  43037. }
  43038. bgWidth = bgEndX - bgStartX;
  43039. var textX = bgStartX + (bgWidth - textWidth) / 2;
  43040. var textY = opts.tooltip.offset.y;
  43041. context.beginPath();
  43042. context.setFillStyle(hexToRgb(toolTipOption.labelBgColor || config.toolTipBackground, toolTipOption.labelBgOpacity || config.toolTipOpacity));
  43043. context.setStrokeStyle(toolTipOption.labelBgColor || config.toolTipBackground);
  43044. context.setLineWidth(1 * opts.pix);
  43045. context.rect(bgStartX, textY - 0.5 * config.fontSize - config.toolTipPadding, bgWidth, config.fontSize + 2 * config.toolTipPadding);
  43046. context.closePath();
  43047. context.stroke();
  43048. context.fill();
  43049. context.beginPath();
  43050. context.setFontSize(config.fontSize);
  43051. context.setFillStyle(toolTipOption.labelFontColor || opts.fontColor);
  43052. context.fillText(labelText[i], textX, textY + 0.5 * config.fontSize);
  43053. context.closePath();
  43054. context.stroke();
  43055. if (widthArr[i].position == 'left') {
  43056. tStartLeft -= widthArr[i].width + opts.yAxis.padding * opts.pix;
  43057. } else {
  43058. tStartRight += widthArr[i].width + opts.yAxis.padding * opts.pix;
  43059. }
  43060. }
  43061. }
  43062. }
  43063. function drawToolTipSplitArea(offsetX, opts, config, context, eachSpacing) {
  43064. var toolTipOption = assign({}, {
  43065. activeBgColor: '#000000',
  43066. activeBgOpacity: 0.08,
  43067. activeWidth: eachSpacing
  43068. }, opts.extra.column);
  43069. toolTipOption.activeWidth = toolTipOption.activeWidth > eachSpacing ? eachSpacing : toolTipOption.activeWidth;
  43070. var startY = opts.area[0];
  43071. var endY = opts.height - opts.area[2];
  43072. context.beginPath();
  43073. context.setFillStyle(hexToRgb(toolTipOption.activeBgColor, toolTipOption.activeBgOpacity));
  43074. context.rect(offsetX - toolTipOption.activeWidth / 2, startY, toolTipOption.activeWidth, endY - startY);
  43075. context.closePath();
  43076. context.fill();
  43077. context.setFillStyle("#FFFFFF");
  43078. }
  43079. function drawBarToolTipSplitArea(offsetX, opts, config, context, eachSpacing) {
  43080. var toolTipOption = assign({}, {
  43081. activeBgColor: '#000000',
  43082. activeBgOpacity: 0.08
  43083. }, opts.extra.bar);
  43084. var startX = opts.area[3];
  43085. var endX = opts.width - opts.area[1];
  43086. context.beginPath();
  43087. context.setFillStyle(hexToRgb(toolTipOption.activeBgColor, toolTipOption.activeBgOpacity));
  43088. context.rect(startX, offsetX - eachSpacing / 2, endX - startX, eachSpacing);
  43089. context.closePath();
  43090. context.fill();
  43091. context.setFillStyle("#FFFFFF");
  43092. }
  43093. function drawToolTip(textList, offset, opts, config, context, eachSpacing, xAxisPoints) {
  43094. var toolTipOption = assign({}, {
  43095. showBox: true,
  43096. showArrow: true,
  43097. showCategory: false,
  43098. bgColor: '#000000',
  43099. bgOpacity: 0.7,
  43100. borderColor: '#000000',
  43101. borderWidth: 0,
  43102. borderRadius: 0,
  43103. borderOpacity: 0.7,
  43104. fontColor: '#FFFFFF',
  43105. splitLine: true
  43106. }, opts.extra.tooltip);
  43107. if (toolTipOption.showCategory == true && opts.categories) {
  43108. textList.unshift({
  43109. text: opts.categories[opts.tooltip.index],
  43110. color: null
  43111. });
  43112. }
  43113. var legendWidth = 4 * opts.pix;
  43114. var legendMarginRight = 5 * opts.pix;
  43115. var arrowWidth = toolTipOption.showArrow ? 8 * opts.pix : 0;
  43116. var isOverRightBorder = false;
  43117. if (opts.type == 'line' || opts.type == 'mount' || opts.type == 'area' || opts.type == 'candle' || opts.type == 'mix') {
  43118. if (toolTipOption.splitLine == true) {
  43119. drawToolTipSplitLine(opts.tooltip.offset.x, opts, config, context);
  43120. }
  43121. }
  43122. offset = assign({
  43123. x: 0,
  43124. y: 0
  43125. }, offset);
  43126. offset.y -= 8 * opts.pix;
  43127. var textWidth = textList.map(function (item) {
  43128. return measureText(item.text, config.fontSize, context);
  43129. });
  43130. var toolTipWidth = legendWidth + legendMarginRight + 4 * config.toolTipPadding + Math.max.apply(null, textWidth);
  43131. var toolTipHeight = 2 * config.toolTipPadding + textList.length * config.toolTipLineHeight;
  43132. if (toolTipOption.showBox == false) {
  43133. return;
  43134. }
  43135. // if beyond the right border
  43136. if (offset.x - Math.abs(opts._scrollDistance_ || 0) + arrowWidth + toolTipWidth > opts.width) {
  43137. isOverRightBorder = true;
  43138. }
  43139. if (toolTipHeight + offset.y > opts.height) {
  43140. offset.y = opts.height - toolTipHeight;
  43141. }
  43142. // draw background rect
  43143. context.beginPath();
  43144. context.setFillStyle(hexToRgb(toolTipOption.bgColor || config.toolTipBackground, toolTipOption.bgOpacity || config.toolTipOpacity));
  43145. context.setLineWidth(toolTipOption.borderWidth * opts.pix);
  43146. context.setStrokeStyle(hexToRgb(toolTipOption.borderColor, toolTipOption.borderOpacity));
  43147. var radius = toolTipOption.borderRadius;
  43148. if (isOverRightBorder) {
  43149. // 增加左侧仍然超出的判断
  43150. if (toolTipWidth + arrowWidth > opts.width) {
  43151. offset.x = opts.width + Math.abs(opts._scrollDistance_ || 0) + arrowWidth + (toolTipWidth - opts.width);
  43152. }
  43153. if (toolTipOption.showArrow) {
  43154. context.moveTo(offset.x, offset.y + 10 * opts.pix);
  43155. context.lineTo(offset.x - arrowWidth, offset.y + 10 * opts.pix + 5 * opts.pix);
  43156. }
  43157. context.arc(offset.x - arrowWidth - radius, offset.y + toolTipHeight - radius, radius, 0, Math.PI / 2, false);
  43158. context.arc(offset.x - arrowWidth - Math.round(toolTipWidth) + radius, offset.y + toolTipHeight - radius, radius, Math.PI / 2, Math.PI, false);
  43159. context.arc(offset.x - arrowWidth - Math.round(toolTipWidth) + radius, offset.y + radius, radius, -Math.PI, -Math.PI / 2, false);
  43160. context.arc(offset.x - arrowWidth - radius, offset.y + radius, radius, -Math.PI / 2, 0, false);
  43161. if (toolTipOption.showArrow) {
  43162. context.lineTo(offset.x - arrowWidth, offset.y + 10 * opts.pix - 5 * opts.pix);
  43163. context.lineTo(offset.x, offset.y + 10 * opts.pix);
  43164. }
  43165. } else {
  43166. if (toolTipOption.showArrow) {
  43167. context.moveTo(offset.x, offset.y + 10 * opts.pix);
  43168. context.lineTo(offset.x + arrowWidth, offset.y + 10 * opts.pix - 5 * opts.pix);
  43169. }
  43170. context.arc(offset.x + arrowWidth + radius, offset.y + radius, radius, -Math.PI, -Math.PI / 2, false);
  43171. context.arc(offset.x + arrowWidth + Math.round(toolTipWidth) - radius, offset.y + radius, radius, -Math.PI / 2, 0, false);
  43172. context.arc(offset.x + arrowWidth + Math.round(toolTipWidth) - radius, offset.y + toolTipHeight - radius, radius, 0, Math.PI / 2, false);
  43173. context.arc(offset.x + arrowWidth + radius, offset.y + toolTipHeight - radius, radius, Math.PI / 2, Math.PI, false);
  43174. if (toolTipOption.showArrow) {
  43175. context.lineTo(offset.x + arrowWidth, offset.y + 10 * opts.pix + 5 * opts.pix);
  43176. context.lineTo(offset.x, offset.y + 10 * opts.pix);
  43177. }
  43178. }
  43179. context.closePath();
  43180. context.fill();
  43181. if (toolTipOption.borderWidth > 0) {
  43182. context.stroke();
  43183. }
  43184. // draw legend
  43185. textList.forEach(function (item, index) {
  43186. if (item.color !== null) {
  43187. context.beginPath();
  43188. context.setFillStyle(item.color);
  43189. var startX = offset.x + arrowWidth + 2 * config.toolTipPadding;
  43190. var startY = offset.y + (config.toolTipLineHeight - config.fontSize) / 2 + config.toolTipLineHeight * index + config.toolTipPadding + 1;
  43191. if (isOverRightBorder) {
  43192. startX = offset.x - toolTipWidth - arrowWidth + 2 * config.toolTipPadding;
  43193. }
  43194. context.fillRect(startX, startY, legendWidth, config.fontSize);
  43195. // 圆形图例请注释上行,并把下行取消注释
  43196. // context.arc(startX + legendWidth / 2 , startY + opts.fontSize / 2, 4 * opts.pix, 0, 2 * Math.PI);
  43197. context.closePath();
  43198. context.fill();
  43199. }
  43200. });
  43201. // draw text list
  43202. textList.forEach(function (item, index) {
  43203. var startX = offset.x + arrowWidth + 2 * config.toolTipPadding + legendWidth + legendMarginRight;
  43204. if (isOverRightBorder) {
  43205. startX = offset.x - toolTipWidth - arrowWidth + 2 * config.toolTipPadding + +legendWidth + legendMarginRight;
  43206. }
  43207. var startY = offset.y + (config.toolTipLineHeight - config.fontSize) / 2 + config.toolTipLineHeight * index + config.toolTipPadding;
  43208. context.beginPath();
  43209. context.setFontSize(config.fontSize);
  43210. context.setFillStyle(toolTipOption.fontColor);
  43211. context.fillText(item.text, startX, startY + config.fontSize);
  43212. context.closePath();
  43213. context.stroke();
  43214. });
  43215. }
  43216. function drawColumnDataPoints(series, opts, config, context) {
  43217. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  43218. var xAxisData = opts.chartData.xAxisData,
  43219. xAxisPoints = xAxisData.xAxisPoints,
  43220. eachSpacing = xAxisData.eachSpacing;
  43221. var columnOption = assign({}, {
  43222. type: 'group',
  43223. width: eachSpacing / 2,
  43224. meterBorder: 4,
  43225. meterFillColor: '#FFFFFF',
  43226. barBorderCircle: false,
  43227. barBorderRadius: [],
  43228. seriesGap: 2,
  43229. linearType: 'none',
  43230. linearOpacity: 1,
  43231. customColor: [],
  43232. colorStop: 0
  43233. }, opts.extra.column);
  43234. var calPoints = [];
  43235. context.save();
  43236. var leftNum = -2;
  43237. var rightNum = xAxisPoints.length + 2;
  43238. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  43239. context.translate(opts._scrollDistance_, 0);
  43240. leftNum = Math.floor(-opts._scrollDistance_ / eachSpacing) - 2;
  43241. rightNum = leftNum + opts.xAxis.itemCount + 4;
  43242. }
  43243. if (opts.tooltip && opts.tooltip.textList && opts.tooltip.textList.length && process === 1) {
  43244. drawToolTipSplitArea(opts.tooltip.offset.x, opts, config, context, eachSpacing);
  43245. }
  43246. columnOption.customColor = fillCustomColor(columnOption.linearType, columnOption.customColor, series, config);
  43247. series.forEach(function (eachSeries, seriesIndex) {
  43248. var ranges, minRange, maxRange;
  43249. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  43250. minRange = ranges.pop();
  43251. maxRange = ranges.shift();
  43252. var data = eachSeries.data;
  43253. switch (columnOption.type) {
  43254. case 'group':
  43255. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  43256. var tooltipPoints = getStackDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, seriesIndex, series, process);
  43257. calPoints.push(tooltipPoints);
  43258. points = fixColumeData(points, eachSpacing, series.length, seriesIndex, config, opts);
  43259. for (var i = 0; i < points.length; i++) {
  43260. var item = points[i];
  43261. //fix issues/I27B1N yyoinge & Joeshu
  43262. if (item !== null && i > leftNum && i < rightNum) {
  43263. var startX = item.x - item.width / 2;
  43264. var height = opts.height - item.y - opts.area[2];
  43265. context.beginPath();
  43266. var fillColor = item.color || eachSeries.color;
  43267. var strokeColor = item.color || eachSeries.color;
  43268. if (columnOption.linearType !== 'none') {
  43269. var grd = context.createLinearGradient(startX, item.y, startX, opts.height - opts.area[2]);
  43270. //透明渐变
  43271. if (columnOption.linearType == 'opacity') {
  43272. grd.addColorStop(0, hexToRgb(fillColor, columnOption.linearOpacity));
  43273. grd.addColorStop(1, hexToRgb(fillColor, 1));
  43274. } else {
  43275. grd.addColorStop(0, hexToRgb(columnOption.customColor[eachSeries.linearIndex], columnOption.linearOpacity));
  43276. grd.addColorStop(columnOption.colorStop, hexToRgb(columnOption.customColor[eachSeries.linearIndex], columnOption.linearOpacity));
  43277. grd.addColorStop(1, hexToRgb(fillColor, 1));
  43278. }
  43279. fillColor = grd;
  43280. }
  43281. // 圆角边框
  43282. if (columnOption.barBorderRadius && columnOption.barBorderRadius.length === 4 || columnOption.barBorderCircle === true) {
  43283. var left = startX;
  43284. var top = item.y;
  43285. var width = item.width;
  43286. var _height = opts.height - opts.area[2] - item.y;
  43287. if (columnOption.barBorderCircle) {
  43288. columnOption.barBorderRadius = [width / 2, width / 2, 0, 0];
  43289. }
  43290. var _columnOption$barBord = (0, _slicedToArray2.default)(columnOption.barBorderRadius, 4),
  43291. r0 = _columnOption$barBord[0],
  43292. r1 = _columnOption$barBord[1],
  43293. r2 = _columnOption$barBord[2],
  43294. r3 = _columnOption$barBord[3];
  43295. var minRadius = Math.min(width / 2, _height / 2);
  43296. r0 = r0 > minRadius ? minRadius : r0;
  43297. r1 = r1 > minRadius ? minRadius : r1;
  43298. r2 = r2 > minRadius ? minRadius : r2;
  43299. r3 = r3 > minRadius ? minRadius : r3;
  43300. r0 = r0 < 0 ? 0 : r0;
  43301. r1 = r1 < 0 ? 0 : r1;
  43302. r2 = r2 < 0 ? 0 : r2;
  43303. r3 = r3 < 0 ? 0 : r3;
  43304. context.arc(left + r0, top + r0, r0, -Math.PI, -Math.PI / 2);
  43305. context.arc(left + width - r1, top + r1, r1, -Math.PI / 2, 0);
  43306. context.arc(left + width - r2, top + _height - r2, r2, 0, Math.PI / 2);
  43307. context.arc(left + r3, top + _height - r3, r3, Math.PI / 2, Math.PI);
  43308. } else {
  43309. context.moveTo(startX, item.y);
  43310. context.lineTo(startX + item.width, item.y);
  43311. context.lineTo(startX + item.width, opts.height - opts.area[2]);
  43312. context.lineTo(startX, opts.height - opts.area[2]);
  43313. context.lineTo(startX, item.y);
  43314. context.setLineWidth(1);
  43315. context.setStrokeStyle(strokeColor);
  43316. }
  43317. context.setFillStyle(fillColor);
  43318. context.closePath();
  43319. //context.stroke();
  43320. context.fill();
  43321. }
  43322. }
  43323. ;
  43324. break;
  43325. case 'stack':
  43326. // 绘制堆叠数据图
  43327. var points = getStackDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, seriesIndex, series, process);
  43328. calPoints.push(points);
  43329. points = fixColumeStackData(points, eachSpacing, series.length, seriesIndex, config, opts, series);
  43330. for (var _i16 = 0; _i16 < points.length; _i16++) {
  43331. var _item7 = points[_i16];
  43332. if (_item7 !== null && _i16 > leftNum && _i16 < rightNum) {
  43333. context.beginPath();
  43334. var fillColor = _item7.color || eachSeries.color;
  43335. var startX = _item7.x - _item7.width / 2 + 1;
  43336. var height = opts.height - _item7.y - opts.area[2];
  43337. var height0 = opts.height - _item7.y0 - opts.area[2];
  43338. if (seriesIndex > 0) {
  43339. height -= height0;
  43340. }
  43341. context.setFillStyle(fillColor);
  43342. context.moveTo(startX, _item7.y);
  43343. context.fillRect(startX, _item7.y, _item7.width, height);
  43344. context.closePath();
  43345. context.fill();
  43346. }
  43347. }
  43348. ;
  43349. break;
  43350. case 'meter':
  43351. // 绘制温度计数据图
  43352. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  43353. calPoints.push(points);
  43354. points = fixColumeMeterData(points, eachSpacing, series.length, seriesIndex, config, opts, columnOption.meterBorder);
  43355. for (var _i17 = 0; _i17 < points.length; _i17++) {
  43356. var _item8 = points[_i17];
  43357. if (_item8 !== null && _i17 > leftNum && _i17 < rightNum) {
  43358. //画背景颜色
  43359. context.beginPath();
  43360. if (seriesIndex == 0 && columnOption.meterBorder > 0) {
  43361. context.setStrokeStyle(eachSeries.color);
  43362. context.setLineWidth(columnOption.meterBorder * opts.pix);
  43363. }
  43364. if (seriesIndex == 0) {
  43365. context.setFillStyle(columnOption.meterFillColor);
  43366. } else {
  43367. context.setFillStyle(_item8.color || eachSeries.color);
  43368. }
  43369. var startX = _item8.x - _item8.width / 2;
  43370. var height = opts.height - _item8.y - opts.area[2];
  43371. if (columnOption.barBorderRadius && columnOption.barBorderRadius.length === 4 || columnOption.barBorderCircle === true) {
  43372. var _left = startX;
  43373. var _top = _item8.y;
  43374. var _width = _item8.width;
  43375. var _height2 = opts.height - opts.area[2] - _item8.y;
  43376. if (columnOption.barBorderCircle) {
  43377. columnOption.barBorderRadius = [_width / 2, _width / 2, 0, 0];
  43378. }
  43379. var _columnOption$barBord2 = (0, _slicedToArray2.default)(columnOption.barBorderRadius, 4),
  43380. _r = _columnOption$barBord2[0],
  43381. _r2 = _columnOption$barBord2[1],
  43382. _r3 = _columnOption$barBord2[2],
  43383. _r4 = _columnOption$barBord2[3];
  43384. var _minRadius = Math.min(_width / 2, _height2 / 2);
  43385. _r = _r > _minRadius ? _minRadius : _r;
  43386. _r2 = _r2 > _minRadius ? _minRadius : _r2;
  43387. _r3 = _r3 > _minRadius ? _minRadius : _r3;
  43388. _r4 = _r4 > _minRadius ? _minRadius : _r4;
  43389. _r = _r < 0 ? 0 : _r;
  43390. _r2 = _r2 < 0 ? 0 : _r2;
  43391. _r3 = _r3 < 0 ? 0 : _r3;
  43392. _r4 = _r4 < 0 ? 0 : _r4;
  43393. context.arc(_left + _r, _top + _r, _r, -Math.PI, -Math.PI / 2);
  43394. context.arc(_left + _width - _r2, _top + _r2, _r2, -Math.PI / 2, 0);
  43395. context.arc(_left + _width - _r3, _top + _height2 - _r3, _r3, 0, Math.PI / 2);
  43396. context.arc(_left + _r4, _top + _height2 - _r4, _r4, Math.PI / 2, Math.PI);
  43397. context.fill();
  43398. } else {
  43399. context.moveTo(startX, _item8.y);
  43400. context.lineTo(startX + _item8.width, _item8.y);
  43401. context.lineTo(startX + _item8.width, opts.height - opts.area[2]);
  43402. context.lineTo(startX, opts.height - opts.area[2]);
  43403. context.lineTo(startX, _item8.y);
  43404. context.fill();
  43405. }
  43406. if (seriesIndex == 0 && columnOption.meterBorder > 0) {
  43407. context.closePath();
  43408. context.stroke();
  43409. }
  43410. }
  43411. }
  43412. break;
  43413. }
  43414. });
  43415. if (opts.dataLabel !== false && process === 1) {
  43416. series.forEach(function (eachSeries, seriesIndex) {
  43417. var ranges, minRange, maxRange;
  43418. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  43419. minRange = ranges.pop();
  43420. maxRange = ranges.shift();
  43421. var data = eachSeries.data;
  43422. switch (columnOption.type) {
  43423. case 'group':
  43424. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  43425. points = fixColumeData(points, eachSpacing, series.length, seriesIndex, config, opts);
  43426. drawPointText(points, eachSeries, config, context, opts);
  43427. break;
  43428. case 'stack':
  43429. var points = getStackDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, seriesIndex, series, process);
  43430. drawPointText(points, eachSeries, config, context, opts);
  43431. break;
  43432. case 'meter':
  43433. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  43434. drawPointText(points, eachSeries, config, context, opts);
  43435. break;
  43436. }
  43437. });
  43438. }
  43439. context.restore();
  43440. return {
  43441. xAxisPoints: xAxisPoints,
  43442. calPoints: calPoints,
  43443. eachSpacing: eachSpacing
  43444. };
  43445. }
  43446. function drawMountDataPoints(series, opts, config, context) {
  43447. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  43448. var xAxisData = opts.chartData.xAxisData,
  43449. xAxisPoints = xAxisData.xAxisPoints,
  43450. eachSpacing = xAxisData.eachSpacing;
  43451. var mountOption = assign({}, {
  43452. type: 'mount',
  43453. widthRatio: 1,
  43454. borderWidth: 1,
  43455. barBorderCircle: false,
  43456. barBorderRadius: [],
  43457. linearType: 'none',
  43458. linearOpacity: 1,
  43459. customColor: [],
  43460. colorStop: 0
  43461. }, opts.extra.mount);
  43462. mountOption.widthRatio = mountOption.widthRatio <= 0 ? 0 : mountOption.widthRatio;
  43463. mountOption.widthRatio = mountOption.widthRatio >= 2 ? 2 : mountOption.widthRatio;
  43464. var calPoints = [];
  43465. context.save();
  43466. var leftNum = -2;
  43467. var rightNum = xAxisPoints.length + 2;
  43468. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  43469. context.translate(opts._scrollDistance_, 0);
  43470. leftNum = Math.floor(-opts._scrollDistance_ / eachSpacing) - 2;
  43471. rightNum = leftNum + opts.xAxis.itemCount + 4;
  43472. }
  43473. mountOption.customColor = fillCustomColor(mountOption.linearType, mountOption.customColor, series, config);
  43474. var ranges, minRange, maxRange;
  43475. ranges = [].concat(opts.chartData.yAxisData.ranges[0]);
  43476. minRange = ranges.pop();
  43477. maxRange = ranges.shift();
  43478. var points = getMountDataPoints(series, minRange, maxRange, xAxisPoints, eachSpacing, opts, mountOption, process);
  43479. switch (mountOption.type) {
  43480. case 'bar':
  43481. for (var i = 0; i < points.length; i++) {
  43482. var item = points[i];
  43483. if (item !== null && i > leftNum && i < rightNum) {
  43484. var startX = item.x - eachSpacing * mountOption.widthRatio / 2;
  43485. var height = opts.height - item.y - opts.area[2];
  43486. context.beginPath();
  43487. var fillColor = item.color || series[i].color;
  43488. var strokeColor = item.color || series[i].color;
  43489. if (mountOption.linearType !== 'none') {
  43490. var grd = context.createLinearGradient(startX, item.y, startX, opts.height - opts.area[2]);
  43491. //透明渐变
  43492. if (mountOption.linearType == 'opacity') {
  43493. grd.addColorStop(0, hexToRgb(fillColor, mountOption.linearOpacity));
  43494. grd.addColorStop(1, hexToRgb(fillColor, 1));
  43495. } else {
  43496. grd.addColorStop(0, hexToRgb(mountOption.customColor[series[i].linearIndex], mountOption.linearOpacity));
  43497. grd.addColorStop(mountOption.colorStop, hexToRgb(mountOption.customColor[series[i].linearIndex], mountOption.linearOpacity));
  43498. grd.addColorStop(1, hexToRgb(fillColor, 1));
  43499. }
  43500. fillColor = grd;
  43501. }
  43502. // 圆角边框
  43503. if (mountOption.barBorderRadius && mountOption.barBorderRadius.length === 4 || mountOption.barBorderCircle === true) {
  43504. var left = startX;
  43505. var top = item.y;
  43506. var width = item.width;
  43507. var _height3 = opts.height - opts.area[2] - item.y - mountOption.borderWidth * opts.pix / 2;
  43508. if (mountOption.barBorderCircle) {
  43509. mountOption.barBorderRadius = [width / 2, width / 2, 0, 0];
  43510. }
  43511. var _mountOption$barBorde = (0, _slicedToArray2.default)(mountOption.barBorderRadius, 4),
  43512. r0 = _mountOption$barBorde[0],
  43513. r1 = _mountOption$barBorde[1],
  43514. r2 = _mountOption$barBorde[2],
  43515. r3 = _mountOption$barBorde[3];
  43516. var minRadius = Math.min(width / 2, _height3 / 2);
  43517. r0 = r0 > minRadius ? minRadius : r0;
  43518. r1 = r1 > minRadius ? minRadius : r1;
  43519. r2 = r2 > minRadius ? minRadius : r2;
  43520. r3 = r3 > minRadius ? minRadius : r3;
  43521. r0 = r0 < 0 ? 0 : r0;
  43522. r1 = r1 < 0 ? 0 : r1;
  43523. r2 = r2 < 0 ? 0 : r2;
  43524. r3 = r3 < 0 ? 0 : r3;
  43525. context.arc(left + r0, top + r0, r0, -Math.PI, -Math.PI / 2);
  43526. context.arc(left + width - r1, top + r1, r1, -Math.PI / 2, 0);
  43527. context.arc(left + width - r2, top + _height3 - r2, r2, 0, Math.PI / 2);
  43528. context.arc(left + r3, top + _height3 - r3, r3, Math.PI / 2, Math.PI);
  43529. } else {
  43530. context.moveTo(startX, item.y);
  43531. context.lineTo(startX + item.width, item.y);
  43532. context.lineTo(startX + item.width, opts.height - opts.area[2]);
  43533. context.lineTo(startX, opts.height - opts.area[2]);
  43534. context.lineTo(startX, item.y);
  43535. }
  43536. context.setStrokeStyle(strokeColor);
  43537. context.setFillStyle(fillColor);
  43538. if (mountOption.borderWidth > 0) {
  43539. context.setLineWidth(mountOption.borderWidth * opts.pix);
  43540. context.closePath();
  43541. context.stroke();
  43542. }
  43543. context.fill();
  43544. }
  43545. }
  43546. ;
  43547. break;
  43548. case 'triangle':
  43549. for (var _i18 = 0; _i18 < points.length; _i18++) {
  43550. var _item9 = points[_i18];
  43551. if (_item9 !== null && _i18 > leftNum && _i18 < rightNum) {
  43552. var startX = _item9.x - eachSpacing * mountOption.widthRatio / 2;
  43553. var height = opts.height - _item9.y - opts.area[2];
  43554. context.beginPath();
  43555. var fillColor = _item9.color || series[_i18].color;
  43556. var strokeColor = _item9.color || series[_i18].color;
  43557. if (mountOption.linearType !== 'none') {
  43558. var grd = context.createLinearGradient(startX, _item9.y, startX, opts.height - opts.area[2]);
  43559. //透明渐变
  43560. if (mountOption.linearType == 'opacity') {
  43561. grd.addColorStop(0, hexToRgb(fillColor, mountOption.linearOpacity));
  43562. grd.addColorStop(1, hexToRgb(fillColor, 1));
  43563. } else {
  43564. grd.addColorStop(0, hexToRgb(mountOption.customColor[series[_i18].linearIndex], mountOption.linearOpacity));
  43565. grd.addColorStop(mountOption.colorStop, hexToRgb(mountOption.customColor[series[_i18].linearIndex], mountOption.linearOpacity));
  43566. grd.addColorStop(1, hexToRgb(fillColor, 1));
  43567. }
  43568. fillColor = grd;
  43569. }
  43570. context.moveTo(startX, opts.height - opts.area[2]);
  43571. context.lineTo(_item9.x, _item9.y);
  43572. context.lineTo(startX + _item9.width, opts.height - opts.area[2]);
  43573. context.setStrokeStyle(strokeColor);
  43574. context.setFillStyle(fillColor);
  43575. if (mountOption.borderWidth > 0) {
  43576. context.setLineWidth(mountOption.borderWidth * opts.pix);
  43577. context.stroke();
  43578. }
  43579. context.fill();
  43580. }
  43581. }
  43582. ;
  43583. break;
  43584. case 'mount':
  43585. for (var _i19 = 0; _i19 < points.length; _i19++) {
  43586. var _item10 = points[_i19];
  43587. if (_item10 !== null && _i19 > leftNum && _i19 < rightNum) {
  43588. var startX = _item10.x - eachSpacing * mountOption.widthRatio / 2;
  43589. var height = opts.height - _item10.y - opts.area[2];
  43590. context.beginPath();
  43591. var fillColor = _item10.color || series[_i19].color;
  43592. var strokeColor = _item10.color || series[_i19].color;
  43593. if (mountOption.linearType !== 'none') {
  43594. var grd = context.createLinearGradient(startX, _item10.y, startX, opts.height - opts.area[2]);
  43595. //透明渐变
  43596. if (mountOption.linearType == 'opacity') {
  43597. grd.addColorStop(0, hexToRgb(fillColor, mountOption.linearOpacity));
  43598. grd.addColorStop(1, hexToRgb(fillColor, 1));
  43599. } else {
  43600. grd.addColorStop(0, hexToRgb(mountOption.customColor[series[_i19].linearIndex], mountOption.linearOpacity));
  43601. grd.addColorStop(mountOption.colorStop, hexToRgb(mountOption.customColor[series[_i19].linearIndex], mountOption.linearOpacity));
  43602. grd.addColorStop(1, hexToRgb(fillColor, 1));
  43603. }
  43604. fillColor = grd;
  43605. }
  43606. context.moveTo(startX, opts.height - opts.area[2]);
  43607. context.bezierCurveTo(_item10.x - _item10.width / 4, opts.height - opts.area[2], _item10.x - _item10.width / 4, _item10.y, _item10.x, _item10.y);
  43608. context.bezierCurveTo(_item10.x + _item10.width / 4, _item10.y, _item10.x + _item10.width / 4, opts.height - opts.area[2], startX + _item10.width, opts.height - opts.area[2]);
  43609. context.setStrokeStyle(strokeColor);
  43610. context.setFillStyle(fillColor);
  43611. if (mountOption.borderWidth > 0) {
  43612. context.setLineWidth(mountOption.borderWidth * opts.pix);
  43613. context.stroke();
  43614. }
  43615. context.fill();
  43616. }
  43617. }
  43618. ;
  43619. break;
  43620. case 'sharp':
  43621. for (var _i20 = 0; _i20 < points.length; _i20++) {
  43622. var _item11 = points[_i20];
  43623. if (_item11 !== null && _i20 > leftNum && _i20 < rightNum) {
  43624. var startX = _item11.x - eachSpacing * mountOption.widthRatio / 2;
  43625. var height = opts.height - _item11.y - opts.area[2];
  43626. context.beginPath();
  43627. var fillColor = _item11.color || series[_i20].color;
  43628. var strokeColor = _item11.color || series[_i20].color;
  43629. if (mountOption.linearType !== 'none') {
  43630. var grd = context.createLinearGradient(startX, _item11.y, startX, opts.height - opts.area[2]);
  43631. //透明渐变
  43632. if (mountOption.linearType == 'opacity') {
  43633. grd.addColorStop(0, hexToRgb(fillColor, mountOption.linearOpacity));
  43634. grd.addColorStop(1, hexToRgb(fillColor, 1));
  43635. } else {
  43636. grd.addColorStop(0, hexToRgb(mountOption.customColor[series[_i20].linearIndex], mountOption.linearOpacity));
  43637. grd.addColorStop(mountOption.colorStop, hexToRgb(mountOption.customColor[series[_i20].linearIndex], mountOption.linearOpacity));
  43638. grd.addColorStop(1, hexToRgb(fillColor, 1));
  43639. }
  43640. fillColor = grd;
  43641. }
  43642. context.moveTo(startX, opts.height - opts.area[2]);
  43643. context.quadraticCurveTo(_item11.x - 0, opts.height - opts.area[2] - height / 4, _item11.x, _item11.y);
  43644. context.quadraticCurveTo(_item11.x + 0, opts.height - opts.area[2] - height / 4, startX + _item11.width, opts.height - opts.area[2]);
  43645. context.setStrokeStyle(strokeColor);
  43646. context.setFillStyle(fillColor);
  43647. if (mountOption.borderWidth > 0) {
  43648. context.setLineWidth(mountOption.borderWidth * opts.pix);
  43649. context.stroke();
  43650. }
  43651. context.fill();
  43652. }
  43653. }
  43654. ;
  43655. break;
  43656. }
  43657. if (opts.dataLabel !== false && process === 1) {
  43658. var _ranges, _minRange, _maxRange;
  43659. _ranges = [].concat(opts.chartData.yAxisData.ranges[0]);
  43660. _minRange = _ranges.pop();
  43661. _maxRange = _ranges.shift();
  43662. var points = getMountDataPoints(series, _minRange, _maxRange, xAxisPoints, eachSpacing, opts, mountOption, process);
  43663. drawMountPointText(points, series, config, context, opts);
  43664. }
  43665. context.restore();
  43666. return {
  43667. xAxisPoints: xAxisPoints,
  43668. calPoints: points,
  43669. eachSpacing: eachSpacing
  43670. };
  43671. }
  43672. function drawBarDataPoints(series, opts, config, context) {
  43673. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  43674. var yAxisPoints = [];
  43675. var eachSpacing = (opts.height - opts.area[0] - opts.area[2]) / opts.categories.length;
  43676. for (var i = 0; i < opts.categories.length; i++) {
  43677. yAxisPoints.push(opts.area[0] + eachSpacing / 2 + eachSpacing * i);
  43678. }
  43679. var columnOption = assign({}, {
  43680. type: 'group',
  43681. width: eachSpacing / 2,
  43682. meterBorder: 4,
  43683. meterFillColor: '#FFFFFF',
  43684. barBorderCircle: false,
  43685. barBorderRadius: [],
  43686. seriesGap: 2,
  43687. linearType: 'none',
  43688. linearOpacity: 1,
  43689. customColor: [],
  43690. colorStop: 0
  43691. }, opts.extra.bar);
  43692. var calPoints = [];
  43693. context.save();
  43694. var leftNum = -2;
  43695. var rightNum = yAxisPoints.length + 2;
  43696. if (opts.tooltip && opts.tooltip.textList && opts.tooltip.textList.length && process === 1) {
  43697. drawBarToolTipSplitArea(opts.tooltip.offset.y, opts, config, context, eachSpacing);
  43698. }
  43699. columnOption.customColor = fillCustomColor(columnOption.linearType, columnOption.customColor, series, config);
  43700. series.forEach(function (eachSeries, seriesIndex) {
  43701. var ranges, minRange, maxRange;
  43702. ranges = [].concat(opts.chartData.xAxisData.ranges);
  43703. maxRange = ranges.pop();
  43704. minRange = ranges.shift();
  43705. var data = eachSeries.data;
  43706. switch (columnOption.type) {
  43707. case 'group':
  43708. var points = getBarDataPoints(data, minRange, maxRange, yAxisPoints, eachSpacing, opts, config, process);
  43709. var tooltipPoints = getBarStackDataPoints(data, minRange, maxRange, yAxisPoints, eachSpacing, opts, config, seriesIndex, series, process);
  43710. calPoints.push(tooltipPoints);
  43711. points = fixBarData(points, eachSpacing, series.length, seriesIndex, config, opts);
  43712. for (var _i21 = 0; _i21 < points.length; _i21++) {
  43713. var item = points[_i21];
  43714. //fix issues/I27B1N yyoinge & Joeshu
  43715. if (item !== null && _i21 > leftNum && _i21 < rightNum) {
  43716. //var startX = item.x - item.width / 2;
  43717. var startX = opts.area[3];
  43718. var startY = item.y - item.width / 2;
  43719. var height = item.height;
  43720. context.beginPath();
  43721. var fillColor = item.color || eachSeries.color;
  43722. var strokeColor = item.color || eachSeries.color;
  43723. if (columnOption.linearType !== 'none') {
  43724. var grd = context.createLinearGradient(startX, item.y, item.x, item.y);
  43725. //透明渐变
  43726. if (columnOption.linearType == 'opacity') {
  43727. grd.addColorStop(0, hexToRgb(fillColor, columnOption.linearOpacity));
  43728. grd.addColorStop(1, hexToRgb(fillColor, 1));
  43729. } else {
  43730. grd.addColorStop(0, hexToRgb(columnOption.customColor[eachSeries.linearIndex], columnOption.linearOpacity));
  43731. grd.addColorStop(columnOption.colorStop, hexToRgb(columnOption.customColor[eachSeries.linearIndex], columnOption.linearOpacity));
  43732. grd.addColorStop(1, hexToRgb(fillColor, 1));
  43733. }
  43734. fillColor = grd;
  43735. }
  43736. // 圆角边框
  43737. if (columnOption.barBorderRadius && columnOption.barBorderRadius.length === 4 || columnOption.barBorderCircle === true) {
  43738. var left = startX;
  43739. var width = item.width;
  43740. var top = item.y - item.width / 2;
  43741. var _height4 = item.height;
  43742. if (columnOption.barBorderCircle) {
  43743. columnOption.barBorderRadius = [width / 2, width / 2, 0, 0];
  43744. }
  43745. var _columnOption$barBord3 = (0, _slicedToArray2.default)(columnOption.barBorderRadius, 4),
  43746. r0 = _columnOption$barBord3[0],
  43747. r1 = _columnOption$barBord3[1],
  43748. r2 = _columnOption$barBord3[2],
  43749. r3 = _columnOption$barBord3[3];
  43750. var minRadius = Math.min(width / 2, _height4 / 2);
  43751. r0 = r0 > minRadius ? minRadius : r0;
  43752. r1 = r1 > minRadius ? minRadius : r1;
  43753. r2 = r2 > minRadius ? minRadius : r2;
  43754. r3 = r3 > minRadius ? minRadius : r3;
  43755. r0 = r0 < 0 ? 0 : r0;
  43756. r1 = r1 < 0 ? 0 : r1;
  43757. r2 = r2 < 0 ? 0 : r2;
  43758. r3 = r3 < 0 ? 0 : r3;
  43759. context.arc(left + r3, top + r3, r3, -Math.PI, -Math.PI / 2);
  43760. context.arc(item.x - r0, top + r0, r0, -Math.PI / 2, 0);
  43761. context.arc(item.x - r1, top + width - r1, r1, 0, Math.PI / 2);
  43762. context.arc(left + r2, top + width - r2, r2, Math.PI / 2, Math.PI);
  43763. } else {
  43764. context.moveTo(startX, startY);
  43765. context.lineTo(item.x, startY);
  43766. context.lineTo(item.x, startY + item.width);
  43767. context.lineTo(startX, startY + item.width);
  43768. context.lineTo(startX, startY);
  43769. context.setLineWidth(1);
  43770. context.setStrokeStyle(strokeColor);
  43771. }
  43772. context.setFillStyle(fillColor);
  43773. context.closePath();
  43774. //context.stroke();
  43775. context.fill();
  43776. }
  43777. }
  43778. ;
  43779. break;
  43780. case 'stack':
  43781. // 绘制堆叠数据图
  43782. var points = getBarStackDataPoints(data, minRange, maxRange, yAxisPoints, eachSpacing, opts, config, seriesIndex, series, process);
  43783. calPoints.push(points);
  43784. points = fixBarStackData(points, eachSpacing, series.length, seriesIndex, config, opts, series);
  43785. for (var _i22 = 0; _i22 < points.length; _i22++) {
  43786. var _item12 = points[_i22];
  43787. if (_item12 !== null && _i22 > leftNum && _i22 < rightNum) {
  43788. context.beginPath();
  43789. var fillColor = _item12.color || eachSeries.color;
  43790. var startX = _item12.x0;
  43791. context.setFillStyle(fillColor);
  43792. context.moveTo(startX, _item12.y - _item12.width / 2);
  43793. context.fillRect(startX, _item12.y - _item12.width / 2, _item12.height, _item12.width);
  43794. context.closePath();
  43795. context.fill();
  43796. }
  43797. }
  43798. ;
  43799. break;
  43800. }
  43801. });
  43802. if (opts.dataLabel !== false && process === 1) {
  43803. series.forEach(function (eachSeries, seriesIndex) {
  43804. var ranges, minRange, maxRange;
  43805. ranges = [].concat(opts.chartData.xAxisData.ranges);
  43806. maxRange = ranges.pop();
  43807. minRange = ranges.shift();
  43808. var data = eachSeries.data;
  43809. switch (columnOption.type) {
  43810. case 'group':
  43811. var points = getBarDataPoints(data, minRange, maxRange, yAxisPoints, eachSpacing, opts, config, process);
  43812. points = fixBarData(points, eachSpacing, series.length, seriesIndex, config, opts);
  43813. drawBarPointText(points, eachSeries, config, context, opts);
  43814. break;
  43815. case 'stack':
  43816. var points = getBarStackDataPoints(data, minRange, maxRange, yAxisPoints, eachSpacing, opts, config, seriesIndex, series, process);
  43817. drawBarPointText(points, eachSeries, config, context, opts);
  43818. break;
  43819. }
  43820. });
  43821. }
  43822. return {
  43823. yAxisPoints: yAxisPoints,
  43824. calPoints: calPoints,
  43825. eachSpacing: eachSpacing
  43826. };
  43827. }
  43828. function drawCandleDataPoints(series, seriesMA, opts, config, context) {
  43829. var process = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1;
  43830. var candleOption = assign({}, {
  43831. color: {},
  43832. average: {}
  43833. }, opts.extra.candle);
  43834. candleOption.color = assign({}, {
  43835. upLine: '#f04864',
  43836. upFill: '#f04864',
  43837. downLine: '#2fc25b',
  43838. downFill: '#2fc25b'
  43839. }, candleOption.color);
  43840. candleOption.average = assign({}, {
  43841. show: false,
  43842. name: [],
  43843. day: [],
  43844. color: config.color
  43845. }, candleOption.average);
  43846. opts.extra.candle = candleOption;
  43847. var xAxisData = opts.chartData.xAxisData,
  43848. xAxisPoints = xAxisData.xAxisPoints,
  43849. eachSpacing = xAxisData.eachSpacing;
  43850. var calPoints = [];
  43851. context.save();
  43852. var leftNum = -2;
  43853. var rightNum = xAxisPoints.length + 2;
  43854. var leftSpace = 0;
  43855. var rightSpace = opts.width + eachSpacing;
  43856. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  43857. context.translate(opts._scrollDistance_, 0);
  43858. leftNum = Math.floor(-opts._scrollDistance_ / eachSpacing) - 2;
  43859. rightNum = leftNum + opts.xAxis.itemCount + 4;
  43860. leftSpace = -opts._scrollDistance_ - eachSpacing * 2 + opts.area[3];
  43861. rightSpace = leftSpace + (opts.xAxis.itemCount + 4) * eachSpacing;
  43862. }
  43863. //画均线
  43864. if (candleOption.average.show || seriesMA) {
  43865. //Merge pull request !12 from 邱贵翔
  43866. seriesMA.forEach(function (eachSeries, seriesIndex) {
  43867. var ranges, minRange, maxRange;
  43868. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  43869. minRange = ranges.pop();
  43870. maxRange = ranges.shift();
  43871. var data = eachSeries.data;
  43872. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  43873. var splitPointList = splitPoints(points, eachSeries);
  43874. for (var i = 0; i < splitPointList.length; i++) {
  43875. var _points = splitPointList[i];
  43876. context.beginPath();
  43877. context.setStrokeStyle(eachSeries.color);
  43878. context.setLineWidth(1);
  43879. if (_points.length === 1) {
  43880. context.moveTo(_points[0].x, _points[0].y);
  43881. context.arc(_points[0].x, _points[0].y, 1, 0, 2 * Math.PI);
  43882. } else {
  43883. context.moveTo(_points[0].x, _points[0].y);
  43884. var startPoint = 0;
  43885. for (var j = 0; j < _points.length; j++) {
  43886. var item = _points[j];
  43887. if (startPoint == 0 && item.x > leftSpace) {
  43888. context.moveTo(item.x, item.y);
  43889. startPoint = 1;
  43890. }
  43891. if (j > 0 && item.x > leftSpace && item.x < rightSpace) {
  43892. var ctrlPoint = createCurveControlPoints(_points, j - 1);
  43893. context.bezierCurveTo(ctrlPoint.ctrA.x, ctrlPoint.ctrA.y, ctrlPoint.ctrB.x, ctrlPoint.ctrB.y, item.x, item.y);
  43894. }
  43895. }
  43896. context.moveTo(_points[0].x, _points[0].y);
  43897. }
  43898. context.closePath();
  43899. context.stroke();
  43900. }
  43901. });
  43902. }
  43903. //画K线
  43904. series.forEach(function (eachSeries, seriesIndex) {
  43905. var ranges, minRange, maxRange;
  43906. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  43907. minRange = ranges.pop();
  43908. maxRange = ranges.shift();
  43909. var data = eachSeries.data;
  43910. var points = getCandleDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  43911. calPoints.push(points);
  43912. var splitPointList = splitPoints(points, eachSeries);
  43913. for (var i = 0; i < splitPointList[0].length; i++) {
  43914. if (i > leftNum && i < rightNum) {
  43915. var item = splitPointList[0][i];
  43916. context.beginPath();
  43917. //如果上涨
  43918. if (data[i][1] - data[i][0] > 0) {
  43919. context.setStrokeStyle(candleOption.color.upLine);
  43920. context.setFillStyle(candleOption.color.upFill);
  43921. context.setLineWidth(1 * opts.pix);
  43922. context.moveTo(item[3].x, item[3].y); //顶点
  43923. context.lineTo(item[1].x, item[1].y); //收盘中间点
  43924. context.lineTo(item[1].x - eachSpacing / 4, item[1].y); //收盘左侧点
  43925. context.lineTo(item[0].x - eachSpacing / 4, item[0].y); //开盘左侧点
  43926. context.lineTo(item[0].x, item[0].y); //开盘中间点
  43927. context.lineTo(item[2].x, item[2].y); //底点
  43928. context.lineTo(item[0].x, item[0].y); //开盘中间点
  43929. context.lineTo(item[0].x + eachSpacing / 4, item[0].y); //开盘右侧点
  43930. context.lineTo(item[1].x + eachSpacing / 4, item[1].y); //收盘右侧点
  43931. context.lineTo(item[1].x, item[1].y); //收盘中间点
  43932. context.moveTo(item[3].x, item[3].y); //顶点
  43933. } else {
  43934. context.setStrokeStyle(candleOption.color.downLine);
  43935. context.setFillStyle(candleOption.color.downFill);
  43936. context.setLineWidth(1 * opts.pix);
  43937. context.moveTo(item[3].x, item[3].y); //顶点
  43938. context.lineTo(item[0].x, item[0].y); //开盘中间点
  43939. context.lineTo(item[0].x - eachSpacing / 4, item[0].y); //开盘左侧点
  43940. context.lineTo(item[1].x - eachSpacing / 4, item[1].y); //收盘左侧点
  43941. context.lineTo(item[1].x, item[1].y); //收盘中间点
  43942. context.lineTo(item[2].x, item[2].y); //底点
  43943. context.lineTo(item[1].x, item[1].y); //收盘中间点
  43944. context.lineTo(item[1].x + eachSpacing / 4, item[1].y); //收盘右侧点
  43945. context.lineTo(item[0].x + eachSpacing / 4, item[0].y); //开盘右侧点
  43946. context.lineTo(item[0].x, item[0].y); //开盘中间点
  43947. context.moveTo(item[3].x, item[3].y); //顶点
  43948. }
  43949. context.closePath();
  43950. context.fill();
  43951. context.stroke();
  43952. }
  43953. }
  43954. });
  43955. context.restore();
  43956. return {
  43957. xAxisPoints: xAxisPoints,
  43958. calPoints: calPoints,
  43959. eachSpacing: eachSpacing
  43960. };
  43961. }
  43962. function drawAreaDataPoints(series, opts, config, context) {
  43963. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  43964. var areaOption = assign({}, {
  43965. type: 'straight',
  43966. opacity: 0.2,
  43967. addLine: false,
  43968. width: 2,
  43969. gradient: false
  43970. }, opts.extra.area);
  43971. var xAxisData = opts.chartData.xAxisData,
  43972. xAxisPoints = xAxisData.xAxisPoints,
  43973. eachSpacing = xAxisData.eachSpacing;
  43974. var endY = opts.height - opts.area[2];
  43975. var calPoints = [];
  43976. context.save();
  43977. var leftSpace = 0;
  43978. var rightSpace = opts.width + eachSpacing;
  43979. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  43980. context.translate(opts._scrollDistance_, 0);
  43981. leftSpace = -opts._scrollDistance_ - eachSpacing * 2 + opts.area[3];
  43982. rightSpace = leftSpace + (opts.xAxis.itemCount + 4) * eachSpacing;
  43983. }
  43984. series.forEach(function (eachSeries, seriesIndex) {
  43985. var ranges, minRange, maxRange;
  43986. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  43987. minRange = ranges.pop();
  43988. maxRange = ranges.shift();
  43989. var data = eachSeries.data;
  43990. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  43991. calPoints.push(points);
  43992. var splitPointList = splitPoints(points, eachSeries);
  43993. for (var i = 0; i < splitPointList.length; i++) {
  43994. var _points2 = splitPointList[i];
  43995. // 绘制区域数
  43996. context.beginPath();
  43997. context.setStrokeStyle(hexToRgb(eachSeries.color, areaOption.opacity));
  43998. if (areaOption.gradient) {
  43999. var gradient = context.createLinearGradient(0, opts.area[0], 0, opts.height - opts.area[2]);
  44000. gradient.addColorStop('0', hexToRgb(eachSeries.color, areaOption.opacity));
  44001. gradient.addColorStop('1.0', hexToRgb("#FFFFFF", 0.1));
  44002. context.setFillStyle(gradient);
  44003. } else {
  44004. context.setFillStyle(hexToRgb(eachSeries.color, areaOption.opacity));
  44005. }
  44006. context.setLineWidth(areaOption.width * opts.pix);
  44007. if (_points2.length > 1) {
  44008. var firstPoint = _points2[0];
  44009. var lastPoint = _points2[_points2.length - 1];
  44010. context.moveTo(firstPoint.x, firstPoint.y);
  44011. var startPoint = 0;
  44012. if (areaOption.type === 'curve') {
  44013. for (var j = 0; j < _points2.length; j++) {
  44014. var item = _points2[j];
  44015. if (startPoint == 0 && item.x > leftSpace) {
  44016. context.moveTo(item.x, item.y);
  44017. startPoint = 1;
  44018. }
  44019. if (j > 0 && item.x > leftSpace && item.x < rightSpace) {
  44020. var ctrlPoint = createCurveControlPoints(_points2, j - 1);
  44021. context.bezierCurveTo(ctrlPoint.ctrA.x, ctrlPoint.ctrA.y, ctrlPoint.ctrB.x, ctrlPoint.ctrB.y, item.x, item.y);
  44022. }
  44023. }
  44024. ;
  44025. }
  44026. if (areaOption.type === 'straight') {
  44027. for (var _j = 0; _j < _points2.length; _j++) {
  44028. var _item13 = _points2[_j];
  44029. if (startPoint == 0 && _item13.x > leftSpace) {
  44030. context.moveTo(_item13.x, _item13.y);
  44031. startPoint = 1;
  44032. }
  44033. if (_j > 0 && _item13.x > leftSpace && _item13.x < rightSpace) {
  44034. context.lineTo(_item13.x, _item13.y);
  44035. }
  44036. }
  44037. ;
  44038. }
  44039. if (areaOption.type === 'step') {
  44040. for (var _j2 = 0; _j2 < _points2.length; _j2++) {
  44041. var _item14 = _points2[_j2];
  44042. if (startPoint == 0 && _item14.x > leftSpace) {
  44043. context.moveTo(_item14.x, _item14.y);
  44044. startPoint = 1;
  44045. }
  44046. if (_j2 > 0 && _item14.x > leftSpace && _item14.x < rightSpace) {
  44047. context.lineTo(_item14.x, _points2[_j2 - 1].y);
  44048. context.lineTo(_item14.x, _item14.y);
  44049. }
  44050. }
  44051. ;
  44052. }
  44053. context.lineTo(lastPoint.x, endY);
  44054. context.lineTo(firstPoint.x, endY);
  44055. context.lineTo(firstPoint.x, firstPoint.y);
  44056. } else {
  44057. var _item15 = _points2[0];
  44058. context.moveTo(_item15.x - eachSpacing / 2, _item15.y);
  44059. context.lineTo(_item15.x + eachSpacing / 2, _item15.y);
  44060. context.lineTo(_item15.x + eachSpacing / 2, endY);
  44061. context.lineTo(_item15.x - eachSpacing / 2, endY);
  44062. context.moveTo(_item15.x - eachSpacing / 2, _item15.y);
  44063. }
  44064. context.closePath();
  44065. context.fill();
  44066. //画连线
  44067. if (areaOption.addLine) {
  44068. if (eachSeries.lineType == 'dash') {
  44069. var dashLength = eachSeries.dashLength ? eachSeries.dashLength : 8;
  44070. dashLength *= opts.pix;
  44071. context.setLineDash([dashLength, dashLength]);
  44072. }
  44073. context.beginPath();
  44074. context.setStrokeStyle(eachSeries.color);
  44075. context.setLineWidth(areaOption.width * opts.pix);
  44076. if (_points2.length === 1) {
  44077. context.moveTo(_points2[0].x, _points2[0].y);
  44078. context.arc(_points2[0].x, _points2[0].y, 1, 0, 2 * Math.PI);
  44079. } else {
  44080. context.moveTo(_points2[0].x, _points2[0].y);
  44081. var _startPoint = 0;
  44082. if (areaOption.type === 'curve') {
  44083. for (var _j3 = 0; _j3 < _points2.length; _j3++) {
  44084. var _item16 = _points2[_j3];
  44085. if (_startPoint == 0 && _item16.x > leftSpace) {
  44086. context.moveTo(_item16.x, _item16.y);
  44087. _startPoint = 1;
  44088. }
  44089. if (_j3 > 0 && _item16.x > leftSpace && _item16.x < rightSpace) {
  44090. var _ctrlPoint = createCurveControlPoints(_points2, _j3 - 1);
  44091. context.bezierCurveTo(_ctrlPoint.ctrA.x, _ctrlPoint.ctrA.y, _ctrlPoint.ctrB.x, _ctrlPoint.ctrB.y, _item16.x, _item16.y);
  44092. }
  44093. }
  44094. ;
  44095. }
  44096. if (areaOption.type === 'straight') {
  44097. for (var _j4 = 0; _j4 < _points2.length; _j4++) {
  44098. var _item17 = _points2[_j4];
  44099. if (_startPoint == 0 && _item17.x > leftSpace) {
  44100. context.moveTo(_item17.x, _item17.y);
  44101. _startPoint = 1;
  44102. }
  44103. if (_j4 > 0 && _item17.x > leftSpace && _item17.x < rightSpace) {
  44104. context.lineTo(_item17.x, _item17.y);
  44105. }
  44106. }
  44107. ;
  44108. }
  44109. if (areaOption.type === 'step') {
  44110. for (var _j5 = 0; _j5 < _points2.length; _j5++) {
  44111. var _item18 = _points2[_j5];
  44112. if (_startPoint == 0 && _item18.x > leftSpace) {
  44113. context.moveTo(_item18.x, _item18.y);
  44114. _startPoint = 1;
  44115. }
  44116. if (_j5 > 0 && _item18.x > leftSpace && _item18.x < rightSpace) {
  44117. context.lineTo(_item18.x, _points2[_j5 - 1].y);
  44118. context.lineTo(_item18.x, _item18.y);
  44119. }
  44120. }
  44121. ;
  44122. }
  44123. context.moveTo(_points2[0].x, _points2[0].y);
  44124. }
  44125. context.stroke();
  44126. context.setLineDash([]);
  44127. }
  44128. }
  44129. //画点
  44130. if (opts.dataPointShape !== false) {
  44131. drawPointShape(points, eachSeries.color, eachSeries.pointShape, context, opts);
  44132. }
  44133. });
  44134. if (opts.dataLabel !== false && process === 1) {
  44135. series.forEach(function (eachSeries, seriesIndex) {
  44136. var ranges, minRange, maxRange;
  44137. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  44138. minRange = ranges.pop();
  44139. maxRange = ranges.shift();
  44140. var data = eachSeries.data;
  44141. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  44142. drawPointText(points, eachSeries, config, context, opts);
  44143. });
  44144. }
  44145. context.restore();
  44146. return {
  44147. xAxisPoints: xAxisPoints,
  44148. calPoints: calPoints,
  44149. eachSpacing: eachSpacing
  44150. };
  44151. }
  44152. function drawScatterDataPoints(series, opts, config, context) {
  44153. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  44154. var scatterOption = assign({}, {
  44155. type: 'circle'
  44156. }, opts.extra.scatter);
  44157. var xAxisData = opts.chartData.xAxisData,
  44158. xAxisPoints = xAxisData.xAxisPoints,
  44159. eachSpacing = xAxisData.eachSpacing;
  44160. var calPoints = [];
  44161. context.save();
  44162. var leftSpace = 0;
  44163. var rightSpace = opts.width + eachSpacing;
  44164. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  44165. context.translate(opts._scrollDistance_, 0);
  44166. leftSpace = -opts._scrollDistance_ - eachSpacing * 2 + opts.area[3];
  44167. rightSpace = leftSpace + (opts.xAxis.itemCount + 4) * eachSpacing;
  44168. }
  44169. series.forEach(function (eachSeries, seriesIndex) {
  44170. var ranges, minRange, maxRange;
  44171. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  44172. minRange = ranges.pop();
  44173. maxRange = ranges.shift();
  44174. var data = eachSeries.data;
  44175. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  44176. context.beginPath();
  44177. context.setStrokeStyle(eachSeries.color);
  44178. context.setFillStyle(eachSeries.color);
  44179. context.setLineWidth(1 * opts.pix);
  44180. var shape = eachSeries.pointShape;
  44181. if (shape === 'diamond') {
  44182. points.forEach(function (item, index) {
  44183. if (item !== null) {
  44184. context.moveTo(item.x, item.y - 4.5);
  44185. context.lineTo(item.x - 4.5, item.y);
  44186. context.lineTo(item.x, item.y + 4.5);
  44187. context.lineTo(item.x + 4.5, item.y);
  44188. context.lineTo(item.x, item.y - 4.5);
  44189. }
  44190. });
  44191. } else if (shape === 'circle') {
  44192. points.forEach(function (item, index) {
  44193. if (item !== null) {
  44194. context.moveTo(item.x + 2.5 * opts.pix, item.y);
  44195. context.arc(item.x, item.y, 3 * opts.pix, 0, 2 * Math.PI, false);
  44196. }
  44197. });
  44198. } else if (shape === 'square') {
  44199. points.forEach(function (item, index) {
  44200. if (item !== null) {
  44201. context.moveTo(item.x - 3.5, item.y - 3.5);
  44202. context.rect(item.x - 3.5, item.y - 3.5, 7, 7);
  44203. }
  44204. });
  44205. } else if (shape === 'triangle') {
  44206. points.forEach(function (item, index) {
  44207. if (item !== null) {
  44208. context.moveTo(item.x, item.y - 4.5);
  44209. context.lineTo(item.x - 4.5, item.y + 4.5);
  44210. context.lineTo(item.x + 4.5, item.y + 4.5);
  44211. context.lineTo(item.x, item.y - 4.5);
  44212. }
  44213. });
  44214. } else if (shape === 'triangle') {
  44215. return;
  44216. }
  44217. context.closePath();
  44218. context.fill();
  44219. context.stroke();
  44220. });
  44221. if (opts.dataLabel !== false && process === 1) {
  44222. series.forEach(function (eachSeries, seriesIndex) {
  44223. var ranges, minRange, maxRange;
  44224. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  44225. minRange = ranges.pop();
  44226. maxRange = ranges.shift();
  44227. var data = eachSeries.data;
  44228. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  44229. drawPointText(points, eachSeries, config, context, opts);
  44230. });
  44231. }
  44232. context.restore();
  44233. return {
  44234. xAxisPoints: xAxisPoints,
  44235. calPoints: calPoints,
  44236. eachSpacing: eachSpacing
  44237. };
  44238. }
  44239. function drawBubbleDataPoints(series, opts, config, context) {
  44240. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  44241. var bubbleOption = assign({}, {
  44242. opacity: 1,
  44243. border: 2
  44244. }, opts.extra.bubble);
  44245. var xAxisData = opts.chartData.xAxisData,
  44246. xAxisPoints = xAxisData.xAxisPoints,
  44247. eachSpacing = xAxisData.eachSpacing;
  44248. var calPoints = [];
  44249. context.save();
  44250. var leftSpace = 0;
  44251. var rightSpace = opts.width + eachSpacing;
  44252. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  44253. context.translate(opts._scrollDistance_, 0);
  44254. leftSpace = -opts._scrollDistance_ - eachSpacing * 2 + opts.area[3];
  44255. rightSpace = leftSpace + (opts.xAxis.itemCount + 4) * eachSpacing;
  44256. }
  44257. series.forEach(function (eachSeries, seriesIndex) {
  44258. var ranges, minRange, maxRange;
  44259. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  44260. minRange = ranges.pop();
  44261. maxRange = ranges.shift();
  44262. var data = eachSeries.data;
  44263. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  44264. context.beginPath();
  44265. context.setStrokeStyle(eachSeries.color);
  44266. context.setLineWidth(bubbleOption.border * opts.pix);
  44267. context.setFillStyle(hexToRgb(eachSeries.color, bubbleOption.opacity));
  44268. points.forEach(function (item, index) {
  44269. context.moveTo(item.x + item.r, item.y);
  44270. context.arc(item.x, item.y, item.r * opts.pix, 0, 2 * Math.PI, false);
  44271. });
  44272. context.closePath();
  44273. context.fill();
  44274. context.stroke();
  44275. if (opts.dataLabel !== false && process === 1) {
  44276. points.forEach(function (item, index) {
  44277. context.beginPath();
  44278. var fontSize = eachSeries.textSize * opts.pix || config.fontSize;
  44279. context.setFontSize(fontSize);
  44280. context.setFillStyle(eachSeries.textColor || "#FFFFFF");
  44281. context.setTextAlign('center');
  44282. context.fillText(String(item.t), item.x, item.y + fontSize / 2);
  44283. context.closePath();
  44284. context.stroke();
  44285. context.setTextAlign('left');
  44286. });
  44287. }
  44288. });
  44289. context.restore();
  44290. return {
  44291. xAxisPoints: xAxisPoints,
  44292. calPoints: calPoints,
  44293. eachSpacing: eachSpacing
  44294. };
  44295. }
  44296. function drawLineDataPoints(series, opts, config, context) {
  44297. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  44298. var lineOption = assign({}, {
  44299. type: 'straight',
  44300. width: 2
  44301. }, opts.extra.line);
  44302. lineOption.width *= opts.pix;
  44303. var xAxisData = opts.chartData.xAxisData,
  44304. xAxisPoints = xAxisData.xAxisPoints,
  44305. eachSpacing = xAxisData.eachSpacing;
  44306. var calPoints = [];
  44307. context.save();
  44308. var leftSpace = 0;
  44309. var rightSpace = opts.width + eachSpacing;
  44310. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  44311. context.translate(opts._scrollDistance_, 0);
  44312. leftSpace = -opts._scrollDistance_ - eachSpacing * 2 + opts.area[3];
  44313. rightSpace = leftSpace + (opts.xAxis.itemCount + 4) * eachSpacing;
  44314. }
  44315. series.forEach(function (eachSeries, seriesIndex) {
  44316. var ranges, minRange, maxRange;
  44317. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  44318. minRange = ranges.pop();
  44319. maxRange = ranges.shift();
  44320. var data = eachSeries.data;
  44321. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  44322. calPoints.push(points);
  44323. var splitPointList = splitPoints(points, eachSeries);
  44324. if (eachSeries.lineType == 'dash') {
  44325. var dashLength = eachSeries.dashLength ? eachSeries.dashLength : 8;
  44326. dashLength *= opts.pix;
  44327. context.setLineDash([dashLength, dashLength]);
  44328. }
  44329. context.beginPath();
  44330. context.setStrokeStyle(eachSeries.color);
  44331. context.setLineWidth(lineOption.width);
  44332. splitPointList.forEach(function (points, index) {
  44333. if (points.length === 1) {
  44334. context.moveTo(points[0].x, points[0].y);
  44335. context.arc(points[0].x, points[0].y, 1, 0, 2 * Math.PI);
  44336. } else {
  44337. context.moveTo(points[0].x, points[0].y);
  44338. var startPoint = 0;
  44339. if (lineOption.type === 'curve') {
  44340. for (var j = 0; j < points.length; j++) {
  44341. var item = points[j];
  44342. if (startPoint == 0 && item.x > leftSpace) {
  44343. context.moveTo(item.x, item.y);
  44344. startPoint = 1;
  44345. }
  44346. if (j > 0 && item.x > leftSpace && item.x < rightSpace) {
  44347. var ctrlPoint = createCurveControlPoints(points, j - 1);
  44348. context.bezierCurveTo(ctrlPoint.ctrA.x, ctrlPoint.ctrA.y, ctrlPoint.ctrB.x, ctrlPoint.ctrB.y, item.x, item.y);
  44349. }
  44350. }
  44351. ;
  44352. }
  44353. if (lineOption.type === 'straight') {
  44354. for (var _j6 = 0; _j6 < points.length; _j6++) {
  44355. var _item19 = points[_j6];
  44356. if (startPoint == 0 && _item19.x > leftSpace) {
  44357. context.moveTo(_item19.x, _item19.y);
  44358. startPoint = 1;
  44359. }
  44360. if (_j6 > 0 && _item19.x > leftSpace && _item19.x < rightSpace) {
  44361. context.lineTo(_item19.x, _item19.y);
  44362. }
  44363. }
  44364. ;
  44365. }
  44366. if (lineOption.type === 'step') {
  44367. for (var _j7 = 0; _j7 < points.length; _j7++) {
  44368. var _item20 = points[_j7];
  44369. if (startPoint == 0 && _item20.x > leftSpace) {
  44370. context.moveTo(_item20.x, _item20.y);
  44371. startPoint = 1;
  44372. }
  44373. if (_j7 > 0 && _item20.x > leftSpace && _item20.x < rightSpace) {
  44374. context.lineTo(_item20.x, points[_j7 - 1].y);
  44375. context.lineTo(_item20.x, _item20.y);
  44376. }
  44377. }
  44378. ;
  44379. }
  44380. context.moveTo(points[0].x, points[0].y);
  44381. }
  44382. });
  44383. context.stroke();
  44384. context.setLineDash([]);
  44385. if (opts.dataPointShape !== false) {
  44386. drawPointShape(points, eachSeries.color, eachSeries.pointShape, context, opts);
  44387. }
  44388. });
  44389. if (opts.dataLabel !== false && process === 1) {
  44390. series.forEach(function (eachSeries, seriesIndex) {
  44391. var ranges, minRange, maxRange;
  44392. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  44393. minRange = ranges.pop();
  44394. maxRange = ranges.shift();
  44395. var data = eachSeries.data;
  44396. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  44397. drawPointText(points, eachSeries, config, context, opts);
  44398. });
  44399. }
  44400. context.restore();
  44401. return {
  44402. xAxisPoints: xAxisPoints,
  44403. calPoints: calPoints,
  44404. eachSpacing: eachSpacing
  44405. };
  44406. }
  44407. function drawMixDataPoints(series, opts, config, context) {
  44408. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  44409. var xAxisData = opts.chartData.xAxisData,
  44410. xAxisPoints = xAxisData.xAxisPoints,
  44411. eachSpacing = xAxisData.eachSpacing;
  44412. var columnOption = assign({}, {
  44413. width: eachSpacing / 2,
  44414. barBorderCircle: false,
  44415. barBorderRadius: [],
  44416. seriesGap: 2,
  44417. linearType: 'none',
  44418. linearOpacity: 1,
  44419. customColor: [],
  44420. colorStop: 0
  44421. }, opts.extra.mix.column);
  44422. var areaOption = assign({}, {
  44423. opacity: 0.2,
  44424. gradient: false
  44425. }, opts.extra.mix.area);
  44426. var lineOption = assign({}, {
  44427. width: 2
  44428. }, opts.extra.mix.line);
  44429. var endY = opts.height - opts.area[2];
  44430. var calPoints = [];
  44431. var columnIndex = 0;
  44432. var columnLength = 0;
  44433. series.forEach(function (eachSeries, seriesIndex) {
  44434. if (eachSeries.type == 'column') {
  44435. columnLength += 1;
  44436. }
  44437. });
  44438. context.save();
  44439. var leftNum = -2;
  44440. var rightNum = xAxisPoints.length + 2;
  44441. var leftSpace = 0;
  44442. var rightSpace = opts.width + eachSpacing;
  44443. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  44444. context.translate(opts._scrollDistance_, 0);
  44445. leftNum = Math.floor(-opts._scrollDistance_ / eachSpacing) - 2;
  44446. rightNum = leftNum + opts.xAxis.itemCount + 4;
  44447. leftSpace = -opts._scrollDistance_ - eachSpacing * 2 + opts.area[3];
  44448. rightSpace = leftSpace + (opts.xAxis.itemCount + 4) * eachSpacing;
  44449. }
  44450. columnOption.customColor = fillCustomColor(columnOption.linearType, columnOption.customColor, series, config);
  44451. series.forEach(function (eachSeries, seriesIndex) {
  44452. var ranges, minRange, maxRange;
  44453. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  44454. minRange = ranges.pop();
  44455. maxRange = ranges.shift();
  44456. var data = eachSeries.data;
  44457. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  44458. calPoints.push(points);
  44459. // 绘制柱状数据图
  44460. if (eachSeries.type == 'column') {
  44461. points = fixColumeData(points, eachSpacing, columnLength, columnIndex, config, opts);
  44462. for (var i = 0; i < points.length; i++) {
  44463. var item = points[i];
  44464. if (item !== null && i > leftNum && i < rightNum) {
  44465. var startX = item.x - item.width / 2;
  44466. var height = opts.height - item.y - opts.area[2];
  44467. context.beginPath();
  44468. var fillColor = item.color || eachSeries.color;
  44469. var strokeColor = item.color || eachSeries.color;
  44470. if (columnOption.linearType !== 'none') {
  44471. var grd = context.createLinearGradient(startX, item.y, startX, opts.height - opts.area[2]);
  44472. //透明渐变
  44473. if (columnOption.linearType == 'opacity') {
  44474. grd.addColorStop(0, hexToRgb(fillColor, columnOption.linearOpacity));
  44475. grd.addColorStop(1, hexToRgb(fillColor, 1));
  44476. } else {
  44477. grd.addColorStop(0, hexToRgb(columnOption.customColor[eachSeries.linearIndex], columnOption.linearOpacity));
  44478. grd.addColorStop(columnOption.colorStop, hexToRgb(columnOption.customColor[eachSeries.linearIndex], columnOption.linearOpacity));
  44479. grd.addColorStop(1, hexToRgb(fillColor, 1));
  44480. }
  44481. fillColor = grd;
  44482. }
  44483. // 圆角边框
  44484. if (columnOption.barBorderRadius && columnOption.barBorderRadius.length === 4 || columnOption.barBorderCircle) {
  44485. var left = startX;
  44486. var top = item.y;
  44487. var width = item.width;
  44488. var _height5 = opts.height - opts.area[2] - item.y;
  44489. if (columnOption.barBorderCircle) {
  44490. columnOption.barBorderRadius = [width / 2, width / 2, 0, 0];
  44491. }
  44492. var _columnOption$barBord4 = (0, _slicedToArray2.default)(columnOption.barBorderRadius, 4),
  44493. r0 = _columnOption$barBord4[0],
  44494. r1 = _columnOption$barBord4[1],
  44495. r2 = _columnOption$barBord4[2],
  44496. r3 = _columnOption$barBord4[3];
  44497. var minRadius = Math.min(width / 2, _height5 / 2);
  44498. r0 = r0 > minRadius ? minRadius : r0;
  44499. r1 = r1 > minRadius ? minRadius : r1;
  44500. r2 = r2 > minRadius ? minRadius : r2;
  44501. r3 = r3 > minRadius ? minRadius : r3;
  44502. r0 = r0 < 0 ? 0 : r0;
  44503. r1 = r1 < 0 ? 0 : r1;
  44504. r2 = r2 < 0 ? 0 : r2;
  44505. r3 = r3 < 0 ? 0 : r3;
  44506. context.arc(left + r0, top + r0, r0, -Math.PI, -Math.PI / 2);
  44507. context.arc(left + width - r1, top + r1, r1, -Math.PI / 2, 0);
  44508. context.arc(left + width - r2, top + _height5 - r2, r2, 0, Math.PI / 2);
  44509. context.arc(left + r3, top + _height5 - r3, r3, Math.PI / 2, Math.PI);
  44510. } else {
  44511. context.moveTo(startX, item.y);
  44512. context.lineTo(startX + item.width, item.y);
  44513. context.lineTo(startX + item.width, opts.height - opts.area[2]);
  44514. context.lineTo(startX, opts.height - opts.area[2]);
  44515. context.lineTo(startX, item.y);
  44516. context.setLineWidth(1);
  44517. context.setStrokeStyle(strokeColor);
  44518. }
  44519. context.setFillStyle(fillColor);
  44520. context.closePath();
  44521. context.fill();
  44522. }
  44523. }
  44524. columnIndex += 1;
  44525. }
  44526. //绘制区域图数据
  44527. if (eachSeries.type == 'area') {
  44528. var _splitPointList = splitPoints(points, eachSeries);
  44529. for (var _i23 = 0; _i23 < _splitPointList.length; _i23++) {
  44530. var _points3 = _splitPointList[_i23];
  44531. // 绘制区域数据
  44532. context.beginPath();
  44533. context.setStrokeStyle(eachSeries.color);
  44534. context.setStrokeStyle(hexToRgb(eachSeries.color, areaOption.opacity));
  44535. if (areaOption.gradient) {
  44536. var gradient = context.createLinearGradient(0, opts.area[0], 0, opts.height - opts.area[2]);
  44537. gradient.addColorStop('0', hexToRgb(eachSeries.color, areaOption.opacity));
  44538. gradient.addColorStop('1.0', hexToRgb("#FFFFFF", 0.1));
  44539. context.setFillStyle(gradient);
  44540. } else {
  44541. context.setFillStyle(hexToRgb(eachSeries.color, areaOption.opacity));
  44542. }
  44543. context.setLineWidth(2 * opts.pix);
  44544. if (_points3.length > 1) {
  44545. var firstPoint = _points3[0];
  44546. var lastPoint = _points3[_points3.length - 1];
  44547. context.moveTo(firstPoint.x, firstPoint.y);
  44548. var startPoint = 0;
  44549. if (eachSeries.style === 'curve') {
  44550. for (var j = 0; j < _points3.length; j++) {
  44551. var _item21 = _points3[j];
  44552. if (startPoint == 0 && _item21.x > leftSpace) {
  44553. context.moveTo(_item21.x, _item21.y);
  44554. startPoint = 1;
  44555. }
  44556. if (j > 0 && _item21.x > leftSpace && _item21.x < rightSpace) {
  44557. var ctrlPoint = createCurveControlPoints(_points3, j - 1);
  44558. context.bezierCurveTo(ctrlPoint.ctrA.x, ctrlPoint.ctrA.y, ctrlPoint.ctrB.x, ctrlPoint.ctrB.y, _item21.x, _item21.y);
  44559. }
  44560. }
  44561. ;
  44562. } else {
  44563. for (var _j8 = 0; _j8 < _points3.length; _j8++) {
  44564. var _item22 = _points3[_j8];
  44565. if (startPoint == 0 && _item22.x > leftSpace) {
  44566. context.moveTo(_item22.x, _item22.y);
  44567. startPoint = 1;
  44568. }
  44569. if (_j8 > 0 && _item22.x > leftSpace && _item22.x < rightSpace) {
  44570. context.lineTo(_item22.x, _item22.y);
  44571. }
  44572. }
  44573. ;
  44574. }
  44575. context.lineTo(lastPoint.x, endY);
  44576. context.lineTo(firstPoint.x, endY);
  44577. context.lineTo(firstPoint.x, firstPoint.y);
  44578. } else {
  44579. var _item23 = _points3[0];
  44580. context.moveTo(_item23.x - eachSpacing / 2, _item23.y);
  44581. context.lineTo(_item23.x + eachSpacing / 2, _item23.y);
  44582. context.lineTo(_item23.x + eachSpacing / 2, endY);
  44583. context.lineTo(_item23.x - eachSpacing / 2, endY);
  44584. context.moveTo(_item23.x - eachSpacing / 2, _item23.y);
  44585. }
  44586. context.closePath();
  44587. context.fill();
  44588. }
  44589. }
  44590. // 绘制折线数据图
  44591. if (eachSeries.type == 'line') {
  44592. var splitPointList = splitPoints(points, eachSeries);
  44593. splitPointList.forEach(function (points, index) {
  44594. if (eachSeries.lineType == 'dash') {
  44595. var dashLength = eachSeries.dashLength ? eachSeries.dashLength : 8;
  44596. dashLength *= opts.pix;
  44597. context.setLineDash([dashLength, dashLength]);
  44598. }
  44599. context.beginPath();
  44600. context.setStrokeStyle(eachSeries.color);
  44601. context.setLineWidth(lineOption.width * opts.pix);
  44602. if (points.length === 1) {
  44603. context.moveTo(points[0].x, points[0].y);
  44604. context.arc(points[0].x, points[0].y, 1, 0, 2 * Math.PI);
  44605. } else {
  44606. context.moveTo(points[0].x, points[0].y);
  44607. var _startPoint2 = 0;
  44608. if (eachSeries.style == 'curve') {
  44609. for (var _j9 = 0; _j9 < points.length; _j9++) {
  44610. var _item24 = points[_j9];
  44611. if (_startPoint2 == 0 && _item24.x > leftSpace) {
  44612. context.moveTo(_item24.x, _item24.y);
  44613. _startPoint2 = 1;
  44614. }
  44615. if (_j9 > 0 && _item24.x > leftSpace && _item24.x < rightSpace) {
  44616. var ctrlPoint = createCurveControlPoints(points, _j9 - 1);
  44617. context.bezierCurveTo(ctrlPoint.ctrA.x, ctrlPoint.ctrA.y, ctrlPoint.ctrB.x, ctrlPoint.ctrB.y, _item24.x, _item24.y);
  44618. }
  44619. }
  44620. } else {
  44621. for (var _j10 = 0; _j10 < points.length; _j10++) {
  44622. var _item25 = points[_j10];
  44623. if (_startPoint2 == 0 && _item25.x > leftSpace) {
  44624. context.moveTo(_item25.x, _item25.y);
  44625. _startPoint2 = 1;
  44626. }
  44627. if (_j10 > 0 && _item25.x > leftSpace && _item25.x < rightSpace) {
  44628. context.lineTo(_item25.x, _item25.y);
  44629. }
  44630. }
  44631. }
  44632. context.moveTo(points[0].x, points[0].y);
  44633. }
  44634. context.stroke();
  44635. context.setLineDash([]);
  44636. });
  44637. }
  44638. // 绘制点数据图
  44639. if (eachSeries.type == 'point') {
  44640. eachSeries.addPoint = true;
  44641. }
  44642. if (eachSeries.addPoint == true && eachSeries.type !== 'column') {
  44643. drawPointShape(points, eachSeries.color, eachSeries.pointShape, context, opts);
  44644. }
  44645. });
  44646. if (opts.dataLabel !== false && process === 1) {
  44647. var columnIndex = 0;
  44648. series.forEach(function (eachSeries, seriesIndex) {
  44649. var ranges, minRange, maxRange;
  44650. ranges = [].concat(opts.chartData.yAxisData.ranges[eachSeries.index]);
  44651. minRange = ranges.pop();
  44652. maxRange = ranges.shift();
  44653. var data = eachSeries.data;
  44654. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  44655. if (eachSeries.type !== 'column') {
  44656. drawPointText(points, eachSeries, config, context, opts);
  44657. } else {
  44658. points = fixColumeData(points, eachSpacing, columnLength, columnIndex, config, opts);
  44659. drawPointText(points, eachSeries, config, context, opts);
  44660. columnIndex += 1;
  44661. }
  44662. });
  44663. }
  44664. context.restore();
  44665. return {
  44666. xAxisPoints: xAxisPoints,
  44667. calPoints: calPoints,
  44668. eachSpacing: eachSpacing
  44669. };
  44670. }
  44671. function drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints) {
  44672. var toolTipOption = opts.extra.tooltip || {};
  44673. if (toolTipOption.horizentalLine && opts.tooltip && process === 1 && (opts.type == 'line' || opts.type == 'area' || opts.type == 'column' || opts.type == 'mount' || opts.type == 'candle' || opts.type == 'mix')) {
  44674. drawToolTipHorizentalLine(opts, config, context, eachSpacing, xAxisPoints);
  44675. }
  44676. context.save();
  44677. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  44678. context.translate(opts._scrollDistance_, 0);
  44679. }
  44680. if (opts.tooltip && opts.tooltip.textList && opts.tooltip.textList.length && process === 1) {
  44681. drawToolTip(opts.tooltip.textList, opts.tooltip.offset, opts, config, context, eachSpacing, xAxisPoints);
  44682. }
  44683. context.restore();
  44684. }
  44685. function drawXAxis(categories, opts, config, context) {
  44686. var xAxisData = opts.chartData.xAxisData,
  44687. xAxisPoints = xAxisData.xAxisPoints,
  44688. startX = xAxisData.startX,
  44689. endX = xAxisData.endX,
  44690. eachSpacing = xAxisData.eachSpacing;
  44691. var boundaryGap = 'center';
  44692. if (opts.type == 'bar' || opts.type == 'line' || opts.type == 'area' || opts.type == 'scatter' || opts.type == 'bubble') {
  44693. boundaryGap = opts.xAxis.boundaryGap;
  44694. }
  44695. var startY = opts.height - opts.area[2];
  44696. var endY = opts.area[0];
  44697. //绘制滚动条
  44698. if (opts.enableScroll && opts.xAxis.scrollShow) {
  44699. var scrollY = opts.height - opts.area[2] + config.xAxisHeight;
  44700. var scrollScreenWidth = endX - startX;
  44701. var scrollTotalWidth = eachSpacing * (xAxisPoints.length - 1);
  44702. if (opts.type == 'mount' && opts.extra && opts.extra.mount && opts.extra.mount.widthRatio && opts.extra.mount.widthRatio > 1) {
  44703. if (opts.extra.mount.widthRatio > 2) opts.extra.mount.widthRatio = 2;
  44704. scrollTotalWidth += (opts.extra.mount.widthRatio - 1) * eachSpacing;
  44705. }
  44706. var scrollWidth = scrollScreenWidth * scrollScreenWidth / scrollTotalWidth;
  44707. var scrollLeft = 0;
  44708. if (opts._scrollDistance_) {
  44709. scrollLeft = -opts._scrollDistance_ * scrollScreenWidth / scrollTotalWidth;
  44710. }
  44711. context.beginPath();
  44712. context.setLineCap('round');
  44713. context.setLineWidth(6 * opts.pix);
  44714. context.setStrokeStyle(opts.xAxis.scrollBackgroundColor || "#EFEBEF");
  44715. context.moveTo(startX, scrollY);
  44716. context.lineTo(endX, scrollY);
  44717. context.stroke();
  44718. context.closePath();
  44719. context.beginPath();
  44720. context.setLineCap('round');
  44721. context.setLineWidth(6 * opts.pix);
  44722. context.setStrokeStyle(opts.xAxis.scrollColor || "#A6A6A6");
  44723. context.moveTo(startX + scrollLeft, scrollY);
  44724. context.lineTo(startX + scrollLeft + scrollWidth, scrollY);
  44725. context.stroke();
  44726. context.closePath();
  44727. context.setLineCap('butt');
  44728. }
  44729. context.save();
  44730. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0) {
  44731. context.translate(opts._scrollDistance_, 0);
  44732. }
  44733. //绘制X轴刻度线
  44734. if (opts.xAxis.calibration === true) {
  44735. context.setStrokeStyle(opts.xAxis.gridColor || "#cccccc");
  44736. context.setLineCap('butt');
  44737. context.setLineWidth(1 * opts.pix);
  44738. xAxisPoints.forEach(function (item, index) {
  44739. if (index > 0) {
  44740. context.beginPath();
  44741. context.moveTo(item - eachSpacing / 2, startY);
  44742. context.lineTo(item - eachSpacing / 2, startY + 3 * opts.pix);
  44743. context.closePath();
  44744. context.stroke();
  44745. }
  44746. });
  44747. }
  44748. //绘制X轴网格
  44749. if (opts.xAxis.disableGrid !== true) {
  44750. context.setStrokeStyle(opts.xAxis.gridColor || "#cccccc");
  44751. context.setLineCap('butt');
  44752. context.setLineWidth(1 * opts.pix);
  44753. if (opts.xAxis.gridType == 'dash') {
  44754. context.setLineDash([opts.xAxis.dashLength * opts.pix, opts.xAxis.dashLength * opts.pix]);
  44755. }
  44756. opts.xAxis.gridEval = opts.xAxis.gridEval || 1;
  44757. xAxisPoints.forEach(function (item, index) {
  44758. if (index % opts.xAxis.gridEval == 0) {
  44759. context.beginPath();
  44760. context.moveTo(item, startY);
  44761. context.lineTo(item, endY);
  44762. context.stroke();
  44763. }
  44764. });
  44765. context.setLineDash([]);
  44766. }
  44767. //绘制X轴文案
  44768. if (opts.xAxis.disabled !== true) {
  44769. // 对X轴列表做抽稀处理
  44770. //默认全部显示X轴标签
  44771. var maxXAxisListLength = categories.length;
  44772. //如果设置了X轴单屏数量
  44773. if (opts.xAxis.labelCount) {
  44774. //如果设置X轴密度
  44775. if (opts.xAxis.itemCount) {
  44776. maxXAxisListLength = Math.ceil(categories.length / opts.xAxis.itemCount * opts.xAxis.labelCount);
  44777. } else {
  44778. maxXAxisListLength = opts.xAxis.labelCount;
  44779. }
  44780. maxXAxisListLength -= 1;
  44781. }
  44782. var ratio = Math.ceil(categories.length / maxXAxisListLength);
  44783. var newCategories = [];
  44784. var cgLength = categories.length;
  44785. for (var i = 0; i < cgLength; i++) {
  44786. if (i % ratio !== 0) {
  44787. newCategories.push("");
  44788. } else {
  44789. newCategories.push(categories[i]);
  44790. }
  44791. }
  44792. newCategories[cgLength - 1] = categories[cgLength - 1];
  44793. var xAxisFontSize = opts.xAxis.fontSize * opts.pix || config.fontSize;
  44794. if (config._xAxisTextAngle_ === 0) {
  44795. newCategories.forEach(function (item, index) {
  44796. var xitem = opts.xAxis.formatter ? opts.xAxis.formatter(item, index, opts) : item;
  44797. var offset = -measureText(String(xitem), xAxisFontSize, context) / 2;
  44798. if (boundaryGap == 'center') {
  44799. offset += eachSpacing / 2;
  44800. }
  44801. var scrollHeight = 0;
  44802. if (opts.xAxis.scrollShow) {
  44803. scrollHeight = 6 * opts.pix;
  44804. }
  44805. // 如果在主视图区域内
  44806. var _scrollDistance_ = opts._scrollDistance_ || 0;
  44807. var truePoints = boundaryGap == 'center' ? xAxisPoints[index] + eachSpacing / 2 : xAxisPoints[index];
  44808. if (truePoints - Math.abs(_scrollDistance_) >= opts.area[3] && truePoints - Math.abs(_scrollDistance_) <= opts.width - opts.area[1]) {
  44809. context.beginPath();
  44810. context.setFontSize(xAxisFontSize);
  44811. context.setFillStyle(opts.xAxis.fontColor || opts.fontColor);
  44812. context.fillText(String(xitem), xAxisPoints[index] + offset, startY + xAxisFontSize + (config.xAxisHeight - scrollHeight - xAxisFontSize) / 2);
  44813. context.closePath();
  44814. context.stroke();
  44815. }
  44816. });
  44817. } else {
  44818. newCategories.forEach(function (item, index) {
  44819. var xitem = opts.xAxis.formatter ? opts.xAxis.formatter(item) : item;
  44820. // 如果在主视图区域内
  44821. var _scrollDistance_ = opts._scrollDistance_ || 0;
  44822. var truePoints = boundaryGap == 'center' ? xAxisPoints[index] + eachSpacing / 2 : xAxisPoints[index];
  44823. if (truePoints - Math.abs(_scrollDistance_) >= opts.area[3] && truePoints - Math.abs(_scrollDistance_) <= opts.width - opts.area[1]) {
  44824. context.save();
  44825. context.beginPath();
  44826. context.setFontSize(xAxisFontSize);
  44827. context.setFillStyle(opts.xAxis.fontColor || opts.fontColor);
  44828. var textWidth = measureText(String(xitem), xAxisFontSize, context);
  44829. var offsetX = xAxisPoints[index];
  44830. if (boundaryGap == 'center') {
  44831. offsetX = xAxisPoints[index] + eachSpacing / 2;
  44832. }
  44833. var scrollHeight = 0;
  44834. if (opts.xAxis.scrollShow) {
  44835. scrollHeight = 6 * opts.pix;
  44836. }
  44837. var offsetY = startY + 6 * opts.pix + xAxisFontSize - xAxisFontSize * Math.abs(Math.sin(config._xAxisTextAngle_));
  44838. if (opts.xAxis.rotateAngle < 0) {
  44839. offsetX -= xAxisFontSize / 2;
  44840. textWidth = 0;
  44841. } else {
  44842. offsetX += xAxisFontSize / 2;
  44843. textWidth = -textWidth;
  44844. }
  44845. context.translate(offsetX, offsetY);
  44846. context.rotate(-1 * config._xAxisTextAngle_);
  44847. context.fillText(String(xitem), textWidth, 0);
  44848. context.closePath();
  44849. context.stroke();
  44850. context.restore();
  44851. }
  44852. });
  44853. }
  44854. }
  44855. context.restore();
  44856. //绘制X轴轴线
  44857. if (opts.xAxis.axisLine) {
  44858. context.beginPath();
  44859. context.setStrokeStyle(opts.xAxis.axisLineColor);
  44860. context.setLineWidth(1 * opts.pix);
  44861. context.moveTo(startX, opts.height - opts.area[2]);
  44862. context.lineTo(endX, opts.height - opts.area[2]);
  44863. context.stroke();
  44864. }
  44865. }
  44866. function drawYAxisGrid(categories, opts, config, context) {
  44867. if (opts.yAxis.disableGrid === true) {
  44868. return;
  44869. }
  44870. var spacingValid = opts.height - opts.area[0] - opts.area[2];
  44871. var eachSpacing = spacingValid / opts.yAxis.splitNumber;
  44872. var startX = opts.area[3];
  44873. var xAxisPoints = opts.chartData.xAxisData.xAxisPoints,
  44874. xAxiseachSpacing = opts.chartData.xAxisData.eachSpacing;
  44875. var TotalWidth = xAxiseachSpacing * (xAxisPoints.length - 1);
  44876. if (opts.type == 'mount' && opts.extra && opts.extra.mount && opts.extra.mount.widthRatio && opts.extra.mount.widthRatio > 1) {
  44877. if (opts.extra.mount.widthRatio > 2) opts.extra.mount.widthRatio = 2;
  44878. TotalWidth += (opts.extra.mount.widthRatio - 1) * xAxiseachSpacing;
  44879. }
  44880. var endX = startX + TotalWidth;
  44881. var points = [];
  44882. var startY = 1;
  44883. if (opts.xAxis.axisLine === false) {
  44884. startY = 0;
  44885. }
  44886. for (var i = startY; i < opts.yAxis.splitNumber + 1; i++) {
  44887. points.push(opts.height - opts.area[2] - eachSpacing * i);
  44888. }
  44889. context.save();
  44890. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0) {
  44891. context.translate(opts._scrollDistance_, 0);
  44892. }
  44893. if (opts.yAxis.gridType == 'dash') {
  44894. context.setLineDash([opts.yAxis.dashLength * opts.pix, opts.yAxis.dashLength * opts.pix]);
  44895. }
  44896. context.setStrokeStyle(opts.yAxis.gridColor);
  44897. context.setLineWidth(1 * opts.pix);
  44898. points.forEach(function (item, index) {
  44899. context.beginPath();
  44900. context.moveTo(startX, item);
  44901. context.lineTo(endX, item);
  44902. context.stroke();
  44903. });
  44904. context.setLineDash([]);
  44905. context.restore();
  44906. }
  44907. function drawYAxis(series, opts, config, context) {
  44908. if (opts.yAxis.disabled === true) {
  44909. return;
  44910. }
  44911. var spacingValid = opts.height - opts.area[0] - opts.area[2];
  44912. var eachSpacing = spacingValid / opts.yAxis.splitNumber;
  44913. var startX = opts.area[3];
  44914. var endX = opts.width - opts.area[1];
  44915. var endY = opts.height - opts.area[2];
  44916. // set YAxis background
  44917. context.beginPath();
  44918. context.setFillStyle(opts.background);
  44919. if (opts.enableScroll == true && opts.xAxis.scrollPosition && opts.xAxis.scrollPosition !== 'left') {
  44920. context.fillRect(0, 0, startX, endY + 2 * opts.pix);
  44921. }
  44922. if (opts.enableScroll == true && opts.xAxis.scrollPosition && opts.xAxis.scrollPosition !== 'right') {
  44923. context.fillRect(endX, 0, opts.width, endY + 2 * opts.pix);
  44924. }
  44925. context.closePath();
  44926. context.stroke();
  44927. var tStartLeft = opts.area[3];
  44928. var tStartRight = opts.width - opts.area[1];
  44929. var tStartCenter = opts.area[3] + (opts.width - opts.area[1] - opts.area[3]) / 2;
  44930. if (opts.yAxis.data) {
  44931. var _loop4 = function _loop4(i) {
  44932. var yData = opts.yAxis.data[i];
  44933. points = [];
  44934. if (yData.type === 'categories') {
  44935. for (var _i24 = 0; _i24 <= yData.categories.length; _i24++) {
  44936. points.push(opts.area[0] + spacingValid / yData.categories.length / 2 + spacingValid / yData.categories.length * _i24);
  44937. }
  44938. } else {
  44939. for (var _i25 = 0; _i25 <= opts.yAxis.splitNumber; _i25++) {
  44940. points.push(opts.area[0] + eachSpacing * _i25);
  44941. }
  44942. }
  44943. if (yData.disabled !== true) {
  44944. var rangesFormat = opts.chartData.yAxisData.rangesFormat[i];
  44945. var yAxisFontSize = yData.fontSize ? yData.fontSize * opts.pix : config.fontSize;
  44946. var yAxisWidth = opts.chartData.yAxisData.yAxisWidth[i];
  44947. var textAlign = yData.textAlign || "right";
  44948. //画Y轴刻度及文案
  44949. rangesFormat.forEach(function (item, index) {
  44950. var pos = points[index];
  44951. context.beginPath();
  44952. context.setFontSize(yAxisFontSize);
  44953. context.setLineWidth(1 * opts.pix);
  44954. context.setStrokeStyle(yData.axisLineColor || '#cccccc');
  44955. context.setFillStyle(yData.fontColor || opts.fontColor);
  44956. var tmpstrat = 0;
  44957. var gapwidth = 4 * opts.pix;
  44958. if (yAxisWidth.position == 'left') {
  44959. //画刻度线
  44960. if (yData.calibration == true) {
  44961. context.moveTo(tStartLeft, pos);
  44962. context.lineTo(tStartLeft - 3 * opts.pix, pos);
  44963. gapwidth += 3 * opts.pix;
  44964. }
  44965. //画文字
  44966. switch (textAlign) {
  44967. case "left":
  44968. context.setTextAlign('left');
  44969. tmpstrat = tStartLeft - yAxisWidth.width;
  44970. break;
  44971. case "right":
  44972. context.setTextAlign('right');
  44973. tmpstrat = tStartLeft - gapwidth;
  44974. break;
  44975. default:
  44976. context.setTextAlign('center');
  44977. tmpstrat = tStartLeft - yAxisWidth.width / 2;
  44978. }
  44979. context.fillText(String(item), tmpstrat, pos + yAxisFontSize / 2 - 3 * opts.pix);
  44980. } else if (yAxisWidth.position == 'right') {
  44981. //画刻度线
  44982. if (yData.calibration == true) {
  44983. context.moveTo(tStartRight, pos);
  44984. context.lineTo(tStartRight + 3 * opts.pix, pos);
  44985. gapwidth += 3 * opts.pix;
  44986. }
  44987. switch (textAlign) {
  44988. case "left":
  44989. context.setTextAlign('left');
  44990. tmpstrat = tStartRight + gapwidth;
  44991. break;
  44992. case "right":
  44993. context.setTextAlign('right');
  44994. tmpstrat = tStartRight + yAxisWidth.width;
  44995. break;
  44996. default:
  44997. context.setTextAlign('center');
  44998. tmpstrat = tStartRight + yAxisWidth.width / 2;
  44999. }
  45000. context.fillText(String(item), tmpstrat, pos + yAxisFontSize / 2 - 3 * opts.pix);
  45001. } else if (yAxisWidth.position == 'center') {
  45002. //画刻度线
  45003. if (yData.calibration == true) {
  45004. context.moveTo(tStartCenter, pos);
  45005. context.lineTo(tStartCenter - 3 * opts.pix, pos);
  45006. gapwidth += 3 * opts.pix;
  45007. }
  45008. //画文字
  45009. switch (textAlign) {
  45010. case "left":
  45011. context.setTextAlign('left');
  45012. tmpstrat = tStartCenter - yAxisWidth.width;
  45013. break;
  45014. case "right":
  45015. context.setTextAlign('right');
  45016. tmpstrat = tStartCenter - gapwidth;
  45017. break;
  45018. default:
  45019. context.setTextAlign('center');
  45020. tmpstrat = tStartCenter - yAxisWidth.width / 2;
  45021. }
  45022. context.fillText(String(item), tmpstrat, pos + yAxisFontSize / 2 - 3 * opts.pix);
  45023. }
  45024. context.closePath();
  45025. context.stroke();
  45026. context.setTextAlign('left');
  45027. });
  45028. //画Y轴轴线
  45029. if (yData.axisLine !== false) {
  45030. context.beginPath();
  45031. context.setStrokeStyle(yData.axisLineColor || '#cccccc');
  45032. context.setLineWidth(1 * opts.pix);
  45033. if (yAxisWidth.position == 'left') {
  45034. context.moveTo(tStartLeft, opts.height - opts.area[2]);
  45035. context.lineTo(tStartLeft, opts.area[0]);
  45036. } else if (yAxisWidth.position == 'right') {
  45037. context.moveTo(tStartRight, opts.height - opts.area[2]);
  45038. context.lineTo(tStartRight, opts.area[0]);
  45039. } else if (yAxisWidth.position == 'center') {
  45040. context.moveTo(tStartCenter, opts.height - opts.area[2]);
  45041. context.lineTo(tStartCenter, opts.area[0]);
  45042. }
  45043. context.stroke();
  45044. }
  45045. //画Y轴标题
  45046. if (opts.yAxis.showTitle) {
  45047. var titleFontSize = yData.titleFontSize * opts.pix || config.fontSize;
  45048. var title = yData.title;
  45049. context.beginPath();
  45050. context.setFontSize(titleFontSize);
  45051. context.setFillStyle(yData.titleFontColor || opts.fontColor);
  45052. if (yAxisWidth.position == 'left') {
  45053. context.fillText(title, tStartLeft - measureText(title, titleFontSize, context) / 2 + (yData.titleOffsetX || 0), opts.area[0] - (10 - (yData.titleOffsetY || 0)) * opts.pix);
  45054. } else if (yAxisWidth.position == 'right') {
  45055. context.fillText(title, tStartRight - measureText(title, titleFontSize, context) / 2 + (yData.titleOffsetX || 0), opts.area[0] - (10 - (yData.titleOffsetY || 0)) * opts.pix);
  45056. } else if (yAxisWidth.position == 'center') {
  45057. context.fillText(title, tStartCenter - measureText(title, titleFontSize, context) / 2 + (yData.titleOffsetX || 0), opts.area[0] - (10 - (yData.titleOffsetY || 0)) * opts.pix);
  45058. }
  45059. context.closePath();
  45060. context.stroke();
  45061. }
  45062. if (yAxisWidth.position == 'left') {
  45063. tStartLeft -= yAxisWidth.width + opts.yAxis.padding * opts.pix;
  45064. } else {
  45065. tStartRight += yAxisWidth.width + opts.yAxis.padding * opts.pix;
  45066. }
  45067. }
  45068. };
  45069. for (var i = 0; i < opts.yAxis.data.length; i++) {
  45070. var points;
  45071. _loop4(i);
  45072. }
  45073. }
  45074. }
  45075. function drawLegend(series, opts, config, context, chartData) {
  45076. if (opts.legend.show === false) {
  45077. return;
  45078. }
  45079. var legendData = chartData.legendData;
  45080. var legendList = legendData.points;
  45081. var legendArea = legendData.area;
  45082. var padding = opts.legend.padding * opts.pix;
  45083. var fontSize = opts.legend.fontSize * opts.pix;
  45084. var shapeWidth = 15 * opts.pix;
  45085. var shapeRight = 5 * opts.pix;
  45086. var itemGap = opts.legend.itemGap * opts.pix;
  45087. var lineHeight = Math.max(opts.legend.lineHeight * opts.pix, fontSize);
  45088. //画背景及边框
  45089. context.beginPath();
  45090. context.setLineWidth(opts.legend.borderWidth * opts.pix);
  45091. context.setStrokeStyle(opts.legend.borderColor);
  45092. context.setFillStyle(opts.legend.backgroundColor);
  45093. context.moveTo(legendArea.start.x, legendArea.start.y);
  45094. context.rect(legendArea.start.x, legendArea.start.y, legendArea.width, legendArea.height);
  45095. context.closePath();
  45096. context.fill();
  45097. context.stroke();
  45098. legendList.forEach(function (itemList, listIndex) {
  45099. var width = 0;
  45100. var height = 0;
  45101. width = legendData.widthArr[listIndex];
  45102. height = legendData.heightArr[listIndex];
  45103. var startX = 0;
  45104. var startY = 0;
  45105. if (opts.legend.position == 'top' || opts.legend.position == 'bottom') {
  45106. switch (opts.legend.float) {
  45107. case 'left':
  45108. startX = legendArea.start.x + padding;
  45109. break;
  45110. case 'right':
  45111. startX = legendArea.start.x + legendArea.width - width;
  45112. break;
  45113. default:
  45114. startX = legendArea.start.x + (legendArea.width - width) / 2;
  45115. }
  45116. startY = legendArea.start.y + padding + listIndex * lineHeight;
  45117. } else {
  45118. if (listIndex == 0) {
  45119. width = 0;
  45120. } else {
  45121. width = legendData.widthArr[listIndex - 1];
  45122. }
  45123. startX = legendArea.start.x + padding + width;
  45124. startY = legendArea.start.y + padding + (legendArea.height - height) / 2;
  45125. }
  45126. context.setFontSize(config.fontSize);
  45127. for (var i = 0; i < itemList.length; i++) {
  45128. var item = itemList[i];
  45129. item.area = [0, 0, 0, 0];
  45130. item.area[0] = startX;
  45131. item.area[1] = startY;
  45132. item.area[3] = startY + lineHeight;
  45133. context.beginPath();
  45134. context.setLineWidth(1 * opts.pix);
  45135. context.setStrokeStyle(item.show ? item.color : opts.legend.hiddenColor);
  45136. context.setFillStyle(item.show ? item.color : opts.legend.hiddenColor);
  45137. switch (item.legendShape) {
  45138. case 'line':
  45139. context.moveTo(startX, startY + 0.5 * lineHeight - 2 * opts.pix);
  45140. context.fillRect(startX, startY + 0.5 * lineHeight - 2 * opts.pix, 15 * opts.pix, 4 * opts.pix);
  45141. break;
  45142. case 'triangle':
  45143. context.moveTo(startX + 7.5 * opts.pix, startY + 0.5 * lineHeight - 5 * opts.pix);
  45144. context.lineTo(startX + 2.5 * opts.pix, startY + 0.5 * lineHeight + 5 * opts.pix);
  45145. context.lineTo(startX + 12.5 * opts.pix, startY + 0.5 * lineHeight + 5 * opts.pix);
  45146. context.lineTo(startX + 7.5 * opts.pix, startY + 0.5 * lineHeight - 5 * opts.pix);
  45147. break;
  45148. case 'diamond':
  45149. context.moveTo(startX + 7.5 * opts.pix, startY + 0.5 * lineHeight - 5 * opts.pix);
  45150. context.lineTo(startX + 2.5 * opts.pix, startY + 0.5 * lineHeight);
  45151. context.lineTo(startX + 7.5 * opts.pix, startY + 0.5 * lineHeight + 5 * opts.pix);
  45152. context.lineTo(startX + 12.5 * opts.pix, startY + 0.5 * lineHeight);
  45153. context.lineTo(startX + 7.5 * opts.pix, startY + 0.5 * lineHeight - 5 * opts.pix);
  45154. break;
  45155. case 'circle':
  45156. context.moveTo(startX + 7.5 * opts.pix, startY + 0.5 * lineHeight);
  45157. context.arc(startX + 7.5 * opts.pix, startY + 0.5 * lineHeight, 5 * opts.pix, 0, 2 * Math.PI);
  45158. break;
  45159. case 'rect':
  45160. context.moveTo(startX, startY + 0.5 * lineHeight - 5 * opts.pix);
  45161. context.fillRect(startX, startY + 0.5 * lineHeight - 5 * opts.pix, 15 * opts.pix, 10 * opts.pix);
  45162. break;
  45163. case 'square':
  45164. context.moveTo(startX + 5 * opts.pix, startY + 0.5 * lineHeight - 5 * opts.pix);
  45165. context.fillRect(startX + 5 * opts.pix, startY + 0.5 * lineHeight - 5 * opts.pix, 10 * opts.pix, 10 * opts.pix);
  45166. break;
  45167. case 'none':
  45168. break;
  45169. default:
  45170. context.moveTo(startX, startY + 0.5 * lineHeight - 5 * opts.pix);
  45171. context.fillRect(startX, startY + 0.5 * lineHeight - 5 * opts.pix, 15 * opts.pix, 10 * opts.pix);
  45172. }
  45173. context.closePath();
  45174. context.fill();
  45175. context.stroke();
  45176. startX += shapeWidth + shapeRight;
  45177. var fontTrans = 0.5 * lineHeight + 0.5 * fontSize - 2;
  45178. var legendText = item.legendText ? item.legendText : item.name;
  45179. context.beginPath();
  45180. context.setFontSize(fontSize);
  45181. context.setFillStyle(item.show ? opts.legend.fontColor : opts.legend.hiddenColor);
  45182. context.fillText(legendText, startX, startY + fontTrans);
  45183. context.closePath();
  45184. context.stroke();
  45185. if (opts.legend.position == 'top' || opts.legend.position == 'bottom') {
  45186. startX += measureText(legendText, fontSize, context) + itemGap;
  45187. item.area[2] = startX;
  45188. } else {
  45189. item.area[2] = startX + measureText(legendText, fontSize, context) + itemGap;
  45190. ;
  45191. startX -= shapeWidth + shapeRight;
  45192. startY += lineHeight;
  45193. }
  45194. }
  45195. });
  45196. }
  45197. function drawPieDataPoints(series, opts, config, context) {
  45198. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  45199. var pieOption = assign({}, {
  45200. activeOpacity: 0.5,
  45201. activeRadius: 10,
  45202. offsetAngle: 0,
  45203. labelWidth: 15,
  45204. ringWidth: 30,
  45205. customRadius: 0,
  45206. border: false,
  45207. borderWidth: 2,
  45208. borderColor: '#FFFFFF',
  45209. centerColor: '#FFFFFF',
  45210. linearType: 'none',
  45211. customColor: []
  45212. }, opts.type == "pie" ? opts.extra.pie : opts.extra.ring);
  45213. var centerPosition = {
  45214. x: opts.area[3] + (opts.width - opts.area[1] - opts.area[3]) / 2,
  45215. y: opts.area[0] + (opts.height - opts.area[0] - opts.area[2]) / 2
  45216. };
  45217. if (config.pieChartLinePadding == 0) {
  45218. config.pieChartLinePadding = pieOption.activeRadius * opts.pix;
  45219. }
  45220. var radius = Math.min((opts.width - opts.area[1] - opts.area[3]) / 2 - config.pieChartLinePadding - config.pieChartTextPadding - config._pieTextMaxLength_, (opts.height - opts.area[0] - opts.area[2]) / 2 - config.pieChartLinePadding - config.pieChartTextPadding);
  45221. radius = radius < 10 ? 10 : radius;
  45222. if (pieOption.customRadius > 0) {
  45223. radius = pieOption.customRadius * opts.pix;
  45224. }
  45225. series = getPieDataPoints(series, radius, process);
  45226. var activeRadius = pieOption.activeRadius * opts.pix;
  45227. pieOption.customColor = fillCustomColor(pieOption.linearType, pieOption.customColor, series, config);
  45228. series = series.map(function (eachSeries) {
  45229. eachSeries._start_ += pieOption.offsetAngle * Math.PI / 180;
  45230. return eachSeries;
  45231. });
  45232. series.forEach(function (eachSeries, seriesIndex) {
  45233. if (opts.tooltip) {
  45234. if (opts.tooltip.index == seriesIndex) {
  45235. context.beginPath();
  45236. context.setFillStyle(hexToRgb(eachSeries.color, pieOption.activeOpacity || 0.5));
  45237. context.moveTo(centerPosition.x, centerPosition.y);
  45238. context.arc(centerPosition.x, centerPosition.y, eachSeries._radius_ + activeRadius, eachSeries._start_, eachSeries._start_ + 2 * eachSeries._proportion_ * Math.PI);
  45239. context.closePath();
  45240. context.fill();
  45241. }
  45242. }
  45243. context.beginPath();
  45244. context.setLineWidth(pieOption.borderWidth * opts.pix);
  45245. context.lineJoin = "round";
  45246. context.setStrokeStyle(pieOption.borderColor);
  45247. var fillcolor = eachSeries.color;
  45248. if (pieOption.linearType == 'custom') {
  45249. var grd;
  45250. if (context.createCircularGradient) {
  45251. grd = context.createCircularGradient(centerPosition.x, centerPosition.y, eachSeries._radius_);
  45252. } else {
  45253. grd = context.createRadialGradient(centerPosition.x, centerPosition.y, 0, centerPosition.x, centerPosition.y, eachSeries._radius_);
  45254. }
  45255. grd.addColorStop(0, hexToRgb(pieOption.customColor[eachSeries.linearIndex], 1));
  45256. grd.addColorStop(1, hexToRgb(eachSeries.color, 1));
  45257. fillcolor = grd;
  45258. }
  45259. context.setFillStyle(fillcolor);
  45260. context.moveTo(centerPosition.x, centerPosition.y);
  45261. context.arc(centerPosition.x, centerPosition.y, eachSeries._radius_, eachSeries._start_, eachSeries._start_ + 2 * eachSeries._proportion_ * Math.PI);
  45262. context.closePath();
  45263. context.fill();
  45264. if (pieOption.border == true) {
  45265. context.stroke();
  45266. }
  45267. });
  45268. if (opts.type === 'ring') {
  45269. var innerPieWidth = radius * 0.6;
  45270. if (typeof pieOption.ringWidth === 'number' && pieOption.ringWidth > 0) {
  45271. innerPieWidth = Math.max(0, radius - pieOption.ringWidth * opts.pix);
  45272. }
  45273. context.beginPath();
  45274. context.setFillStyle(pieOption.centerColor);
  45275. context.moveTo(centerPosition.x, centerPosition.y);
  45276. context.arc(centerPosition.x, centerPosition.y, innerPieWidth, 0, 2 * Math.PI);
  45277. context.closePath();
  45278. context.fill();
  45279. }
  45280. if (opts.dataLabel !== false && process === 1) {
  45281. drawPieText(series, opts, config, context, radius, centerPosition);
  45282. }
  45283. if (process === 1 && opts.type === 'ring') {
  45284. drawRingTitle(opts, config, context, centerPosition);
  45285. }
  45286. return {
  45287. center: centerPosition,
  45288. radius: radius,
  45289. series: series
  45290. };
  45291. }
  45292. function drawRoseDataPoints(series, opts, config, context) {
  45293. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  45294. var roseOption = assign({}, {
  45295. type: 'area',
  45296. activeOpacity: 0.5,
  45297. activeRadius: 10,
  45298. offsetAngle: 0,
  45299. labelWidth: 15,
  45300. border: false,
  45301. borderWidth: 2,
  45302. borderColor: '#FFFFFF',
  45303. linearType: 'none',
  45304. customColor: []
  45305. }, opts.extra.rose);
  45306. if (config.pieChartLinePadding == 0) {
  45307. config.pieChartLinePadding = roseOption.activeRadius * opts.pix;
  45308. }
  45309. var centerPosition = {
  45310. x: opts.area[3] + (opts.width - opts.area[1] - opts.area[3]) / 2,
  45311. y: opts.area[0] + (opts.height - opts.area[0] - opts.area[2]) / 2
  45312. };
  45313. var radius = Math.min((opts.width - opts.area[1] - opts.area[3]) / 2 - config.pieChartLinePadding - config.pieChartTextPadding - config._pieTextMaxLength_, (opts.height - opts.area[0] - opts.area[2]) / 2 - config.pieChartLinePadding - config.pieChartTextPadding);
  45314. radius = radius < 10 ? 10 : radius;
  45315. var minRadius = roseOption.minRadius || radius * 0.5;
  45316. series = getRoseDataPoints(series, roseOption.type, minRadius, radius, process);
  45317. var activeRadius = roseOption.activeRadius * opts.pix;
  45318. roseOption.customColor = fillCustomColor(roseOption.linearType, roseOption.customColor, series, config);
  45319. series = series.map(function (eachSeries) {
  45320. eachSeries._start_ += (roseOption.offsetAngle || 0) * Math.PI / 180;
  45321. return eachSeries;
  45322. });
  45323. series.forEach(function (eachSeries, seriesIndex) {
  45324. if (opts.tooltip) {
  45325. if (opts.tooltip.index == seriesIndex) {
  45326. context.beginPath();
  45327. context.setFillStyle(hexToRgb(eachSeries.color, roseOption.activeOpacity || 0.5));
  45328. context.moveTo(centerPosition.x, centerPosition.y);
  45329. context.arc(centerPosition.x, centerPosition.y, activeRadius + eachSeries._radius_, eachSeries._start_, eachSeries._start_ + 2 * eachSeries._rose_proportion_ * Math.PI);
  45330. context.closePath();
  45331. context.fill();
  45332. }
  45333. }
  45334. context.beginPath();
  45335. context.setLineWidth(roseOption.borderWidth * opts.pix);
  45336. context.lineJoin = "round";
  45337. context.setStrokeStyle(roseOption.borderColor);
  45338. var fillcolor = eachSeries.color;
  45339. if (roseOption.linearType == 'custom') {
  45340. var grd;
  45341. if (context.createCircularGradient) {
  45342. grd = context.createCircularGradient(centerPosition.x, centerPosition.y, eachSeries._radius_);
  45343. } else {
  45344. grd = context.createRadialGradient(centerPosition.x, centerPosition.y, 0, centerPosition.x, centerPosition.y, eachSeries._radius_);
  45345. }
  45346. grd.addColorStop(0, hexToRgb(roseOption.customColor[eachSeries.linearIndex], 1));
  45347. grd.addColorStop(1, hexToRgb(eachSeries.color, 1));
  45348. fillcolor = grd;
  45349. }
  45350. context.setFillStyle(fillcolor);
  45351. context.moveTo(centerPosition.x, centerPosition.y);
  45352. context.arc(centerPosition.x, centerPosition.y, eachSeries._radius_, eachSeries._start_, eachSeries._start_ + 2 * eachSeries._rose_proportion_ * Math.PI);
  45353. context.closePath();
  45354. context.fill();
  45355. if (roseOption.border == true) {
  45356. context.stroke();
  45357. }
  45358. });
  45359. if (opts.dataLabel !== false && process === 1) {
  45360. drawPieText(series, opts, config, context, radius, centerPosition);
  45361. }
  45362. return {
  45363. center: centerPosition,
  45364. radius: radius,
  45365. series: series
  45366. };
  45367. }
  45368. function drawArcbarDataPoints(series, opts, config, context) {
  45369. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  45370. var arcbarOption = assign({}, {
  45371. startAngle: 0.75,
  45372. endAngle: 0.25,
  45373. type: 'default',
  45374. direction: 'cw',
  45375. lineCap: 'round',
  45376. width: 12,
  45377. gap: 2,
  45378. linearType: 'none',
  45379. customColor: []
  45380. }, opts.extra.arcbar);
  45381. series = getArcbarDataPoints(series, arcbarOption, process);
  45382. var centerPosition;
  45383. if (arcbarOption.centerX || arcbarOption.centerY) {
  45384. centerPosition = {
  45385. x: arcbarOption.centerX ? arcbarOption.centerX : opts.width / 2,
  45386. y: arcbarOption.centerY ? arcbarOption.centerY : opts.height / 2
  45387. };
  45388. } else {
  45389. centerPosition = {
  45390. x: opts.width / 2,
  45391. y: opts.height / 2
  45392. };
  45393. }
  45394. var radius;
  45395. if (arcbarOption.radius) {
  45396. radius = arcbarOption.radius;
  45397. } else {
  45398. radius = Math.min(centerPosition.x, centerPosition.y);
  45399. radius -= 5 * opts.pix;
  45400. radius -= arcbarOption.width / 2;
  45401. }
  45402. radius = radius < 10 ? 10 : radius;
  45403. arcbarOption.customColor = fillCustomColor(arcbarOption.linearType, arcbarOption.customColor, series, config);
  45404. for (var i = 0; i < series.length; i++) {
  45405. var eachSeries = series[i];
  45406. //背景颜色
  45407. context.setLineWidth(arcbarOption.width * opts.pix);
  45408. context.setStrokeStyle(arcbarOption.backgroundColor || '#E9E9E9');
  45409. context.setLineCap(arcbarOption.lineCap);
  45410. context.beginPath();
  45411. if (arcbarOption.type == 'default') {
  45412. context.arc(centerPosition.x, centerPosition.y, radius - (arcbarOption.width * opts.pix + arcbarOption.gap * opts.pix) * i, arcbarOption.startAngle * Math.PI, arcbarOption.endAngle * Math.PI, arcbarOption.direction == 'ccw');
  45413. } else {
  45414. context.arc(centerPosition.x, centerPosition.y, radius - (arcbarOption.width * opts.pix + arcbarOption.gap * opts.pix) * i, 0, 2 * Math.PI, arcbarOption.direction == 'ccw');
  45415. }
  45416. context.stroke();
  45417. //进度条
  45418. var fillColor = eachSeries.color;
  45419. if (arcbarOption.linearType == 'custom') {
  45420. var grd = context.createLinearGradient(centerPosition.x - radius, centerPosition.y, centerPosition.x + radius, centerPosition.y);
  45421. grd.addColorStop(1, hexToRgb(arcbarOption.customColor[eachSeries.linearIndex], 1));
  45422. grd.addColorStop(0, hexToRgb(eachSeries.color, 1));
  45423. fillColor = grd;
  45424. }
  45425. context.setLineWidth(arcbarOption.width * opts.pix);
  45426. context.setStrokeStyle(fillColor);
  45427. context.setLineCap(arcbarOption.lineCap);
  45428. context.beginPath();
  45429. context.arc(centerPosition.x, centerPosition.y, radius - (arcbarOption.width * opts.pix + arcbarOption.gap * opts.pix) * i, arcbarOption.startAngle * Math.PI, eachSeries._proportion_ * Math.PI, arcbarOption.direction == 'ccw');
  45430. context.stroke();
  45431. }
  45432. drawRingTitle(opts, config, context, centerPosition);
  45433. return {
  45434. center: centerPosition,
  45435. radius: radius,
  45436. series: series
  45437. };
  45438. }
  45439. function drawGaugeDataPoints(categories, series, opts, config, context) {
  45440. var process = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1;
  45441. var gaugeOption = assign({}, {
  45442. type: 'default',
  45443. startAngle: 0.75,
  45444. endAngle: 0.25,
  45445. width: 15,
  45446. labelOffset: 13,
  45447. splitLine: {
  45448. fixRadius: 0,
  45449. splitNumber: 10,
  45450. width: 15,
  45451. color: '#FFFFFF',
  45452. childNumber: 5,
  45453. childWidth: 5
  45454. },
  45455. pointer: {
  45456. width: 15,
  45457. color: 'auto'
  45458. }
  45459. }, opts.extra.gauge);
  45460. if (gaugeOption.oldAngle == undefined) {
  45461. gaugeOption.oldAngle = gaugeOption.startAngle;
  45462. }
  45463. if (gaugeOption.oldData == undefined) {
  45464. gaugeOption.oldData = 0;
  45465. }
  45466. categories = getGaugeAxisPoints(categories, gaugeOption.startAngle, gaugeOption.endAngle);
  45467. var centerPosition = {
  45468. x: opts.width / 2,
  45469. y: opts.height / 2
  45470. };
  45471. var radius = Math.min(centerPosition.x, centerPosition.y);
  45472. radius -= 5 * opts.pix;
  45473. radius -= gaugeOption.width / 2;
  45474. radius = radius < 10 ? 10 : radius;
  45475. var innerRadius = radius - gaugeOption.width;
  45476. var totalAngle = 0;
  45477. //判断仪表盘的样式:default百度样式,progress新样式
  45478. if (gaugeOption.type == 'progress') {
  45479. //## 第一步画中心圆形背景和进度条背景
  45480. //中心圆形背景
  45481. var pieRadius = radius - gaugeOption.width * 3;
  45482. context.beginPath();
  45483. var gradient = context.createLinearGradient(centerPosition.x, centerPosition.y - pieRadius, centerPosition.x, centerPosition.y + pieRadius);
  45484. //配置渐变填充(起点:中心点向上减半径;结束点中心点向下加半径)
  45485. gradient.addColorStop('0', hexToRgb(series[0].color, 0.3));
  45486. gradient.addColorStop('1.0', hexToRgb("#FFFFFF", 0.1));
  45487. context.setFillStyle(gradient);
  45488. context.arc(centerPosition.x, centerPosition.y, pieRadius, 0, 2 * Math.PI, false);
  45489. context.fill();
  45490. //画进度条背景
  45491. context.setLineWidth(gaugeOption.width);
  45492. context.setStrokeStyle(hexToRgb(series[0].color, 0.3));
  45493. context.setLineCap('round');
  45494. context.beginPath();
  45495. context.arc(centerPosition.x, centerPosition.y, innerRadius, gaugeOption.startAngle * Math.PI, gaugeOption.endAngle * Math.PI, false);
  45496. context.stroke();
  45497. //## 第二步画刻度线
  45498. totalAngle = gaugeOption.startAngle - gaugeOption.endAngle + 1;
  45499. var splitAngle = totalAngle / gaugeOption.splitLine.splitNumber;
  45500. var childAngle = totalAngle / gaugeOption.splitLine.splitNumber / gaugeOption.splitLine.childNumber;
  45501. var startX = -radius - gaugeOption.width * 0.5 - gaugeOption.splitLine.fixRadius;
  45502. var endX = -radius - gaugeOption.width - gaugeOption.splitLine.fixRadius + gaugeOption.splitLine.width;
  45503. context.save();
  45504. context.translate(centerPosition.x, centerPosition.y);
  45505. context.rotate((gaugeOption.startAngle - 1) * Math.PI);
  45506. var len = gaugeOption.splitLine.splitNumber * gaugeOption.splitLine.childNumber + 1;
  45507. var proc = series[0].data * process;
  45508. for (var i = 0; i < len; i++) {
  45509. context.beginPath();
  45510. //刻度线随进度变色
  45511. if (proc > i / len) {
  45512. context.setStrokeStyle(hexToRgb(series[0].color, 1));
  45513. } else {
  45514. context.setStrokeStyle(hexToRgb(series[0].color, 0.3));
  45515. }
  45516. context.setLineWidth(3 * opts.pix);
  45517. context.moveTo(startX, 0);
  45518. context.lineTo(endX, 0);
  45519. context.stroke();
  45520. context.rotate(childAngle * Math.PI);
  45521. }
  45522. context.restore();
  45523. //## 第三步画进度条
  45524. series = getGaugeArcbarDataPoints(series, gaugeOption, process);
  45525. context.setLineWidth(gaugeOption.width);
  45526. context.setStrokeStyle(series[0].color);
  45527. context.setLineCap('round');
  45528. context.beginPath();
  45529. context.arc(centerPosition.x, centerPosition.y, innerRadius, gaugeOption.startAngle * Math.PI, series[0]._proportion_ * Math.PI, false);
  45530. context.stroke();
  45531. //## 第四步画指针
  45532. var pointerRadius = radius - gaugeOption.width * 2.5;
  45533. context.save();
  45534. context.translate(centerPosition.x, centerPosition.y);
  45535. context.rotate((series[0]._proportion_ - 1) * Math.PI);
  45536. context.beginPath();
  45537. context.setLineWidth(gaugeOption.width / 3);
  45538. var gradient3 = context.createLinearGradient(0, -pointerRadius * 0.6, 0, pointerRadius * 0.6);
  45539. gradient3.addColorStop('0', hexToRgb('#FFFFFF', 0));
  45540. gradient3.addColorStop('0.5', hexToRgb(series[0].color, 1));
  45541. gradient3.addColorStop('1.0', hexToRgb('#FFFFFF', 0));
  45542. context.setStrokeStyle(gradient3);
  45543. context.arc(0, 0, pointerRadius, 0.85 * Math.PI, 1.15 * Math.PI, false);
  45544. context.stroke();
  45545. context.beginPath();
  45546. context.setLineWidth(1);
  45547. context.setStrokeStyle(series[0].color);
  45548. context.setFillStyle(series[0].color);
  45549. context.moveTo(-pointerRadius - gaugeOption.width / 3 / 2, -4);
  45550. context.lineTo(-pointerRadius - gaugeOption.width / 3 / 2 - 4, 0);
  45551. context.lineTo(-pointerRadius - gaugeOption.width / 3 / 2, 4);
  45552. context.lineTo(-pointerRadius - gaugeOption.width / 3 / 2, -4);
  45553. context.stroke();
  45554. context.fill();
  45555. context.restore();
  45556. //default百度样式
  45557. } else {
  45558. //画背景
  45559. context.setLineWidth(gaugeOption.width);
  45560. context.setLineCap('butt');
  45561. for (var _i26 = 0; _i26 < categories.length; _i26++) {
  45562. var eachCategories = categories[_i26];
  45563. context.beginPath();
  45564. context.setStrokeStyle(eachCategories.color);
  45565. context.arc(centerPosition.x, centerPosition.y, radius, eachCategories._startAngle_ * Math.PI, eachCategories._endAngle_ * Math.PI, false);
  45566. context.stroke();
  45567. }
  45568. context.save();
  45569. //画刻度线
  45570. totalAngle = gaugeOption.startAngle - gaugeOption.endAngle + 1;
  45571. var _splitAngle = totalAngle / gaugeOption.splitLine.splitNumber;
  45572. var _childAngle = totalAngle / gaugeOption.splitLine.splitNumber / gaugeOption.splitLine.childNumber;
  45573. var _startX2 = -radius - gaugeOption.width * 0.5 - gaugeOption.splitLine.fixRadius;
  45574. var _endX = -radius - gaugeOption.width * 0.5 - gaugeOption.splitLine.fixRadius + gaugeOption.splitLine.width;
  45575. var childendX = -radius - gaugeOption.width * 0.5 - gaugeOption.splitLine.fixRadius + gaugeOption.splitLine.childWidth;
  45576. context.translate(centerPosition.x, centerPosition.y);
  45577. context.rotate((gaugeOption.startAngle - 1) * Math.PI);
  45578. for (var _i27 = 0; _i27 < gaugeOption.splitLine.splitNumber + 1; _i27++) {
  45579. context.beginPath();
  45580. context.setStrokeStyle(gaugeOption.splitLine.color);
  45581. context.setLineWidth(2 * opts.pix);
  45582. context.moveTo(_startX2, 0);
  45583. context.lineTo(_endX, 0);
  45584. context.stroke();
  45585. context.rotate(_splitAngle * Math.PI);
  45586. }
  45587. context.restore();
  45588. context.save();
  45589. context.translate(centerPosition.x, centerPosition.y);
  45590. context.rotate((gaugeOption.startAngle - 1) * Math.PI);
  45591. for (var _i28 = 0; _i28 < gaugeOption.splitLine.splitNumber * gaugeOption.splitLine.childNumber + 1; _i28++) {
  45592. context.beginPath();
  45593. context.setStrokeStyle(gaugeOption.splitLine.color);
  45594. context.setLineWidth(1 * opts.pix);
  45595. context.moveTo(_startX2, 0);
  45596. context.lineTo(childendX, 0);
  45597. context.stroke();
  45598. context.rotate(_childAngle * Math.PI);
  45599. }
  45600. context.restore();
  45601. //画指针
  45602. series = getGaugeDataPoints(series, categories, gaugeOption, process);
  45603. for (var _i29 = 0; _i29 < series.length; _i29++) {
  45604. var eachSeries = series[_i29];
  45605. context.save();
  45606. context.translate(centerPosition.x, centerPosition.y);
  45607. context.rotate((eachSeries._proportion_ - 1) * Math.PI);
  45608. context.beginPath();
  45609. context.setFillStyle(eachSeries.color);
  45610. context.moveTo(gaugeOption.pointer.width, 0);
  45611. context.lineTo(0, -gaugeOption.pointer.width / 2);
  45612. context.lineTo(-innerRadius, 0);
  45613. context.lineTo(0, gaugeOption.pointer.width / 2);
  45614. context.lineTo(gaugeOption.pointer.width, 0);
  45615. context.closePath();
  45616. context.fill();
  45617. context.beginPath();
  45618. context.setFillStyle('#FFFFFF');
  45619. context.arc(0, 0, gaugeOption.pointer.width / 6, 0, 2 * Math.PI, false);
  45620. context.fill();
  45621. context.restore();
  45622. }
  45623. if (opts.dataLabel !== false) {
  45624. drawGaugeLabel(gaugeOption, radius, centerPosition, opts, config, context);
  45625. }
  45626. }
  45627. //画仪表盘标题,副标题
  45628. drawRingTitle(opts, config, context, centerPosition);
  45629. if (process === 1 && opts.type === 'gauge') {
  45630. opts.extra.gauge.oldAngle = series[0]._proportion_;
  45631. opts.extra.gauge.oldData = series[0].data;
  45632. }
  45633. return {
  45634. center: centerPosition,
  45635. radius: radius,
  45636. innerRadius: innerRadius,
  45637. categories: categories,
  45638. totalAngle: totalAngle
  45639. };
  45640. }
  45641. function drawRadarDataPoints(series, opts, config, context) {
  45642. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  45643. var radarOption = assign({}, {
  45644. gridColor: '#cccccc',
  45645. gridType: 'radar',
  45646. gridEval: 1,
  45647. axisLabel: false,
  45648. axisLabelTofix: 0,
  45649. labelColor: '#666666',
  45650. labelPointShow: false,
  45651. labelPointRadius: 3,
  45652. labelPointColor: '#cccccc',
  45653. opacity: 0.2,
  45654. gridCount: 3,
  45655. border: false,
  45656. borderWidth: 2,
  45657. linearType: 'none',
  45658. customColor: []
  45659. }, opts.extra.radar);
  45660. var coordinateAngle = getRadarCoordinateSeries(opts.categories.length);
  45661. var centerPosition = {
  45662. x: opts.area[3] + (opts.width - opts.area[1] - opts.area[3]) / 2,
  45663. y: opts.area[0] + (opts.height - opts.area[0] - opts.area[2]) / 2
  45664. };
  45665. var xr = (opts.width - opts.area[1] - opts.area[3]) / 2;
  45666. var yr = (opts.height - opts.area[0] - opts.area[2]) / 2;
  45667. var radius = Math.min(xr - (getMaxTextListLength(opts.categories, config.fontSize, context) + config.radarLabelTextMargin), yr - config.radarLabelTextMargin);
  45668. radius -= config.radarLabelTextMargin * opts.pix;
  45669. radius = radius < 10 ? 10 : radius;
  45670. // 画分割线
  45671. context.beginPath();
  45672. context.setLineWidth(1 * opts.pix);
  45673. context.setStrokeStyle(radarOption.gridColor);
  45674. coordinateAngle.forEach(function (angle, index) {
  45675. var pos = convertCoordinateOrigin(radius * Math.cos(angle), radius * Math.sin(angle), centerPosition);
  45676. context.moveTo(centerPosition.x, centerPosition.y);
  45677. if (index % radarOption.gridEval == 0) {
  45678. context.lineTo(pos.x, pos.y);
  45679. }
  45680. });
  45681. context.stroke();
  45682. context.closePath();
  45683. // 画背景网格
  45684. var _loop = function _loop(i) {
  45685. var startPos = {};
  45686. context.beginPath();
  45687. context.setLineWidth(1 * opts.pix);
  45688. context.setStrokeStyle(radarOption.gridColor);
  45689. if (radarOption.gridType == 'radar') {
  45690. coordinateAngle.forEach(function (angle, index) {
  45691. var pos = convertCoordinateOrigin(radius / radarOption.gridCount * i * Math.cos(angle), radius / radarOption.gridCount * i * Math.sin(angle), centerPosition);
  45692. if (index === 0) {
  45693. startPos = pos;
  45694. context.moveTo(pos.x, pos.y);
  45695. } else {
  45696. context.lineTo(pos.x, pos.y);
  45697. }
  45698. });
  45699. context.lineTo(startPos.x, startPos.y);
  45700. } else {
  45701. var pos = convertCoordinateOrigin(radius / radarOption.gridCount * i * Math.cos(1.5), radius / radarOption.gridCount * i * Math.sin(1.5), centerPosition);
  45702. context.arc(centerPosition.x, centerPosition.y, centerPosition.y - pos.y, 0, 2 * Math.PI, false);
  45703. }
  45704. context.stroke();
  45705. context.closePath();
  45706. };
  45707. for (var i = 1; i <= radarOption.gridCount; i++) {
  45708. _loop(i);
  45709. }
  45710. radarOption.customColor = fillCustomColor(radarOption.linearType, radarOption.customColor, series, config);
  45711. var radarDataPoints = getRadarDataPoints(coordinateAngle, centerPosition, radius, series, opts, process);
  45712. radarDataPoints.forEach(function (eachSeries, seriesIndex) {
  45713. // 绘制区域数据
  45714. context.beginPath();
  45715. context.setLineWidth(radarOption.borderWidth * opts.pix);
  45716. context.setStrokeStyle(eachSeries.color);
  45717. var fillcolor = hexToRgb(eachSeries.color, radarOption.opacity);
  45718. if (radarOption.linearType == 'custom') {
  45719. var grd;
  45720. if (context.createCircularGradient) {
  45721. grd = context.createCircularGradient(centerPosition.x, centerPosition.y, radius);
  45722. } else {
  45723. grd = context.createRadialGradient(centerPosition.x, centerPosition.y, 0, centerPosition.x, centerPosition.y, radius);
  45724. }
  45725. grd.addColorStop(0, hexToRgb(radarOption.customColor[series[seriesIndex].linearIndex], radarOption.opacity));
  45726. grd.addColorStop(1, hexToRgb(eachSeries.color, radarOption.opacity));
  45727. fillcolor = grd;
  45728. }
  45729. context.setFillStyle(fillcolor);
  45730. eachSeries.data.forEach(function (item, index) {
  45731. if (index === 0) {
  45732. context.moveTo(item.position.x, item.position.y);
  45733. } else {
  45734. context.lineTo(item.position.x, item.position.y);
  45735. }
  45736. });
  45737. context.closePath();
  45738. context.fill();
  45739. if (radarOption.border === true) {
  45740. context.stroke();
  45741. }
  45742. context.closePath();
  45743. if (opts.dataPointShape !== false) {
  45744. var points = eachSeries.data.map(function (item) {
  45745. return item.position;
  45746. });
  45747. drawPointShape(points, eachSeries.color, eachSeries.pointShape, context, opts);
  45748. }
  45749. });
  45750. // 画刻度值
  45751. if (radarOption.axisLabel === true) {
  45752. var maxData = Math.max(radarOption.max, Math.max.apply(null, dataCombine(series)));
  45753. var stepLength = radius / radarOption.gridCount;
  45754. var fontSize = opts.fontSize * opts.pix;
  45755. context.setFontSize(fontSize);
  45756. context.setFillStyle(opts.fontColor);
  45757. context.setTextAlign('left');
  45758. for (var i = 0; i < radarOption.gridCount + 1; i++) {
  45759. var label = i * maxData / radarOption.gridCount;
  45760. label = label.toFixed(radarOption.axisLabelTofix);
  45761. context.fillText(String(label), centerPosition.x + 3 * opts.pix, centerPosition.y - i * stepLength + fontSize / 2);
  45762. }
  45763. }
  45764. // draw label text
  45765. drawRadarLabel(coordinateAngle, radius, centerPosition, opts, config, context);
  45766. // draw dataLabel
  45767. if (opts.dataLabel !== false && process === 1) {
  45768. radarDataPoints.forEach(function (eachSeries, seriesIndex) {
  45769. context.beginPath();
  45770. var fontSize = eachSeries.textSize * opts.pix || config.fontSize;
  45771. context.setFontSize(fontSize);
  45772. context.setFillStyle(eachSeries.textColor || opts.fontColor);
  45773. eachSeries.data.forEach(function (item, index) {
  45774. //如果是中心点垂直的上下点位
  45775. if (Math.abs(item.position.x - centerPosition.x) < 2) {
  45776. //如果在上面
  45777. if (item.position.y < centerPosition.y) {
  45778. context.setTextAlign('center');
  45779. context.fillText(item.value, item.position.x, item.position.y - 4);
  45780. } else {
  45781. context.setTextAlign('center');
  45782. context.fillText(item.value, item.position.x, item.position.y + fontSize + 2);
  45783. }
  45784. } else {
  45785. //如果在左侧
  45786. if (item.position.x < centerPosition.x) {
  45787. context.setTextAlign('right');
  45788. context.fillText(item.value, item.position.x - 4, item.position.y + fontSize / 2 - 2);
  45789. } else {
  45790. context.setTextAlign('left');
  45791. context.fillText(item.value, item.position.x + 4, item.position.y + fontSize / 2 - 2);
  45792. }
  45793. }
  45794. });
  45795. context.closePath();
  45796. context.stroke();
  45797. });
  45798. context.setTextAlign('left');
  45799. }
  45800. return {
  45801. center: centerPosition,
  45802. radius: radius,
  45803. angleList: coordinateAngle
  45804. };
  45805. }
  45806. // 经纬度转墨卡托
  45807. function lonlat2mercator(longitude, latitude) {
  45808. var mercator = Array(2);
  45809. var x = longitude * 20037508.34 / 180;
  45810. var y = Math.log(Math.tan((90 + latitude) * Math.PI / 360)) / (Math.PI / 180);
  45811. y = y * 20037508.34 / 180;
  45812. mercator[0] = x;
  45813. mercator[1] = y;
  45814. return mercator;
  45815. }
  45816. // 墨卡托转经纬度
  45817. function mercator2lonlat(longitude, latitude) {
  45818. var lonlat = Array(2);
  45819. var x = longitude / 20037508.34 * 180;
  45820. var y = latitude / 20037508.34 * 180;
  45821. y = 180 / Math.PI * (2 * Math.atan(Math.exp(y * Math.PI / 180)) - Math.PI / 2);
  45822. lonlat[0] = x;
  45823. lonlat[1] = y;
  45824. return lonlat;
  45825. }
  45826. function getBoundingBox(data) {
  45827. var bounds = {},
  45828. coords;
  45829. bounds.xMin = 180;
  45830. bounds.xMax = 0;
  45831. bounds.yMin = 90;
  45832. bounds.yMax = 0;
  45833. for (var i = 0; i < data.length; i++) {
  45834. var coorda = data[i].geometry.coordinates;
  45835. for (var k = 0; k < coorda.length; k++) {
  45836. coords = coorda[k];
  45837. if (coords.length == 1) {
  45838. coords = coords[0];
  45839. }
  45840. for (var j = 0; j < coords.length; j++) {
  45841. var longitude = coords[j][0];
  45842. var latitude = coords[j][1];
  45843. var point = {
  45844. x: longitude,
  45845. y: latitude
  45846. };
  45847. bounds.xMin = bounds.xMin < point.x ? bounds.xMin : point.x;
  45848. bounds.xMax = bounds.xMax > point.x ? bounds.xMax : point.x;
  45849. bounds.yMin = bounds.yMin < point.y ? bounds.yMin : point.y;
  45850. bounds.yMax = bounds.yMax > point.y ? bounds.yMax : point.y;
  45851. }
  45852. }
  45853. }
  45854. return bounds;
  45855. }
  45856. function coordinateToPoint(latitude, longitude, bounds, scale, xoffset, yoffset) {
  45857. return {
  45858. x: (longitude - bounds.xMin) * scale + xoffset,
  45859. y: (bounds.yMax - latitude) * scale + yoffset
  45860. };
  45861. }
  45862. function pointToCoordinate(pointY, pointX, bounds, scale, xoffset, yoffset) {
  45863. return {
  45864. x: (pointX - xoffset) / scale + bounds.xMin,
  45865. y: bounds.yMax - (pointY - yoffset) / scale
  45866. };
  45867. }
  45868. function isRayIntersectsSegment(poi, s_poi, e_poi) {
  45869. if (s_poi[1] == e_poi[1]) {
  45870. return false;
  45871. }
  45872. if (s_poi[1] > poi[1] && e_poi[1] > poi[1]) {
  45873. return false;
  45874. }
  45875. if (s_poi[1] < poi[1] && e_poi[1] < poi[1]) {
  45876. return false;
  45877. }
  45878. if (s_poi[1] == poi[1] && e_poi[1] > poi[1]) {
  45879. return false;
  45880. }
  45881. if (e_poi[1] == poi[1] && s_poi[1] > poi[1]) {
  45882. return false;
  45883. }
  45884. if (s_poi[0] < poi[0] && e_poi[1] < poi[1]) {
  45885. return false;
  45886. }
  45887. var xseg = e_poi[0] - (e_poi[0] - s_poi[0]) * (e_poi[1] - poi[1]) / (e_poi[1] - s_poi[1]);
  45888. if (xseg < poi[0]) {
  45889. return false;
  45890. } else {
  45891. return true;
  45892. }
  45893. }
  45894. function isPoiWithinPoly(poi, poly, mercator) {
  45895. var sinsc = 0;
  45896. for (var i = 0; i < poly.length; i++) {
  45897. var epoly = poly[i][0];
  45898. if (poly.length == 1) {
  45899. epoly = poly[i][0];
  45900. }
  45901. for (var j = 0; j < epoly.length - 1; j++) {
  45902. var s_poi = epoly[j];
  45903. var e_poi = epoly[j + 1];
  45904. if (mercator) {
  45905. s_poi = lonlat2mercator(epoly[j][0], epoly[j][1]);
  45906. e_poi = lonlat2mercator(epoly[j + 1][0], epoly[j + 1][1]);
  45907. }
  45908. if (isRayIntersectsSegment(poi, s_poi, e_poi)) {
  45909. sinsc += 1;
  45910. }
  45911. }
  45912. }
  45913. if (sinsc % 2 == 1) {
  45914. return true;
  45915. } else {
  45916. return false;
  45917. }
  45918. }
  45919. function drawMapDataPoints(series, opts, config, context) {
  45920. var mapOption = assign({}, {
  45921. border: true,
  45922. mercator: false,
  45923. borderWidth: 1,
  45924. active: true,
  45925. borderColor: '#666666',
  45926. fillOpacity: 0.6,
  45927. activeBorderColor: '#f04864',
  45928. activeFillColor: '#facc14',
  45929. activeFillOpacity: 1
  45930. }, opts.extra.map);
  45931. var coords, point;
  45932. var data = series;
  45933. var bounds = getBoundingBox(data);
  45934. if (mapOption.mercator) {
  45935. var max = lonlat2mercator(bounds.xMax, bounds.yMax);
  45936. var min = lonlat2mercator(bounds.xMin, bounds.yMin);
  45937. bounds.xMax = max[0];
  45938. bounds.yMax = max[1];
  45939. bounds.xMin = min[0];
  45940. bounds.yMin = min[1];
  45941. }
  45942. var xScale = opts.width / Math.abs(bounds.xMax - bounds.xMin);
  45943. var yScale = opts.height / Math.abs(bounds.yMax - bounds.yMin);
  45944. var scale = xScale < yScale ? xScale : yScale;
  45945. var xoffset = opts.width / 2 - Math.abs(bounds.xMax - bounds.xMin) / 2 * scale;
  45946. var yoffset = opts.height / 2 - Math.abs(bounds.yMax - bounds.yMin) / 2 * scale;
  45947. for (var i = 0; i < data.length; i++) {
  45948. context.beginPath();
  45949. context.setLineWidth(mapOption.borderWidth * opts.pix);
  45950. context.setStrokeStyle(mapOption.borderColor);
  45951. context.setFillStyle(hexToRgb(series[i].color, series[i].fillOpacity || mapOption.fillOpacity));
  45952. if (mapOption.active == true && opts.tooltip) {
  45953. if (opts.tooltip.index == i) {
  45954. context.setStrokeStyle(mapOption.activeBorderColor);
  45955. context.setFillStyle(hexToRgb(mapOption.activeFillColor, mapOption.activeFillOpacity));
  45956. }
  45957. }
  45958. var coorda = data[i].geometry.coordinates;
  45959. for (var k = 0; k < coorda.length; k++) {
  45960. coords = coorda[k];
  45961. if (coords.length == 1) {
  45962. coords = coords[0];
  45963. }
  45964. for (var j = 0; j < coords.length; j++) {
  45965. var gaosi = Array(2);
  45966. if (mapOption.mercator) {
  45967. gaosi = lonlat2mercator(coords[j][0], coords[j][1]);
  45968. } else {
  45969. gaosi = coords[j];
  45970. }
  45971. point = coordinateToPoint(gaosi[1], gaosi[0], bounds, scale, xoffset, yoffset);
  45972. if (j === 0) {
  45973. context.beginPath();
  45974. context.moveTo(point.x, point.y);
  45975. } else {
  45976. context.lineTo(point.x, point.y);
  45977. }
  45978. }
  45979. context.fill();
  45980. if (mapOption.border == true) {
  45981. context.stroke();
  45982. }
  45983. }
  45984. }
  45985. if (opts.dataLabel == true) {
  45986. for (var i = 0; i < data.length; i++) {
  45987. var centerPoint = data[i].properties.centroid;
  45988. if (centerPoint) {
  45989. if (mapOption.mercator) {
  45990. centerPoint = lonlat2mercator(data[i].properties.centroid[0], data[i].properties.centroid[1]);
  45991. }
  45992. point = coordinateToPoint(centerPoint[1], centerPoint[0], bounds, scale, xoffset, yoffset);
  45993. var fontSize = data[i].textSize * opts.pix || config.fontSize;
  45994. var fontColor = data[i].textColor || opts.fontColor;
  45995. if (mapOption.active && mapOption.activeTextColor && opts.tooltip && opts.tooltip.index == i) {
  45996. fontColor = mapOption.activeTextColor;
  45997. }
  45998. var text = data[i].properties.name;
  45999. context.beginPath();
  46000. context.setFontSize(fontSize);
  46001. context.setFillStyle(fontColor);
  46002. context.fillText(text, point.x - measureText(text, fontSize, context) / 2, point.y + fontSize / 2);
  46003. context.closePath();
  46004. context.stroke();
  46005. }
  46006. }
  46007. }
  46008. opts.chartData.mapData = {
  46009. bounds: bounds,
  46010. scale: scale,
  46011. xoffset: xoffset,
  46012. yoffset: yoffset,
  46013. mercator: mapOption.mercator
  46014. };
  46015. drawToolTipBridge(opts, config, context, 1);
  46016. context.draw();
  46017. }
  46018. function normalInt(min, max, iter) {
  46019. iter = iter == 0 ? 1 : iter;
  46020. var arr = [];
  46021. for (var i = 0; i < iter; i++) {
  46022. arr[i] = Math.random();
  46023. }
  46024. ;
  46025. return Math.floor(arr.reduce(function (i, j) {
  46026. return i + j;
  46027. }) / iter * (max - min)) + min;
  46028. }
  46029. ;
  46030. function collisionNew(area, points, width, height) {
  46031. var isIn = false;
  46032. for (var i = 0; i < points.length; i++) {
  46033. if (points[i].area) {
  46034. if (area[3] < points[i].area[1] || area[0] > points[i].area[2] || area[1] > points[i].area[3] || area[2] < points[i].area[0]) {
  46035. if (area[0] < 0 || area[1] < 0 || area[2] > width || area[3] > height) {
  46036. isIn = true;
  46037. break;
  46038. } else {
  46039. isIn = false;
  46040. }
  46041. } else {
  46042. isIn = true;
  46043. break;
  46044. }
  46045. }
  46046. }
  46047. return isIn;
  46048. }
  46049. ;
  46050. function getWordCloudPoint(opts, type, context) {
  46051. var points = opts.series;
  46052. switch (type) {
  46053. case 'normal':
  46054. for (var i = 0; i < points.length; i++) {
  46055. var text = points[i].name;
  46056. var tHeight = points[i].textSize * opts.pix;
  46057. var tWidth = measureText(text, tHeight, context);
  46058. var x = void 0,
  46059. y = void 0;
  46060. var area = void 0;
  46061. var breaknum = 0;
  46062. while (true) {
  46063. breaknum++;
  46064. x = normalInt(-opts.width / 2, opts.width / 2, 5) - tWidth / 2;
  46065. y = normalInt(-opts.height / 2, opts.height / 2, 5) + tHeight / 2;
  46066. area = [x - 5 + opts.width / 2, y - 5 - tHeight + opts.height / 2, x + tWidth + 5 + opts.width / 2, y + 5 + opts.height / 2];
  46067. var isCollision = collisionNew(area, points, opts.width, opts.height);
  46068. if (!isCollision) break;
  46069. if (breaknum == 1000) {
  46070. area = [-100, -100, -100, -100];
  46071. break;
  46072. }
  46073. }
  46074. ;
  46075. points[i].area = area;
  46076. }
  46077. break;
  46078. case 'vertical':
  46079. var Spin = function Spin() {
  46080. //获取均匀随机值,是否旋转,旋转的概率为(1-0.5)
  46081. if (Math.random() > 0.7) {
  46082. return true;
  46083. } else {
  46084. return false;
  46085. }
  46086. ;
  46087. };
  46088. ;
  46089. for (var _i30 = 0; _i30 < points.length; _i30++) {
  46090. var _text = points[_i30].name;
  46091. var _tHeight = points[_i30].textSize * opts.pix;
  46092. var _tWidth = measureText(_text, _tHeight, context);
  46093. var isSpin = Spin();
  46094. var _x = void 0,
  46095. _y = void 0,
  46096. _area = void 0,
  46097. areav = void 0;
  46098. var _breaknum = 0;
  46099. while (true) {
  46100. _breaknum++;
  46101. var _isCollision = void 0;
  46102. if (isSpin) {
  46103. _x = normalInt(-opts.width / 2, opts.width / 2, 5) - _tWidth / 2;
  46104. _y = normalInt(-opts.height / 2, opts.height / 2, 5) + _tHeight / 2;
  46105. _area = [_y - 5 - _tWidth + opts.width / 2, -_x - 5 + opts.height / 2, _y + 5 + opts.width / 2, -_x + _tHeight + 5 + opts.height / 2];
  46106. areav = [opts.width - (opts.width / 2 - opts.height / 2) - (-_x + _tHeight + 5 + opts.height / 2) - 5, opts.height / 2 - opts.width / 2 + (_y - 5 - _tWidth + opts.width / 2) - 5, opts.width - (opts.width / 2 - opts.height / 2) - (-_x + _tHeight + 5 + opts.height / 2) + _tHeight, opts.height / 2 - opts.width / 2 + (_y - 5 - _tWidth + opts.width / 2) + _tWidth + 5];
  46107. _isCollision = collisionNew(areav, points, opts.height, opts.width);
  46108. } else {
  46109. _x = normalInt(-opts.width / 2, opts.width / 2, 5) - _tWidth / 2;
  46110. _y = normalInt(-opts.height / 2, opts.height / 2, 5) + _tHeight / 2;
  46111. _area = [_x - 5 + opts.width / 2, _y - 5 - _tHeight + opts.height / 2, _x + _tWidth + 5 + opts.width / 2, _y + 5 + opts.height / 2];
  46112. _isCollision = collisionNew(_area, points, opts.width, opts.height);
  46113. }
  46114. if (!_isCollision) break;
  46115. if (_breaknum == 1000) {
  46116. _area = [-1000, -1000, -1000, -1000];
  46117. break;
  46118. }
  46119. }
  46120. ;
  46121. if (isSpin) {
  46122. points[_i30].area = areav;
  46123. points[_i30].areav = _area;
  46124. } else {
  46125. points[_i30].area = _area;
  46126. }
  46127. points[_i30].rotate = isSpin;
  46128. }
  46129. ;
  46130. break;
  46131. }
  46132. return points;
  46133. }
  46134. function drawWordCloudDataPoints(series, opts, config, context) {
  46135. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  46136. var wordOption = assign({}, {
  46137. type: 'normal',
  46138. autoColors: true
  46139. }, opts.extra.word);
  46140. if (!opts.chartData.wordCloudData) {
  46141. opts.chartData.wordCloudData = getWordCloudPoint(opts, wordOption.type, context);
  46142. }
  46143. context.beginPath();
  46144. context.setFillStyle(opts.background);
  46145. context.rect(0, 0, opts.width, opts.height);
  46146. context.fill();
  46147. context.save();
  46148. var points = opts.chartData.wordCloudData;
  46149. context.translate(opts.width / 2, opts.height / 2);
  46150. for (var i = 0; i < points.length; i++) {
  46151. context.save();
  46152. if (points[i].rotate) {
  46153. context.rotate(90 * Math.PI / 180);
  46154. }
  46155. var text = points[i].name;
  46156. var tHeight = points[i].textSize * opts.pix;
  46157. var tWidth = measureText(text, tHeight, context);
  46158. context.beginPath();
  46159. context.setStrokeStyle(points[i].color);
  46160. context.setFillStyle(points[i].color);
  46161. context.setFontSize(tHeight);
  46162. if (points[i].rotate) {
  46163. if (points[i].areav[0] > 0) {
  46164. if (opts.tooltip) {
  46165. if (opts.tooltip.index == i) {
  46166. context.strokeText(text, (points[i].areav[0] + 5 - opts.width / 2) * process - tWidth * (1 - process) / 2, (points[i].areav[1] + 5 + tHeight - opts.height / 2) * process);
  46167. } else {
  46168. context.fillText(text, (points[i].areav[0] + 5 - opts.width / 2) * process - tWidth * (1 - process) / 2, (points[i].areav[1] + 5 + tHeight - opts.height / 2) * process);
  46169. }
  46170. } else {
  46171. context.fillText(text, (points[i].areav[0] + 5 - opts.width / 2) * process - tWidth * (1 - process) / 2, (points[i].areav[1] + 5 + tHeight - opts.height / 2) * process);
  46172. }
  46173. }
  46174. } else {
  46175. if (points[i].area[0] > 0) {
  46176. if (opts.tooltip) {
  46177. if (opts.tooltip.index == i) {
  46178. context.strokeText(text, (points[i].area[0] + 5 - opts.width / 2) * process - tWidth * (1 - process) / 2, (points[i].area[1] + 5 + tHeight - opts.height / 2) * process);
  46179. } else {
  46180. context.fillText(text, (points[i].area[0] + 5 - opts.width / 2) * process - tWidth * (1 - process) / 2, (points[i].area[1] + 5 + tHeight - opts.height / 2) * process);
  46181. }
  46182. } else {
  46183. context.fillText(text, (points[i].area[0] + 5 - opts.width / 2) * process - tWidth * (1 - process) / 2, (points[i].area[1] + 5 + tHeight - opts.height / 2) * process);
  46184. }
  46185. }
  46186. }
  46187. context.stroke();
  46188. context.restore();
  46189. }
  46190. context.restore();
  46191. }
  46192. function drawFunnelDataPoints(series, opts, config, context) {
  46193. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  46194. var funnelOption = assign({}, {
  46195. type: 'funnel',
  46196. activeWidth: 10,
  46197. activeOpacity: 0.3,
  46198. border: false,
  46199. borderWidth: 2,
  46200. borderColor: '#FFFFFF',
  46201. fillOpacity: 1,
  46202. minSize: 0,
  46203. labelAlign: 'right',
  46204. linearType: 'none',
  46205. customColor: []
  46206. }, opts.extra.funnel);
  46207. var eachSpacing = (opts.height - opts.area[0] - opts.area[2]) / series.length;
  46208. var centerPosition = {
  46209. x: opts.area[3] + (opts.width - opts.area[1] - opts.area[3]) / 2,
  46210. y: opts.height - opts.area[2]
  46211. };
  46212. var activeWidth = funnelOption.activeWidth * opts.pix;
  46213. var radius = Math.min((opts.width - opts.area[1] - opts.area[3]) / 2 - activeWidth, (opts.height - opts.area[0] - opts.area[2]) / 2 - activeWidth);
  46214. var seriesNew = getFunnelDataPoints(series, radius, funnelOption, eachSpacing, process);
  46215. context.save();
  46216. context.translate(centerPosition.x, centerPosition.y);
  46217. funnelOption.customColor = fillCustomColor(funnelOption.linearType, funnelOption.customColor, series, config);
  46218. if (funnelOption.type == 'pyramid') {
  46219. for (var i = 0; i < seriesNew.length; i++) {
  46220. if (i == seriesNew.length - 1) {
  46221. if (opts.tooltip) {
  46222. if (opts.tooltip.index == i) {
  46223. context.beginPath();
  46224. context.setFillStyle(hexToRgb(seriesNew[i].color, funnelOption.activeOpacity));
  46225. context.moveTo(-activeWidth, -eachSpacing);
  46226. context.lineTo(-seriesNew[i].radius - activeWidth, 0);
  46227. context.lineTo(seriesNew[i].radius + activeWidth, 0);
  46228. context.lineTo(activeWidth, -eachSpacing);
  46229. context.lineTo(-activeWidth, -eachSpacing);
  46230. context.closePath();
  46231. context.fill();
  46232. }
  46233. }
  46234. seriesNew[i].funnelArea = [centerPosition.x - seriesNew[i].radius, centerPosition.y - eachSpacing * (i + 1), centerPosition.x + seriesNew[i].radius, centerPosition.y - eachSpacing * i];
  46235. context.beginPath();
  46236. context.setLineWidth(funnelOption.borderWidth * opts.pix);
  46237. context.setStrokeStyle(funnelOption.borderColor);
  46238. var fillColor = hexToRgb(seriesNew[i].color, funnelOption.fillOpacity);
  46239. if (funnelOption.linearType == 'custom') {
  46240. var grd = context.createLinearGradient(seriesNew[i].radius, -eachSpacing, -seriesNew[i].radius, -eachSpacing);
  46241. grd.addColorStop(0, hexToRgb(seriesNew[i].color, funnelOption.fillOpacity));
  46242. grd.addColorStop(0.5, hexToRgb(funnelOption.customColor[seriesNew[i].linearIndex], funnelOption.fillOpacity));
  46243. grd.addColorStop(1, hexToRgb(seriesNew[i].color, funnelOption.fillOpacity));
  46244. fillColor = grd;
  46245. }
  46246. context.setFillStyle(fillColor);
  46247. context.moveTo(0, -eachSpacing);
  46248. context.lineTo(-seriesNew[i].radius, 0);
  46249. context.lineTo(seriesNew[i].radius, 0);
  46250. context.lineTo(0, -eachSpacing);
  46251. context.closePath();
  46252. context.fill();
  46253. if (funnelOption.border == true) {
  46254. context.stroke();
  46255. }
  46256. } else {
  46257. if (opts.tooltip) {
  46258. if (opts.tooltip.index == i) {
  46259. context.beginPath();
  46260. context.setFillStyle(hexToRgb(seriesNew[i].color, funnelOption.activeOpacity));
  46261. context.moveTo(0, 0);
  46262. context.lineTo(-seriesNew[i].radius - activeWidth, 0);
  46263. context.lineTo(-seriesNew[i + 1].radius - activeWidth, -eachSpacing);
  46264. context.lineTo(seriesNew[i + 1].radius + activeWidth, -eachSpacing);
  46265. context.lineTo(seriesNew[i].radius + activeWidth, 0);
  46266. context.lineTo(0, 0);
  46267. context.closePath();
  46268. context.fill();
  46269. }
  46270. }
  46271. seriesNew[i].funnelArea = [centerPosition.x - seriesNew[i].radius, centerPosition.y - eachSpacing * (i + 1), centerPosition.x + seriesNew[i].radius, centerPosition.y - eachSpacing * i];
  46272. context.beginPath();
  46273. context.setLineWidth(funnelOption.borderWidth * opts.pix);
  46274. context.setStrokeStyle(funnelOption.borderColor);
  46275. var fillColor = hexToRgb(seriesNew[i].color, funnelOption.fillOpacity);
  46276. if (funnelOption.linearType == 'custom') {
  46277. var grd = context.createLinearGradient(seriesNew[i].radius, -eachSpacing, -seriesNew[i].radius, -eachSpacing);
  46278. grd.addColorStop(0, hexToRgb(seriesNew[i].color, funnelOption.fillOpacity));
  46279. grd.addColorStop(0.5, hexToRgb(funnelOption.customColor[seriesNew[i].linearIndex], funnelOption.fillOpacity));
  46280. grd.addColorStop(1, hexToRgb(seriesNew[i].color, funnelOption.fillOpacity));
  46281. fillColor = grd;
  46282. }
  46283. context.setFillStyle(fillColor);
  46284. context.moveTo(0, 0);
  46285. context.lineTo(-seriesNew[i].radius, 0);
  46286. context.lineTo(-seriesNew[i + 1].radius, -eachSpacing);
  46287. context.lineTo(seriesNew[i + 1].radius, -eachSpacing);
  46288. context.lineTo(seriesNew[i].radius, 0);
  46289. context.lineTo(0, 0);
  46290. context.closePath();
  46291. context.fill();
  46292. if (funnelOption.border == true) {
  46293. context.stroke();
  46294. }
  46295. }
  46296. context.translate(0, -eachSpacing);
  46297. }
  46298. } else {
  46299. context.translate(0, -(seriesNew.length - 1) * eachSpacing);
  46300. for (var _i31 = 0; _i31 < seriesNew.length; _i31++) {
  46301. if (_i31 == seriesNew.length - 1) {
  46302. if (opts.tooltip) {
  46303. if (opts.tooltip.index == _i31) {
  46304. context.beginPath();
  46305. context.setFillStyle(hexToRgb(seriesNew[_i31].color, funnelOption.activeOpacity));
  46306. context.moveTo(-activeWidth - funnelOption.minSize / 2, 0);
  46307. context.lineTo(-seriesNew[_i31].radius - activeWidth, -eachSpacing);
  46308. context.lineTo(seriesNew[_i31].radius + activeWidth, -eachSpacing);
  46309. context.lineTo(activeWidth + funnelOption.minSize / 2, 0);
  46310. context.lineTo(-activeWidth - funnelOption.minSize / 2, 0);
  46311. context.closePath();
  46312. context.fill();
  46313. }
  46314. }
  46315. seriesNew[_i31].funnelArea = [centerPosition.x - seriesNew[_i31].radius, centerPosition.y - eachSpacing, centerPosition.x + seriesNew[_i31].radius, centerPosition.y];
  46316. context.beginPath();
  46317. context.setLineWidth(funnelOption.borderWidth * opts.pix);
  46318. context.setStrokeStyle(funnelOption.borderColor);
  46319. var fillColor = hexToRgb(seriesNew[_i31].color, funnelOption.fillOpacity);
  46320. if (funnelOption.linearType == 'custom') {
  46321. var grd = context.createLinearGradient(seriesNew[_i31].radius, -eachSpacing, -seriesNew[_i31].radius, -eachSpacing);
  46322. grd.addColorStop(0, hexToRgb(seriesNew[_i31].color, funnelOption.fillOpacity));
  46323. grd.addColorStop(0.5, hexToRgb(funnelOption.customColor[seriesNew[_i31].linearIndex], funnelOption.fillOpacity));
  46324. grd.addColorStop(1, hexToRgb(seriesNew[_i31].color, funnelOption.fillOpacity));
  46325. fillColor = grd;
  46326. }
  46327. context.setFillStyle(fillColor);
  46328. context.moveTo(0, 0);
  46329. context.lineTo(-funnelOption.minSize / 2, 0);
  46330. context.lineTo(-seriesNew[_i31].radius, -eachSpacing);
  46331. context.lineTo(seriesNew[_i31].radius, -eachSpacing);
  46332. context.lineTo(funnelOption.minSize / 2, 0);
  46333. context.lineTo(0, 0);
  46334. context.closePath();
  46335. context.fill();
  46336. if (funnelOption.border == true) {
  46337. context.stroke();
  46338. }
  46339. } else {
  46340. if (opts.tooltip) {
  46341. if (opts.tooltip.index == _i31) {
  46342. context.beginPath();
  46343. context.setFillStyle(hexToRgb(seriesNew[_i31].color, funnelOption.activeOpacity));
  46344. context.moveTo(0, 0);
  46345. context.lineTo(-seriesNew[_i31 + 1].radius - activeWidth, 0);
  46346. context.lineTo(-seriesNew[_i31].radius - activeWidth, -eachSpacing);
  46347. context.lineTo(seriesNew[_i31].radius + activeWidth, -eachSpacing);
  46348. context.lineTo(seriesNew[_i31 + 1].radius + activeWidth, 0);
  46349. context.lineTo(0, 0);
  46350. context.closePath();
  46351. context.fill();
  46352. }
  46353. }
  46354. seriesNew[_i31].funnelArea = [centerPosition.x - seriesNew[_i31].radius, centerPosition.y - eachSpacing * (seriesNew.length - _i31), centerPosition.x + seriesNew[_i31].radius, centerPosition.y - eachSpacing * (seriesNew.length - _i31 - 1)];
  46355. context.beginPath();
  46356. context.setLineWidth(funnelOption.borderWidth * opts.pix);
  46357. context.setStrokeStyle(funnelOption.borderColor);
  46358. var fillColor = hexToRgb(seriesNew[_i31].color, funnelOption.fillOpacity);
  46359. if (funnelOption.linearType == 'custom') {
  46360. var grd = context.createLinearGradient(seriesNew[_i31].radius, -eachSpacing, -seriesNew[_i31].radius, -eachSpacing);
  46361. grd.addColorStop(0, hexToRgb(seriesNew[_i31].color, funnelOption.fillOpacity));
  46362. grd.addColorStop(0.5, hexToRgb(funnelOption.customColor[seriesNew[_i31].linearIndex], funnelOption.fillOpacity));
  46363. grd.addColorStop(1, hexToRgb(seriesNew[_i31].color, funnelOption.fillOpacity));
  46364. fillColor = grd;
  46365. }
  46366. context.setFillStyle(fillColor);
  46367. context.moveTo(0, 0);
  46368. context.lineTo(-seriesNew[_i31 + 1].radius, 0);
  46369. context.lineTo(-seriesNew[_i31].radius, -eachSpacing);
  46370. context.lineTo(seriesNew[_i31].radius, -eachSpacing);
  46371. context.lineTo(seriesNew[_i31 + 1].radius, 0);
  46372. context.lineTo(0, 0);
  46373. context.closePath();
  46374. context.fill();
  46375. if (funnelOption.border == true) {
  46376. context.stroke();
  46377. }
  46378. }
  46379. context.translate(0, eachSpacing);
  46380. }
  46381. }
  46382. context.restore();
  46383. if (opts.dataLabel !== false && process === 1) {
  46384. drawFunnelText(seriesNew, opts, context, eachSpacing, funnelOption.labelAlign, activeWidth, centerPosition);
  46385. }
  46386. if (process === 1) {
  46387. drawFunnelCenterText(seriesNew, opts, context, eachSpacing, funnelOption.labelAlign, activeWidth, centerPosition);
  46388. }
  46389. return {
  46390. center: centerPosition,
  46391. radius: radius,
  46392. series: seriesNew
  46393. };
  46394. }
  46395. function drawFunnelText(series, opts, context, eachSpacing, labelAlign, activeWidth, centerPosition) {
  46396. for (var i = 0; i < series.length; i++) {
  46397. var item = series[i];
  46398. if (item.labelShow === false) {
  46399. continue;
  46400. }
  46401. var startX = void 0,
  46402. endX = void 0,
  46403. startY = void 0,
  46404. fontSize = void 0;
  46405. var text = item.formatter ? item.formatter(item, i, series, opts) : util.toFixed(item._proportion_ * 100) + '%';
  46406. text = item.labelText ? item.labelText : text;
  46407. if (labelAlign == 'right') {
  46408. if (i == series.length - 1) {
  46409. startX = (item.funnelArea[2] + centerPosition.x) / 2;
  46410. } else {
  46411. startX = (item.funnelArea[2] + series[i + 1].funnelArea[2]) / 2;
  46412. }
  46413. endX = startX + activeWidth * 2;
  46414. startY = item.funnelArea[1] + eachSpacing / 2;
  46415. fontSize = item.textSize * opts.pix || opts.fontSize * opts.pix;
  46416. context.setLineWidth(1 * opts.pix);
  46417. context.setStrokeStyle(item.color);
  46418. context.setFillStyle(item.color);
  46419. context.beginPath();
  46420. context.moveTo(startX, startY);
  46421. context.lineTo(endX, startY);
  46422. context.stroke();
  46423. context.closePath();
  46424. context.beginPath();
  46425. context.moveTo(endX, startY);
  46426. context.arc(endX, startY, 2 * opts.pix, 0, 2 * Math.PI);
  46427. context.closePath();
  46428. context.fill();
  46429. context.beginPath();
  46430. context.setFontSize(fontSize);
  46431. context.setFillStyle(item.textColor || opts.fontColor);
  46432. context.fillText(text, endX + 5, startY + fontSize / 2 - 2);
  46433. context.closePath();
  46434. context.stroke();
  46435. context.closePath();
  46436. }
  46437. if (labelAlign == 'left') {
  46438. if (i == series.length - 1) {
  46439. startX = (item.funnelArea[0] + centerPosition.x) / 2;
  46440. } else {
  46441. startX = (item.funnelArea[0] + series[i + 1].funnelArea[0]) / 2;
  46442. }
  46443. endX = startX - activeWidth * 2;
  46444. startY = item.funnelArea[1] + eachSpacing / 2;
  46445. fontSize = item.textSize * opts.pix || opts.fontSize * opts.pix;
  46446. context.setLineWidth(1 * opts.pix);
  46447. context.setStrokeStyle(item.color);
  46448. context.setFillStyle(item.color);
  46449. context.beginPath();
  46450. context.moveTo(startX, startY);
  46451. context.lineTo(endX, startY);
  46452. context.stroke();
  46453. context.closePath();
  46454. context.beginPath();
  46455. context.moveTo(endX, startY);
  46456. context.arc(endX, startY, 2, 0, 2 * Math.PI);
  46457. context.closePath();
  46458. context.fill();
  46459. context.beginPath();
  46460. context.setFontSize(fontSize);
  46461. context.setFillStyle(item.textColor || opts.fontColor);
  46462. context.fillText(text, endX - 5 - measureText(text, fontSize, context), startY + fontSize / 2 - 2);
  46463. context.closePath();
  46464. context.stroke();
  46465. context.closePath();
  46466. }
  46467. }
  46468. }
  46469. function drawFunnelCenterText(series, opts, context, eachSpacing, labelAlign, activeWidth, centerPosition) {
  46470. for (var i = 0; i < series.length; i++) {
  46471. var item = series[i];
  46472. var startY = void 0,
  46473. fontSize = void 0;
  46474. if (item.centerText) {
  46475. startY = item.funnelArea[1] + eachSpacing / 2;
  46476. fontSize = item.centerTextSize * opts.pix || opts.fontSize * opts.pix;
  46477. context.beginPath();
  46478. context.setFontSize(fontSize);
  46479. context.setFillStyle(item.centerTextColor || "#FFFFFF");
  46480. context.fillText(item.centerText, centerPosition.x - measureText(item.centerText, fontSize, context) / 2, startY + fontSize / 2 - 2);
  46481. context.closePath();
  46482. context.stroke();
  46483. context.closePath();
  46484. }
  46485. }
  46486. }
  46487. function drawCanvas(opts, context) {
  46488. context.draw();
  46489. }
  46490. var Timing = {
  46491. easeIn: function easeIn(pos) {
  46492. return Math.pow(pos, 3);
  46493. },
  46494. easeOut: function easeOut(pos) {
  46495. return Math.pow(pos - 1, 3) + 1;
  46496. },
  46497. easeInOut: function easeInOut(pos) {
  46498. if ((pos /= 0.5) < 1) {
  46499. return 0.5 * Math.pow(pos, 3);
  46500. } else {
  46501. return 0.5 * (Math.pow(pos - 2, 3) + 2);
  46502. }
  46503. },
  46504. linear: function linear(pos) {
  46505. return pos;
  46506. }
  46507. };
  46508. function Animation(opts) {
  46509. this.isStop = false;
  46510. opts.duration = typeof opts.duration === 'undefined' ? 1000 : opts.duration;
  46511. opts.timing = opts.timing || 'easeInOut';
  46512. var delay = 17;
  46513. function createAnimationFrame() {
  46514. if (typeof setTimeout !== 'undefined') {
  46515. return function (step, delay) {
  46516. setTimeout(function () {
  46517. var timeStamp = +new Date();
  46518. step(timeStamp);
  46519. }, delay);
  46520. };
  46521. } else if (typeof requestAnimationFrame !== 'undefined') {
  46522. return requestAnimationFrame;
  46523. } else {
  46524. return function (step) {
  46525. step(null);
  46526. };
  46527. }
  46528. }
  46529. ;
  46530. var animationFrame = createAnimationFrame();
  46531. var startTimeStamp = null;
  46532. var _step = function step(timestamp) {
  46533. if (timestamp === null || this.isStop === true) {
  46534. opts.onProcess && opts.onProcess(1);
  46535. opts.onAnimationFinish && opts.onAnimationFinish();
  46536. return;
  46537. }
  46538. if (startTimeStamp === null) {
  46539. startTimeStamp = timestamp;
  46540. }
  46541. if (timestamp - startTimeStamp < opts.duration) {
  46542. var process = (timestamp - startTimeStamp) / opts.duration;
  46543. var timingFunction = Timing[opts.timing];
  46544. process = timingFunction(process);
  46545. opts.onProcess && opts.onProcess(process);
  46546. animationFrame(_step, delay);
  46547. } else {
  46548. opts.onProcess && opts.onProcess(1);
  46549. opts.onAnimationFinish && opts.onAnimationFinish();
  46550. }
  46551. };
  46552. _step = _step.bind(this);
  46553. animationFrame(_step, delay);
  46554. }
  46555. Animation.prototype.stop = function () {
  46556. this.isStop = true;
  46557. };
  46558. function drawCharts(type, opts, config, context) {
  46559. var _this2 = this;
  46560. var _this = this;
  46561. var series = opts.series;
  46562. //兼容ECharts饼图类数据格式
  46563. if (type === 'pie' || type === 'ring' || type === 'mount' || type === 'rose' || type === 'funnel') {
  46564. series = fixPieSeries(series, opts, config);
  46565. }
  46566. var categories = opts.categories;
  46567. if (type === 'mount') {
  46568. categories = [];
  46569. for (var j = 0; j < series.length; j++) {
  46570. if (series[j].show !== false) categories.push(series[j].name);
  46571. }
  46572. opts.categories = categories;
  46573. }
  46574. series = fillSeries(series, opts, config);
  46575. var duration = opts.animation ? opts.duration : 0;
  46576. _this.animationInstance && _this.animationInstance.stop();
  46577. var seriesMA = null;
  46578. if (type == 'candle') {
  46579. var average = assign({}, opts.extra.candle.average);
  46580. if (average.show) {
  46581. seriesMA = calCandleMA(average.day, average.name, average.color, series[0].data);
  46582. seriesMA = fillSeries(seriesMA, opts, config);
  46583. opts.seriesMA = seriesMA;
  46584. } else if (opts.seriesMA) {
  46585. seriesMA = opts.seriesMA = fillSeries(opts.seriesMA, opts, config);
  46586. } else {
  46587. seriesMA = series;
  46588. }
  46589. } else {
  46590. seriesMA = series;
  46591. }
  46592. /* 过滤掉show=false的series */
  46593. opts._series_ = series = filterSeries(series);
  46594. //重新计算图表区域
  46595. opts.area = new Array(4);
  46596. //复位绘图区域
  46597. for (var _j11 = 0; _j11 < 4; _j11++) {
  46598. opts.area[_j11] = opts.padding[_j11] * opts.pix;
  46599. }
  46600. //通过计算三大区域:图例、X轴、Y轴的大小,确定绘图区域
  46601. var _calLegendData = calLegendData(seriesMA, opts, config, opts.chartData, context),
  46602. legendHeight = _calLegendData.area.wholeHeight,
  46603. legendWidth = _calLegendData.area.wholeWidth;
  46604. switch (opts.legend.position) {
  46605. case 'top':
  46606. opts.area[0] += legendHeight;
  46607. break;
  46608. case 'bottom':
  46609. opts.area[2] += legendHeight;
  46610. break;
  46611. case 'left':
  46612. opts.area[3] += legendWidth;
  46613. break;
  46614. case 'right':
  46615. opts.area[1] += legendWidth;
  46616. break;
  46617. }
  46618. var _calYAxisData = {},
  46619. yAxisWidth = 0;
  46620. if (opts.type === 'line' || opts.type === 'column' || opts.type === 'mount' || opts.type === 'area' || opts.type === 'mix' || opts.type === 'candle' || opts.type === 'scatter' || opts.type === 'bubble' || opts.type === 'bar') {
  46621. _calYAxisData = calYAxisData(series, opts, config, context);
  46622. yAxisWidth = _calYAxisData.yAxisWidth;
  46623. //如果显示Y轴标题
  46624. if (opts.yAxis.showTitle) {
  46625. var maxTitleHeight = 0;
  46626. for (var i = 0; i < opts.yAxis.data.length; i++) {
  46627. maxTitleHeight = Math.max(maxTitleHeight, opts.yAxis.data[i].titleFontSize ? opts.yAxis.data[i].titleFontSize * opts.pix : config.fontSize);
  46628. }
  46629. opts.area[0] += maxTitleHeight;
  46630. }
  46631. var rightIndex = 0,
  46632. leftIndex = 0;
  46633. //计算主绘图区域左右位置
  46634. for (var _i32 = 0; _i32 < yAxisWidth.length; _i32++) {
  46635. if (yAxisWidth[_i32].position == 'left') {
  46636. if (leftIndex > 0) {
  46637. opts.area[3] += yAxisWidth[_i32].width + opts.yAxis.padding * opts.pix;
  46638. } else {
  46639. opts.area[3] += yAxisWidth[_i32].width;
  46640. }
  46641. leftIndex += 1;
  46642. } else if (yAxisWidth[_i32].position == 'right') {
  46643. if (rightIndex > 0) {
  46644. opts.area[1] += yAxisWidth[_i32].width + opts.yAxis.padding * opts.pix;
  46645. } else {
  46646. opts.area[1] += yAxisWidth[_i32].width;
  46647. }
  46648. rightIndex += 1;
  46649. }
  46650. }
  46651. } else {
  46652. config.yAxisWidth = yAxisWidth;
  46653. }
  46654. opts.chartData.yAxisData = _calYAxisData;
  46655. if (opts.categories && opts.categories.length && opts.type !== 'radar' && opts.type !== 'gauge' && opts.type !== 'bar') {
  46656. opts.chartData.xAxisData = getXAxisPoints(opts.categories, opts, config);
  46657. var _calCategoriesData = calCategoriesData(opts.categories, opts, config, opts.chartData.xAxisData.eachSpacing, context),
  46658. xAxisHeight = _calCategoriesData.xAxisHeight,
  46659. angle = _calCategoriesData.angle;
  46660. config.xAxisHeight = xAxisHeight;
  46661. config._xAxisTextAngle_ = angle;
  46662. opts.area[2] += xAxisHeight;
  46663. opts.chartData.categoriesData = _calCategoriesData;
  46664. } else {
  46665. if (opts.type === 'line' || opts.type === 'area' || opts.type === 'scatter' || opts.type === 'bubble' || opts.type === 'bar') {
  46666. opts.chartData.xAxisData = calXAxisData(series, opts, config, context);
  46667. categories = opts.chartData.xAxisData.rangesFormat;
  46668. var _calCategoriesData2 = calCategoriesData(categories, opts, config, opts.chartData.xAxisData.eachSpacing, context),
  46669. _xAxisHeight = _calCategoriesData2.xAxisHeight,
  46670. _angle = _calCategoriesData2.angle;
  46671. config.xAxisHeight = _xAxisHeight;
  46672. config._xAxisTextAngle_ = _angle;
  46673. opts.area[2] += _xAxisHeight;
  46674. opts.chartData.categoriesData = _calCategoriesData2;
  46675. } else {
  46676. opts.chartData.xAxisData = {
  46677. xAxisPoints: []
  46678. };
  46679. }
  46680. }
  46681. //计算右对齐偏移距离
  46682. if (opts.enableScroll && opts.xAxis.scrollAlign == 'right' && opts._scrollDistance_ === undefined) {
  46683. var offsetLeft = 0,
  46684. xAxisPoints = opts.chartData.xAxisData.xAxisPoints,
  46685. startX = opts.chartData.xAxisData.startX,
  46686. endX = opts.chartData.xAxisData.endX,
  46687. eachSpacing = opts.chartData.xAxisData.eachSpacing;
  46688. var totalWidth = eachSpacing * (xAxisPoints.length - 1);
  46689. var screenWidth = endX - startX;
  46690. offsetLeft = screenWidth - totalWidth;
  46691. _this.scrollOption.currentOffset = offsetLeft;
  46692. _this.scrollOption.startTouchX = offsetLeft;
  46693. _this.scrollOption.distance = 0;
  46694. _this.scrollOption.lastMoveTime = 0;
  46695. opts._scrollDistance_ = offsetLeft;
  46696. }
  46697. if (type === 'pie' || type === 'ring' || type === 'rose') {
  46698. config._pieTextMaxLength_ = opts.dataLabel === false ? 0 : getPieTextMaxLength(seriesMA, config, context, opts);
  46699. }
  46700. switch (type) {
  46701. case 'word':
  46702. this.animationInstance = new Animation({
  46703. timing: opts.timing,
  46704. duration: duration,
  46705. onProcess: function onProcess(process) {
  46706. context.clearRect(0, 0, opts.width, opts.height);
  46707. if (opts.rotate) {
  46708. contextRotate(context, opts);
  46709. }
  46710. drawWordCloudDataPoints(series, opts, config, context, process);
  46711. drawCanvas(opts, context);
  46712. },
  46713. onAnimationFinish: function onAnimationFinish() {
  46714. _this.uevent.trigger('renderComplete');
  46715. }
  46716. });
  46717. break;
  46718. case 'map':
  46719. context.clearRect(0, 0, opts.width, opts.height);
  46720. drawMapDataPoints(series, opts, config, context);
  46721. setTimeout(function () {
  46722. _this2.uevent.trigger('renderComplete');
  46723. }, 50);
  46724. break;
  46725. case 'funnel':
  46726. this.animationInstance = new Animation({
  46727. timing: opts.timing,
  46728. duration: duration,
  46729. onProcess: function onProcess(process) {
  46730. context.clearRect(0, 0, opts.width, opts.height);
  46731. if (opts.rotate) {
  46732. contextRotate(context, opts);
  46733. }
  46734. opts.chartData.funnelData = drawFunnelDataPoints(series, opts, config, context, process);
  46735. drawLegend(opts.series, opts, config, context, opts.chartData);
  46736. drawToolTipBridge(opts, config, context, process);
  46737. drawCanvas(opts, context);
  46738. },
  46739. onAnimationFinish: function onAnimationFinish() {
  46740. _this.uevent.trigger('renderComplete');
  46741. }
  46742. });
  46743. break;
  46744. case 'line':
  46745. this.animationInstance = new Animation({
  46746. timing: opts.timing,
  46747. duration: duration,
  46748. onProcess: function onProcess(process) {
  46749. context.clearRect(0, 0, opts.width, opts.height);
  46750. if (opts.rotate) {
  46751. contextRotate(context, opts);
  46752. }
  46753. drawYAxisGrid(categories, opts, config, context);
  46754. drawXAxis(categories, opts, config, context);
  46755. var _drawLineDataPoints = drawLineDataPoints(series, opts, config, context, process),
  46756. xAxisPoints = _drawLineDataPoints.xAxisPoints,
  46757. calPoints = _drawLineDataPoints.calPoints,
  46758. eachSpacing = _drawLineDataPoints.eachSpacing;
  46759. opts.chartData.xAxisPoints = xAxisPoints;
  46760. opts.chartData.calPoints = calPoints;
  46761. opts.chartData.eachSpacing = eachSpacing;
  46762. drawYAxis(series, opts, config, context);
  46763. if (opts.enableMarkLine !== false && process === 1) {
  46764. drawMarkLine(opts, config, context);
  46765. }
  46766. drawLegend(opts.series, opts, config, context, opts.chartData);
  46767. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  46768. drawCanvas(opts, context);
  46769. },
  46770. onAnimationFinish: function onAnimationFinish() {
  46771. _this.uevent.trigger('renderComplete');
  46772. }
  46773. });
  46774. break;
  46775. case 'scatter':
  46776. this.animationInstance = new Animation({
  46777. timing: opts.timing,
  46778. duration: duration,
  46779. onProcess: function onProcess(process) {
  46780. context.clearRect(0, 0, opts.width, opts.height);
  46781. if (opts.rotate) {
  46782. contextRotate(context, opts);
  46783. }
  46784. drawYAxisGrid(categories, opts, config, context);
  46785. drawXAxis(categories, opts, config, context);
  46786. var _drawScatterDataPoints = drawScatterDataPoints(series, opts, config, context, process),
  46787. xAxisPoints = _drawScatterDataPoints.xAxisPoints,
  46788. calPoints = _drawScatterDataPoints.calPoints,
  46789. eachSpacing = _drawScatterDataPoints.eachSpacing;
  46790. opts.chartData.xAxisPoints = xAxisPoints;
  46791. opts.chartData.calPoints = calPoints;
  46792. opts.chartData.eachSpacing = eachSpacing;
  46793. drawYAxis(series, opts, config, context);
  46794. if (opts.enableMarkLine !== false && process === 1) {
  46795. drawMarkLine(opts, config, context);
  46796. }
  46797. drawLegend(opts.series, opts, config, context, opts.chartData);
  46798. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  46799. drawCanvas(opts, context);
  46800. },
  46801. onAnimationFinish: function onAnimationFinish() {
  46802. _this.uevent.trigger('renderComplete');
  46803. }
  46804. });
  46805. break;
  46806. case 'bubble':
  46807. this.animationInstance = new Animation({
  46808. timing: opts.timing,
  46809. duration: duration,
  46810. onProcess: function onProcess(process) {
  46811. context.clearRect(0, 0, opts.width, opts.height);
  46812. if (opts.rotate) {
  46813. contextRotate(context, opts);
  46814. }
  46815. drawYAxisGrid(categories, opts, config, context);
  46816. drawXAxis(categories, opts, config, context);
  46817. var _drawBubbleDataPoints = drawBubbleDataPoints(series, opts, config, context, process),
  46818. xAxisPoints = _drawBubbleDataPoints.xAxisPoints,
  46819. calPoints = _drawBubbleDataPoints.calPoints,
  46820. eachSpacing = _drawBubbleDataPoints.eachSpacing;
  46821. opts.chartData.xAxisPoints = xAxisPoints;
  46822. opts.chartData.calPoints = calPoints;
  46823. opts.chartData.eachSpacing = eachSpacing;
  46824. drawYAxis(series, opts, config, context);
  46825. if (opts.enableMarkLine !== false && process === 1) {
  46826. drawMarkLine(opts, config, context);
  46827. }
  46828. drawLegend(opts.series, opts, config, context, opts.chartData);
  46829. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  46830. drawCanvas(opts, context);
  46831. },
  46832. onAnimationFinish: function onAnimationFinish() {
  46833. _this.uevent.trigger('renderComplete');
  46834. }
  46835. });
  46836. break;
  46837. case 'mix':
  46838. this.animationInstance = new Animation({
  46839. timing: opts.timing,
  46840. duration: duration,
  46841. onProcess: function onProcess(process) {
  46842. context.clearRect(0, 0, opts.width, opts.height);
  46843. if (opts.rotate) {
  46844. contextRotate(context, opts);
  46845. }
  46846. drawYAxisGrid(categories, opts, config, context);
  46847. drawXAxis(categories, opts, config, context);
  46848. var _drawMixDataPoints = drawMixDataPoints(series, opts, config, context, process),
  46849. xAxisPoints = _drawMixDataPoints.xAxisPoints,
  46850. calPoints = _drawMixDataPoints.calPoints,
  46851. eachSpacing = _drawMixDataPoints.eachSpacing;
  46852. opts.chartData.xAxisPoints = xAxisPoints;
  46853. opts.chartData.calPoints = calPoints;
  46854. opts.chartData.eachSpacing = eachSpacing;
  46855. drawYAxis(series, opts, config, context);
  46856. if (opts.enableMarkLine !== false && process === 1) {
  46857. drawMarkLine(opts, config, context);
  46858. }
  46859. drawLegend(opts.series, opts, config, context, opts.chartData);
  46860. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  46861. drawCanvas(opts, context);
  46862. },
  46863. onAnimationFinish: function onAnimationFinish() {
  46864. _this.uevent.trigger('renderComplete');
  46865. }
  46866. });
  46867. break;
  46868. case 'column':
  46869. this.animationInstance = new Animation({
  46870. timing: opts.timing,
  46871. duration: duration,
  46872. onProcess: function onProcess(process) {
  46873. context.clearRect(0, 0, opts.width, opts.height);
  46874. if (opts.rotate) {
  46875. contextRotate(context, opts);
  46876. }
  46877. drawYAxisGrid(categories, opts, config, context);
  46878. drawXAxis(categories, opts, config, context);
  46879. var _drawColumnDataPoints = drawColumnDataPoints(series, opts, config, context, process),
  46880. xAxisPoints = _drawColumnDataPoints.xAxisPoints,
  46881. calPoints = _drawColumnDataPoints.calPoints,
  46882. eachSpacing = _drawColumnDataPoints.eachSpacing;
  46883. opts.chartData.xAxisPoints = xAxisPoints;
  46884. opts.chartData.calPoints = calPoints;
  46885. opts.chartData.eachSpacing = eachSpacing;
  46886. drawYAxis(series, opts, config, context);
  46887. if (opts.enableMarkLine !== false && process === 1) {
  46888. drawMarkLine(opts, config, context);
  46889. }
  46890. drawLegend(opts.series, opts, config, context, opts.chartData);
  46891. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  46892. drawCanvas(opts, context);
  46893. },
  46894. onAnimationFinish: function onAnimationFinish() {
  46895. _this.uevent.trigger('renderComplete');
  46896. }
  46897. });
  46898. break;
  46899. case 'mount':
  46900. this.animationInstance = new Animation({
  46901. timing: opts.timing,
  46902. duration: duration,
  46903. onProcess: function onProcess(process) {
  46904. context.clearRect(0, 0, opts.width, opts.height);
  46905. if (opts.rotate) {
  46906. contextRotate(context, opts);
  46907. }
  46908. drawYAxisGrid(categories, opts, config, context);
  46909. drawXAxis(categories, opts, config, context);
  46910. var _drawMountDataPoints = drawMountDataPoints(series, opts, config, context, process),
  46911. xAxisPoints = _drawMountDataPoints.xAxisPoints,
  46912. calPoints = _drawMountDataPoints.calPoints,
  46913. eachSpacing = _drawMountDataPoints.eachSpacing;
  46914. opts.chartData.xAxisPoints = xAxisPoints;
  46915. opts.chartData.calPoints = calPoints;
  46916. opts.chartData.eachSpacing = eachSpacing;
  46917. drawYAxis(series, opts, config, context);
  46918. if (opts.enableMarkLine !== false && process === 1) {
  46919. drawMarkLine(opts, config, context);
  46920. }
  46921. drawLegend(opts.series, opts, config, context, opts.chartData);
  46922. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  46923. drawCanvas(opts, context);
  46924. },
  46925. onAnimationFinish: function onAnimationFinish() {
  46926. _this.uevent.trigger('renderComplete');
  46927. }
  46928. });
  46929. break;
  46930. case 'bar':
  46931. this.animationInstance = new Animation({
  46932. timing: opts.timing,
  46933. duration: duration,
  46934. onProcess: function onProcess(process) {
  46935. context.clearRect(0, 0, opts.width, opts.height);
  46936. if (opts.rotate) {
  46937. contextRotate(context, opts);
  46938. }
  46939. drawXAxis(categories, opts, config, context);
  46940. var _drawBarDataPoints = drawBarDataPoints(series, opts, config, context, process),
  46941. yAxisPoints = _drawBarDataPoints.yAxisPoints,
  46942. calPoints = _drawBarDataPoints.calPoints,
  46943. eachSpacing = _drawBarDataPoints.eachSpacing;
  46944. opts.chartData.yAxisPoints = yAxisPoints;
  46945. opts.chartData.xAxisPoints = opts.chartData.xAxisData.xAxisPoints;
  46946. opts.chartData.calPoints = calPoints;
  46947. opts.chartData.eachSpacing = eachSpacing;
  46948. drawYAxis(series, opts, config, context);
  46949. if (opts.enableMarkLine !== false && process === 1) {
  46950. drawMarkLine(opts, config, context);
  46951. }
  46952. drawLegend(opts.series, opts, config, context, opts.chartData);
  46953. drawToolTipBridge(opts, config, context, process, eachSpacing, yAxisPoints);
  46954. drawCanvas(opts, context);
  46955. },
  46956. onAnimationFinish: function onAnimationFinish() {
  46957. _this.uevent.trigger('renderComplete');
  46958. }
  46959. });
  46960. break;
  46961. case 'area':
  46962. this.animationInstance = new Animation({
  46963. timing: opts.timing,
  46964. duration: duration,
  46965. onProcess: function onProcess(process) {
  46966. context.clearRect(0, 0, opts.width, opts.height);
  46967. if (opts.rotate) {
  46968. contextRotate(context, opts);
  46969. }
  46970. drawYAxisGrid(categories, opts, config, context);
  46971. drawXAxis(categories, opts, config, context);
  46972. var _drawAreaDataPoints = drawAreaDataPoints(series, opts, config, context, process),
  46973. xAxisPoints = _drawAreaDataPoints.xAxisPoints,
  46974. calPoints = _drawAreaDataPoints.calPoints,
  46975. eachSpacing = _drawAreaDataPoints.eachSpacing;
  46976. opts.chartData.xAxisPoints = xAxisPoints;
  46977. opts.chartData.calPoints = calPoints;
  46978. opts.chartData.eachSpacing = eachSpacing;
  46979. drawYAxis(series, opts, config, context);
  46980. if (opts.enableMarkLine !== false && process === 1) {
  46981. drawMarkLine(opts, config, context);
  46982. }
  46983. drawLegend(opts.series, opts, config, context, opts.chartData);
  46984. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  46985. drawCanvas(opts, context);
  46986. },
  46987. onAnimationFinish: function onAnimationFinish() {
  46988. _this.uevent.trigger('renderComplete');
  46989. }
  46990. });
  46991. break;
  46992. case 'ring':
  46993. this.animationInstance = new Animation({
  46994. timing: opts.timing,
  46995. duration: duration,
  46996. onProcess: function onProcess(process) {
  46997. context.clearRect(0, 0, opts.width, opts.height);
  46998. if (opts.rotate) {
  46999. contextRotate(context, opts);
  47000. }
  47001. opts.chartData.pieData = drawPieDataPoints(series, opts, config, context, process);
  47002. drawLegend(opts.series, opts, config, context, opts.chartData);
  47003. drawToolTipBridge(opts, config, context, process);
  47004. drawCanvas(opts, context);
  47005. },
  47006. onAnimationFinish: function onAnimationFinish() {
  47007. _this.uevent.trigger('renderComplete');
  47008. }
  47009. });
  47010. break;
  47011. case 'pie':
  47012. this.animationInstance = new Animation({
  47013. timing: opts.timing,
  47014. duration: duration,
  47015. onProcess: function onProcess(process) {
  47016. context.clearRect(0, 0, opts.width, opts.height);
  47017. if (opts.rotate) {
  47018. contextRotate(context, opts);
  47019. }
  47020. opts.chartData.pieData = drawPieDataPoints(series, opts, config, context, process);
  47021. drawLegend(opts.series, opts, config, context, opts.chartData);
  47022. drawToolTipBridge(opts, config, context, process);
  47023. drawCanvas(opts, context);
  47024. },
  47025. onAnimationFinish: function onAnimationFinish() {
  47026. _this.uevent.trigger('renderComplete');
  47027. }
  47028. });
  47029. break;
  47030. case 'rose':
  47031. this.animationInstance = new Animation({
  47032. timing: opts.timing,
  47033. duration: duration,
  47034. onProcess: function onProcess(process) {
  47035. context.clearRect(0, 0, opts.width, opts.height);
  47036. if (opts.rotate) {
  47037. contextRotate(context, opts);
  47038. }
  47039. opts.chartData.pieData = drawRoseDataPoints(series, opts, config, context, process);
  47040. drawLegend(opts.series, opts, config, context, opts.chartData);
  47041. drawToolTipBridge(opts, config, context, process);
  47042. drawCanvas(opts, context);
  47043. },
  47044. onAnimationFinish: function onAnimationFinish() {
  47045. _this.uevent.trigger('renderComplete');
  47046. }
  47047. });
  47048. break;
  47049. case 'radar':
  47050. this.animationInstance = new Animation({
  47051. timing: opts.timing,
  47052. duration: duration,
  47053. onProcess: function onProcess(process) {
  47054. context.clearRect(0, 0, opts.width, opts.height);
  47055. if (opts.rotate) {
  47056. contextRotate(context, opts);
  47057. }
  47058. opts.chartData.radarData = drawRadarDataPoints(series, opts, config, context, process);
  47059. drawLegend(opts.series, opts, config, context, opts.chartData);
  47060. drawToolTipBridge(opts, config, context, process);
  47061. drawCanvas(opts, context);
  47062. },
  47063. onAnimationFinish: function onAnimationFinish() {
  47064. _this.uevent.trigger('renderComplete');
  47065. }
  47066. });
  47067. break;
  47068. case 'arcbar':
  47069. this.animationInstance = new Animation({
  47070. timing: opts.timing,
  47071. duration: duration,
  47072. onProcess: function onProcess(process) {
  47073. context.clearRect(0, 0, opts.width, opts.height);
  47074. if (opts.rotate) {
  47075. contextRotate(context, opts);
  47076. }
  47077. opts.chartData.arcbarData = drawArcbarDataPoints(series, opts, config, context, process);
  47078. drawCanvas(opts, context);
  47079. },
  47080. onAnimationFinish: function onAnimationFinish() {
  47081. _this.uevent.trigger('renderComplete');
  47082. }
  47083. });
  47084. break;
  47085. case 'gauge':
  47086. this.animationInstance = new Animation({
  47087. timing: opts.timing,
  47088. duration: duration,
  47089. onProcess: function onProcess(process) {
  47090. context.clearRect(0, 0, opts.width, opts.height);
  47091. if (opts.rotate) {
  47092. contextRotate(context, opts);
  47093. }
  47094. opts.chartData.gaugeData = drawGaugeDataPoints(categories, series, opts, config, context, process);
  47095. drawCanvas(opts, context);
  47096. },
  47097. onAnimationFinish: function onAnimationFinish() {
  47098. _this.uevent.trigger('renderComplete');
  47099. }
  47100. });
  47101. break;
  47102. case 'candle':
  47103. this.animationInstance = new Animation({
  47104. timing: opts.timing,
  47105. duration: duration,
  47106. onProcess: function onProcess(process) {
  47107. context.clearRect(0, 0, opts.width, opts.height);
  47108. if (opts.rotate) {
  47109. contextRotate(context, opts);
  47110. }
  47111. drawYAxisGrid(categories, opts, config, context);
  47112. drawXAxis(categories, opts, config, context);
  47113. var _drawCandleDataPoints = drawCandleDataPoints(series, seriesMA, opts, config, context, process),
  47114. xAxisPoints = _drawCandleDataPoints.xAxisPoints,
  47115. calPoints = _drawCandleDataPoints.calPoints,
  47116. eachSpacing = _drawCandleDataPoints.eachSpacing;
  47117. opts.chartData.xAxisPoints = xAxisPoints;
  47118. opts.chartData.calPoints = calPoints;
  47119. opts.chartData.eachSpacing = eachSpacing;
  47120. drawYAxis(series, opts, config, context);
  47121. if (opts.enableMarkLine !== false && process === 1) {
  47122. drawMarkLine(opts, config, context);
  47123. }
  47124. if (seriesMA) {
  47125. drawLegend(seriesMA, opts, config, context, opts.chartData);
  47126. } else {
  47127. drawLegend(opts.series, opts, config, context, opts.chartData);
  47128. }
  47129. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  47130. drawCanvas(opts, context);
  47131. },
  47132. onAnimationFinish: function onAnimationFinish() {
  47133. _this.uevent.trigger('renderComplete');
  47134. }
  47135. });
  47136. break;
  47137. }
  47138. }
  47139. function uChartsEvent() {
  47140. this.events = {};
  47141. }
  47142. uChartsEvent.prototype.addEventListener = function (type, listener) {
  47143. this.events[type] = this.events[type] || [];
  47144. this.events[type].push(listener);
  47145. };
  47146. uChartsEvent.prototype.delEventListener = function (type) {
  47147. this.events[type] = [];
  47148. };
  47149. uChartsEvent.prototype.trigger = function () {
  47150. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  47151. args[_key] = arguments[_key];
  47152. }
  47153. var type = args[0];
  47154. var params = args.slice(1);
  47155. if (!!this.events[type]) {
  47156. this.events[type].forEach(function (listener) {
  47157. try {
  47158. listener.apply(null, params);
  47159. } catch (e) {
  47160. //console.log('[uCharts] '+e);
  47161. }
  47162. });
  47163. }
  47164. };
  47165. var uCharts = function uCharts(opts) {
  47166. opts.pix = opts.pixelRatio ? opts.pixelRatio : 1;
  47167. opts.fontSize = opts.fontSize ? opts.fontSize : 13;
  47168. opts.fontColor = opts.fontColor ? opts.fontColor : config.fontColor;
  47169. if (opts.background == "" || opts.background == "none") {
  47170. opts.background = "#FFFFFF";
  47171. }
  47172. opts.title = assign({}, opts.title);
  47173. opts.subtitle = assign({}, opts.subtitle);
  47174. opts.duration = opts.duration ? opts.duration : 1000;
  47175. opts.yAxis = assign({}, {
  47176. data: [],
  47177. showTitle: false,
  47178. disabled: false,
  47179. disableGrid: false,
  47180. gridSet: 'number',
  47181. splitNumber: 5,
  47182. gridType: 'solid',
  47183. dashLength: 4 * opts.pix,
  47184. gridColor: '#cccccc',
  47185. padding: 10,
  47186. fontColor: '#666666'
  47187. }, opts.yAxis);
  47188. opts.xAxis = assign({}, {
  47189. rotateLabel: false,
  47190. rotateAngle: 45,
  47191. disabled: false,
  47192. disableGrid: false,
  47193. splitNumber: 5,
  47194. calibration: false,
  47195. gridType: 'solid',
  47196. dashLength: 4,
  47197. scrollAlign: 'left',
  47198. boundaryGap: 'center',
  47199. axisLine: true,
  47200. axisLineColor: '#cccccc'
  47201. }, opts.xAxis);
  47202. opts.xAxis.scrollPosition = opts.xAxis.scrollAlign;
  47203. opts.legend = assign({}, {
  47204. show: true,
  47205. position: 'bottom',
  47206. float: 'center',
  47207. backgroundColor: 'rgba(0,0,0,0)',
  47208. borderColor: 'rgba(0,0,0,0)',
  47209. borderWidth: 0,
  47210. padding: 5,
  47211. margin: 5,
  47212. itemGap: 10,
  47213. fontSize: opts.fontSize,
  47214. lineHeight: opts.fontSize,
  47215. fontColor: opts.fontColor,
  47216. formatter: {},
  47217. hiddenColor: '#CECECE'
  47218. }, opts.legend);
  47219. opts.extra = assign({}, opts.extra);
  47220. opts.rotate = opts.rotate ? true : false;
  47221. opts.animation = opts.animation ? true : false;
  47222. opts.rotate = opts.rotate ? true : false;
  47223. opts.canvas2d = opts.canvas2d ? true : false;
  47224. var config$$1 = assign({}, config);
  47225. config$$1.color = opts.color ? opts.color : config$$1.color;
  47226. if (opts.type == 'pie') {
  47227. config$$1.pieChartLinePadding = opts.dataLabel === false ? 0 : opts.extra.pie.labelWidth * opts.pix || config$$1.pieChartLinePadding * opts.pix;
  47228. }
  47229. if (opts.type == 'ring') {
  47230. config$$1.pieChartLinePadding = opts.dataLabel === false ? 0 : opts.extra.ring.labelWidth * opts.pix || config$$1.pieChartLinePadding * opts.pix;
  47231. }
  47232. if (opts.type == 'rose') {
  47233. config$$1.pieChartLinePadding = opts.dataLabel === false ? 0 : opts.extra.rose.labelWidth * opts.pix || config$$1.pieChartLinePadding * opts.pix;
  47234. }
  47235. config$$1.pieChartTextPadding = opts.dataLabel === false ? 0 : config$$1.pieChartTextPadding * opts.pix;
  47236. //屏幕旋转
  47237. config$$1.rotate = opts.rotate;
  47238. if (opts.rotate) {
  47239. var tempWidth = opts.width;
  47240. var tempHeight = opts.height;
  47241. opts.width = tempHeight;
  47242. opts.height = tempWidth;
  47243. }
  47244. //适配高分屏
  47245. opts.padding = opts.padding ? opts.padding : config$$1.padding;
  47246. config$$1.yAxisWidth = config.yAxisWidth * opts.pix;
  47247. config$$1.xAxisHeight = config.xAxisHeight * opts.pix;
  47248. if (opts.enableScroll && opts.xAxis.scrollShow) {
  47249. config$$1.xAxisHeight += 6 * opts.pix;
  47250. }
  47251. config$$1.fontSize = opts.fontSize * opts.pix;
  47252. config$$1.titleFontSize = config.titleFontSize * opts.pix;
  47253. config$$1.subtitleFontSize = config.subtitleFontSize * opts.pix;
  47254. config$$1.toolTipPadding = config.toolTipPadding * opts.pix;
  47255. config$$1.toolTipLineHeight = config.toolTipLineHeight * opts.pix;
  47256. if (!opts.context) {
  47257. throw new Error('[uCharts] 未获取到context!注意:v2.0版本后,需要自行获取canvas的绘图上下文并传入opts.context!');
  47258. }
  47259. this.context = opts.context;
  47260. if (!this.context.setTextAlign) {
  47261. this.context.setStrokeStyle = function (e) {
  47262. return this.strokeStyle = e;
  47263. };
  47264. this.context.setLineWidth = function (e) {
  47265. return this.lineWidth = e;
  47266. };
  47267. this.context.setLineCap = function (e) {
  47268. return this.lineCap = e;
  47269. };
  47270. this.context.setFontSize = function (e) {
  47271. return this.font = e + "px sans-serif";
  47272. };
  47273. this.context.setFillStyle = function (e) {
  47274. return this.fillStyle = e;
  47275. };
  47276. this.context.setTextAlign = function (e) {
  47277. return this.textAlign = e;
  47278. };
  47279. this.context.draw = function () {};
  47280. }
  47281. //兼容NVUEsetLineDash
  47282. if (!this.context.setLineDash) {
  47283. this.context.setLineDash = function (e) {};
  47284. }
  47285. opts.chartData = {};
  47286. this.uevent = new uChartsEvent();
  47287. this.scrollOption = {
  47288. currentOffset: 0,
  47289. startTouchX: 0,
  47290. distance: 0,
  47291. lastMoveTime: 0
  47292. };
  47293. this.opts = opts;
  47294. this.config = config$$1;
  47295. drawCharts.call(this, opts.type, opts, config$$1, this.context);
  47296. };
  47297. uCharts.prototype.updateData = function () {
  47298. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  47299. this.opts = assign({}, this.opts, data);
  47300. this.opts.updateData = true;
  47301. var scrollPosition = data.scrollPosition || 'current';
  47302. switch (scrollPosition) {
  47303. case 'current':
  47304. this.opts._scrollDistance_ = this.scrollOption.currentOffset;
  47305. break;
  47306. case 'left':
  47307. this.opts._scrollDistance_ = 0;
  47308. this.scrollOption = {
  47309. currentOffset: 0,
  47310. startTouchX: 0,
  47311. distance: 0,
  47312. lastMoveTime: 0
  47313. };
  47314. break;
  47315. case 'right':
  47316. var _calYAxisData = calYAxisData(this.opts.series, this.opts, this.config, this.context),
  47317. yAxisWidth = _calYAxisData.yAxisWidth;
  47318. this.config.yAxisWidth = yAxisWidth;
  47319. var offsetLeft = 0;
  47320. var _getXAxisPoints0 = getXAxisPoints(this.opts.categories, this.opts, this.config),
  47321. xAxisPoints = _getXAxisPoints0.xAxisPoints,
  47322. startX = _getXAxisPoints0.startX,
  47323. endX = _getXAxisPoints0.endX,
  47324. eachSpacing = _getXAxisPoints0.eachSpacing;
  47325. var totalWidth = eachSpacing * (xAxisPoints.length - 1);
  47326. var screenWidth = endX - startX;
  47327. offsetLeft = screenWidth - totalWidth;
  47328. this.scrollOption = {
  47329. currentOffset: offsetLeft,
  47330. startTouchX: offsetLeft,
  47331. distance: 0,
  47332. lastMoveTime: 0
  47333. };
  47334. this.opts._scrollDistance_ = offsetLeft;
  47335. break;
  47336. }
  47337. drawCharts.call(this, this.opts.type, this.opts, this.config, this.context);
  47338. };
  47339. uCharts.prototype.zoom = function () {
  47340. var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.opts.xAxis.itemCount;
  47341. if (this.opts.enableScroll !== true) {
  47342. console.log('[uCharts] 请启用滚动条后使用');
  47343. return;
  47344. }
  47345. //当前屏幕中间点
  47346. var centerPoint = Math.round(Math.abs(this.scrollOption.currentOffset) / this.opts.chartData.eachSpacing) + Math.round(this.opts.xAxis.itemCount / 2);
  47347. this.opts.animation = false;
  47348. this.opts.xAxis.itemCount = val.itemCount;
  47349. //重新计算x轴偏移距离
  47350. var _calYAxisData = calYAxisData(this.opts.series, this.opts, this.config, this.context),
  47351. yAxisWidth = _calYAxisData.yAxisWidth;
  47352. this.config.yAxisWidth = yAxisWidth;
  47353. var offsetLeft = 0;
  47354. var _getXAxisPoints0 = getXAxisPoints(this.opts.categories, this.opts, this.config),
  47355. xAxisPoints = _getXAxisPoints0.xAxisPoints,
  47356. startX = _getXAxisPoints0.startX,
  47357. endX = _getXAxisPoints0.endX,
  47358. eachSpacing = _getXAxisPoints0.eachSpacing;
  47359. var centerLeft = eachSpacing * centerPoint;
  47360. var screenWidth = endX - startX;
  47361. var MaxLeft = screenWidth - eachSpacing * (xAxisPoints.length - 1);
  47362. offsetLeft = screenWidth / 2 - centerLeft;
  47363. if (offsetLeft > 0) {
  47364. offsetLeft = 0;
  47365. }
  47366. if (offsetLeft < MaxLeft) {
  47367. offsetLeft = MaxLeft;
  47368. }
  47369. this.scrollOption = {
  47370. currentOffset: offsetLeft,
  47371. startTouchX: 0,
  47372. distance: 0,
  47373. lastMoveTime: 0
  47374. };
  47375. calValidDistance(this, offsetLeft, this.opts.chartData, this.config, this.opts);
  47376. this.opts._scrollDistance_ = offsetLeft;
  47377. drawCharts.call(this, this.opts.type, this.opts, this.config, this.context);
  47378. };
  47379. uCharts.prototype.dobuleZoom = function (e) {
  47380. if (this.opts.enableScroll !== true) {
  47381. console.log('[uCharts] 请启用滚动条后使用');
  47382. return;
  47383. }
  47384. var tcs = e.changedTouches;
  47385. if (tcs.length < 2) {
  47386. return;
  47387. }
  47388. for (var i = 0; i < tcs.length; i++) {
  47389. tcs[i].x = tcs[i].x ? tcs[i].x : tcs[i].clientX;
  47390. tcs[i].y = tcs[i].y ? tcs[i].y : tcs[i].clientY;
  47391. }
  47392. var ntcs = [getTouches(tcs[0], this.opts, e), getTouches(tcs[1], this.opts, e)];
  47393. var xlength = Math.abs(ntcs[0].x - ntcs[1].x);
  47394. // 记录初始的两指之间的数据
  47395. if (!this.scrollOption.moveCount) {
  47396. var cts0 = {
  47397. changedTouches: [{
  47398. x: tcs[0].x,
  47399. y: this.opts.area[0] / this.opts.pix + 2
  47400. }]
  47401. };
  47402. var cts1 = {
  47403. changedTouches: [{
  47404. x: tcs[1].x,
  47405. y: this.opts.area[0] / this.opts.pix + 2
  47406. }]
  47407. };
  47408. if (this.opts.rotate) {
  47409. cts0 = {
  47410. changedTouches: [{
  47411. x: this.opts.height / this.opts.pix - this.opts.area[0] / this.opts.pix - 2,
  47412. y: tcs[0].y
  47413. }]
  47414. };
  47415. cts1 = {
  47416. changedTouches: [{
  47417. x: this.opts.height / this.opts.pix - this.opts.area[0] / this.opts.pix - 2,
  47418. y: tcs[1].y
  47419. }]
  47420. };
  47421. }
  47422. var moveCurrent1 = this.getCurrentDataIndex(cts0).index;
  47423. var moveCurrent2 = this.getCurrentDataIndex(cts1).index;
  47424. var moveCount = Math.abs(moveCurrent1 - moveCurrent2);
  47425. this.scrollOption.moveCount = moveCount;
  47426. this.scrollOption.moveCurrent1 = Math.min(moveCurrent1, moveCurrent2);
  47427. this.scrollOption.moveCurrent2 = Math.max(moveCurrent1, moveCurrent2);
  47428. return;
  47429. }
  47430. var currentEachSpacing = xlength / this.scrollOption.moveCount;
  47431. var itemCount = (this.opts.width - this.opts.area[1] - this.opts.area[3]) / currentEachSpacing;
  47432. itemCount = itemCount <= 2 ? 2 : itemCount;
  47433. itemCount = itemCount >= this.opts.categories.length ? this.opts.categories.length : itemCount;
  47434. this.opts.animation = false;
  47435. this.opts.xAxis.itemCount = itemCount;
  47436. // 重新计算滚动条偏移距离
  47437. var offsetLeft = 0;
  47438. var _getXAxisPoints0 = getXAxisPoints(this.opts.categories, this.opts, this.config),
  47439. xAxisPoints = _getXAxisPoints0.xAxisPoints,
  47440. startX = _getXAxisPoints0.startX,
  47441. endX = _getXAxisPoints0.endX,
  47442. eachSpacing = _getXAxisPoints0.eachSpacing;
  47443. var currentLeft = eachSpacing * this.scrollOption.moveCurrent1;
  47444. var screenWidth = endX - startX;
  47445. var MaxLeft = screenWidth - eachSpacing * (xAxisPoints.length - 1);
  47446. offsetLeft = -currentLeft + Math.min(ntcs[0].x, ntcs[1].x) - this.opts.area[3] - eachSpacing;
  47447. if (offsetLeft > 0) {
  47448. offsetLeft = 0;
  47449. }
  47450. if (offsetLeft < MaxLeft) {
  47451. offsetLeft = MaxLeft;
  47452. }
  47453. this.scrollOption.currentOffset = offsetLeft;
  47454. this.scrollOption.startTouchX = 0;
  47455. this.scrollOption.distance = 0;
  47456. calValidDistance(this, offsetLeft, this.opts.chartData, this.config, this.opts);
  47457. this.opts._scrollDistance_ = offsetLeft;
  47458. drawCharts.call(this, this.opts.type, this.opts, this.config, this.context);
  47459. };
  47460. uCharts.prototype.stopAnimation = function () {
  47461. this.animationInstance && this.animationInstance.stop();
  47462. };
  47463. uCharts.prototype.addEventListener = function (type, listener) {
  47464. this.uevent.addEventListener(type, listener);
  47465. };
  47466. uCharts.prototype.delEventListener = function (type) {
  47467. this.uevent.delEventListener(type);
  47468. };
  47469. uCharts.prototype.getCurrentDataIndex = function (e) {
  47470. var touches = null;
  47471. if (e.changedTouches) {
  47472. touches = e.changedTouches[0];
  47473. } else {
  47474. touches = e.mp.changedTouches[0];
  47475. }
  47476. if (touches) {
  47477. var _touches$ = getTouches(touches, this.opts, e);
  47478. if (this.opts.type === 'pie' || this.opts.type === 'ring') {
  47479. return findPieChartCurrentIndex({
  47480. x: _touches$.x,
  47481. y: _touches$.y
  47482. }, this.opts.chartData.pieData, this.opts);
  47483. } else if (this.opts.type === 'rose') {
  47484. return findRoseChartCurrentIndex({
  47485. x: _touches$.x,
  47486. y: _touches$.y
  47487. }, this.opts.chartData.pieData, this.opts);
  47488. } else if (this.opts.type === 'radar') {
  47489. return findRadarChartCurrentIndex({
  47490. x: _touches$.x,
  47491. y: _touches$.y
  47492. }, this.opts.chartData.radarData, this.opts.categories.length);
  47493. } else if (this.opts.type === 'funnel') {
  47494. return findFunnelChartCurrentIndex({
  47495. x: _touches$.x,
  47496. y: _touches$.y
  47497. }, this.opts.chartData.funnelData);
  47498. } else if (this.opts.type === 'map') {
  47499. return findMapChartCurrentIndex({
  47500. x: _touches$.x,
  47501. y: _touches$.y
  47502. }, this.opts);
  47503. } else if (this.opts.type === 'word') {
  47504. return findWordChartCurrentIndex({
  47505. x: _touches$.x,
  47506. y: _touches$.y
  47507. }, this.opts.chartData.wordCloudData);
  47508. } else if (this.opts.type === 'bar') {
  47509. return findBarChartCurrentIndex({
  47510. x: _touches$.x,
  47511. y: _touches$.y
  47512. }, this.opts.chartData.calPoints, this.opts, this.config, Math.abs(this.scrollOption.currentOffset));
  47513. } else {
  47514. return findCurrentIndex({
  47515. x: _touches$.x,
  47516. y: _touches$.y
  47517. }, this.opts.chartData.calPoints, this.opts, this.config, Math.abs(this.scrollOption.currentOffset));
  47518. }
  47519. }
  47520. return -1;
  47521. };
  47522. uCharts.prototype.getLegendDataIndex = function (e) {
  47523. var touches = null;
  47524. if (e.changedTouches) {
  47525. touches = e.changedTouches[0];
  47526. } else {
  47527. touches = e.mp.changedTouches[0];
  47528. }
  47529. if (touches) {
  47530. var _touches$ = getTouches(touches, this.opts, e);
  47531. return findLegendIndex({
  47532. x: _touches$.x,
  47533. y: _touches$.y
  47534. }, this.opts.chartData.legendData);
  47535. }
  47536. return -1;
  47537. };
  47538. uCharts.prototype.touchLegend = function (e) {
  47539. var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  47540. var touches = null;
  47541. if (e.changedTouches) {
  47542. touches = e.changedTouches[0];
  47543. } else {
  47544. touches = e.mp.changedTouches[0];
  47545. }
  47546. if (touches) {
  47547. var _touches$ = getTouches(touches, this.opts, e);
  47548. var index = this.getLegendDataIndex(e);
  47549. if (index >= 0) {
  47550. if (this.opts.type == 'candle') {
  47551. this.opts.seriesMA[index].show = !this.opts.seriesMA[index].show;
  47552. } else {
  47553. this.opts.series[index].show = !this.opts.series[index].show;
  47554. }
  47555. this.opts.animation = option.animation ? true : false;
  47556. this.opts._scrollDistance_ = this.scrollOption.currentOffset;
  47557. drawCharts.call(this, this.opts.type, this.opts, this.config, this.context);
  47558. }
  47559. }
  47560. };
  47561. uCharts.prototype.showToolTip = function (e) {
  47562. var _this3 = this;
  47563. var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  47564. var touches = null;
  47565. if (e.changedTouches) {
  47566. touches = e.changedTouches[0];
  47567. } else {
  47568. touches = e.mp.changedTouches[0];
  47569. }
  47570. if (!touches) {
  47571. console.log("[uCharts] 未获取到event坐标信息");
  47572. }
  47573. var _touches$ = getTouches(touches, this.opts, e);
  47574. var currentOffset = this.scrollOption.currentOffset;
  47575. var opts = assign({}, this.opts, {
  47576. _scrollDistance_: currentOffset,
  47577. animation: false
  47578. });
  47579. if (this.opts.type === 'line' || this.opts.type === 'area' || this.opts.type === 'column' || this.opts.type === 'scatter' || this.opts.type === 'bubble') {
  47580. var current = this.getCurrentDataIndex(e);
  47581. var index = option.index == undefined ? current.index : option.index;
  47582. if (index > -1 || index.length > 0) {
  47583. var seriesData = getSeriesDataItem(this.opts.series, index, current.group);
  47584. if (seriesData.length !== 0) {
  47585. var _getToolTipData = getToolTipData(seriesData, this.opts, index, current.group, this.opts.categories, option),
  47586. textList = _getToolTipData.textList,
  47587. offset = _getToolTipData.offset;
  47588. offset.y = _touches$.y;
  47589. opts.tooltip = {
  47590. textList: option.textList !== undefined ? option.textList : textList,
  47591. offset: option.offset !== undefined ? option.offset : offset,
  47592. option: option,
  47593. index: index
  47594. };
  47595. }
  47596. }
  47597. drawCharts.call(this, opts.type, opts, this.config, this.context);
  47598. }
  47599. if (this.opts.type === 'mount') {
  47600. var index = option.index == undefined ? this.getCurrentDataIndex(e).index : option.index;
  47601. if (index > -1) {
  47602. var opts = assign({}, this.opts, {
  47603. animation: false
  47604. });
  47605. var seriesData = assign({}, opts._series_[index]);
  47606. var textList = [{
  47607. text: option.formatter ? option.formatter(seriesData, undefined, index, opts) : seriesData.name + ': ' + seriesData.data,
  47608. color: seriesData.color
  47609. }];
  47610. var offset = {
  47611. x: opts.chartData.calPoints[index].x,
  47612. y: _touches$.y
  47613. };
  47614. opts.tooltip = {
  47615. textList: option.textList ? option.textList : textList,
  47616. offset: option.offset !== undefined ? option.offset : offset,
  47617. option: option,
  47618. index: index
  47619. };
  47620. }
  47621. drawCharts.call(this, opts.type, opts, this.config, this.context);
  47622. }
  47623. if (this.opts.type === 'bar') {
  47624. var current = this.getCurrentDataIndex(e);
  47625. var index = option.index == undefined ? current.index : option.index;
  47626. if (index > -1 || index.length > 0) {
  47627. var seriesData = getSeriesDataItem(this.opts.series, index, current.group);
  47628. if (seriesData.length !== 0) {
  47629. var _getToolTipData = getToolTipData(seriesData, this.opts, index, current.group, this.opts.categories, option),
  47630. textList = _getToolTipData.textList,
  47631. offset = _getToolTipData.offset;
  47632. offset.x = _touches$.x;
  47633. opts.tooltip = {
  47634. textList: option.textList !== undefined ? option.textList : textList,
  47635. offset: option.offset !== undefined ? option.offset : offset,
  47636. option: option,
  47637. index: index
  47638. };
  47639. }
  47640. }
  47641. drawCharts.call(this, opts.type, opts, this.config, this.context);
  47642. }
  47643. if (this.opts.type === 'mix') {
  47644. var current = this.getCurrentDataIndex(e);
  47645. var index = option.index == undefined ? current.index : option.index;
  47646. if (index > -1) {
  47647. var currentOffset = this.scrollOption.currentOffset;
  47648. var opts = assign({}, this.opts, {
  47649. _scrollDistance_: currentOffset,
  47650. animation: false
  47651. });
  47652. var seriesData = getSeriesDataItem(this.opts.series, index);
  47653. if (seriesData.length !== 0) {
  47654. var _getMixToolTipData = getMixToolTipData(seriesData, this.opts, index, this.opts.categories, option),
  47655. textList = _getMixToolTipData.textList,
  47656. offset = _getMixToolTipData.offset;
  47657. offset.y = _touches$.y;
  47658. opts.tooltip = {
  47659. textList: option.textList ? option.textList : textList,
  47660. offset: option.offset !== undefined ? option.offset : offset,
  47661. option: option,
  47662. index: index
  47663. };
  47664. }
  47665. }
  47666. drawCharts.call(this, opts.type, opts, this.config, this.context);
  47667. }
  47668. if (this.opts.type === 'candle') {
  47669. var current = this.getCurrentDataIndex(e);
  47670. var index = option.index == undefined ? current.index : option.index;
  47671. if (index > -1) {
  47672. var currentOffset = this.scrollOption.currentOffset;
  47673. var opts = assign({}, this.opts, {
  47674. _scrollDistance_: currentOffset,
  47675. animation: false
  47676. });
  47677. var seriesData = getSeriesDataItem(this.opts.series, index);
  47678. if (seriesData.length !== 0) {
  47679. var _getToolTipData = getCandleToolTipData(this.opts.series[0].data, seriesData, this.opts, index, this.opts.categories, this.opts.extra.candle, option),
  47680. textList = _getToolTipData.textList,
  47681. offset = _getToolTipData.offset;
  47682. offset.y = _touches$.y;
  47683. opts.tooltip = {
  47684. textList: option.textList ? option.textList : textList,
  47685. offset: option.offset !== undefined ? option.offset : offset,
  47686. option: option,
  47687. index: index
  47688. };
  47689. }
  47690. }
  47691. drawCharts.call(this, opts.type, opts, this.config, this.context);
  47692. }
  47693. if (this.opts.type === 'pie' || this.opts.type === 'ring' || this.opts.type === 'rose' || this.opts.type === 'funnel') {
  47694. var index = option.index == undefined ? this.getCurrentDataIndex(e) : option.index;
  47695. if (index > -1) {
  47696. var opts = assign({}, this.opts, {
  47697. animation: false
  47698. });
  47699. var seriesData = assign({}, opts._series_[index]);
  47700. var textList = [{
  47701. text: option.formatter ? option.formatter(seriesData, undefined, index, opts) : seriesData.name + ': ' + seriesData.data,
  47702. color: seriesData.color
  47703. }];
  47704. var offset = {
  47705. x: _touches$.x,
  47706. y: _touches$.y
  47707. };
  47708. opts.tooltip = {
  47709. textList: option.textList ? option.textList : textList,
  47710. offset: option.offset !== undefined ? option.offset : offset,
  47711. option: option,
  47712. index: index
  47713. };
  47714. }
  47715. drawCharts.call(this, opts.type, opts, this.config, this.context);
  47716. }
  47717. if (this.opts.type === 'map') {
  47718. var index = option.index == undefined ? this.getCurrentDataIndex(e) : option.index;
  47719. if (index > -1) {
  47720. var opts = assign({}, this.opts, {
  47721. animation: false
  47722. });
  47723. var seriesData = assign({}, this.opts.series[index]);
  47724. seriesData.name = seriesData.properties.name;
  47725. var textList = [{
  47726. text: option.formatter ? option.formatter(seriesData, undefined, index, this.opts) : seriesData.name,
  47727. color: seriesData.color
  47728. }];
  47729. var offset = {
  47730. x: _touches$.x,
  47731. y: _touches$.y
  47732. };
  47733. opts.tooltip = {
  47734. textList: option.textList ? option.textList : textList,
  47735. offset: option.offset !== undefined ? option.offset : offset,
  47736. option: option,
  47737. index: index
  47738. };
  47739. }
  47740. opts.updateData = false;
  47741. drawCharts.call(this, opts.type, opts, this.config, this.context);
  47742. }
  47743. if (this.opts.type === 'word') {
  47744. var index = option.index == undefined ? this.getCurrentDataIndex(e) : option.index;
  47745. if (index > -1) {
  47746. var opts = assign({}, this.opts, {
  47747. animation: false
  47748. });
  47749. var seriesData = assign({}, this.opts.series[index]);
  47750. var textList = [{
  47751. text: option.formatter ? option.formatter(seriesData, undefined, index, this.opts) : seriesData.name,
  47752. color: seriesData.color
  47753. }];
  47754. var offset = {
  47755. x: _touches$.x,
  47756. y: _touches$.y
  47757. };
  47758. opts.tooltip = {
  47759. textList: option.textList ? option.textList : textList,
  47760. offset: option.offset !== undefined ? option.offset : offset,
  47761. option: option,
  47762. index: index
  47763. };
  47764. }
  47765. opts.updateData = false;
  47766. drawCharts.call(this, opts.type, opts, this.config, this.context);
  47767. }
  47768. if (this.opts.type === 'radar') {
  47769. var index = option.index == undefined ? this.getCurrentDataIndex(e) : option.index;
  47770. if (index > -1) {
  47771. var opts = assign({}, this.opts, {
  47772. animation: false
  47773. });
  47774. var seriesData = getSeriesDataItem(this.opts.series, index);
  47775. if (seriesData.length !== 0) {
  47776. var textList = seriesData.map(function (item) {
  47777. return {
  47778. text: option.formatter ? option.formatter(item, _this3.opts.categories[index], index, _this3.opts) : item.name + ': ' + item.data,
  47779. color: item.color
  47780. };
  47781. });
  47782. var offset = {
  47783. x: _touches$.x,
  47784. y: _touches$.y
  47785. };
  47786. opts.tooltip = {
  47787. textList: option.textList ? option.textList : textList,
  47788. offset: option.offset !== undefined ? option.offset : offset,
  47789. option: option,
  47790. index: index
  47791. };
  47792. }
  47793. }
  47794. drawCharts.call(this, opts.type, opts, this.config, this.context);
  47795. }
  47796. };
  47797. uCharts.prototype.translate = function (distance) {
  47798. this.scrollOption = {
  47799. currentOffset: distance,
  47800. startTouchX: distance,
  47801. distance: 0,
  47802. lastMoveTime: 0
  47803. };
  47804. var opts = assign({}, this.opts, {
  47805. _scrollDistance_: distance,
  47806. animation: false
  47807. });
  47808. drawCharts.call(this, this.opts.type, opts, this.config, this.context);
  47809. };
  47810. uCharts.prototype.scrollStart = function (e) {
  47811. var touches = null;
  47812. if (e.changedTouches) {
  47813. touches = e.changedTouches[0];
  47814. } else {
  47815. touches = e.mp.changedTouches[0];
  47816. }
  47817. var _touches$ = getTouches(touches, this.opts, e);
  47818. if (touches && this.opts.enableScroll === true) {
  47819. this.scrollOption.startTouchX = _touches$.x;
  47820. }
  47821. };
  47822. uCharts.prototype.scroll = function (e) {
  47823. if (this.scrollOption.lastMoveTime === 0) {
  47824. this.scrollOption.lastMoveTime = Date.now();
  47825. }
  47826. var Limit = this.opts.touchMoveLimit || 60;
  47827. var currMoveTime = Date.now();
  47828. var duration = currMoveTime - this.scrollOption.lastMoveTime;
  47829. if (duration < Math.floor(1000 / Limit)) return;
  47830. if (this.scrollOption.startTouchX == 0) return;
  47831. this.scrollOption.lastMoveTime = currMoveTime;
  47832. var touches = null;
  47833. if (e.changedTouches) {
  47834. touches = e.changedTouches[0];
  47835. } else {
  47836. touches = e.mp.changedTouches[0];
  47837. }
  47838. if (touches && this.opts.enableScroll === true) {
  47839. var _touches$ = getTouches(touches, this.opts, e);
  47840. var _distance;
  47841. _distance = _touches$.x - this.scrollOption.startTouchX;
  47842. var currentOffset = this.scrollOption.currentOffset;
  47843. var validDistance = calValidDistance(this, currentOffset + _distance, this.opts.chartData, this.config, this.opts);
  47844. this.scrollOption.distance = _distance = validDistance - currentOffset;
  47845. var opts = assign({}, this.opts, {
  47846. _scrollDistance_: currentOffset + _distance,
  47847. animation: false
  47848. });
  47849. this.opts = opts;
  47850. drawCharts.call(this, opts.type, opts, this.config, this.context);
  47851. return currentOffset + _distance;
  47852. }
  47853. };
  47854. uCharts.prototype.scrollEnd = function (e) {
  47855. if (this.opts.enableScroll === true) {
  47856. var _scrollOption = this.scrollOption,
  47857. currentOffset = _scrollOption.currentOffset,
  47858. distance = _scrollOption.distance;
  47859. this.scrollOption.currentOffset = currentOffset + distance;
  47860. this.scrollOption.distance = 0;
  47861. this.scrollOption.moveCount = 0;
  47862. }
  47863. };
  47864. var _default = uCharts;
  47865. exports.default = _default;
  47866. /***/ }),
  47867. /* 545 */
  47868. /*!*****************************************************************************************!*\
  47869. !*** D:/SWS_New/sws_new/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js ***!
  47870. \*****************************************************************************************/
  47871. /*! no static exports found */
  47872. /***/ (function(module, exports, __webpack_require__) {
  47873. "use strict";
  47874. Object.defineProperty(exports, "__esModule", {
  47875. value: true
  47876. });
  47877. exports.default = void 0;
  47878. /*
  47879. * uCharts®
  47880. * 高性能跨平台图表库,支持H5、APP、小程序(微信/支付宝/百度/头条/QQ/360)、Vue、Taro等支持canvas的框架平台
  47881. * Copyright (c) 2021 QIUN®秋云 https://www.ucharts.cn All rights reserved.
  47882. * Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  47883. * 复制使用请保留本段注释,感谢支持开源!
  47884. *
  47885. * uCharts®官方网站
  47886. * https://www.uCharts.cn
  47887. *
  47888. * 开源地址:
  47889. * https://gitee.com/uCharts/uCharts
  47890. *
  47891. * uni-app插件市场地址:
  47892. * http://ext.dcloud.net.cn/plugin?id=271
  47893. *
  47894. */
  47895. // 主题颜色配置:如每个图表类型需要不同主题,请在对应图表类型上更改color属性
  47896. var color = ['#1890FF', '#91CB74', '#FAC858', '#EE6666', '#73C0DE', '#3CA272', '#FC8452', '#9A60B4', '#ea7ccc'];
  47897. //事件转换函数,主要用作格式化x轴为时间轴,根据需求自行修改
  47898. var formatDateTime = function formatDateTime(timeStamp, returnType) {
  47899. var date = new Date();
  47900. date.setTime(timeStamp * 1000);
  47901. var y = date.getFullYear();
  47902. var m = date.getMonth() + 1;
  47903. m = m < 10 ? '0' + m : m;
  47904. var d = date.getDate();
  47905. d = d < 10 ? '0' + d : d;
  47906. var h = date.getHours();
  47907. h = h < 10 ? '0' + h : h;
  47908. var minute = date.getMinutes();
  47909. var second = date.getSeconds();
  47910. minute = minute < 10 ? '0' + minute : minute;
  47911. second = second < 10 ? '0' + second : second;
  47912. if (returnType == 'full') {
  47913. return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + second;
  47914. }
  47915. if (returnType == 'y-m-d') {
  47916. return y + '-' + m + '-' + d;
  47917. }
  47918. if (returnType == 'h:m') {
  47919. return h + ':' + minute;
  47920. }
  47921. if (returnType == 'h:m:s') {
  47922. return h + ':' + minute + ':' + second;
  47923. }
  47924. return [y, m, d, h, minute, second];
  47925. };
  47926. var cfu = {
  47927. //demotype为自定义图表类型,一般不需要自定义图表类型,只需要改根节点上对应的类型即可
  47928. "type": ["pie", "ring", "rose", "word", "funnel", "map", "arcbar", "line", "column", "mount", "bar", "area", "radar", "gauge", "candle", "mix", "tline", "tarea", "scatter", "bubble", "demotype"],
  47929. "range": ["饼状图", "圆环图", "玫瑰图", "词云图", "漏斗图", "地图", "圆弧进度条", "折线图", "柱状图", "山峰图", "条状图", "区域图", "雷达图", "仪表盘", "K线图", "混合图", "时间轴折线", "时间轴区域", "散点图", "气泡图", "自定义类型"],
  47930. //增加自定义图表类型,如果需要categories,请在这里加入您的图表类型,例如最后的"demotype"
  47931. //自定义类型时需要注意"tline","tarea","scatter","bubble"等时间轴(矢量x轴)类图表,没有categories,不需要加入categories
  47932. "categories": ["line", "column", "mount", "bar", "area", "radar", "gauge", "candle", "mix", "demotype"],
  47933. //instance为实例变量承载属性,不要删除
  47934. "instance": {},
  47935. //option为opts及eopts承载属性,不要删除
  47936. "option": {},
  47937. //下面是自定义format配置,因除H5端外的其他端无法通过props传递函数,只能通过此属性对应下标的方式来替换
  47938. "formatter": {
  47939. "yAxisDemo1": function yAxisDemo1(val, index, opts) {
  47940. return val + '元';
  47941. },
  47942. "yAxisDemo2": function yAxisDemo2(val, index, opts) {
  47943. return val.toFixed(2);
  47944. },
  47945. "xAxisDemo1": function xAxisDemo1(val, index, opts) {
  47946. return val + '年';
  47947. },
  47948. "xAxisDemo2": function xAxisDemo2(val, index, opts) {
  47949. return formatDateTime(val, 'h:m');
  47950. },
  47951. "seriesDemo1": function seriesDemo1(val, index, series, opts) {
  47952. return val + '元';
  47953. },
  47954. "tooltipDemo1": function tooltipDemo1(item, category, index, opts) {
  47955. if (index == 0) {
  47956. return '随便用' + item.data + '年';
  47957. } else {
  47958. return '其他我没改' + item.data + '天';
  47959. }
  47960. },
  47961. "pieDemo": function pieDemo(val, index, series, opts) {
  47962. if (index !== undefined) {
  47963. return series[index].name + ':' + series[index].data + '元';
  47964. }
  47965. }
  47966. },
  47967. //这里演示了自定义您的图表类型的option,可以随意命名,之后在组件上 type="demotype" 后,组件会调用这个花括号里的option,如果组件上还存在opts参数,会将demotype与opts中option合并后渲染图表。
  47968. "demotype": {
  47969. //我这里把曲线图当做了自定义图表类型,您可以根据需要随意指定类型或配置
  47970. "type": "line",
  47971. "color": color,
  47972. "padding": [15, 10, 0, 15],
  47973. "xAxis": {
  47974. "disableGrid": true
  47975. },
  47976. "yAxis": {
  47977. "gridType": "dash",
  47978. "dashLength": 2
  47979. },
  47980. "legend": {},
  47981. "extra": {
  47982. "line": {
  47983. "type": "curve",
  47984. "width": 2
  47985. }
  47986. }
  47987. },
  47988. //下面是自定义配置,请添加项目所需的通用配置
  47989. "pie": {
  47990. "type": "pie",
  47991. "color": color,
  47992. "padding": [5, 5, 5, 5],
  47993. "extra": {
  47994. "pie": {
  47995. "activeOpacity": 0.5,
  47996. "activeRadius": 10,
  47997. "offsetAngle": 0,
  47998. "labelWidth": 15,
  47999. "border": true,
  48000. "borderWidth": 3,
  48001. "borderColor": "#FFFFFF"
  48002. }
  48003. }
  48004. },
  48005. "ring": {
  48006. "type": "ring",
  48007. "color": color,
  48008. "padding": [5, 5, 5, 5],
  48009. "rotate": false,
  48010. "dataLabel": true,
  48011. "legend": {
  48012. "show": true,
  48013. "position": "right",
  48014. "lineHeight": 25
  48015. },
  48016. "title": {
  48017. "name": "收益率",
  48018. "fontSize": 15,
  48019. "color": "#666666"
  48020. },
  48021. "subtitle": {
  48022. "name": "70%",
  48023. "fontSize": 25,
  48024. "color": "#7cb5ec"
  48025. },
  48026. "extra": {
  48027. "ring": {
  48028. "ringWidth": 30,
  48029. "activeOpacity": 0.5,
  48030. "activeRadius": 10,
  48031. "offsetAngle": 0,
  48032. "labelWidth": 15,
  48033. "border": true,
  48034. "borderWidth": 3,
  48035. "borderColor": "#FFFFFF"
  48036. }
  48037. }
  48038. },
  48039. "rose": {
  48040. "type": "rose",
  48041. "color": color,
  48042. "padding": [5, 5, 5, 5],
  48043. "legend": {
  48044. "show": true,
  48045. "position": "left",
  48046. "lineHeight": 25
  48047. },
  48048. "extra": {
  48049. "rose": {
  48050. "type": "area",
  48051. "minRadius": 50,
  48052. "activeOpacity": 0.5,
  48053. "activeRadius": 10,
  48054. "offsetAngle": 0,
  48055. "labelWidth": 15,
  48056. "border": false,
  48057. "borderWidth": 2,
  48058. "borderColor": "#FFFFFF"
  48059. }
  48060. }
  48061. },
  48062. "word": {
  48063. "type": "word",
  48064. "color": color,
  48065. "extra": {
  48066. "word": {
  48067. "type": "normal",
  48068. "autoColors": false
  48069. }
  48070. }
  48071. },
  48072. "funnel": {
  48073. "type": "funnel",
  48074. "color": color,
  48075. "padding": [15, 15, 0, 15],
  48076. "extra": {
  48077. "funnel": {
  48078. "activeOpacity": 0.3,
  48079. "activeWidth": 10,
  48080. "border": true,
  48081. "borderWidth": 2,
  48082. "borderColor": "#FFFFFF",
  48083. "fillOpacity": 1,
  48084. "labelAlign": "right"
  48085. }
  48086. }
  48087. },
  48088. "map": {
  48089. "type": "map",
  48090. "color": color,
  48091. "padding": [0, 0, 0, 0],
  48092. "dataLabel": true,
  48093. "extra": {
  48094. "map": {
  48095. "border": true,
  48096. "borderWidth": 1,
  48097. "borderColor": "#666666",
  48098. "fillOpacity": 0.6,
  48099. "activeBorderColor": "#F04864",
  48100. "activeFillColor": "#FACC14",
  48101. "activeFillOpacity": 1
  48102. }
  48103. }
  48104. },
  48105. "arcbar": {
  48106. "type": "arcbar",
  48107. "color": color,
  48108. "title": {
  48109. "name": "百分比",
  48110. "fontSize": 25,
  48111. "color": "#00FF00"
  48112. },
  48113. "subtitle": {
  48114. "name": "默认标题",
  48115. "fontSize": 15,
  48116. "color": "#666666"
  48117. },
  48118. "extra": {
  48119. "arcbar": {
  48120. "type": "default",
  48121. "width": 12,
  48122. "backgroundColor": "#E9E9E9",
  48123. "startAngle": 0.75,
  48124. "endAngle": 0.25,
  48125. "gap": 2
  48126. }
  48127. }
  48128. },
  48129. "line": {
  48130. "type": "line",
  48131. "color": color,
  48132. "padding": [15, 10, 0, 15],
  48133. "xAxis": {
  48134. "disableGrid": true
  48135. },
  48136. "yAxis": {
  48137. "gridType": "dash",
  48138. "dashLength": 2
  48139. },
  48140. "legend": {},
  48141. "extra": {
  48142. "line": {
  48143. "type": "straight",
  48144. "width": 2
  48145. }
  48146. }
  48147. },
  48148. "tline": {
  48149. "type": "line",
  48150. "color": color,
  48151. "padding": [15, 10, 0, 15],
  48152. "xAxis": {
  48153. "disableGrid": false,
  48154. "boundaryGap": "justify"
  48155. },
  48156. "yAxis": {
  48157. "gridType": "dash",
  48158. "dashLength": 2,
  48159. "data": [{
  48160. "min": 0,
  48161. "max": 80
  48162. }]
  48163. },
  48164. "legend": {},
  48165. "extra": {
  48166. "line": {
  48167. "type": "curve",
  48168. "width": 2
  48169. }
  48170. }
  48171. },
  48172. "tarea": {
  48173. "type": "area",
  48174. "color": color,
  48175. "padding": [15, 10, 0, 15],
  48176. "xAxis": {
  48177. "disableGrid": true,
  48178. "boundaryGap": "justify"
  48179. },
  48180. "yAxis": {
  48181. "gridType": "dash",
  48182. "dashLength": 2,
  48183. "data": [{
  48184. "min": 0,
  48185. "max": 80
  48186. }]
  48187. },
  48188. "legend": {},
  48189. "extra": {
  48190. "area": {
  48191. "type": "curve",
  48192. "opacity": 0.2,
  48193. "addLine": true,
  48194. "width": 2,
  48195. "gradient": true
  48196. }
  48197. }
  48198. },
  48199. "column": {
  48200. "type": "column",
  48201. "color": color,
  48202. "padding": [15, 15, 0, 5],
  48203. "xAxis": {
  48204. "disableGrid": true
  48205. },
  48206. "yAxis": {
  48207. "data": [{
  48208. "min": 0
  48209. }]
  48210. },
  48211. "legend": {},
  48212. "extra": {
  48213. "column": {
  48214. "type": "group",
  48215. "width": 30,
  48216. "activeBgColor": "#000000",
  48217. "activeBgOpacity": 0.08
  48218. }
  48219. }
  48220. },
  48221. "mount": {
  48222. "type": "mount",
  48223. "color": color,
  48224. "padding": [15, 15, 0, 5],
  48225. "xAxis": {
  48226. "disableGrid": true
  48227. },
  48228. "yAxis": {
  48229. "data": [{
  48230. "min": 0
  48231. }]
  48232. },
  48233. "legend": {},
  48234. "extra": {
  48235. "mount": {
  48236. "type": "mount",
  48237. "widthRatio": 1.5
  48238. }
  48239. }
  48240. },
  48241. "bar": {
  48242. "type": "bar",
  48243. "color": color,
  48244. "padding": [15, 30, 0, 5],
  48245. "xAxis": {
  48246. "boundaryGap": "justify",
  48247. "disableGrid": false,
  48248. "min": 0,
  48249. "axisLine": false
  48250. },
  48251. "yAxis": {},
  48252. "legend": {},
  48253. "extra": {
  48254. "bar": {
  48255. "type": "group",
  48256. "width": 30,
  48257. "meterBorde": 1,
  48258. "meterFillColor": "#FFFFFF",
  48259. "activeBgColor": "#000000",
  48260. "activeBgOpacity": 0.08
  48261. }
  48262. }
  48263. },
  48264. "area": {
  48265. "type": "area",
  48266. "color": color,
  48267. "padding": [15, 15, 0, 15],
  48268. "xAxis": {
  48269. "disableGrid": true
  48270. },
  48271. "yAxis": {
  48272. "gridType": "dash",
  48273. "dashLength": 2
  48274. },
  48275. "legend": {},
  48276. "extra": {
  48277. "area": {
  48278. "type": "straight",
  48279. "opacity": 0.2,
  48280. "addLine": true,
  48281. "width": 2,
  48282. "gradient": false
  48283. }
  48284. }
  48285. },
  48286. "radar": {
  48287. "type": "radar",
  48288. "color": color,
  48289. "padding": [5, 5, 5, 5],
  48290. "dataLabel": false,
  48291. "legend": {
  48292. "show": true,
  48293. "position": "right",
  48294. "lineHeight": 25
  48295. },
  48296. "extra": {
  48297. "radar": {
  48298. "gridType": "radar",
  48299. "gridColor": "#CCCCCC",
  48300. "gridCount": 3,
  48301. "opacity": 0.2,
  48302. "max": 200
  48303. }
  48304. }
  48305. },
  48306. "gauge": {
  48307. "type": "gauge",
  48308. "color": color,
  48309. "title": {
  48310. "name": "66Km/H",
  48311. "fontSize": 25,
  48312. "color": "#2fc25b",
  48313. "offsetY": 50
  48314. },
  48315. "subtitle": {
  48316. "name": "实时速度",
  48317. "fontSize": 15,
  48318. "color": "#1890ff",
  48319. "offsetY": -50
  48320. },
  48321. "extra": {
  48322. "gauge": {
  48323. "type": "default",
  48324. "width": 30,
  48325. "labelColor": "#666666",
  48326. "startAngle": 0.75,
  48327. "endAngle": 0.25,
  48328. "startNumber": 0,
  48329. "endNumber": 100,
  48330. "labelFormat": "",
  48331. "splitLine": {
  48332. "fixRadius": 0,
  48333. "splitNumber": 10,
  48334. "width": 30,
  48335. "color": "#FFFFFF",
  48336. "childNumber": 5,
  48337. "childWidth": 12
  48338. },
  48339. "pointer": {
  48340. "width": 24,
  48341. "color": "auto"
  48342. }
  48343. }
  48344. }
  48345. },
  48346. "candle": {
  48347. "type": "candle",
  48348. "color": color,
  48349. "padding": [15, 15, 0, 15],
  48350. "enableScroll": true,
  48351. "enableMarkLine": true,
  48352. "dataLabel": false,
  48353. "xAxis": {
  48354. "labelCount": 4,
  48355. "itemCount": 40,
  48356. "disableGrid": true,
  48357. "gridColor": "#CCCCCC",
  48358. "gridType": "solid",
  48359. "dashLength": 4,
  48360. "scrollShow": true,
  48361. "scrollAlign": "left",
  48362. "scrollColor": "#A6A6A6",
  48363. "scrollBackgroundColor": "#EFEBEF"
  48364. },
  48365. "yAxis": {},
  48366. "legend": {},
  48367. "extra": {
  48368. "candle": {
  48369. "color": {
  48370. "upLine": "#f04864",
  48371. "upFill": "#f04864",
  48372. "downLine": "#2fc25b",
  48373. "downFill": "#2fc25b"
  48374. },
  48375. "average": {
  48376. "show": true,
  48377. "name": ["MA5", "MA10", "MA30"],
  48378. "day": [5, 10, 20],
  48379. "color": ["#1890ff", "#2fc25b", "#facc14"]
  48380. }
  48381. },
  48382. "markLine": {
  48383. "type": "dash",
  48384. "dashLength": 5,
  48385. "data": [{
  48386. "value": 2150,
  48387. "lineColor": "#f04864",
  48388. "showLabel": true
  48389. }, {
  48390. "value": 2350,
  48391. "lineColor": "#f04864",
  48392. "showLabel": true
  48393. }]
  48394. }
  48395. }
  48396. },
  48397. "mix": {
  48398. "type": "mix",
  48399. "color": color,
  48400. "padding": [15, 15, 0, 15],
  48401. "xAxis": {
  48402. "disableGrid": true
  48403. },
  48404. "yAxis": {
  48405. "disabled": false,
  48406. "disableGrid": false,
  48407. "splitNumber": 5,
  48408. "gridType": "dash",
  48409. "dashLength": 4,
  48410. "gridColor": "#CCCCCC",
  48411. "padding": 10,
  48412. "showTitle": true,
  48413. "data": []
  48414. },
  48415. "legend": {},
  48416. "extra": {
  48417. "mix": {
  48418. "column": {
  48419. "width": 20
  48420. }
  48421. }
  48422. }
  48423. },
  48424. "scatter": {
  48425. "type": "scatter",
  48426. "color": color,
  48427. "padding": [15, 15, 0, 15],
  48428. "dataLabel": false,
  48429. "xAxis": {
  48430. "disableGrid": false,
  48431. "gridType": "dash",
  48432. "splitNumber": 5,
  48433. "boundaryGap": "justify",
  48434. "min": 0
  48435. },
  48436. "yAxis": {
  48437. "disableGrid": false,
  48438. "gridType": "dash"
  48439. },
  48440. "legend": {},
  48441. "extra": {
  48442. "scatter": {}
  48443. }
  48444. },
  48445. "bubble": {
  48446. "type": "bubble",
  48447. "color": color,
  48448. "padding": [15, 15, 0, 15],
  48449. "xAxis": {
  48450. "disableGrid": false,
  48451. "gridType": "dash",
  48452. "splitNumber": 5,
  48453. "boundaryGap": "justify",
  48454. "min": 0,
  48455. "max": 250
  48456. },
  48457. "yAxis": {
  48458. "disableGrid": false,
  48459. "gridType": "dash",
  48460. "data": [{
  48461. "min": 0,
  48462. "max": 150
  48463. }]
  48464. },
  48465. "legend": {},
  48466. "extra": {
  48467. "bubble": {
  48468. "border": 2,
  48469. "opacity": 0.5
  48470. }
  48471. }
  48472. }
  48473. };
  48474. var _default = cfu;
  48475. exports.default = _default;
  48476. /***/ })
  48477. ]]);
  48478. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map